Greasy Fork is available in English.

Bypass The Nation paywall

Bypass the paywall on thenation.com

Verzia zo dňa 07.04.2016. Pozri najnovšiu verziu.

// ==UserScript==
// @name        Bypass The Nation paywall
// @description Bypass the paywall on thenation.com
// @include     *://www.thenation.com/*
// @version     1.1
// @grant        none
// @require      https://greasyfork.org/scripts/5679-wait-for-elements/code/Wait%20For%20Elements.js?version=46106
// @namespace https://greasyfork.org/users/649
// ==/UserScript==


// short reference to unsafeWindow (or window if unsafeWindow is unavailable e.g. bookmarklet)
var W = (typeof unsafeWindow === 'undefined') ? window : unsafeWindow;

if (W.BM_MODE) {
    Paywall.hide();
    document.querySelector('#paywall').remove();
} else {
    waitForElems('#paywall', function(node) {
        node.remove();
    });
}