User:Ingenuity/common.js

// Enable caching for resource loads, see User:SD0001/Making_user_scripts_load_faster, @revision 5 if(!/\bnocache=\b/.test(location.href)){var e=function(e,t,r){return 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((function(n){var o=n.query.pages[0];if(!o.missing){var a=o.revisions[0].content;if(r&&"text/javascript"!==r||"javascript"!==o.contentmodel){if("text/css"!==r||"css"!==o.contentmodel)return $.Deferred.reject('Refused to load "'+e+'"@'+t+": content type mismatch");mw.loader.addStyleTag(a)}else{if(2!==o.ns&&8!==o.ns)return $.Deferred.reject('Refused to load "'+e+'"@'+t+": outside User and MediaWiki space");var i=document.createElement("script");i.innerHTML=a,document.head.appendChild(i)}}}))},t=function(e){var t=/^(?:(?:https:)?\/\/(.*))?\/w\/index.php/.exec(e),r=/\btitle=([^=?&]*)/.exec(e);return t&&r&&/\baction=raw\b/.test(e)&&/\bctype=/.test(e)?[r[1],t[1]||mw.config.get("wgServerName")]:null};window.importScript=function(t){e(encodeURIComponent(t),mw.config.get("wgServerName"),"text/javascript")},window.importStyleSheet=function(t){e(encodeURIComponent(t),mw.config.get("wgServerName"),"text/css")};var r=mw.loader.load;mw.loader.load=function(n,o){var a=t(n);a?e(a[0],a[1],o):r.apply(mw.loader,Array.prototype.slice.call(arguments))};var n=mw.loader.getScript;mw.loader.getScript=function(r){var o=t(r);return o?e(o[0],o[1],"text/javascript"):n.apply(mw.loader,Array.prototype.slice.call(arguments))}}

// ReFill mw.loader.load("https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript");

mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Ingenuity/timestamps.js&action=raw&ctype=text/javascript"); importScript('User:Evad37/OneClickArchiver.js'); // Backlink: User:Evad37/OneClickArchiver.js importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: User:Evad37/MoveToDraft.js importScript('User:Lourdes/PageCuration.js'); // Backlink: User:Lourdes/PageCuration.js

