医科继续教育自动刷新脚本

某医科视频自动刷新,打开看视频的页面后,挂着,每50分钟自动页面刷新,打开脚本后每次进入刷新一下页面

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/442624/1069017/%E5%8C%BB%E7%A7%91%E7%BB%A7%E7%BB%AD%E6%95%99%E8%82%B2%E8%87%AA%E5%8A%A8%E5%88%B7%E6%96%B0%E8%84%9A%E6%9C%AC.js

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         医科继续教育自动刷新脚本
// @namespace    http://tampermonkey.net/
// @version      0.6
// @description  某医科视频自动刷新,打开看视频的页面后,挂着,每49分钟自动页面刷新,打开脚本后每次进入刷新一下页面
// @author       Coolstuz
// @match        https://www.dianmoyun.com/Course/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    console.log('载入成功');
var json=window.localStorage.getItem('timeData');
			var userinfo=JSON.parse(json)
			    console.log(userinfo);
			console.log(userinfo.appValue1);
            console.log(userinfo.appValue2);


    var flag
    if(document.getElementsByClassName("menu-list")[0].getElementsByTagName("a").length==4){
         flag=1;
    }else{
         flag=0;
    }
   setTimeout(function(){
            //location.reload(true);

           window.location.href = document.referrer;
        }, 3000000);

    

})();