MediaWiki:Gadget-markAdmins.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
chissà se sia più apprezzabile semplicemente più piccino picciò
fix regex: sostituisci tutti gli underscore nei nomi utente, non solo il primo
 
(Una versione intermedia di un altro utente non mostrate)
Riga 44:
// for each link
$content.find( 'a' ).each( function addPerUserGroups () {
var $link = $( this ), userPatternMatch,
href = $link.attr( 'href' ),
userLink, userName, knownUserGroups, groupShort, groupName, i,
Riga 53:
 
// no sub pages
userLinkuserPatternMatch = userPattern.exec( href )[ 1 ];
if( userLink.indexOf( '/'= )userPatternMatch ===? userPatternMatch[ -1 )] : {null;
if( userLink && userLink.indexOf( '/' ) === -1 ) {
userName = decodeURIComponent( userLink.replace( /\/.*/, '' ).replace( /_/g, ' ' ) );
knownUserGroups = response.users[ userName ];
if ( knownUserGroups ) {