您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirects people back to what they were doing before they decided to browse Reddit
当前为
// ==UserScript== // @name Redditblock // @description Redirects people back to what they were doing before they decided to browse Reddit // @include https://*.reddit.com // @include https://*.reddit.com/* // @include https://www.youtube.com/watch?v=* // @run-at document-start // @version 0.0.1.20151121120312 // @namespace https://greasyfork.org/users/12417 // ==/UserScript== // This whole code is meant to block websites you apply to this script to from 9 AM to 6 PM, with 1 check per minute. // For any further inquiries, please tell me at scratch.mit.edu/users/iamunknown2 or reddit/u/iamunknowntwo var date1 = new Date(); var hours = date1.getHours(); if (hours >= 8 && hours <= 17) // If hours are 8 AM to 7 PM (inclusive) { window.history.back(); }