MediaWiki:Group-sysop.js: Difference between revisions
Jump to navigation
Jump to search
Replaced content with "→Any JavaScript here will be loaded for sysops only: " Tags: Replaced Manual revert |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for sysops only */ | /* Any JavaScript here will be loaded for sysops only */ | ||
var lines = document.querySelector('.TableShops').querySelectorAll('tr'); | |||
for(var i = 0; i < lines.length; i++) { | |||
lines[i].addEventListener('click', function() { | |||
if (this.querySelector('a') !== null) { | |||
window.location = this.querySelector('a').href; | |||
} | |||
}); | |||
} | |||
Revision as of 15:02, 3 November 2022
/* Any JavaScript here will be loaded for sysops only */
var lines = document.querySelector('.TableShops').querySelectorAll('tr');
for(var i = 0; i < lines.length; i++) {
lines[i].addEventListener('click', function() {
if (this.querySelector('a') !== null) {
window.location = this.querySelector('a').href;
}
});
}