Skip to content

Instantly share code, notes, and snippets.

@cmcnulty
Last active October 10, 2019 04:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmcnulty/11194631 to your computer and use it in GitHub Desktop.
Save cmcnulty/11194631 to your computer and use it in GitHub Desktop.
Greasemonkey script to disable madison.com subscription redirect
// ==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