comparison medium-popup-disable.user.js @ 33:28505554a8b9

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