Skip to content

Instantly share code, notes, and snippets.

@imfing
Created April 19, 2022 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imfing/d291f265527324c17bb3a5f9c5576db2 to your computer and use it in GitHub Desktop.
Save imfing/d291f265527324c17bb3a5f9c5576db2 to your computer and use it in GitHub Desktop.
Tampermonkey script to block registration on realpython.com
// ==UserScript==
// @name Realpython Popup Remover
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Block realpython registration
// @author You
// @match https://realpython.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=realpython.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.getElementById("rprw").style.visibility = "hidden";
document.body.classList.remove("modal-open");
document.getElementsByClassName("modal-backdrop")[0].remove();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment