diff 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
line wrap: on
line diff
--- a/medium-popup-disable.user.js	Thu Apr 15 14:56:23 2021 +0900
+++ b/medium-popup-disable.user.js	Thu Apr 15 15:01:22 2021 +0900
@@ -14,11 +14,11 @@
 
 ;(function () {
   'use strict'
-  var popups = document.getElementsByClassName('highlightMenu')
-  var killPopup = function (popup) {
+  const popups = document.getElementsByClassName('highlightMenu')
+  const killPopup = function (popup) {
     popup.style.display = 'none'
   }
-  var killPopups = function () {
+  const killPopups = function () {
     Array.prototype.forEach.call(popups, killPopup)
   }
   document.addEventListener('click', killPopups)