Created
July 30, 2019 17:26
-
-
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
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 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