// ==UserScript== // @name Block Site // @namespace http://tampermonkey.net/ // @version 0.1 // @description 屏蔽网站,清静下来,省时间,省生命 // @author You // @match *:* // @match *://*/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @require https://cdn.staticfile.org/vue/2.6.14/vue.min.js // @require https://lib.baomitu.com/vue/2.6.14/vue.min.js // @require http://libs.baidu.com/jquery/2.0.0/jquery.min.js // @require https://unpkg.com/element-ui/lib/index.js // @resource elementStyle https://unpkg.com/element-ui/lib/theme-chalk/index.css // @grant GM_addStyle // @grant GM_getResourceText // @grant GM_getValue // @grant GM.getValue // @grant GM_setValue // @grant GM.setValue // @grant GM_addStyle // @grant GM_getResourceURL // @grant GM_listValues // @grant GM.getResourceUrl // @grant GM_xmlhttpRequest // @grant GM_getResourceText // @grant GM_registerMenuCommand // @downloadURL https://update.greasyfork.icu/scripts/467279/Block%20Site.user.js // @updateURL https://update.greasyfork.icu/scripts/467279/Block%20Site.meta.js // ==/UserScript== (function() { 'use strict'; // 代码内部 引入bootstrap的css文件并加入html中 const css = GM_getResourceText("elementStyle"); GM_addStyle(css); console.log('a') if(location.href=='http://vin.kbug.cn/block.html'){ let gg = GM_getValue("pre_url") $("body").html(`
只需要添加主域名即可, xxx.com
URL | 操作 |
---|---|
{{u}} |