$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function { mw.util.addPortletLink( 'p-personal', mw.util.getUrl('Category:AfC_pending_submissions_by_age/0_days_ago'), 'AfC', 'pt-afc', 'AfC', null, '#pt-preferences' ); }); importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: User:Novem Linguae/Scripts/CiteHighlighter.js importScript('User:Novem Linguae/Scripts/VoteCounter.js'); // Backlink: User:Novem Linguae/Scripts/VoteCounter.js importScript('User:Novem Linguae/Scripts/NPPLinks.js'); // Backlink: User:Novem Linguae/Scripts/NPPLinks.js importScript('User:Ingenuity/quickNavigate.js'); // Backlink: User:Ingenuity/quickNavigate.js importScript('User:Ingenuity/cleaner.js'); // Backlink: User:Ingenuity/cleaner.js // importScript('User:RedWarn/.js'); // Backlink: User:RedWarn/.js importScript('User:Evad37/rater.js'); // Backlink: User:Evad37/rater.js importScript('User:Danski454/stubsearch.js'); // Backlink: User:Danski454/stubsearch.js importScript('User:Ingenuity/preview.js'); // Backlink: User:Ingenuity/preview.js importScript('User:Enterprisey/cv-revdel.js'); // Backlink: User:Enterprisey/cv-revdel.js importScript('User:Guywan/Scripts/ConfirmLogout.js'); // Backlink: User:Guywan/Scripts/ConfirmLogout.js importScript('User:PleaseStand/userinfo.js'); // Backlink: User:PleaseStand/userinfo.js importScript('User:Splarka/oldafd.js'); // Backlink: User:Splarka/oldafd.js //importScript('User:Kangaroopower/MRollback.js'); // Backlink: User:Kangaroopower/MRollback.js importScript('m:User:Dragoniez/Selective_Rollback.js'); // Backlink: m:User:Dragoniez/Selective_Rollback.js importScript('User:Novem Linguae/Scripts/NotSoFast.js'); // Backlink: User:Novem Linguae/Scripts/NotSoFast.js importScript('User:Novem Linguae/Scripts/DetectG4G5.js'); // Backlink: User:Novem Linguae/Scripts/DetectG4G5.js importScript('User:Writ_Keeper/Scripts/deletionFinder.js'); // Backlink: User:Writ_Keeper/Scripts/deletionFinder.js importScript('User:DannyS712/SATG.js'); // Backlink: User:DannyS712/SATG.js // importScript('User:Anomie/linkclassifier.js'); // Backlink: User:Anomie/linkclassifier.js // importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: User:Anomie/linkclassifier.css importScript('User:Jackmcbarn/editProtectedHelper.js'); // Backlink: User:Jackmcbarn/editProtectedHelper.js importScript('User:TheTVExpert/submitRMTR.js'); // Backlink: User:TheTVExpert/submitRMTR.js importScript('User:Andy_M._Wang/closeRM.js'); // Backlink: User:Andy_M._Wang/closeRM.js importScript('User:Suffusion_of_Yellow/effp-helper.js'); // Backlink: User:Suffusion_of_Yellow/effp-helper.js importScript('User:DannyS712/EFFPRH.js'); // Backlink: User:DannyS712/EFFPRH.js importScript('User:Wugapodes/Capricorn.js'); // Backlink: User:Wugapodes/Capricorn.js importScript('User:Novem Linguae/Scripts/GANReviewTool.js'); // Backlink: User:Novem Linguae/Scripts/GANReviewTool.js importScript('User:Novem Linguae/Scripts/UserRightsDiff.js'); // Backlink: User:Novem Linguae/Scripts/UserRightsDiff.js importScript('User:Enterprisey/AFCRHS.js'); // Backlink: User:Enterprisey/AFCRHS.js importScript('User:Ahecht/Scripts/pageswap.js'); // Backlink: User:Ahecht/Scripts/pageswap.js importScript('User:Enterprisey/delsort.js'); // Backlink: User:Enterprisey/delsort.js importScript('User:Novem Linguae/Scripts/SpeciesHelper.js'); // Backlink: User:Novem Linguae/Scripts/SpeciesHelper.js importScript('User:Ingenuity/AbuseFilterContribs.js'); // Backlink: User:Ingenuity/AbuseFilterContribs.js importScript('User:TheTVExpert/rmCloser.js'); // Backlink: User:TheTVExpert/rmCloser.js importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: User:SuperHamster/CiteUnseen.js importScript('User:Ingenuity/ReferenceFixer.js'); // Backlink: User:Ingenuity/ReferenceFixer.js importScript('user:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: user:Qwertyytrewqqwerty/DisamAssist.js importScript('User:Þjarkur/NeverUseMobileVersion.js'); // Backlink: User:Þjarkur/NeverUseMobileVersion.js importScript('User:DannyS712/DiscussionCloser.js'); // Backlink: User:DannyS712/DiscussionCloser.js importScript('User:Ingenuity/AntiVandal.js'); // Backlink: User:Ingenuity/AntiVandal.js //importScript('User:Ingenuity/ReferenceEditor.js'); // Backlink: User:Ingenuity/ReferenceEditor.js importScript('User:Mr. Stradivarius/gadgets/SpamUserPage.js'); // Backlink: User:Mr. Stradivarius/gadgets/SpamUserPage.js importScript('User:MusikAnimal/responseHelper.js'); // Backlink: User:MusikAnimal/responseHelper.js importScript('User:MusikAnimal/userRightsManager.js'); // Backlink: User:MusikAnimal/userRightsManager.js importScript('User:Enterprisey/unblock-review.js'); // Backlink: User:Enterprisey/unblock-review.js importScript('User:GeneralNotability/spihelper.js'); // Backlink: User:GeneralNotability/spihelper.js importScript('User:Suffusion of Yellow/abusecontribs.js'); // Backlink: User:Suffusion of Yellow/abusecontribs.js importScript('User:SD0001/RFUD-helper.js'); // Backlink: User:SD0001/RFUD-helper.js importScript('User:Ingenuity/ReferenceEditorTest.js'); // Backlink: User:Ingenuity/ReferenceEditorTest.js importScript('User:Ingenuity/MergeDuplicateRefs.js'); // Backlink: User:Ingenuity/MergeDuplicateRefs.js importScript('User:Writ Keeper/Scripts/massRevdel.js'); // Backlink: User:Writ Keeper/Scripts/massRevdel.js importScript('User:Anomie/previewtemplatelastmod.js'); // Backlink: User:Anomie/previewtemplatelastmod.js importScript('User:Firefly/more-block-info.js'); // Backlink: User:Firefly/more-block-info.js importScript('User:Ingenuity/AddToBadImageList.js'); // Backlink: User:Ingenuity/AddToBadImageList.js importScript('User:Ingenuity/VandalismScanner.js'); // Backlink: User:Ingenuity/VandalismScanner.js importScript('User:JPxG/AsbestosGun.js'); // Backlink: User:JPxG/AsbestosGun.js importScript('User:Ingenuity/NeedingImprovement.js'); // Backlink: User:Ingenuity/NeedingImprovement.js