User:Lewolka/common.js

mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' ); importScript('User:Ohconfucius/script/formatgeneral.js'); // User:Ohconfucius/script/formatgeneral.js importScript('User:Ohconfucius/dashes.js'); importScript('User:Ohconfucius/script/Sources.js'); // User:Ohconfucius/script/Sources.js importScript('User:Ohconfucius/script/MOSNUM dates.js'); // User:Ohconfucius/script/MOSNUM dates.js importScript('User:Ohconfucius/script/Common Terms.js'); // User:Ohconfucius/script/Common Terms.js importScript("User:The Earwig/copyvios.js"); importScript('User:Evad37/rater.js'); // User:Evad37/rater importScript('User:Evad37/ToDoLister.js'); // User:Evad37/ToDoLister importScript('User:Evad37/duplinks-alt.js'); // User:Evad37/duplinks-alt importScript('User:Ohconfucius/script/flagcruft.js'); // Backlink: User:Ohconfucius/script/flagcruft.js importScript( 'User:Headbomb/unreliable.js' ); // Backlink: User:Headbomb/unreliable.js importScript('User:Trappist the monk/HarvErrors.js'); mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Uziel302/typo.js&action=raw&ctype=text/javascript'); /* Counts all your edits and saves them to a page ( http://en.wikipedia.org/wiki/User:Kanegasi/editcounter ) */ if (mw.config.get('wgTitle') === mw.config.get('wgUserName') && mw.config.get('wgNamespaceNumber') === 2) { /* begin options */ /* end options */ mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Kanegasi/editcounter.js&action=raw&ctype=text/javascript'); } mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Uziel302/typo.js&action=raw&ctype=text/javascript'); $.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', {	dataType: 'script',	cache: true }).then(function {	pathoschild.TemplateScript.add([ {			category: 'EngvarB', name: 'Flip imperial units', isMinorEdit: true, script: function (editor) { ohc_imperial_units(editor); }		},		{			category: 'EngvarB', name: 'Flip international units', isMinorEdit: true, script: function (editor) { ohc_international_units(editor); }		},		{			category: 'EngvarB', name: 'AMERICAN', isMinorEdit: true, script: function (editor) { ohc_ENGVAR_set_variation(editor, "U"); }		},		{			category: 'EngvarB', name: 'COMMONWEALTH', isMinorEdit: true, script: function (editor) { ohc_ENGVAR_set_variation(editor, "B"); }		},		{			category: 'EngvarB', name: 'OXFORD', isMinorEdit: true, script: function (editor) { ohc_ENGVAR_set_variation(editor, "O"); }		},		{			category: 'EngvarB', name: 'CANADIAN', isMinorEdit: true, script: function (editor) { ohc_ENGVAR_set_variation(editor, "C"); }		}	]); }); //

/** **/ // // PROTECTION FROM STRING SUBSTITUTION var protected_map;

function ohc_ENGVAR_protect(editor) { // protects categories, templates, link pipings, quotes, etc // the sensitive part is stored and replaced with a unique identifier, // which is later replaced with the stored part. var text = editor.get; protected_map = [];

var replace_string = function (match) { protected_map.push(match); return '⍌' + (protected_map.length - 1) + '⍍'; };	var protect_string = function (string) { text = text.replace(string, replace_string); };

//	protect_string(/(pre)(string)(post)/gi); // template protect_string(/(.*?)(<\/blockquote>)/gi); protect_string(/({\| *class *= *"wikitable *")([\S\s]*?)(\|})/gi); protect_string(/( mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' ); importScript('Wikipedia:AutoEd/complete.js'); importScript('User:BrandonXLF/ReferenceExpander.js'); // User:BrandonXLF/ReferenceExpander.js importScript( 'User:Ahecht/Scripts/pageswap.js' ); // Backlink: User:Ahecht/Scripts/pageswap mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" ); importScript( 'User:BrownHairedGirl/linkrot.js' ); // Backlink: User:BrownHairedGirl/linkrot.js importScript( 'User:BrownHairedGirl/BareURLinline.js' ); // Backlink: User:BrownHairedGirl/BareURLinline.js importScript( 'User:GoldenRing/wordcount.js' ); // Backlink: User:GoldenRing/wordcount.js importScript( 'User:Danski454/stubsearch.js' ); // Backlink: User:Danski454/stubsearch.js importScript('User:Yair rand/ReferenceTooltips.js'); importStylesheet('User:Yair rand/ReferenceTooltips.css'); window.hotcat_dont_add_to_watchlist = true; var hotcat_use_category_links = true; importScript( 'User:Evad37/OneClickArchiver.js' ); // Backlink: User:Evad37/OneClickArchiver.js; importScript( 'User:The Evil IP address/hdedit.js' ); // Backlink: User:The Evil IP address/hdedit.js; importScript( 'User:Joeytje50/JWB.js/load.js' ); // Backlink: User:Joeytje50/JWB.js/load.js importScript( 'User:MusikAnimal/nightpedia.js'); // Backlink: User:MusikAnimal/nightpedia.js importScript( 'User:BrownHairedGirl/Draft no cat.js' ); // User:DannyS712/Draft no cat.js importScript('User:Enterprisey/reply-link.js'); // Backlink: User:Enterprisey/reply-link.js window.replyLinkSigPrefix = "--"; window.replyLinkPreloadPing = "button"; window.replyLinkCustomSummary = true; window.replyLinkPreloadPingTpl = ""; window.replyLinkDryRun = "checkbox"; importScript('User:קיפודנחש/cat-a-lot.js'); importScript('User:NuclearWarfare/Mark-blocked script.js'); importScript('User:Shubinator/DYKcheck.js'); importScript('User:Dr_pda/prosesize.js'); //User:Dr_pda/prosesize.js importScript('User:Frietjes/infoboxgap.js');

popupFixDabs=true; popupFixRedirs=true; popupMaxWidth=500;

// Add WP:Reflinks launcher in the toolbox on left $.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).then(function { mw.util.addPortletLink( "p-tb",    // toolbox portlet "http://69.142.160.183/~dispenser/cgi-bin/webreflinks.py?citeweb=checked&lang=" + mw.config.get('wgContentLanguage') + "&page=" + mw.config.get('wgPageName') + "&autoclick=wpDiff", // updated tool URL as of 27 December 2020 "Reflinks" // link label )}); // importScript('User:RedWarn/.js'); // Backlink: User:RedWarn/.js importScript('User:Anomie/unwatch.js'); // Backlink: User:Anomie/unwatch.js importScript('User:Anomie/useridentifier.js'); // Backlink: User:Anomie/useridentifier.js importScript('User:Novem Linguae/Scripts/DraftCleaner.js'); // Backlink: User:Novem Linguae/Scripts/DraftCleaner.js mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');