Greasy Fork

Greasy Fork is available in English.

anti-addiction

防沉迷

当前为 2020-05-10 提交的版本,查看 最新版本

// ==UserScript==
// @name        anti-addiction 
// @namespace   passer.com
// @version     5.0.0
// @author      passer
// @description 防沉迷
// @match       *://v.qq.*/*
// @match       *://*.iqiyi.*/*
// @match       *://*.ixigua.*/*
// @match       *://*.bilibili.*/*
// @match       *://*.huya.*/*
// @match       *://*.youku.*/*
// @match       *://*.tudou.*/*
// @match       *://*.le.*/*
// @match       *://tv.souhu.*/*
// @match       *://tv.pptv.*/*
// @match       *://*.pps.*/*
// @match       *://*.douyu.*/*
// @match       *://*.yy.*/*
// @match       https://egame.qq.*/*
// @match       *://*.longzhu.*/*
// @match       *://*.zhanqi.*/*
// @match       *://*.huomao.*/*
// @match       *://*.chushou.*/*
// @match       *://*.kstv.*/*
// @match       *://*.huajiao.*/*
// @match       *://*.qsptv.*/*
// @match       *://*.vodxc.*/*
// @match       *://*.4399.*/*
// @match       *://*.9527.*/*
// @match       *://*.idyiy.*/*
// @match       *://*.btbtdy.*/*
// @match       *://*.dililitv.*/*
// @match       *://*.vsoop.*/*
// @match       *://femqfuyi.*/*
// @match       *://*.bingdou.*/*
// @grant       none
// ==/UserScript==




var myDate = new Date();
var countTime = function(){
        var hour = myDate.getHours(); //获取当前时间
        var url = window.location.href;
        if(11 > hour && hour > 14 && hour < 18)  window.location.href = 'http://qiubaiying.vip/404.html';
    }
            
var timer1 = window.setInterval(countTime,10000);