MediaWiki:Common.js: Difference between revisions
Dsi.ionescu (talk | contribs) Created page with "→Any JavaScript here will be loaded for all users on every page load.: document.addEventListener( 'DOMContentLoaded', function () { document.querySelectorAll( 'a[href*="Special:ConfirmAccounts"]' ).forEach( function ( link ) { var match = link.textContent.trim().match( /^Account requests \((\d+)\)$/ ); if ( !match ) { return; } link.textContent = 'Account requests'; var badge = document.createElement( 'span' )..." |
Dsi.ionescu (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
$( function () { | |||
document.querySelectorAll( 'a' ).forEach( function ( link ) { | |||
document.querySelectorAll( 'a | |||
var match = link.textContent.trim().match( /^Account requests \((\d+)\)$/ ); | var match = link.textContent.trim().match( /^Account requests \((\d+)\)$/ ); | ||
if ( !match ) { | if ( !match ) { | ||