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") };  }) // ...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; // // Enable prompt for Change Summary for any Rollback button // --Change default allowNoSummary:false -> true to allow no summary // --Change default removeLinkClass:false -> true to further edit the RC file // window.furry          = {}; window.furry.rollback = {allowNoSummary: true, addNewLink: false, useAjax: true, removeLinkClass: true}; mw.loader.load( '/w/index.php?title=User:Furry/customRollback.js&action=raw&ctype=text/javascript' );

// Modify [Mark as patrolled] using Ajax rather than a separate page mw.loader.load( '/w/index.php?title=User:Furry/ajaxPatrol.js&action=raw&ctype=text/javascript' );

// 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:Bizzeebeever/scripts/patrol.js&action=raw&ctype=text/javascript' ); 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' ); } }