青年大学习直达完成界面

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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);
    }
})();