Jump to content

User:SounderBruce/common.js

From 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])}}

mw.loader.load( '/w/index.php?title=User:Enterprisey/script-installer.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Enterprisey/script-installer.js]]; // Backlink: [[User:Enterprisey/script-installer.js]]

/* User:Equazcion/OneClickArchiver.js */
mw.loader.load( '/w/index.php?title=User:Equazcion/OneClickArchiver.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Equazcion/OneClickArchiver.js]]; // Backlink: [[User:Equazcion/OneClickArchiver.js]]

mw.loader.load( '/w/index.php?title=User:Cameltrader/Advisor.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Cameltrader/Advisor.js]];

mw.loader.load( '/w/index.php?title=User:Ohconfucius/script/Sources.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Ohconfucius/script/Sources.js]]; // [[User:Ohconfucius/script/Sources.js]]

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

mw.loader.load( '/w/index.php?title=User:Qwertyytrewqqwerty/DisamAssist.js%27&action=raw&ctype=text/javascript' ); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js']]; // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]

mw.loader.load( '/w/index.php?title=User:Shubinator/DYKcheck.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Shubinator/DYKcheck.js]]; //DYKcheck tool

mw.loader.load( '/w/index.php?title=User:Ucucha/duplinks.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Ucucha/duplinks.js]]; // [[User:Ucucha/duplinks]]

mw.loader.load( '/w/index.php?title=User:Evad37/kmlToJson.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Evad37/kmlToJson.js]];


mw.loader.load( '/w/index.php?title=User:BrandonXLF/subpages.js&action=raw&ctype=text/javascript' ); // Backlink: [[user:BrandonXLF/subpages.js]]; //Adds a Subpages link

mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADr_pda%2Fprosesizebytes.js&action=raw&ctype=text/javascript'); // [[User:Dr_pda/prosesizebytes.js]]

mw.loader.load( '/w/index.php?title=User:Ohconfucius/script/MOSNUM_dates.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Ohconfucius/script/MOSNUM dates.js]]; // [[User:Ohconfucius/script/MOSNUM dates.js]]

mw.loader.load( '/w/index.php?title=User:EnterpriseyBot/delsort.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:EnterpriseyBot/delsort.js]]; // Backlink: [[User:EnterpriseyBot/delsort.js]]

mw.loader.load( '/w/index.php?title=User:Enterprisey/reply-link.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Enterprisey/reply-link.js]]; // Backlink: [[User:Enterprisey/reply-link.js]]

mw.loader.load( '/w/index.php?title=User:Ohconfucius/script/EngvarB.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Ohconfucius/script/EngvarB.js]]; // [[User:Ohconfucius/script/EngvarB.js]]

mw.loader.load( '/w/index.php?title=User:Fredddie/script/CustomRefToolbar.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Fredddie/script/CustomRefToolbar.js]];

mw.loader.load( '/w/index.php?title=User:Kaniivel/RefConsolidate_start.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Kaniivel/RefConsolidate_start.js]]; // Backlink: [[User:Kaniivel/RefConsolidate_start.js]]

mw.loader.load( '/w/index.php?title=User:Ohconfucius/script/flagcruft.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Ohconfucius/script/flagcruft.js]]; // Backlink: [[User:Ohconfucius/script/flagcruft.js]]

mw.loader.load( '/w/index.php?title=User:Ohconfucius/script/formatgeneral.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Ohconfucius/script/formatgeneral.js]]; // Backlink: [[User:Ohconfucius/script/formatgeneral.js]]

mw.loader.load( '/w/index.php?title=User:Danski454/w2wFinder.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Danski454/w2wFinder.js]]; // Backlink: [[User:Danski454/w2wFinder.js]]

mw.loader.load( '/w/index.php?title=User:TheJJJunk/ARA.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:TheJJJunk/ARA.js]]; // Backlink: [[User:TheJJJunk/ARA.js]]

mw.loader.load( '/w/index.php?title=User:DannyS712/New_pages_feed.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:DannyS712/New_pages_feed.js]]; // Backlink: [[User:DannyS712/New_pages_feed.js]]

mw.loader.load( '/w/index.php?title=User:Writ_Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Writ Keeper/Scripts/massRollback.js]]; // Backlink: [[User:Writ Keeper/Scripts/massRollback.js]]

mw.loader.load( '/w/index.php?title=User:BrandonXLF/SubpageMover.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:BrandonXLF/SubpageMover.js]]; // Backlink: [[User:BrandonXLF/SubpageMover.js]]

mw.loader.load( '/w/index.php?title=User:SounderBruce/scripts/Sandbox.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:SounderBruce/scripts/Sandbox.js]]; // Backlink: [[User:SounderBruce/scripts/Sandbox.js]]

mw.loader.load( '/w/index.php?title=User:Enterprisey/fancy-diffs.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Enterprisey/fancy-diffs.js]]; // Backlink: [[User:Enterprisey/fancy-diffs.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]]
importScript('User:Taavi/Aligner.js'); // Backlink: [[User:Taavi/Aligner.js]]
importScript('User:SD0001/W-Ping.js'); // Backlink: [[User:SD0001/W-Ping.js]]
importScript('User:DannyS712/SectionRemover.js'); // Backlink: [[User:DannyS712/SectionRemover.js]]
importScript('User:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]
importScript('User:PleaseStand/segregate-refs.js'); // Backlink: [[User:PleaseStand/segregate-refs.js]]
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
mw.loader.load("https://www.mediawiki.org/w/index.php?title=User:PerfektesChaos/js/resultListSort/r.js&action=raw&bcache=1&maxage=86400&ctype=text/javascript");
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:TheJJJunk/ARA.js'); // Backlink: [[User:TheJJJunk/ARA.js]]
importScript('User:Nardog/RefRenamer.js'); // Backlink: [[User:Nardog/RefRenamer.js]]
importScript('User:Uglemat/RefMan.js'); // Backlink: [[User:Uglemat/RefMan.js]]
importScript('User:Epicgenius/ArticleQuality.js'); // Backlink: [[User:Epicgenius/ArticleQuality.js]]

mw.util.addPortletLink( 'p-cactions', 
	'https://link-dispenser.toolforge.org/analyze/' + mw.config.get( 'wgPageName' ), 
	'Check health of links on page');
importScript('User:SD0001/easy-merge.js'); // Backlink: [[User:SD0001/easy-merge.js]]
importScript('User:BrandonXLF/QuickEdit.js'); // Backlink: [[User:BrandonXLF/QuickEdit.js]]
importScript('User:IagoQnsi/ipareader.js'); // Backlink: [[User:IagoQnsi/ipareader.js]]