Difference between revisions of "User:Mg27713/common.js"
Jump to navigation
Jump to search
(Created page with "if (location.href.endsWith("#internalLink")) { for (var e of document.getElementsByClassName("gw-mainpage-notice")) { e.style.display = "block"; } }") |
(fix agai) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
if (location.href.endsWith("#internalLink")) { | if (location.href.endsWith("#internalLink")) { | ||
− | + | var elems = document.getElementsByClassName("gw-mainpage-notice"); | |
− | + | for (var i = 0; i < elems.length; i++) { | |
+ | elems[i].style.display = "block"; | ||
} | } | ||
} | } |
Latest revision as of 01:32, 13 November 2021
if (location.href.endsWith("#internalLink")) { var elems = document.getElementsByClassName("gw-mainpage-notice"); for (var i = 0; i < elems.length; i++) { elems[i].style.display = "block"; } }