Greasy Fork is available in English.

超星学习通自动跳转到新版页面

此脚本可以在你从课程列表进入课程主页时自动跳转到新版页面。

// ==UserScript==
// @name         超星学习通自动跳转到新版页面
// @namespace    KVS:b878ef45-b8b8-75c0-7fa7-62440bdaacad
// @version      0.1
// @description  此脚本可以在你从课程列表进入课程主页时自动跳转到新版页面。
// @author       Vsp72
// @match        https://mooc1.chaoxing.com/mycourse/studentcourse?*
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAE7mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNy4xLWMwMDAgNzkuYjBmOGJlOSwgMjAyMS8xMi8wOC0xOToxMToyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9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jAT0jSPnvM+d9eVawffEREMaUQQMQREEUPAkAAsC9oiomoIamKICqgiSiFkTFXAVFBVVE0F4NhhMBUUS7SKoCaCoRgoG3dzzy6Ld49a/XyFf+/o5RsiXU4VDBAUMbE4sMfa289ZPPsQxZ41i81XrE58ppvnwagqiqmKqvHUg9bff97q+99tn/xa/7nFqubnv5qb5xXFsqAmgom1I/dbf+0Jt09+Zdy31/qJp63OnOOvmxbHDmtKg1pOFQwQ2bfb3g+P++/V03rpuvU3nrT1+qeyPe069YI7L39MCYoBxVRVd735jFvvfWP7u4uWLx6x+vEPqwtXLV56zM5HP5mXb6iaqmpUAYxD+y0e3XDrgx/kgXuNwwfcOX2WfbuNQ/ttn/nFVEUVjKKq2H38cVufnNXtHcujD1udv2J16ZrxyIb5903z8g1VUxXFsoqgdn676vYX51Rtf3uRrR1Tra5vyZcXVBFB1UT+PPhWIyCIgGCIiGCIiCAiiFhOzaBAUBHFVAPEVAMEVQwyYKqiqqiCYqqqYqqpCiiWgFSRUgQVAVMFQ1CTDEH9D+lKCJQx2yuwAAAAAElFTkSuQmCC
// @grant        none
// ==/UserScript==

(function() {
  'use strict';
    // 获取“体验新版”元素的 DOM 对象
    let el = document.querySelector('li a.experience');
    // 获取新版页面的 URL
    let url = el.getAttribute('href');
    // 跳转到新版页面
    window.navigation.navigate(url);
})();