您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Return to classic Online-Stopwatch
// ==UserScript== // @name Classic Online-Stopwatch // @namespace feifeihang.info // @description Return to classic Online-Stopwatch // @include http://www.online-stopwatch.com* // @include https://www.online-stopwatch.com* // @version 1 // @grant unsafeWindow // ==/UserScript== (function (window, document, undefined) { var FULLSCREEN = 'http://www.online-stopwatch.com/full-screen-stopwatch/'; var pathname = window.location.pathname; // if it's homepage, go to fullscreen mode. if (pathname === '' || pathname === '/') { window.location.href = FULLSCREEN; return; } // if it's fullscreen mode page, remove the top and bottom back links. if (pathname === '/full-screen-stopwatch/' || pathname === '/full-screen-stopwatch') { var divs = document.querySelectorAll('div.coad, div.bback'); console.log(divs); divs = Array.prototype.slice.apply(divs); divs.map(function (div) { div.remove(); return null; }); // now, make the stopwatch really fullscreen. unsafeWindow.adSize = 0; unsafeWindow.fully(); } }) (this, this.document);