Block sites

Block sites (such as Baidu, etc.) You can edit the block list in the script.

目前为 2016-12-06 提交的版本。查看 最新版本

// ==UserScript==
// @name         Block sites
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Block sites (such as Baidu, etc.) You can edit the block list in the script.
// @author       Laphy
// @match        http*://www.baidu.com/
// @match        http*://weibo.com/*
// @match        http*://feedly.com/*
// @match        http*://feedly.com/*
// @match        http://www.newsmth.net/*
// @grant        GM_addStyle
// @run-at       document-body
// @require      http://code.jquery.com/jquery-2.2.4.js
// ==/UserScript==

(function() {

    $("body").css("visibility","hidden");
    
    $(document).ready(function() {
        var oldBody = $('body').html();
        $('body').html('<div id="NewContent">Connected. <a href="javascript:void(0)">Restore</a></div>');
        $("body").css("visibility","visible");
        
        GM_addStyle(`#NewContent {
height: 300px;
margin: 50px;
padding: 50px;
font-size:20pt;
text-align:center;
}`);

        
        $("body a").click(function() {
        $('body').html(oldBody);
    });
        
});

    
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址