User:TechnoSquirrel69/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: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:DannyS712/DiscussionCloser.js'); // User:DannyS712/DiscussionCloser.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", diff: "confirm" }; 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: 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:TheTVExpert/rmCloser.js'); // Backlink: User:TheTVExpert/rmCloser.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:Eejit43/scripts/rmtr-helper.js'); // Backlink: User:Eejit43/scripts/rmtr-helper.js importScript('User:Clearfrienda/scripts/attributetranslation.js'); // Backlink: User:Clearfrienda/scripts/attributetranslation.js importScript('User:Anomie/unsignedhelper.js'); // Backlink: User:Anomie/unsignedhelper.js importScript('User:Elli/OneClickArchiver.js'); // Backlink: User:Elli/OneClickArchiver.js importScript('User:Nardog/MoveHistory.js'); // Backlink: User:Nardog/MoveHistory.js