User:DreamRimmer/common.js

Source: Wikipedia, the free encyclopedia.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// 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:Enterprisey/delsort.js'); // Backlink: [[User:Enterprisey/delsort.js]]
importScript('User:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]
importScript('User:Terasail/Edit Request Tool.js'); // Backlink: [[User:Terasail/Edit Request Tool.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:Novem Linguae/Scripts/DetectG4G5.js'); // Backlink: [[User:Novem Linguae/Scripts/DetectG4G5.js]]
importScript('User:Novem Linguae/Scripts/ReviewStatus.js'); // Backlink: [[User:Novem Linguae/Scripts/ReviewStatus.js]]
importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:Novem Linguae/Scripts/DraftCleaner.js'); // Backlink: [[User:Novem Linguae/Scripts/DraftCleaner.js]]
importScript('User:Novem Linguae/Scripts/UserRightsDiff.js'); // Backlink: [[User:Novem Linguae/Scripts/UserRightsDiff.js]]
importScript('User:Mdaniels5757/markAdmins.js'); // Backlink: [[User:Mdaniels5757/markAdmins.js]]
importScript('User:Bradv/Scripts/Superlinks.js'); // Backlink: [[User:Bradv/Scripts/Superlinks.js]]
importScript('user:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[user:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('User:SD0001/StubSorter.js'); // Backlink: [[User:SD0001/StubSorter.js]]
importScript('User:Novem Linguae/Scripts/ShowAdminMessages.js'); // Backlink: [[User:Novem Linguae/Scripts/ShowAdminMessages.js]]
importScript('User:Evad37/OneClickArchiver.js'); // Backlink: [[User:Evad37/OneClickArchiver.js]]
importScript('User:Novem Linguae/Scripts/GANReviewTool.js'); // Backlink: [[User:Novem Linguae/Scripts/GANReviewTool.js]]
importScript('User:Shubinator/DYKcheck.js'); // Backlink: [[User:Shubinator/DYKcheck.js]]
importScript('User:GeneralNotability/edit-filter-hit-analyzer.js'); // Backlink: [[User:GeneralNotability/edit-filter-hit-analyzer.js]]
importScript('User:DannyS712/DiscussionCloser.js'); // Backlink: [[User:DannyS712/DiscussionCloser.js]]
importScript('User:DreamRimmer/BEFORE.js'); // Backlink: [[User:DreamRimmer/BEFORE.js]]
importScript('User:DreamRimmer/BlankUserPage.js'); // Backlink: [[User:DreamRimmer/BlankUserPage.js]]
importScript('User:PleaseStand/userinfo.js'); // Backlink: [[User:PleaseStand/userinfo.js]]
importScript('User:Eejit43/scripts/rmtr-helper.js'); // Backlink: [[User:Eejit43/scripts/rmtr-helper.js]]
importScript('User:Lemonaka/WD.js'); // Backlink: [[User:Lemonaka/WD.js]]

window.markAdminCfg = {
	groups: {
		'patroller': { enabled: true },
		'autoreviewer': { enabled: true },
		'filemover': { enabled: true },
		'rollbacker': { enabled: true },
		'extendedmover': { enabled: true },
	}
};

importScript('User:DreamRimmer/HotDefaultSort.js'); // Backlink: [[User:DreamRimmer/HotDefaultSort.js]]
importScript('User:Eejit43/scripts/redirect-helper.js'); // Backlink: [[User:Eejit43/scripts/redirect-helper.js]]
//mw.loader.load('https://wikiplus-app.com/Main.js');
importScript('User:DreamRimmer/fixbarerefs.js'); // Backlink: [[User:DreamRimmer/fixbarerefs.js]]
importScript('User:Awesome Aasim/addmylinks.js'); // Backlink: [[User:Awesome Aasim/addmylinks.js]]
importScript('User:RedWarn/.js'); // Backlink: [[User:RedWarn/.js]]
importScript('User:Sohom Datta/Redirectify.js'); // Backlink: [[User:Sohom Datta/Redirectify.js]]
importScript('User:Enterprisey/easy-brfa.js'); // Backlink: [[User:Enterprisey/easy-brfa.js]]
importScript('User:MusikAnimal/customWatchlists.js'); // Backlink: [[User:MusikAnimal/customWatchlists.js]]
importScript('User:Suffusion of Yellow/effp-helper.js'); // Backlink: [[User:Suffusion of Yellow/effp-helper.js]]
importScript('User:Tol/VECN.js'); // Backlink: [[User:Tol/VECN.js]]
importScript('User:Qwerfjkl/scripts/massCFD.js'); // Backlink: [[User:Qwerfjkl/scripts/massCFD.js]]
importScript('User:Ingenuity/preview.js'); // Backlink: [[User:Ingenuity/preview.js]]
importScript('User:Sohom Datta/fastreview.js'); // Backlink: [[User:Sohom Datta/fastreview.js]]

mw.hook('moremenu.ready').add(function (config) {
    var username = mw.config.get('wgTitle');
    var encodedUsername = encodeURIComponent(username);
    var url = 'https://apersonbot.toolforge.org/afchistory/?user=' + encodedUsername;

    MoreMenu.addLink(
        'user',
        'AfC Reviews',
        url
    );
});
importScript('User:Ingenuity/AntiVandal.js'); // Backlink: [[User:Ingenuity/AntiVandal.js]]
importScript('User:BrandonXLF/FFUHelper.js'); // Backlink: [[User:BrandonXLF/FFUHelper.js]]
importScript('User:Aaron_Liu/Watchlyst_Greybar_Unsin.js'); // Backlink: [[User:Aaron_Liu/Watchlyst_Greybar_Unsin.js]]
importScript('User:DannyS712/SectionRemover.js'); // Backlink: [[User:DannyS712/SectionRemover.js]]
importScript('User:DannyS712/PageMoverClosure.js'); // Backlink: [[User:DannyS712/PageMoverClosure.js]]
importScript('User:Nardog/RCMuter.js'); // Backlink: [[User:Nardog/RCMuter.js]]
importScript('User:Enterprisey/diff-permalink.js'); // Backlink: [[User:Enterprisey/diff-permalink.js]]
//importScript('User:Alexis_Jazz/Factotum.js'); // Backlink: [[User:Alexis_Jazz/Factotum.js]]
importScript('User:Alexis Jazz/ExportAllTheThings.js'); // Backlink: [[User:Alexis Jazz/ExportAllTheThings.js]]
importScript('User:DannyS712/EFFPRH/sandbox.js'); // Backlink: [[User:DannyS712/EFFPRH/sandbox.js]]
importScript('User:Eejit43/scripts/afcrc-helper.js'); // Backlink: [[User:Eejit43/scripts/afcrc-helper.js]]
importScript('Wikipedia:AutoEd/complete.js');
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // [[User:Ohconfucius/script/MOSNUM dates.js]]
importScript('User:Novem Linguae/Scripts/UserTalkErasedSectionsDetector.js'); // Backlink: [[User:Novem Linguae/Scripts/UserTalkErasedSectionsDetector.js]]
importScript('User:DreamRimmer/copyvio-check.js'); // Backlink: [[User:DreamRimmer/copyvio-check.js]]
importScript('User:Terasail/Edit_Request_Tool.js'); // Backlink: [[User:Terasail/Edit_Request_Tool.js]]
importScript('User:Enterprisey/rename-reason-fixer.js'); // Backlink: [[User:Enterprisey/rename-reason-fixer.js]]
importScript('User:DreamRimmer/test.js'); // Backlink: [[User:DreamRimmer/test.js]]