Greasy Fork

Greasy Fork is available in English.

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.

目前为 2017-02-22 提交的版本,查看 最新版本

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