青年大学习直达完成界面

跳过青年大学习的视频部分,直达完成界面

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         青年大学习直达完成界面
// @namespace    https://ez118.github.io/
// @version      0.7
// @description  跳过青年大学习的视频部分,直达完成界面
// @author       ZZY_WISU
// @match        *://h5.cyol.com/*
// @license      GNU GPLv3
// @icon         https://h5.cyol.com/special/daxuexi/ge5la0h6qb/images/collect_yellow.png
// @grant        none
// @run-at document-end
// @require      https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.min.js
// ==/UserScript==

var loadDuration = 1000; /* 加载后破解脚本的等待时间,单位:ms */

(function() {
    //https://h5.cyol.com/special/daxuexi/ck6hfr2g0y/m.html?t=1&z=201
    'use strict';
    var SUrl = window.location.href.split("/");
    if(SUrl[SUrl.length - 1] == "index.html") {

        setTimeout(function(){
            $("iframe").contents().find('.section3').addClass('topindex2');
        }, loadDuration);
    } else if(SUrl[SUrl.length - 1].split("?")[0] == "m.html" && top.location.href == window.location.href && SUrl.slice(-2)[0].slice(0,10) != "daxuexiall") {
        setTimeout(function(){
            $('.section3').addClass('topindex2');
        }, loadDuration);
    }
})();