Skip to content

Instantly share code, notes, and snippets.

@johnroyer
Created August 13, 2024 05:24
Show Gist options
  • Save johnroyer/a9cb071e9c4bd2a84567a1f4688cb7b8 to your computer and use it in GitHub Desktop.
Save johnroyer/a9cb071e9c4bd2a84567a1f4688cb7b8 to your computer and use it in GitHub Desktop.
hide medium pricing banner
// ==UserScript==
// @name hide medium pricing banner
// @namespace http://tampermonkey.net/
// @version 2024-08-13
// @description try to take over the world!
// @author You
// @match https://*.medium.com/
// @grant none
// ==/UserScript==
(function() {
'use strict';
let elements = document.getElementsByClassName("adq");
// check if ads block is exists
if (0 == elements.length) {
return;
}
let block = elements[0];
block.style.display = "none"
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment