User:MrX/common.js
Appearance
< User:MrX
(Redirected from User:Umbris/common.js)Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:MrX/common.css. |
window.charinsertCustom = {
'MrX':' {\{re|+}} {\{u|+}} {\{tq|"+"}} {\{tq2|"+"|source=\\\'\\\'[]\\\'\\\'}}\\n *{\{tq2|"+"|source=\\\'\\\'[]\\\'\\\'}}\\n New_article: ==References==\\n{\{Reflist}} {\{Reflist}} {\{Sources-talk}} ==External.links==\\n {\{Official.website|+}} Close_a_discussion: {\{Archive.top|result=+~~\~~}} {\{Archive.bottom}} {\{user.links|+}}' ,
'Insert': ' ↑ ↓ ➜ {\{subst:alert|ap}}{\{subst:alert|blp}}.~~\~~ {\{multiple.issues|+}} {\{cn}} – — {\{+}} {\{\{+}}} | [+] [\[+]] [\[Category:+]] #REDIRECT.[\[+]] &nb'+'sp; <s>+</s> <ref.name="+"_/> <nowiki>+</nowiki> <code>+</code> <!--.+_--> { *{\{Done}}.~~\~~ Close_a_discussion: {\{Archive.top|result={\{nac}}+~~\~~}} {\{Archive.bottom}} {\{Closed.rfc.top|result={\{nac}}.+_~~\~~}} {\{Closed.rfc.bottom}} ',
'Quotebox': 'Blue: <blockquote.class="talkquote".style="background-color:#eef8ff;border-left:3px.solid.#006699;padding:1.6em;margin-left:1em;">+<references/></blockquote> Yellow: <blockquote.class="talkquote".style="background-color:#ffffe8;border-left:3px.solid.#776600;padding:1em;margin-left:1.6em;">+<references/></blockquote>'
};
// sMirC Emoticons-bar for the WikiEditor [[File:User:Perhelion/WikiEditorEmoticons.js]]
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Perhelion/WikiEditorEmoticons.js&action=raw&ctype=text/javascript&maxage=86400&bcache=1');
importScript('User:PleaseStand/highlight-comments.js');
importScript('User:MrX/userhighlighter.js');
importScript( 'User:Technical_13/Scripts/OneClickArchiver.js' );
importScript('User:Pythoncoder/voteSymbols.js'); // Linkback: User:Pythoncoder/voteSymbols.jstoid.js');
importScript('User:Enterprisey/reply-link.js'); // Backlink: [[User:Enterprisey/reply-link.js]]
//Load forked version of ProveIt
mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:MrX/ProveIt.css&action=raw&ctype=text/css', 'text/css' );
mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:MrX/ProveIt.js&action=raw&ctype=text/javascript' );
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADr+pda%2Fprosesize.js&action=raw&ctype=text/javascript');
importScript( 'User:Andy M. Wang/pageswap.js' ); // Backlink: [[User:Andy M. Wang/pageswap]]
// Custom Menu
{
var toolboxClone =$('#p-navigation').clone(true).insertBefore($('#p-navigation')).addClass('Xtools').removeAttr('id').find('H3').text('X Tools');
// Clear all links cloned with the Toolbox, except the first (:gt(#) selector returns all after the #).
// When adding and removing links, we work with the list items (<li>), which each contain a link.
var sidebarToolsClear = $('.Xtools li:gt(0)').remove();
// Grab the first (and now the only) link in History tools, change it to our first tool, remove the tooltip
var NewPagesFeed = $('.Xtools a:first');
NewPagesFeed.attr('href', 'http://en.wikipedia.org/wiki/Special:NewPagesFeed');
NewPagesFeed.text('New Pages Feed');
NewPagesFeed.removeAttr('title');
// Clone the first list item and change its link to our next tool. Repeat for the rest of our tools.
var ANI = $('.Xtools li:first').clone(true).insertAfter($('.Xtools li:first'));
ANI.find('a').attr('href', 'http://en.wikipedia.org/wiki/Wikipedia:Administrators%27_noticeboard/Incidents');
ANI.find('a').text('ANI');
var AN = $('.Xtools li:first').clone(true).insertAfter(ANI);
AN.find('a').attr('href', 'http://en.wikipedia.org/wiki/Wikipedia:Administrators%27_noticeboard');
AN.find('a').text('AN');
var ANEW=$('.Xtools li:first').clone(true).insertAfter(AN);
ANEW.find('a').attr('href', 'http://en.wikipedia.org/wiki/Wikipedia:Administrators%27_noticeboard/Edit_warring');
ANEW.find('a').text('ANEW');
var RfA = $('.Xtools li:first').clone(true).insertAfter(ANEW);
RfA.find('a').attr('href', 'http://en.wikipedia.org/wiki/Wikipedia:Requests_for_adminship');
RfA.find('a').text('RfA');
var AfD =$('.Xtools li:first').clone(true).insertAfter(RfA);
AfD.find('a').attr('href', 'http://en.wikipedia.org/wiki/Wikipedia:Articles_for_deletion');
AfD.find('a').text('AfD');
var CopyvioChecker =$('.Xtools li:first').clone(true).insertAfter(AfD);
CopyvioChecker.find('a').attr('href', 'http://tools.wmflabs.org/copyvios/');
CopyvioChecker.find('a').text('Copyvio Checker');
var WikiChecker= $('.Xtools li:first').clone(true).insertAfter(CopyvioChecker);
WikiChecker.find('a').attr('href', 'http://en.wikichecker.com/');
WikiChecker.find('a').text('WikiChecker');
var SPI= $('.Xtools li:first').clone(true).insertAfter(WikiChecker);
SPI.find('a').attr('href', 'http://en.wikipedia.org/wiki/Wikipedia:Sockpuppet_investigations');
SPI.find('a').text('SPI');
var EditSummarySearch= $('.Xtools li:first').clone(true).insertAfter(SPI);
EditSummarySearch.find('a').attr('href', 'http://tools.wmflabs.org/sigma/summary.py');
EditSummarySearch.find('a').text('Edit Summary Search');
var EditCounter= $('.Xtools li:first').clone(true).insertAfter(EditSummarySearch);
EditSummarySearch.find('a').attr('href', 'https://xtools.wmflabs.org/ec/en.wikipedia.org');
EditSummarySearch.find('a').text('Edit Counter');
var EditorInteraction= $('.Xtools li:first').clone(true).insertAfter(EditCounter);
EditorInteraction.find('a').attr('href', 'http://tools.wmflabs.org/sigma/editorinteract.py');
EditorInteraction.find('a').text('Editor Interaction');
var ArticlesCreated = $('.Xtools li:first').clone(true).insertAfter(Tools);
ArticlesCreated.find('a').attr('href', 'http://tools.wmflabs.org/xtools/pages/');
ArticlesCreated.find('a').text('Articles Created');
var EditCount = $('.Xtools li:first').clone(true).insertAfter(EditorInteraction);
EditCount.find('a').attr('href', 'https://xtools.wmflabs.org/ec/en.wikipedia.org/MrX');
EditCount.find('a').text('Edit Count');
var CleanupTags = $('.Xtools li:first').clone(true).insertAfter(EditCount);
CleanupTags.find('a').attr('href', 'http://en.wikipedia.org/wiki/Wikipedia:TC');
CleanupTags.find('a').text('Cleanup Tags');
var MaintenanceTags= $('.Xtools li:first').clone(true).insertAfter(CleanupTags);
MaintenanceTags.find('a').attr('href', 'http://en.wikipedia.org/wiki/Wikipedia:TMAIN');
MaintenanceTags.find('a').text('Maintenance Tags');
var DelSort= $('.Xtools li:first').clone(true).insertAfter(MaintenanceTags);
DelSort.find('a').attr('href', 'https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Deletion_sorting/Flat');
DelSort.find('a').text('DelSort');
var RefLinks= $('.Xtools li:first').clone(true).insertAfter(MaintenanceTags);
RefLinks.find('a').attr('href', 'https://tools.wmflabs.org/refill/');
RefLinks.find('a').text('ReFill');
var NPPBrowser= $('.Xtools li:first').clone(true).insertAfter(RefLinks);
NPPBrowser.find('a').attr('href', 'https://tools.wmflabs.org/nppbrowser/');
NPPBrowser.find('a').text('NPP Browser');
var LinkSearch= $('.Xtools li:first').clone(true).insertAfter(NPPBrowser);
LinkSearch.find('a').attr('href', 'https://wikipediatools.appspot.com/linksearch.jsp?mode=single&wiki=en.wikipedia.org&https=1&ns=0');
LinkSearch.find('a').text('Link Search');
}