User:Queen of Hearts/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.
// Enable caching for resource loads, see [[User:SD0001/Making_user_scripts_load_faster]], @revision 6
if(!/\bnocache=\b/.test(location.href)){let e=(e,t,n)=>(e=e.replace(/special:mypage/i,"User:"+mw.config.get("wgUserName")),$.get("https://"+t+"/w/api.php?titles="+e+"&origin=*&format=json&formatversion=2&uselang=content&maxage=86400&smaxage=86400&action=query&prop=revisions|info&rvprop=content&rvlimit=1").then((r=>{let o=r.query.pages[0];if(o.missing)return;let a=o.revisions[0].content;if(n&&"text/javascript"!==n||"javascript"!==o.contentmodel){if("text/css"!==n||"css"!==o.contentmodel)return $.Deferred().reject('Refused to load "'+e+'"@'+t+": content type mismatch");mw.loader.addStyleTag(a)}else{let e=document.createElement("script");e.innerHTML=a,document.head.appendChild(e)}}))),t=e=>{let t=/^(?:(?:https:)?\/\/(.*))?\/w\/index.php/.exec(e),n=/\btitle=([^=?&]*)/.exec(e);return t&&n&&/\baction=raw\b/.test(e)&&/\bctype=/.test(e)?[n[1],t[1]||mw.config.get("wgServerName")]:null};window.importScript=t=>{e(encodeURIComponent(t),mw.config.get("wgServerName"),"text/javascript")},window.importStyleSheet=t=>{e(encodeURIComponent(t),mw.config.get("wgServerName"),"text/css")};let n=mw.loader.load;mw.loader.load=function(r,o){let a=t(r);a?e(a[0],a[1],o):n.apply(mw.loader,[...arguments])};let r=mw.loader.getScript;mw.loader.getScript=function(n){let o=t(n);return o?e(o[0],o[1],"text/javascript"):r.apply(mw.loader,[...arguments])}}
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Uziel302/typo.js&action=raw&ctype=text/javascript');
importScript('User:SD0001/BDCS.js'); // Backlink: [[User:SD0001/BDCS.js]]
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );
importScript('User:RedWarn/.js'); // Backlink: [[User:RedWarn/.js]]
importScript('User:Ingenuity/AntiVandal.js'); // Backlink: [[User:Ingenuity/AntiVandal.js]]
importScript('User:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]
importScript('User:DannyS712/DiscussionCloser.js'); // Backlink: [[User:DannyS712/DiscussionCloser.js]]
importScript('User:Awesome Aasim/rcpatrol.js'); // Backlink: [[User:Awesome Aasim/rcpatrol.js]]
$( function () {
	var elems = document.getElementsByClassName('editsection'); // *** NOTE: ClassName may need to be 'mw-editsection' instead
	for (i = 0; i < elems.length; i++) {
		var span = document.createElement('span');
		var link = document.createElement('a');
		link.href = '#top';
		link.appendChild(document.createTextNode('back to top'));
		span.appendChild(document.createTextNode('['));
		span.appendChild(link);
		span.appendChild(document.createTextNode('] '));
		elems[i].insertBefore(span, elems[i].firstChild);
	}
});
importScript('User:Writ Keeper/Scripts/massRollback.js'); // Backlink: [[User:Writ Keeper/Scripts/massRollback.js]]
importScript('user:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[user:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('Wikipedia:AutoEd/complete.js'); // Backlink: [[Wikipedia:AutoEd/complete.js]]
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Backlink: [[User:Jackmcbarn/editProtectedHelper.js]]
importScript('User:Evad37/duplinks-alt.js'); // Backlink: [[User:Evad37/duplinks-alt.js]]
importScript('User:GoldenRing/wordcount.js'); // Backlink: [[User:GoldenRing/wordcount.js]]
importScript('User:Ohconfucius/script/Common Terms.js'); // Backlink: [[User:Ohconfucius/script/Common Terms.js]]
importScript('User:Evad37/Thanky.js'); // Backlink: [[User:Evad37/Thanky.js]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:PleaseStand/userinfo.js'); // Backlink: [[User:PleaseStand/userinfo.js]]
importScript('User:MusikAnimal/responseHelper.js'); // Backlink: [[User:MusikAnimal/responseHelper.js]]
importScript('User:Enterprisey/archiver.js'); // Backlink: [[User:Enterprisey/archiver.js]]
importScript('User:SD0001/StubSorter.js'); // Backlink: [[User:SD0001/StubSorter.js]]
importScript('User:Gary/nominations viewer.js'); // Backlink: [[User:Gary/nominations viewer.js]]
importScript('User:Mr. Stradivarius/gadgets/Draftify.js'); // Backlink: [[User:Mr. Stradivarius/gadgets/Draftify.js]]
importScript('User:Awesome Aasim/xfdvote.js'); // Backlink: [[User:Awesome Aasim/xfdvote.js]]
importScript('User:Eejit43/scripts/rmtr-helper.js'); // Backlink: [[User:Eejit43/scripts/rmtr-helper.js]]
importScript('User:Ahecht/Scripts/pageswap.js'); // Backlink: [[User:Ahecht/sandbox/Scripts/pageswap.js]]
mw.loader.load( '/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Joeytje50/JWB.js/load.js]]
importScript('User:GeneralNotability/mark-locked.js'); // Backlink: [[User:GeneralNotability/mark-locked.js]]
importScript('User:Armbrust/closemrv.js'); // Backlink: [[User:Armbrust/closemrv.js]]
importScript('User:BrandonXLF/ReferenceExpander.js'); // Backlink: [[User:BrandonXLF/ReferenceExpander.js]]
importScript('User:Awesome Aasim/redirectcreator.js'); // Backlink: [[User:Awesome Aasim/redirectcreator.js]]
importScript('User:Qwerfjkl/scripts/CFDlister.js'); // Backlink: [[User:Qwerfjkl/scripts/CFDlister.js]]
importScript('User:Novem Linguae/Scripts/GANReviewTool.js'); // Backlink: [[User:Novem Linguae/Scripts/GANReviewTool.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Indic-TechCom/Script/massMover.js&action=raw&ctype=text/javascript');
importScript('User:Novem Linguae/Scripts/anrfc-lister.js'); // Backlink: [[User:Novem Linguae/Scripts/anrfc-lister.js]]
importScript('User:Shubinator/DYKcheck.js'); // Backlink: [[User:Shubinator/DYKcheck.js]]
importScript('User:The Earwig/copyvios.js'); // Backlink: [[User:The Earwig/copyvios.js]]
importScript('User:Xenocidic/statusChanger2.js'); // Backlink: [[User:Xenocidic/statusChanger2.js]]
importScript('User:DannyS712/Draft no cat.js'); // Backlink: [[User:DannyS712/Draft no cat.js]]
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
importScript('User:Eejit43/scripts/redirect-helper.js'); // Backlink: [[User:Eejit43/scripts/redirect-helper.js]]
mw.loader.load( 'https://de.wikipedia.org/wiki/Benutzer:Schnark/js/bandersnatch.js?action=raw&ctype=text/javascript' ); // Backlink: [[:de:Benutzer:Schnark/js/bandersnatch.js]]
importScript('User:Bradv/Scripts/Superlinks.js'); // Backlink: [[User:Bradv/Scripts/Superlinks.js]]
importScript('User:Qwerfjkl/scripts/massCFD.js'); // Backlink: [[User:Qwerfjkl/scripts/massCFD.js]]
importScript('User:Ohconfucius/dashes.js'); // Backlink: [[User:Ohconfucius/dashes.js]]
importScript('User:SD0001/shortdescs-in-category.js'); // Backlink: [[User:SD0001/shortdescs-in-category.js]]
importScript('User:DreamRimmer/BlankUserPage.js'); // Backlink: [[User:DreamRimmer/BlankUserPage.js]]
importScript('User:SD0001/GAN-helper.js'); // Backlink: [[User:SD0001/GAN-helper.js]]
window.popupStructure = 'menus';
window.popupFixRedirs = 'true';
window.popupFixDabs = 'true';
window.popupRedLinkRemoval = 'true';
importScript('User:Nardog/CatChangesViewer.js'); // Backlink: [[User:Nardog/CatChangesViewer.js]]
importScript('User:קיפודנחש/cat-a-lot.js'); // Backlink: [[User:קיפודנחש/cat-a-lot.js]]
importScript('User:Enterprisey/orcp-helper.js'); // Backlink: [[User:Enterprisey/orcp-helper.js]]
importScript('User:Novem Linguae/Scripts/DontForgetG12.js'); // Backlink: [[User:Novem Linguae/Scripts/DontForgetG12.js]]
importScript('User:Writ Keeper/rollbackSummary.js'); // Backlink: [[User:Writ Keeper/rollbackSummary.js]]
importScript('User:Ucucha/HarvErrors.js'); // Backlink: [[User:Ucucha/HarvErrors.js]]
window.checkLinksToCitations = false;
importScript('User:BrandonXLF/HotDefaultSort.js'); // Backlink: [[User:BrandonXLF/HotDefaultSort.js]]
importScript('User:Epicgenius/rollback.js'); // Backlink: [[User:Epicgenius/rollback.js]]
importScript('User:Epicgenius/ArticleQuality.js'); // Backlink: [[User:Epicgenius/ArticleQuality.js]]
importScript('User:Theleekycauldron/DYK_promoter.js'); // Backlink: [[User:Theleekycauldron/DYK_promoter.js]]
importScript('User:BrandonXLF/CollapseSections.js'); // Backlink: [[User:BrandonXLF/CollapseSections.js]]
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // Backlink: [[User:Ohconfucius/script/MOSNUM dates.js]]
importScript('User:Schminnte/PageCuration.js'); // Backlink: [[User:Schminnte/PageCuration.js]]
var expansions = {
	"wp:afd": "WP:Articles for deletion",
	"wp:tfd": "WP:Templates for discussion",
	"wp:cfd": "WP:Categories for discussion",
	"wp:rfd": "WP:Redirects for discussion",
	"wp:ffd": "WP:Files for discussion",
	"wp:mfd": "WP:Miscellany for deletion",
	"wp:drv": "WP:Deletion review",
	"wp:mrv": "WP:Move review",
	"wp:pr" : "WP:Peer review",
	"wp:gar": "WP:Good article reassessment",
	"wp:fac": "WP:Featured article candidates",
	"wp:rfa": "WP:Requests for adminship",
	"wp:rfb": "WP:Requests for bureaucratship",
	"wp:rfc": "WP:Requests for comment",
	"wp:brfa": "WP:Bots/Requests for approval",
	"template:dykn": "Template:Did you know nominations",

	// namespaces
	"t": "Template",
	"cat": "Category",
	"u": "User",
	"h": "Help"
    };
importScript('User:Þjarkur/NeverUseMobileVersion.js'); // Backlink: [[User:Þjarkur/NeverUseMobileVersion.js]]
importScript('User:Enterprisey/simple-notifs.js'); // Backlink: [[User:Enterprisey/simple-notifs.js]]
importScript('User:Eizen/SkinSwitcher.js'); // Backlink: [[User:Eizen/SkinSwitcher.js]]
importScript('m:User:Aaron_Liu/v22.css'); // Backlink: [[m:User:Aaron_Liu/v22.css]]
importScript('User:Qwerfjkl/scripts/editRedirect.js'); // Backlink: [[User:Qwerfjkl/scripts/editRedirect.js]]
importScript('User:Enterprisey/section-redir-note.js'); // Backlink: [[User:Enterprisey/section-redir-note.js]]
importScript('User:DannyS712/copyvio-check.js'); // Backlink: [[User:DannyS712/copyvio-check.js]]
importScript('User:BrandonXLF/FindSources.js'); // Backlink: [[User:BrandonXLF/FindSources.js]]
importScript('User:Phlsph7/HighlightUnreferencedPassages.js'); // Backlink: [[User:Phlsph7/HighlightUnreferencedPassages.js]]
importScript('User:Evad37/TimestampDiffs.js'); // Backlink: [[User:Evad37/TimestampDiffs.js]]
importScript('User:Jdlrobson/vector-max-width-toggle.js'); // Backlink: [[User:Jdlrobson/vector-max-width-toggle.js]]
importScript('User:Qwerfjkl/scripts/hideUnwantedCategories.js'); // Backlink: [[User:Qwerfjkl/scripts/hideUnwantedCategories.js]]
importScript('User:Enterprisey/diff-permalink-2.js'); // Backlink: [[User:Enterprisey/diff-permalink-2.js]]
importScript('User:Lenore/autolink.js'); // Backlink: [[User:Lenore/autolink.js]]
importScript('User:Mvolz/displayContributions.js'); // Backlink: [[User:Mvolz/displayContributions.js]]
importScript('User:Suntooooth/flickrsearch.js'); // Backlink: [[User:Suntooooth/flickrsearch.js]]
importScript('User:Chlod/Scripts/GoToTitle.js'); // Backlink: [[User:Chlod/Scripts/GoToTitle.js]]
importScript('User:SD0001/W-Ping.js'); // Backlink: [[User:SD0001/W-Ping.js]]
importScript('User:Chlod/Scripts/Deputy.js'); // Backlink: [[User:Chlod/Scripts/Deputy.js]]
importScript('User:Awesome_Aasim/savedraft.js'); // Backlink: [[User:Awesome_Aasim/savedraft.js]]
importScript('User:Sohom_Datta/fastreview.js'); // Backlink: [[User:Sohom_Datta/fastreview.js]]
importScript('User:Phlsph7/UnfoldedNumberedTOC(Vector2022).js'); // Backlink: [[User:Phlsph7/UnfoldedNumberedTOC(Vector2022).js]]
importScript('User:Aaron_Liu/MoveTop.js'); // Backlink: [[User:Aaron_Liu/MoveTop.js]]
importScript('User:JAAqqO/EnhancedSearchPage.js'); // Backlink: [[User:JAAqqO/EnhancedSearchPage.js]]
importScript('User:Guarapiranga/search-shortcuts.js'); // Backlink: [[User:Guarapiranga/search-shortcuts.js]]
importScript('User:Writ Keeper/Scripts/commonHistory.js'); // Backlink: [[User:Writ Keeper/Scripts/commonHistory.js]]
importScript('User:Ingenuity/preview.js'); // Backlink: [[User:Ingenuity/preview.js]]
importScript('User:Eejit43/scripts/ajax-undo.js'); // Backlink: [[User:Eejit43/scripts/ajax-undo.js]]
importScript('User:Ohconfucius/script/EngvarB.js'); // Backlink: [[User:Ohconfucius/script/EngvarB.js]]
importScript('User:Novem Linguae/Scripts/UserTalkErasedSectionsDetector.js'); // Backlink: [[User:Novem Linguae/Scripts/UserTalkErasedSectionsDetector.js]]
importScript('User:Eejit43/scripts/afcrc-helper.js'); // Backlink: [[User:Eejit43/scripts/afcrc-helper.js]]
mw.loader.load( 'https://en.wikipedia.org/wiki/User:Mdaniels5757/markAdmins.js?action=raw&ctype=text/javascript' ); // Backlink: [[w:User:Mdaniels5757/markAdmins.js]]
window.markAdminCfg = {
	groups: {
		'abusefilter': { enabled: true },
		'abusefilter-helper': { enabled: true },
		'accountcreator': { enabled: true },
		'autoreviewer': { enabled: true },
		'extendedmover': { enabled: true },
		'filemover': { enabled: true },
		'massmessage-sender': { enabled: true },
		'templateeditor': { enabled: true },
		'vrt-permissions': { enabled: true },
		'patroller': { enabled: true },
		'reviewer': { enabled: true },
		'rollbacker': { enabled: true },
	}
};
importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: [[User:SuperHamster/CiteUnseen.js]]
importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
importScript('User:Frietjes/findargdups.js'); // Backlink: [[User:Frietjes/findargdups.js]]
importScript('User:BilledMammal/MovePlus.js'); // Backlink: [[User:BilledMammal/MovePlus.js]]