不要颓废!!!!!!
这是一个 TamperMonkey 脚本,如果你不像我一样动不动把它关掉,可能可以防止你颓废。
// ==UserScript==
// @name 防颓插件
// @version 0.1
// @description 防止颓废
// @author djwj233
// @match *.bilibili.com/*
// @match *://www.zhihu.com/*
// @match *.generals.io/*
// @match *://www.baidu.com/*
// @match *://*.lichess.org/*
// @match *.youtube.com/*
// @match *.4399.com/*
// @match *.7k7k.com/*
// @match *://floor.io
// @match *://poki.cn
// @match *://yorg.io
// @grant none
// ==/UserScript==
(function() {
'use strict';
var today=new Date();
var h = today.getHours();
var m = today.getMinutes();
if(h < 7 || (h == 7 && m <= 30)) {
return ;
}
if(h == 12 || (h == 13 && m <= 15)) {
return ;
}
if(16 <= h && h <= 18) {
return ;
}
window.location.href='http://www.luogu.com.cn/';
alert("再颓废明天就 AFO!!!");
})();