User:The Herald/common.js

// 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])}} importScript("User:Writ Keeper/Scripts/teahouseUtility.js"); // Gives one-click option to add Teahouse invitation or talkback to a user importScript("User:Ocaasi/WikiLoveinstallscript.js");// Adds Teahouse Badges to WikiLove /* User:Equazcion/ActiveWatchers.js */ importScript( 'User:Equazcion/ActiveWatchers.js' );// Backlink: User:Equazcion/ActiveWatchers.js /* User:Equazcion/OneClickArchiver.js */ /* User:Technical_13/Scripts/OneClickArchiver */ mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" ); importScript('User:Lourdes/PageCuration.js'); // Linkback: User:Lourdes/PageCuration.js importScript('User:Ohconfucius/script/MOSNUM dates.js'); // User:Ohconfucius/script/MOSNUM dates.js importScript('User:Ohconfucius/script/formatgeneral.js'); // User:Ohconfucius/script/formatgeneral.js importScript('User:SD0001/GAN-helper.js'); // User:SD0001/GAN-helper.js importScript( 'User:Headbomb/unreliable.js' ); // Backlink: User:Headbomb/unreliable.js importScript( 'User:SuperHamster/CiteUnseen.js' ); // Backlink: User:SuperHamster/CiteUnseen.js importScript('User:PleaseStand/userinfo.js'); // Backlink: User:PleaseStand/userinfo.js importScript('User:Joeytje50/JWB.js'); // Backlink: User:Joeytje50/JWB.js importScript('User:GorillaWarfare/script/curlies.js'); // Backlink: User:GorillaWarfare/script/curlies.js importScript('User:फ़िलप्रो/script/EN-IN.js'); // Backlink: User:फ़िलप्रो/script/EN-IN.js importScript('User:Alexis Jazz/LuckyRename.js'); // Backlink: User:Alexis Jazz/LuckyRename.js importScript('User:Odie5533/SnipManager.user.js'); // Backlink: User:Odie5533/SnipManager.user.js importScript('User:Ahecht/Scripts/potd-helper.js'); // Backlink: User:Ahecht/Scripts/potd-helper.js importScript('User:Wugapodes/Capricorn.js'); // Backlink: User:Wugapodes/Capricorn.js importScript('User:Anomie/pagestats.js'); // Backlink: User:Anomie/pagestats.js importScript('User:Anomie/lastmod.js'); // Linkback: User:Anomie/lastmod.js importScript('User:Ingenuity/AntiVandal.js'); // Backlink: User:Ingenuity/AntiVandal.js importScript('User:SD0001/BDCS.js'); // Backlink: User:SD0001/BDCS.js importScript('User:Ohconfucius/dashes.js'); importScript('User:Enterprisey/reply-link.js'); // Backlink: User:Enterprisey/reply-link.js importScript('User:Alexis_Jazz/Factotum.js'); // Backlink: User:Alexis_Jazz/Factotum.js importScript('User:Awesome_Aasim/xfdvote.js'); // Backlink: User:Awesome_Aasim/xfdvote.js importScript('User:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: User:Qwertyytrewqqwerty/DisamAssist.js importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: User:MPGuy2824/MoveToDraft.js importScript('User:DannyS712/copyvio-check.js'); // Backlink: User:DannyS712/copyvio-check.js importScript('User:Novem Linguae/Scripts/DraftCleaner.js'); // Backlink: User:Novem Linguae/Scripts/DraftCleaner.js importScript('User:Þjarkur/NeverUseMobileVersion.js'); // Backlink: User:Þjarkur/NeverUseMobileVersion.js importScript('User:Equazcion/ToggleEditNotices.js'); // Backlink: User:Equazcion/ToggleEditNotices.js importScript('User:Ohconfucius/script/Common_Terms.js'); // Backlink: User:Ohconfucius/script/Common_Terms.js importScript('User:Enterprisey/delsort.js'); // Backlink: User:Enterprisey/delsort.js importScript('User:Evad37/livenotifications.js'); // Backlink: User:Evad37/livenotifications.js importScript('User:SD0001/StubSorter.js'); // Backlink: User:SD0001/StubSorter.js importScript('User:TheTVExpert/rmCloser.js'); // Backlink: User:TheTVExpert/rmCloser.js importScript('User:DannyS712/DiscussionCloser.js'); // Backlink: User:DannyS712/DiscussionCloser.js importScript('User:DannyS712/Skiptobottom.js'); // Backlink: User:DannyS712/Skiptobottom.js importScript('User:DannyS712/12Hours.js'); // Backlink: User:DannyS712/12Hours.js importScript('User:DannyS712/FPC_voter.js'); // Backlink: User:DannyS712/FPC_voter.js importScript('User:Nardog/VitalTopicon.js'); // Backlink: User:Nardog/VitalTopicon.js importScript('User:Novem_Linguae/Scripts/SpeciesHelper.js'); // Backlink: User:Novem_Linguae/Scripts/SpeciesHelper.js importScript('User:Nardog/RefRenamer.js'); // Backlink: User:Nardog/RefRenamer.js importScript('User:Nardog/Unpipe.js'); // Backlink: User:Nardog/Unpipe.js importScript('User:Bellezzasolo/Scripts/arb.js'); // Backlink: User:Bellezzasolo/Scripts/arb.js importScript( 'User:Anne drew Andrew and Drew/admintagger.js' ); // Backlink: User:Anne drew Andrew and Drew/admintagger-plus.js mw.loader.load( '/w/index.php?title=User:Evad37/EditWarChecker.js&action=raw&ctype=text/javascript' ); // Backlink: User:Evad37/EditWarChecker.js //importScript('User:Splarka/oldafd.js'); // Backlink: User:Splarka/oldafd.js //importScript('User:Amorymeltzer/oldafd.js'); // Backlink: User:Amorymeltzer/oldafd.js importScript('User:Pythoncoder/Scripts/voteSymbols.js'); // Backlink: User:Pythoncoder/Scripts/voteSymbols.js importScript('User:SD0001/GAR-helper.js'); // Backlink: User:SD0001/GAR-helper.js importScript('User:Novem_Linguae/Scripts/GANReviewTool.js'); // Backlink: User:Novem_Linguae/Scripts/GANReviewTool.js importScript('User:Alexis_Jazz/Kill-It-With-Fire.js'); // Backlink: User:Alexis_Jazz/Kill-It-With-Fire.js importScript( 'User:Guycn2/VandalCleaner.js' ); // Backlink: User:Guycn2/VandalCleaner.js importScript('User:WikiMacaroons/shortdesc.js'); // Backlink: User:WikiMacaroons/shortdesc.js importScript('User:GhostInTheMachine/NoEditSummary.js'); // Backlink: User:GhostInTheMachine/NoEditSummary.js importScript( 'User:Epicgenius/commonshelperlink.js' ); // Backlink: User:Epicgenius/commonshelperlink.js importScript('User:SD0001/draft-sort-burst.js'); // Backlink: User:SD0001/draft-sort-burst.js importScript('User:DanCherek/UAABotRemover.js'); // Backlink: User:DanCherek/UAABotRemover.js importScript('User:ZLEA/Dashboard.js'); // Backlink: User:ZLEA/Dashboard.js importScript('User:Eejit43/scripts/afcrc-helper.js'); // Backlink: User:Eejit43/scripts/afcrc-helper.js importScript('User:Armbrust/closeFPC.js'); // Backlink: User:Armbrust/closeFPC.js importScript('User:Writ Keeper/Scripts/peerReviewCloser.js'); importScript('User:DannyS712/SATG.js'); // Backlink: User:DannyS712/SATG.js importScript('User:SD0001/DYK-helper.js'); // Backlink: User:SD0001/DYK-helper.js importScript('User:Terasail/Edit_Request_Tool.js'); // Backlink: User:Terasail/Edit_Request_Tool.js importScript('User:Evad37/ToDoLister.js'); // Backlink: User:Evad37/ToDoLister.js