Skip to content

Instantly share code, notes, and snippets.

@RichardVasquez
Created July 30, 2019 17: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 RichardVasquez/df7b8675dc4fd7ad795a3c928b98eb93 to your computer and use it in GitHub Desktop.
Save RichardVasquez/df7b8675dc4fd7ad795a3c928b98eb93 to your computer and use it in GitHub Desktop.
Basically, I've gotten tired of medium.com, and I want to avoid temptation, so this TamperMonkey script removes the Medium.com block from DevURLs.com
// ==UserScript==
// @name Nuke Medium
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Just avoid temptation and don't feed medium.com links
// @author Richard Vasquez
// @match https://devurls.com/
// @grant none
// ==/UserScript==
(function() {
'use strict';
var look_for = "publisher-block publisher-is-medium";
var medium_block = document.getElementsByClassName(look_for);
for(var i = 0; i < medium_block.length; i++) {
medium_block[i].parentNode.removeChild(medium_block[i]);
}
// Your code here...
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment