Jump to content

User:SkyWarrior/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TheDJ (talk | contribs) at 13:37, 29 September 2017 (fix some things, replace delsort with a working version of delsort). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
// Following script is broken
// importScript('User:Fox Wilson/delsort.js'); // Deletion sorting script [[WP:FWDS]]
importScript('User:Enterprisey/delsort.js');

/** This script contains the code required for loading [[User:Joeytje50/AWB.js]].
 *  All other code is located at that page.
 */
mw.loader.using( 'mediawiki.util', function() {
	if (mw.config.get('wgCanonicalNamespace')+':'+mw.config.get('wgTitle') === 'Project:AutoWikiBrowser/Script')
		mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js&action=raw&ctype=text/javascript');
	importScript( 'User:Andy M. Wang/pageswap.js' ); // Backlink: [[User:Andy M. Wang/pageswap]]

	//Idea by [[User:Epicgenius]]
	$( function() {
		mw.util.addPortletLink("p-tb", mw.config.get('wgArticlePath').replace('$1', "Project:AutoWikiBrowser/Script"), "JS Wiki Browser", "tb-awbscript", "Run Javascript Wiki Browser");
	} );
} );
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]

/* This script adds the Page Curation link to the top toolbar; the link combines the two main Page Curation
   features, namely the Special:NewPagesFeed and the curation toolbar. It is primarily designed to
   assist new page reviewers. Page Curation is a feature-rich purpose-built system to review new pages.
   Be sure to have read and fully understood the instructions at New Pages Patrol. To use the script,
   add the following line to Special:MyPage/common.js:
 
importScript('User:Lourdes/PageCuration.js'); // Linkback: [[User:Lourdes/PageCuration.js]]

*/
 
$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl('Special:NewPagesFeed'),
    'Page Curation',
    'pt-pagecuration',
    'View Special:New Pages using the Page Curation tool',
    null,
    '#pt-preferences'
  );
});