Created
March 22, 2011 09:12
-
-
Save mathiasbynens/880967 to your computer and use it in GitHub Desktop.
Userscript to bypass the badly implemented paywall on nytimes.com. Use the “raw” links to install.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Bypass New York Times paywall (20 article limit) | |
// @author Mathias Bynens <http://mathiasbynens.be/> | |
// @link http://mths.be/axa | |
// @match http://www.nytimes.com/* | |
// ==/UserScript== | |
(function(d) { | |
d.getElementById('overlay').style.display = 'none'; | |
d.getElementById('gatewayCreative').style.display = 'none'; | |
d.body.style.overflow = 'scroll'; | |
}(document)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Bypass New York Times paywall (20 article limit) | |
// @author Mathias Bynens <http://mathiasbynens.be/> | |
// @link http://mths.be/axa | |
// @match http://www.nytimes.com/* | |
// ==/UserScript== | |
(function(d) { | |
[].forEach.call(d.querySelectorAll('#overlay, #gatewayCreative'), function(e) { | |
e.style.display = 'none'; | |
}); | |
d.body.style.overflow = 'scroll'; | |
}(document)); |
Here's a work-around hack that works with Tampermonkey
// ==UserScript==
// @name Bypass New York Times paywall (20 article limit)
// @author Jason Khanlar <jason.khanlar@gmail.com>
// @link http://mths.be/axa
// @match http://www.nytimes.com/*
// @match https://www.nytimes.com/*
// @grant GM_webRequest
// @webRequest [{"selector":"https://www.nytimes.com/*","action":"cancel"}]
// @run-at document-start
// ==/UserScript==
neither option works anymore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to http://wesbos.com/remove-new-york-times-paywall-css/ they've changed the div from #gatewayCreative to #gatewayUnit.