Mercurial > ec-userscripts
comparison medium-popup-disable.user.js @ 85:9c8cde985caf
Update standard and fix
author | nanaya <me@nanaya.pro> |
---|---|
date | Thu, 15 Apr 2021 15:01:22 +0900 |
parents | 86da34e62d29 |
children | 2c4470b73ad9 |
comparison
equal
deleted
inserted
replaced
84:af4f8b25495e | 85:9c8cde985caf |
---|---|
12 // @downloadURL https://hg.myconan.net/ec-userscripts/raw-file/tip/medium-popup-disable.user.js | 12 // @downloadURL https://hg.myconan.net/ec-userscripts/raw-file/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 const popups = document.getElementsByClassName('highlightMenu') |
18 var killPopup = function (popup) { | 18 const killPopup = function (popup) { |
19 popup.style.display = 'none' | 19 popup.style.display = 'none' |
20 } | 20 } |
21 var killPopups = function () { | 21 const 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() |