User:Sirdog/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:Anne drew Andrew and Drew/admintagger.js'); // Backlink: User:Anne drew Andrew and Drew/admintagger.js importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: User:Novem Linguae/Scripts/CiteHighlighter.js importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: User:SuperHamster/CiteUnseen.js importScript('User:Bradv/Scripts/Superlinks.js'); // Backlink: User:Bradv/Scripts/Superlinks.js //importScript('User:Mr. Stradivarius/gadgets/Draftify.js'); // Backlink: User:Mr. Stradivarius/gadgets/Draftify.js importScript('User:Enterprisey/cv-revdel.js'); // Backlink: User:Enterprisey/cv-revdel.js importScript('User:Lourdes/PageCuration.js'); // Backlink: User:Lourdes/PageCuration.js importScript('User:Terasail/Edit Request Tool.js'); // Backlink: User:Terasail/Edit Request Tool.js importScript('User:Novem Linguae/Scripts/DetectSNG.js'); // Backlink: User:Novem Linguae/Scripts/DetectSNG.js importScript('User:Novem Linguae/Scripts/NPPLinks.js'); // Backlink: User:Novem Linguae/Scripts/NPPLinks.js importScript('User:Novem Linguae/Scripts/DetectG4G5.js'); // Backlink: User:Novem Linguae/Scripts/DetectG4G5.js //importScript('User:Novem Linguae/Scripts/DetectPromo.js'); // Backlink: User:Novem Linguae/Scripts/DetectPromo.js importScript('User:DannyS712/copyvio-check.js'); // Backlink: User:DannyS712/copyvio-check.js importScript('User:Writ Keeper/Scripts/deletionFinder.js'); // Backlink: User:Writ Keeper/Scripts/deletionFinder.js importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: User:Evad37/MoveToDraft.js importScript('User:Wugapodes/Capricorn.js'); // Backlink: User:Wugapodes/Capricorn.js importScript('User:Lourdes/AfDstarted.js'); // Backlink: User:Lourdes/AfDstarted.js //importScript('User:DannyS712/DiscussionCloser.js'); // Backlink: User:DannyS712/DiscussionCloser.js importScript('User:DannyS712/12Hours.js'); // Backlink: User:DannyS712/12Hours.js importScript('User:Mvolz/displayContributions.js'); // Backlink: User:Mvolz/displayContributions.js //importScript('User:Pythoncoder/Scripts/voteSymbols.js'); // Backlink: User:Pythoncoder/Scripts/voteSymbols.js importScript('User:Writ Keeper/Scripts/teahouseUtility.js'); // Backlink: User:Writ Keeper/Scripts/teahouseUtility.js importScript('User:Writ Keeper/Scripts/teahouseTalkback.js'); // Backlink: User:Writ Keeper/Scripts/teahouseTalkback.js importScript('User:Danski454/stubsearch.js'); // Backlink: User:Danski454/stubsearch.js importScript('User:Novem Linguae/Scripts/WatchlistAFD.js'); // Backlink: User:Novem Linguae/Scripts/WatchlistAFD.js importScript('User:SD0001/W-Ping.js'); // Backlink: User:SD0001/W-Ping.js importScript('User:BrandonXLF/QuickEdit.js'); // Backlink: User:BrandonXLF/QuickEdit.js importScript('User:Evad37/rater.js'); // Backlink: User:Evad37/rater.js importScript('User:Guywan/Scripts/ConfirmLogout.js'); // Backlink: User:Guywan/Scripts/ConfirmLogout.js importScript('User:Terasail/COI Request Tool.js'); // Backlink: User:Terasail/COI Request Tool.js importScript('User:Enterprisey/section-redir-note.js'); // Backlink: User:Enterprisey/section-redir-note.js importScript('User:Ingenuity/AntiVandal.js'); // Backlink: User:Ingenuity/AntiVandal.js importScript('User:DannyS712/SATG.js'); // Backlink: User:DannyS712/SATG.js importScript('User:SD0001/GAN-helper.js'); // Backlink: User:SD0001/GAN-helper.js importScript('User:Novem_Linguae/Scripts/GANReviewTool.js'); // Backlink: User:Novem_Linguae/Scripts/GANReviewTool.js importScript('User:Enterprisey/delsort.js'); // Backlink: User:Enterprisey/delsort.js