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.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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);