Mercurial > ec-userscripts
comparison medium-popup-disable.user.js @ 66:444b17e657be
Standardize code style
| author | nanaya <me@nanaya.pro> |
|---|---|
| date | Wed, 10 Jul 2019 22:36:31 +0900 |
| parents | 3381a9cb88d1 |
| children | 521dda0a0b6f |
comparison
equal
deleted
inserted
replaced
| 65:72ef6fcdff44 | 66:444b17e657be |
|---|---|
| 10 // @match https://hackernoon.com/* | 10 // @match https://hackernoon.com/* |
| 11 // @grant none | 11 // @grant none |
| 12 // @downloadURL https://bitbucket.org/nanayapro/ec-userscripts/raw/tip/medium-popup-disable.user.js | 12 // @downloadURL https://bitbucket.org/nanayapro/ec-userscripts/raw/tip/medium-popup-disable.user.js |
| 13 // ==/UserScript== | 13 // ==/UserScript== |
| 14 | 14 |
| 15 ;(function() { | 15 ;(function () { |
| 16 "use strict"; | 16 'use strict' |
| 17 var popups = document.getElementsByClassName("highlightMenu"); | 17 var popups = document.getElementsByClassName('highlightMenu') |
| 18 var killPopup = function(popup) { | 18 var killPopup = function (popup) { |
| 19 popup.style.display = "none"; | 19 popup.style.display = 'none' |
| 20 }; | 20 } |
| 21 var killPopups = function() { | 21 var killPopups = function () { |
| 22 Array.prototype.forEach.call(popups, killPopup); | 22 Array.prototype.forEach.call(popups, killPopup) |
| 23 }; | 23 } |
| 24 document.addEventListener('click', killPopups); | 24 document.addEventListener('click', killPopups) |
| 25 }).call(); | 25 }).call() |
