Content deleted Content added
No edit summary |
No edit summary |
||
Line 21:
mw.loader.load(url.toString());
};
// === SCRIPTS BY OTHER USERS ===▼
// use <nowiki>{{lusc|script}}</nowiki>▼
// 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))}}
// === EVERYTHING BELOW THIS POINT WAS WRITTEN BY "Chlod" ===▼
// I take responsibility for whatever is written below this section, including sublinks.▼
// importScript("User:Chlod/Scripts/RCP-CV Quicklink.js"); // [[User:Chlod/Scripts/RCP-CV Quicklink.js]]▼
importScript("User:Chlod/Scripts/UserHighlighter.js"); // [[User:Chlod/Scripts/UserHighlighter.js]]▼
importScript("User:Chlod/Scripts/DirectPDFDownload.js"); // [[User:Chlod/Scripts/DirectPDFDownload.js]]▼
importScript("User:Chlod/Scripts/GlobalUserToolbox.js"); // [[User:Chlod/Scripts/GlobalUserToolbox.js]]▼
importScript("User:Chlod/Scripts/ReferenceDeselector.js"); // [[User:Chlod/Scripts/ReferenceDeselector.js]]▼
importScript("User:Chlod/Scripts/NewTabMMVDetails.js"); // [[User:Chlod/Scripts/NewTabMMVDetails.js]]▼
importScript("User:Chlod/Scripts/StormCountTally.js"); // [[User:Chlod/Scripts/StormCountTally.js]]▼
importScript("User:Chlod/Scripts/FoldArchives.js"); // [[User:Chlod/Scripts/FoldArchives.js]]▼
importScript("User:Chlod/Scripts/AjaxRollbackSummary.js"); // [[User:Chlod/Scripts/AjaxRollbackSummary.js]]▼
importScript("User:Chlod/Scripts/CopiedTemplateEditor-loader.js"); // [[User:Chlod/Scripts/CopiedTemplateEditor-loader.js]]▼
importScript("User:Chlod/Scripts/InfringementAssistant.js"); // [[User:Chlod/Scripts/InfringementAssistant.js]]▼
importScript("User:Chlod/Scripts/Coordinator.js"); // [[User:Chlod/Scripts/Coordinator.js]]▼
// Loaded globally.▼
// importScript("User:Chlod/Scripts/GoToTitle.js"); // [[User:Chlod/Scripts/GoToTitle.js]]▼
// importScript("User:Chlod/Scripts/SectionLink.js"); // [[User:Chlod/Scripts/SectionLink.js]]▼
// importScript("User:Chlod/sandbox.js");▼
// === STYLESHEETS BY OTHER USERS ===▼
if (mw.config.get("skin") !== "vector-2022")▼
importStylesheet("User:BrandonXLF/FloatHead.css"); // [[User:BrandonXLF/FloatHead]]▼
▲// === SCRIPTS BY OTHER USERS ===
▲// use <nowiki>{{lusc|script}}</nowiki>
if (window.rw == null)
Line 65 ⟶ 91:
if (mw.config.get("wgPageName") !== "Special:RecentChanges")
importScript("User:Bradv/Scripts/ExpandDiffs.js"); // [[User:Bradv/Scripts/ExpandDiffs.js]]
▲// === STYLESHEETS BY OTHER USERS ===
▲if (mw.config.get("skin") !== "vector-2022")
▲ importStylesheet("User:BrandonXLF/FloatHead.css"); // [[User:BrandonXLF/FloatHead]]
▲// === EVERYTHING BELOW THIS POINT WAS WRITTEN BY "Chlod" ===
▲// I take responsibility for whatever is written below this section, including sublinks.
▲// importScript("User:Chlod/Scripts/RCP-CV Quicklink.js"); // [[User:Chlod/Scripts/RCP-CV Quicklink.js]]
▲importScript("User:Chlod/Scripts/UserHighlighter.js"); // [[User:Chlod/Scripts/UserHighlighter.js]]
▲importScript("User:Chlod/Scripts/DirectPDFDownload.js"); // [[User:Chlod/Scripts/DirectPDFDownload.js]]
▲importScript("User:Chlod/Scripts/GlobalUserToolbox.js"); // [[User:Chlod/Scripts/GlobalUserToolbox.js]]
▲importScript("User:Chlod/Scripts/ReferenceDeselector.js"); // [[User:Chlod/Scripts/ReferenceDeselector.js]]
▲importScript("User:Chlod/Scripts/NewTabMMVDetails.js"); // [[User:Chlod/Scripts/NewTabMMVDetails.js]]
▲importScript("User:Chlod/Scripts/StormCountTally.js"); // [[User:Chlod/Scripts/StormCountTally.js]]
▲importScript("User:Chlod/Scripts/FoldArchives.js"); // [[User:Chlod/Scripts/FoldArchives.js]]
▲importScript("User:Chlod/Scripts/AjaxRollbackSummary.js"); // [[User:Chlod/Scripts/AjaxRollbackSummary.js]]
▲importScript("User:Chlod/Scripts/CopiedTemplateEditor-loader.js"); // [[User:Chlod/Scripts/CopiedTemplateEditor-loader.js]]
▲importScript("User:Chlod/Scripts/InfringementAssistant.js"); // [[User:Chlod/Scripts/InfringementAssistant.js]]
▲importScript("User:Chlod/Scripts/Coordinator.js"); // [[User:Chlod/Scripts/Coordinator.js]]
▲// Loaded globally.
▲// importScript("User:Chlod/Scripts/GoToTitle.js"); // [[User:Chlod/Scripts/GoToTitle.js]]
▲// importScript("User:Chlod/Scripts/SectionLink.js"); // [[User:Chlod/Scripts/SectionLink.js]]
▲// importScript("User:Chlod/sandbox.js");
importScript('User:Enterprisey/rfa-count-toolbar.js'); // Backlink: [[User:Enterprisey/rfa-count-toolbar.js]]
|