anti-addiction

防沉迷

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        anti-addiction 
// @namespace   passer.com
// @version     9.0.0
// @author      amateur
// @description 防沉迷
// @match       *://*/*
// @exclude     *://*.baidu.com/*
// @exclude     *://*.bing.com/*
// @exclude     *://*.google.com/*
// @exclude     *://*.google.com.hk/*
// @exclude     *://*.csdn.*/*
// @exclude     *://*.github.*/*
// @exclude     *://*.gitee.*/*
// @exclude     *://greasyfork.org/*
// @exclude     *://github.*/*
// @exclude     *://gitee.*/*
// @exclude     *://im.qq.*/*
// @exclude     *://weixin.qq.*/*
// @exclude     *://wx.qq.*/*
// @exclude     *://mail.163.*/*
// @exclude     *://*.cnglobs.*/*
// @exclude     *://mail.qq.*/*
// @exclude     *://qzone.qq.*/*
// @exclude     https://tj.122.gov.cn/#/index
// @exclude     http://xkctk.jtys.tj.gov.cn/*
// @exclude     *://*.microsoft.*/*
// @exclude     https://xydh.fun/*
// @exclude     *://*.youdao.*/*
// @exclude     *://*.lanzous.*/*
// @exclude     *://ke.qq.*/*
// @exclude     *://study.163.*/*
// @exclude     *://*.dingtalk.*/*
// @exclude     *://*.zhihu.*/*
// @exclude     *://*.icourse163.*/*
// @exclude     *://*.xuetangx.*/*
// @exclude     *://*.yuketang.*/*
// @exclude     *://*.tencent.*/*
// @exclude     *://www.qq.com/*
// @exclude     https://www.ipaddress.com/*
// @exclude     *://*.intel.*/*
// @exclude     *://*.aliyun.*/*
// @grant       none
// ==/UserScript==




var myDate = new Date();
var countTime = function(){
        var hour = myDate.getHours(); //获取当前时间
        if(11 > hour || hour > 13 && hour < 18)  
            // window.location.href = 'http://qiubaiying.vip/404.html';
            /*chrome、火狐浏览器中close()只能关闭open()打开的网页*/
            window.open(location.href,'_self');
            window.close();
    }
            
var timer1 = window.setInterval(countTime,1000);