User:Eviolite/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))}} mw.loader.load( '/w/index.php?title=User:RedWarn/.js&action=raw&ctype=text/javascript' ); // Backlink: User:RedWarn/.js importScript( 'User:Qwertyytrewqqwerty/DisamAssist.js' ); // Backlink: User:Qwertyytrewqqwerty/DisamAssist.js importScript( 'User:Enterprisey/cv-revdel.js' ); // Backlink: User:Enterprisey/cv-revdel.js mw.loader.load( '/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript' ); // Backlink: User:Evad37/rater.js /* removed markadmins, not updated */ importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: User:SuperHamster/CiteUnseen.js importScript('User:Gary/nominations viewer.js'); // Backlink: User:Gary/nominations viewer.js importScript('User:Eviolite/UHSc.js'); importScript('User:SD0001/DYK-helper.js'); // Backlink: User:SD0001/DYK-helper.js importScript('User:Enterprisey/copy-section-link.js'); // Backlink: User:Enterprisey/copy-section-link.js importScript('User:Eviolite/userinfo.js'); importScript('User:Joeytje50/JWB.js'); // Backlink: User:Joeytje50/JWB.js importScript('User:Evad37/MoveToDraft.js'); // Backlink: User:Evad37/MoveToDraft.js mw.loader.load("https://tools-static.wmflabs.org/fontcdn/css?family=Fira+Code:300,400,500,600,700", "text/css"); importScript('User:Ucucha/HarvErrors.js'); // Backlink: User:Ucucha/HarvErrors.js importScript('User:Wugapodes/Capricorn.js'); // Backlink: User:Wugapodes/Capricorn.js importScript('User:Theleekycauldron/DYKViews.js'); // Backlink: User:Theleekycauldron/DYKViews.js importScript('User:GeneralNotability/mark-locked.js'); // Backlink: User:GeneralNotability/mark-locked.js importScript('User:Evad37/Covery.js'); // Backlink: User:Evad37/Covery.js

mw.hook('convenientDiscussions.commentsReady').add(function {	importScript('User:Gary/comments in local time.js'); // User:Gary/comments in local time.js }); importScript('User:Writ Keeper/Scripts/massRollback.js'); // Backlink: User:Writ Keeper/Scripts/massRollback.js importScript('User:Firefly/more-block-info.js'); // Backlink: User:Firefly/more-block-info.js importScript('User:Enterprisey/delsort.js'); // Backlink: User:Enterprisey/delsort.js importScript('User:Chlod/Scripts/Deputy/AttributionNoticeTemplateEditor.js'); // Backlink: User:Chlod/Scripts/Deputy/AttributionNoticeTemplateEditor.js