Jump to content

User:TechnoSquirrel69/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 8
if(!/\bnocache=\b/.test(location.href)){let e=mw.config.values,t="text/javascript",o="text/css",n=(n,r,i)=>(n=n.replace(/special:mypage/i,"User:"+e.wgUserName),$.get("https://"+r+"/w/api.php?titles="+n+"&origin=*&format=json&formatversion=2&uselang=content&maxage=86400&smaxage=86400&action=query&prop=revisions|info&rvprop=content&rvlimit=1&inprop=protection").then((e=>{let a=e.query.pages[0];if(!a.missing){if(2!==a.ns&&8!==a.ns&&!a.protection.find((e=>"edit"===e.type&&"sysop"===e.level)))return $.Deferred().reject('Refused to load "'+n+'"@'+r+": unprotected page");let e=a.revisions[0].content;if(i&&i!==t||"javascript"!==a.contentmodel){if(i!==o||"css"!==a.contentmodel)return $.Deferred().reject('Refused to load "'+n+'"@'+r+": content type mismatch");mw.loader.addStyleTag(e)}else{let t=document.createElement("script");t.innerHTML=e,document.head.appendChild(t)}}}))),r=e.wgServerName,i=e=>{let t=/^(?:(?:https:)?\/\/(.*))?\/w\/index.php/.exec(e),o=/\btitle=([^=?&]*)/.exec(e);return t&&o&&/\baction=raw\b/.test(e)&&/\bctype=/.test(e)?[o[1],t[1]||r]:null};window.importScript=e=>{n(encodeURIComponent(e),r,t)},window.importStyleSheet=e=>{n(encodeURIComponent(e),r,o)};let a=mw.loader.load;mw.loader.load=function(e,t){let o=i(e);o?n(o[0],o[1],t):a.apply(mw.loader,[...arguments])};let l=mw.loader.getScript;mw.loader.getScript=function(e){let o=i(e);return o?n(o[0],o[1],t):l.apply(mw.loader,[...arguments])}}
importScript('User:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]
mw.loader.load('/w/index.php?title=User:Evad37/duplinks-alt.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Evad37/duplinks-alt.js]]
importScript('User:Writ Keeper/Scripts/peerReviewCloser.js');
importScript('User:MPGuy2824/MoveToDraft.js' ); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
importScript('User:RedWarn/.js'); // Backlink: [[User:RedWarn/.js]]
mw.loader.load('/w/index.php?title=User:Trappist_the_monk/HarvErrors.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Trappist the monk/HarvErrors.js]]
mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Jack_who_built_the_house/convenientDiscussions.js&action=raw&ctype=text/javascript');
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
	window.editProtectedHelperReloadAfter = true;
importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
importScript('User:BrandonXLF/QuickEdit.js'); // [[User:BrandonXLF/QuickEdit.js]]
importScript('User:Writ Keeper/Scripts/massRollback.js'); // [[User:Writ Keeper/Scripts/massRollback.js]]
importScript('User:Mr. Stradivarius/gadgets/ConfirmRollback.js'); // Linkback: [[User:Mr. Stradivarius/gadgets/ConfirmRollback.js]]
	ConfirmRollback = { watchlist: "hide", recentchanges: "hide", relatedchanges: "hide", contributions: "hide", history: "hide"};
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:Novem Linguae/Scripts/GANReviewTool.js'); // Backlink: [[User:Novem Linguae/Scripts/GANReviewTool.js]]
importScript('User:Novem Linguae/Scripts/DraftCleaner.js'); // Backlink: [[User:Novem Linguae/Scripts/DraftCleaner.js]]
mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:%C3%9Ejarkur/NeverUseMobileVersion.js&action=raw&ctype=text/javascript" ); // Backlink: [[User:Þjarkur/NeverUseMobileVersion]]
mw.loader.load( '/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Evad37/rater.js]]
importScript('User:Ingenuity/AbuseFilterContribs.js'); // Backlink: [[User:Ingenuity/AbuseFilterContribs.js]]
importScript('User:SD0001/StubSorter.js'); // Backlink: [[User:SD0001/StubSorter.js]]
importScript('User:Ohconfucius/script/EngvarB.js'); // Backlink: [[User:Ohconfucius/script/EngvarB.js]]
importScript('User:Shubinator/DYKcheck.js'); //Backlink: [[Wikipedia:Did you know/DYKcheck]]
importScript('User:Kaniivel/RefConsolidate_start.js'); // Backlink: [[User:Kaniivel/RefConsolidate_start.js]]
importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: [[User:SuperHamster/CiteUnseen.js]]
importScript('User:Novem Linguae/Scripts/DontForgetG12.js'); // Backlink: [[User:Novem Linguae/Scripts/DontForgetG12.js]]
importScript('User:Enterprisey/diff-permalink.js'); // Backlink: [[User:Enterprisey/diff-permalink.js]]
importScript('User:Ahecht/Scripts/TemplateSearch.js'); // Backlink: [[User:Ahecht/Scripts/TemplateSearch.js]]
importScript('User:Eejit43/scripts/redirect-helper.js'); // Backlink: [[User:Eejit43/scripts/redirect-helper.js]]
importScript('User:Ahecht/Scripts/pageswap.js'); // Backlink: [[User:Ahecht/Scripts/pageswap.js]]
importScript('User:Clearfrienda/scripts/attributetranslation.js'); // Backlink: [[User:Clearfrienda/scripts/attributetranslation.js]]
importScript('User:Elli/OneClickArchiver.js'); // Backlink: [[User:Elli/OneClickArchiver.js]]
importScript('User:Nardog/MoveHistory.js'); // Backlink: [[User:Nardog/MoveHistory.js]]
importScript('User:DaxServer/DiscussionCloser.js'); // Backlink: [[User:DaxServer/DiscussionCloser.js]]
importScript('User:Nardog/Unpipe.js'); // Backlink: [[User:Nardog/Unpipe.js]]
importScript('User:Nardog/Consecudiff.js'); // Backlink: [[User:Nardog/Consecudiff.js]]
importScript('User:SD0001/easy-merge.js'); // Backlink: [[User:SD0001/easy-merge.js]]
importScript('User:SD0001/deleted-metadata-link.js'); // Backlink: [[User:SD0001/deleted-metadata-link.js]]
importScript('User:Vanderwaalforces/checkTranslationAttribution.js'); // Backlink: [[User:Vanderwaalforces/checkTranslationAttribution.js]]
mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Jack_who_built_the_house/convenientDiscussions.js&action=raw&ctype=text/javascript');
importScript('User:Phlsph7/Readability.js'); // Backlink: [[User:Phlsph7/Readability.js]]
importScript('User:Mr. Stradivarius/gadgets/Draftify.js'); // Backlink: [[User:Mr. Stradivarius/gadgets/Draftify.js]]
	Draftify = {};
	Draftify.redirect = false;
	Draftify.watchusertalk = false;
	Draftify.watchdraft = false;
	Draftify.menulocation = "p-tb";
importScript('User:Alexis Jazz/LuckyRename.js'); // Backlink: [[User:Alexis Jazz/LuckyRename.js]]
importScript('User:Novem Linguae/Scripts/MarkFreeUseRationale.js'); // Backlink: [[User:Novem Linguae/Scripts/MarkFreeUseRationale.js]]
importScript('User:Alex 21/script-functions.js');
importScript('User:Alex 21/script-imageres.js');
importScript('User:BilledMammal/MovePlus.js'); // Backlink: [[User:BilledMammal/MovePlus.js]]
importScript('User:Polygnotus/DuplicateReferences.js'); // Backlink: [[User:Polygnotus/DuplicateReferences.js]]