Block sites

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

Stan na 06-12-2016. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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);
    });
        
});

    
})();