// ==UserScript== // @name 漫画台PC浏览 // @namespace http://idrunk.net/ // @version 1.0 // @description 在PC上看漫画 // @author Drunk // @match http://*.manhuatai.com/* // @downloadURL https://update.greasyfork.icu/scripts/40913/%E6%BC%AB%E7%94%BB%E5%8F%B0PC%E6%B5%8F%E8%A7%88.user.js // @updateURL https://update.greasyfork.icu/scripts/40913/%E6%BC%AB%E7%94%BB%E5%8F%B0PC%E6%B5%8F%E8%A7%88.meta.js // ==/UserScript== // @require http://code.jquery.com/jquery-1.11.0.min.js (() => { 'use strict'; let scheme = { timer (callback, time) { if (this.stoped) return; if (!time) time = 100; window.setTimeout(() => { callback.call(); scheme.timer.call(this, callback, time); }, time); }, stop () { this.stoped = 1; } }; $(() => { $('body').prepend(''); // 关闭遮罩 scheme.timer(() => { let layer = $('#mh_member'); if (layer.length) { layer.remove(); // 移除遮罩 $('body').css('overflow', 'auto'); // 开启滚动 $(document).off("contextmenu"); // 开启右键 scheme.stop(); // 停止任务 } }, 10); }); })();