User:Waldyrious/global.js

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.
/* ----------------------- SCRIPTS FROM ENGLISH WIKIPEDIA ------------------- */

function enWikiScript(page) {
  mw.loader.load( '//en.wikipedia.org/w/index.php?title='
  + page + '&action=raw&ctype=text/javascript');
}

/* Add a "replace" tab for regex substitution (tested on vector) */
enWikiScript('Wikipedia:WikiProject_User_scripts/Scripts/Replace');

/* Whitespace fixer. Fork of [[:en:User:Omegatron/monobook.js/headingformattingfixer.js]] */
enWikiScript('User:Waldyrious/whitespacefixer.js');

/* Convert diff button into link, so they can be opened in other browser tabs */
enWikiScript('User:Superm401/Compare link.js');
 
/* Combine successive edits in history pages */
enWikiScript('User:Alex Smotrov/histcomb.js');

/* In my contributions list, hide pages for which I was the last editor */
userHideAllSubsequent = true;
portletId = 'p-namespaces';
enWikiScript('User:Markhurd/hidetopcontrib.js');

/* Citation formatter: 
   - every parameter in a newline indented with a space
   - spaces around pipes and equal signs
   - equal signs aligned according to the longest parameter */
enWikiScript('User:Waldyrious/formatcitations.js');

/* Show info about the user in the page tagline/subtitle */
enWikiScript('User:PleaseStand/userinfo.js');

/* Convert all page action drop-down menus to tabs */
enWikiScript('User:Edokter/MenuToTabs.js');
        
/* 6tabs in vector */
// Note: there's a bug in wikis using the default index.php url scheme:
//       edit/history tabs for the talk/subject page dual append ?action=edit rather than &action=edit
// Also, I had at some point used ".css( 'padding-left', '0' )" instead of ".css( 'margin-left', '0.5em' )".
// Might be worth investigating why.
enWikiScript('User:Js/6tabs-vector.js');

/* JavaScript Wiki Browser (JS version of AWB) */
// Commented out because I never really used it.
//enWikiScript('User:Joeytje50/JWB.js/load.js');

// Add [[meta:Web2Cit]] support to the Visual Editor's Cite dialog
enWikiScript('User:Diegodlh/Web2Cit/script.js');

// [[en:User:Nardog/RefRenamer]] to change automated reference names into human-readable ones
enWikiScript('User:Nardog/RefRenamer.js');


/* ------------------------------ OTHER SCRIPTS ----------------------------- */

/* User:Remember the dot's syntax highlighter */
//mw.loader.load( '//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=text/javascript&maxage=86400' );

/* HotCat */
var hotcat_use_category_links = false; //reduce HotCat clutter
mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript');