User:Spike/common.js

// GENERAL OVERRIDES var displayFlashOverride = false; // Disable Flash jQuery.fx.off = true;             // Disable jQuery animations

// OVERRIDES FOR ALL PAGES // Too many #### buttons on this #### plane! // Mince words in the captions... $("#p-cactions A").each(function(key) {if ($(this).text == "Discussion")        { $(this).text("Talk") };   if ($(this).text == "History")           { $(this).text("Hist") };  }) // Remove options I'll never use $("LI#pt-darkmode-link").remove; $("LI#pt-uls").remove; $("LI#pt-betafeatures").remove; // ...and make them all fit on one line $("DIV#p-cactions DIV.pBody").css("width", "550px");

// OVERRIDES FOR ALL SPECIAL PAGES // if ( !wgIsArticle ) { // Don't want (talk|contribs|block) buttons for myself in any report; // they are at the top of my page. $("a.mw-userlink[title='User:" + wgUserName + "']+span.mw-usertoollinks").remove;

// GADGETS SPECIFIC TO ONE SPECIAL PAGE // Note: CanonicalSpecialPageName is not internationalized and is not CamelCase // var spn = mw.config.get('wgCanonicalSpecialPageName');

// Special:Contributions: Enable "Rollback all" button if ( spn == 'Contributions' ) { mw.loader.load( '/w/index.php?title=User:Spike/RollbackAll-v3.js&action=raw&ctype=text/javascript' ); }

// Special:RecentChanges: Enable "Patrol" button with Patrol all else if ( spn == 'Recentchanges' ) { mw.loader.load( '/w/index.php?title=User:Spike/watchgadget-v3.js&action=raw&ctype=text/javascript' ); $('#recentchanges-options').removeClass('collapsed'); }

// Special:Watchlist: Add an Unwatch control to every item else if ( spn == 'Watchlist' ) { mw.loader.load( '/w/index.php?title=User:Spike/watchgadget-v3.js&action=raw&ctype=text/javascript' ); } }