Last active
October 10, 2019 04:26
-
-
Save cmcnulty/11194631 to your computer and use it in GitHub Desktop.
Greasemonkey script to disable madison.com subscription redirect
This file contains hidden or 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 Madison.com NonSubscribe | |
// @description Stops subscription redirect on madison.com articles | |
// | |
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html | |
// @license (CC); http://creativecommons.org/licenses/by-nc-sa/3.0/ | |
// | |
// @namespace NonSubscribe.me | |
// @include http://*.madison.com/* | |
// @updateURL https://gist.githubusercontent.com/cmcnulty/11194631/raw/unsubscribe-madison-com.user.js | |
// @version 0.0.5 | |
// @grant none | |
// ==/UserScript== | |
(function () { | |
setTimeout(function(){ | |
var regWall = document.getElementById("lee-registration-wall"); | |
regWall.parentNode.removeChild(regWall); | |
var divsToHide = document.querySelectorAll('.subscriber-only'); | |
for(var i = 0; i < divsToHide.length; i++){ | |
divsToHide[i].style.display = "block"; // depending on what you're doing | |
} | |
}, 3000); | |
}) (); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment