Difference between revisions of "MediaWiki:Common.js"
From mispar
| Line 2: | Line 2: | ||
| − | + | const re = /#(.*)$/; | |
| + | |||
| + | found = re.exec(window.location.href); | ||
| + | console.log(found); | ||
Revision as of 21:47, 4 March 2022
/* Any JavaScript here will be loaded for all users on every page load. */ const re = /#(.*)$/; found = re.exec(window.location.href); console.log(found);