User:DarkMatterMan4500/global.js

// Global TW mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Xiplus/TwinkleGlobal.js&action=raw&ctype=text/javascript'); // Tools/Navigation popups mw.loader.load('https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups'); if ( (mw.config.get("wgDBname") !== "wikidatawiki") && (mw.config.get("wgDBname") !== "testwikidatawiki") ) { // Don't work in Wikidata     // Fork of Twinkle intended to work on as many wikis as possible     mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:DarkMatterMan4500/TwinkleGlobal.js&action=raw&ctype=text/javascript'); }  // Global preferences mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/GlobalPrefs.js&action=raw&ctype=text/javascript');  // SubpageMover mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/SubpageMover.js&action=raw&ctype=text/javascript');  // ParameterSpacing mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/ParameterSpacing.js&action=raw&ctype=text/javascript');  // Based on alaa's script mw.loader.using( [ 'mediawiki.util', 'oojs-ui-windows', 'mediawiki.ForeignApi' ], function  { 	mw.util.addPortletLink ( 'p-tb', "#", "Shorten URL", 'pt-shortenURL', "Make short URL" ); 	 	$("#pt-shortenURL").click (function { 			 			//Fetch Short URL from Meta tool 			var api = new mw.ForeignApi( 'https://meta.wikimedia.org/w/api.php' ); 		 			api.post({ 				action: 'shortenurl', 				format: 'json', 				url: window.location.href 			}).then( function( response ) { 				window.prompt("Copy your link", response.shortenurl.shorturl); 			});	 	}); });  // Wiki-Labels  mw.loader.load( '//labels.wmflabs.org/gadget/loader.js' );  mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript'); var autoFormatReplacements = [ 	[/ +<ref\b/g, '<ref'] ];  //AutoEd toolbar button mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/complete.js&action=raw&ctype=text/javascript');  mw.loader.load('//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript'); // Backlink: d:User:Yair rand/WikidataInfo.js  mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/Restorer.js&action=raw&ctype=text/javascript'); // Backlink:  User:BrandonXLF/Restorer // mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Writ_Keeper/Scripts/massRevdel.js');  // mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript"); mw.loader.load("//en.wikipedia.org/w/index.php?title=User:DannyS712/PermaLinkSection.js&action=raw&ctype=text/javascript"); // Backlink: User:DannyS712/PermaLinkSection.js mw.loader.load("//en.wikipedia.org/w/index.php?title=User:DannyS712/PermaLinkSection.js&action=raw&ctype=text/javascript"); // Backlink: User:DannyS712/PermaLinkSection.js mw.loader.load("//en.wikipedia.org/w/index.php?title=User:DannyS712/Easy-link.js&action=raw&ctype=text/javascript"); // Backlink: User:DannyS712/Easy-link.js mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/markBlocked.js&action=raw&ctype=text/javascript"); // Backlink: User:Writ Keeper/Scripts/markBlocked.js mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Enterprisey/diff-permalink.js&action=raw&ctype=text/javascript"); // Backlink: User:Enterprisey/diff-permalink.js // Tools/Navigation popups // mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript'); // mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css', 'text/css');  // Linkback: MoreMenu mw.loader.load('https://meta.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:MoreMenu.import.js');   // Chunked uploads // mw.loader.load( 'https://commons.wikimedia.org/w/index.php?title=User:Rillke/bigChunkedUpload.js&action=raw&ctype=text/javascript' );  // User:YMS/ORC // mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:YMS/orc.js&action=raw&ctype=text/javascript', 'text/javascript');  // userinfo.js mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PleaseStand/userinfo.js&action=raw&ctype=text/javascript');  // WordCount.js mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Caorongjin/wordcount.js&action=raw&ctype=text/javascript');  // Short description // mw.loader.getScript( '//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-libSettings.js&action=raw&ctype=text/javascript' ).then ( // function { //	mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-Shortdesc-helper.css&action=raw&ctype=text/css', 'text/css'); //	mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-Shortdesc-helper.js&action=raw&ctype=text/javascript' ); // });