Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
// Add a link to Special:LookupContribs/USERNAME at Special:Contributions
// Written by Grunny, modified by SVG
if( wgCanonicalSpecialPageName === 'Contributions' ) {
$( contribLinks );
}
function contribLinks() {
var ug = wgUserGroups.join(' '),
ctype,
targ = $( 'input[name="target"]' ).val();
// poorman contribs type finder. -1 = existing user
try {
ctype = $( '#contentSub > a:first' ).attr( 'href' ).indexOf( 'User_talk' );
} catch(e) {
ctype = -1;
}
if( !targ ) {
return;
}
if( ctype === -1 ) {
if( wgCityId !== '177' ){
insertContentSubContribLink( 'http://community.wikia.com/wiki/Special:LookupContribs?target=' + targ.replace(/_/g,'+'), 'Lookup Contribs' );
}
}
insertContentSubContribLink( 'http://community.wikia.com/wiki/Special:Multiwikifinder?target=User+talk:' + targ.replace(/_/g,'+'), 'MWF' );
insertContentSubContribLink( '/wiki/Special:Nuke?target=' + targ.replace(/_/g,'+'), 'Nuke' );
}
//jQuery version of Splarka's insertContentSubContribLink, by Grunny
function insertContentSubContribLink( link, text ) {
$( '#contentSub > a:last' ).after( ' | <a href="' + link + '" title="' + link + '">' + text + '</a>' );
}