User:Eithris/common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "→‎Sidebar customization: function ModifySidebar( action, section, name, link ) { try { switch ( section ) { case 'languages': var target = 'p-lang'; break; case 'toolbox': var target = 'p-tb'; break; case 'navigation': var target = 'p-navigation'; break; default: var target = 'p-' + section; break; } if ( action == 'add' ) { var node = document.getElementById( target ) .getElementsByTagName( 'div' )[0]...")
 
No edit summary
Line 62: Line 62:
const url = tempurl2.split("\?").shift();
const url = tempurl2.split("\?").shift();
     // adds Special:PrefixIndex to toolbox
     // adds Special:PrefixIndex to toolbox
     ModifySidebar( 'add', 'navigation', 'Prefix index', 'https://www.trigunwiki.com/w/Special:PrefixIndex?prefix=' + url );
     ModifySidebar( 'add', 'navigation', 'Prefix index', 'https://trigunwiki.com/w/Special:PrefixIndex?prefix=' + url );
}
}


jQuery( CustomizeModificationsOfSidebar );
jQuery( CustomizeModificationsOfSidebar );

Navigation menu