comparison medium-popup-disable.user.js @ 108:2c4470b73ad9

Switch to semistandard No more `;` at the start of line.
author nanaya <me@nanaya.net>
date Sun, 15 Jan 2023 23:24:03 +0900
parents 9c8cde985caf
children ef21ef445fc6
comparison
equal deleted inserted replaced
107:4bc5a633437c 108:2c4470b73ad9
10 // @match https://hackernoon.com/* 10 // @match https://hackernoon.com/*
11 // @grant none 11 // @grant none
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 const popups = document.getElementsByClassName('highlightMenu') 17 const popups = document.getElementsByClassName('highlightMenu');
18 const killPopup = function (popup) { 18 const killPopup = function (popup) {
19 popup.style.display = 'none' 19 popup.style.display = 'none';
20 } 20 };
21 const 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();