Greasy Fork

Greasy Fork is available in English.

青年大摸鱼

快速跳过视频,节省时间。

当前为 2020-11-16 提交的版本,查看 最新版本

// ==UserScript==
// @name         青年大摸鱼
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  快速跳过视频,节省时间。
// @author       a_handsome_guy
// @match        http://h5.cyol.com/*
// @grant        none
// @run-at document-idle
// ==/UserScript==

(function() {
    'use strict';
    var sb = document.getElementById("Bvideo");
    var superSB="http://h5.cyol.com/special/daxuexi/wzquanhui/m.html"
    var url = window.location.href;
    if(url == superSB)
    {
        document.querySelector("body > div.section4").className="section4 topindex1";
    }
    else
    {
        var url1=url.split("?");
        if(url1[0]==superSB)
        {
            document.querySelector("body > div.section4").className="section4 topindex1";
        }
    }
    var i=0;
    sb.addEventListener("timeupdate",function(){
        setInterval(function(){ sb.currentTime=10000; }, 1000);

    })
})();