| 30 | 1 // ==UserScript== | 
|  | 2 // @name         Medium popup disable | 
|  | 3 // @namespace    https://myconan.net | 
| 33 | 4 // @version      1.0.2 | 
| 30 | 5 // @description  Strip out Medium's highlighting popup "feature" | 
|  | 6 // @author       nanaya | 
|  | 7 // @match        https://medium.com/* | 
|  | 8 // @match        https://m.signalvnoise.com/* | 
| 31 | 9 // @match        https://hackernoon.com/* | 
| 30 | 10 // @grant        none | 
|  | 11 // @downloadURL  https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/medium-popup-disable.user.js | 
|  | 12 // ==/UserScript== | 
|  | 13 | 
|  | 14 ;(function() { | 
| 33 | 15   "use strict"; | 
|  | 16   var popups = document.getElementsByClassName("highlightMenu") | 
| 30 | 17   var killPopup = function(popup) { | 
| 33 | 18     popup.style.display = "none"; | 
|  | 19   } | 
| 30 | 20   var killPopups = function() { | 
| 33 | 21     Array.prototype.forEach.call(popups, killPopup) | 
|  | 22   } | 
|  | 23   document.addEventListener('click', killPopups) | 
| 30 | 24 }).call(); |