Remove Useless Segments of the Ecomonist

Remove top and bottom popups of Economists, right sidebar ads and the limit on the number of articles you can view for free on The Economist's site.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Remove Useless Segments of the Ecomonist
// @namespace   antisunny
// @description Remove top and bottom popups of Economists, right sidebar ads and the limit on the number of articles you can view for free on The Economist's site.
// @include     http://*.economist.com/*
// @version     0.11
// @require     http://cdn.staticfile.org/jquery/2.1.1/jquery.min.js
// ==/UserScript==
(function(A){
    document.cookie="ec_limit=allow";
    A(".fe-blogs__top-ad-wrapper, .main-content__related-column, #piano__in-line-paywall").remove();
    A(".blog-post__text").css("display","block");
    var window_w = A(window).width();
    if (window_w >= 1114) {
        A(".main-content__main-column").css({"width":"70.999%"});
    }
    else if (window_w >= 960) {
        A(".main-content__main-column").css({"width":"90.999%"});
    }
})(jQuery);