User:Geardona/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/teahouseTalkbackLink.js"); // Adds a talkback link to signatures on the Teahouse importScript( 'User:Danski454/stubsearch.js' ); // Backlink: User:Danski454/stubsearch.js importScript('User:Jackmcbarn/editProtectedHelper.js'); // Backlink: User:Jackmcbarn/editProtectedHelper.js importScript('User:Evad37/livenotifications.js'); // Backlink: User:Evad37/livenotifications.js importScript('de:Benutzer:TMg/autoFormatter.js'); // Backlink: de:Benutzer:TMg/autoFormatter.js importScript('Wikipedia:AutoEd/complete.js'); importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: User:MPGuy2824/MoveToDraft.js importScript('User:DannyS712/Pending_changes.js'); // Backlink: User:DannyS712/Pending_changes.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:Shubinator/DYKcheck.js'); //DYKcheck tool importScript('User:Theleekycauldron/DYK_promoter.js'); // Backlink: User:Theleekycauldron/DYK_promoter.js importScript('User:Enterprisey/cv-revdel.js'); // Backlink: User:Enterprisey/cv-revdel.js

mw.loader.load('/w/index.php?title=User:BrandonXLF/FFUHelper.js&action=raw&ctype=text/javascript'); // User:BrandonXLF/FFUHelper.js importScript('User:Novem_Linguae/Scripts/GANReviewTool.js'); // Backlink: User:Novem_Linguae/Scripts/GANReviewTool.js importScript('User:The Earwig/copyvios.js'); // Backlink: User:The Earwig/copyvios.js importScript('User:Evad37/OneClickArchiver.js'); // Backlink: User:Evad37/OneClickArchiver.js importScript('User:Chlod/Scripts/Deputy.js'); // Backlink: User:Chlod/Scripts/Deputy.js importScript('User:Headbomb/unreliable.js'); // Backlink: User:Headbomb/unreliable.js importScript('User:RedWarn/.js'); // Backlink: User:RedWarn/.js importScript('User:DannyS712/DiscussionCloser.js'); // Backlink: User:DannyS712/DiscussionCloser.js importScript('User:Danski454/w2wFinder.js'); // Backlink: User:Danski454/w2wFinder.js importScript('User:Lourdes/PageCuration.js'); // Backlink: User:Lourdes/PageCuration.js importScript('User:DannyS712/New_pages_feed.js'); // Backlink: User:DannyS712/New_pages_feed.js importScript('User:Sohom_Datta/fastreview.js'); // Backlink: User:Sohom_Datta/fastreview.js importScript('User:Mdaniels5757/markAdmins.js'); // Backlink: User:Mdaniels5757/markAdmins.js importScript('User:Epicgenius/ArticleQuality.js'); // Backlink: User:Epicgenius/ArticleQuality.js importScript('User:Wugapodes/Capricorn.js'); // Backlink: User:Wugapodes/Capricorn.js importScript('User:Evad37/rater.js'); // Backlink: User:Evad37/rater.js importScript('User:Awesome_Aasim/addmylinks.js'); // Backlink: User:Awesome_Aasim/addmylinks.js importScript('User:Novem Linguae/Scripts/VoteCounter.js'); // Backlink: User:Novem Linguae/Scripts/VoteCounter.js importScript('User:Novem_Linguae/Scripts/CiteHighlighter.js'); // Backlink: User:Novem_Linguae/Scripts/CiteHighlighter.js importScript('User:Dipankan001/revert_vandalism.js'); // Backlink: User:Dipankan001/revert_vandalism.js importScript('User:Eejit43/scripts/afcrc-helper.js'); // Backlink: User:Eejit43/scripts/afcrc-helper.js