comparison medium-popup-disable.user.js @ 49:2e1cae72a63e

Semicolons
author nanaya <me@nanaya.pro>
date Thu, 12 Oct 2017 16:40:13 +0900
parents 32a213717e6a
children 09f735548b2c
comparison
equal deleted inserted replaced
48:b60f0fd9c417 49:2e1cae72a63e
12 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/medium-popup-disable.user.js 12 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/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();