Jump to content

User:Bility/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// Search and replace
// Author: User:Zocky
// Modified by: User:Bility
importScript('User:Bility/zockys_SearchBox.js');

// Edit counter
// Author: User:Najzere @ strategywiki.org
// var editPage = 'Edit count';
// var tableClass = '';
// var tableStyle = 'float:right;width:150px';
// mw.loader.load('http://strategywiki.org/w/index.php?title=User:Najzere/edit_counter.js&action=raw&ctype=text/javascript');

// Status updater
// Author: User:Bility
// var hideStatus = true;
// importScript('User:Bility/statusupdate.js');

// History page 24 hour to 12 hour time converter
// Author: User:Bility
// importScript('User:Bility/convert24hourtime.js');

// Archive talk page by section
// Author: User:Bility
// importScript('User:Bility/archiveTalkSections.js');

// Copy/paste text for linking to sections
// Author: User:Bility
// importScript('User:Bility/copySectionLink.js');

// Add test link for listas parameter generator for use with Template:WikiProject Biography
// Author: User:Bility
importScript('User:Bility/biographyListasGenerator.js');

// Add stuff on page load
$(document).ready(function() {
  // Add link directly to sub-pages of the current page
  mw.util.addPortletLink('p-tb','/w/index.php?title=Special:PrefixIndex&prefix='+mw.config.get('wgTitle')+'/'+'&namespace='+mw.config.get('wgNamespaceNumber'),'Sub-pages','t-subpages','View sub-pages',false,'#t-recentchangeslinked');
});