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) |
||
Line 1: | Line 1: | ||
if (location.href.endsWith("#internalLink")) { | if (location.href.endsWith("#internalLink")) { | ||
− | + | var elems = document.getElementsByClassName("gw-mainpage-article"); | |
− | + | for (var i = 0; i < elems.length; i++) { | |
+ | elems[i].style.display = "block"; | ||
} | } | ||
} | } |
Revision as of 01:31, 13 November 2021
if (location.href.endsWith("#internalLink")) { var elems = document.getElementsByClassName("gw-mainpage-article"); for (var i = 0; i < elems.length; i++) { elems[i].style.display = "block"; } }