comparison medium-popup-disable.user.js @ 30:d884de13423b

(none)
author Edho Arief <me@myconan.net>
date Fri, 20 May 2016 18:06:04 +0000
parents
children e18a3d8230c9
comparison
equal deleted inserted replaced
29:d467e1e0ec98 30:d884de13423b
1 // ==UserScript==
2 // @name Medium popup disable
3 // @namespace https://myconan.net
4 // @version 1.0.0
5 // @description Strip out Medium's highlighting popup "feature"
6 // @author nanaya
7 // @match https://medium.com/*
8 // @match https://m.signalvnoise.com/*
9 // @grant none
10 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/medium-popup-disable.user.js
11 // ==/UserScript==
12
13 ;(function() {
14 'use strict';
15 var popups = document.getElementsByClassName("highlightMenu");
16 var killPopup = function(popup) {
17 popup.style.display = 'none';
18 };
19 var killPopups = function() {
20 Array.prototype.forEach.call(popups, killPopup);
21 };
22 document.addEventListener('click', killPopups);
23 }).call();