User:Nyakase/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:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]

window.sciNoConfirm = true;
window.noUpdateNotificationNotice = true;
statusChangerConfig = {};
statusChangerConfig.statusList = [ 'online', 'offline', 'sleeping', 'in', 'busy', 'wikibreak', 'away', 'vandal', 'holiday', 'school', 'working', 'eating', 'huggle', 'twinkle' ];
if(mw.config.get( 'wgAction' ) === 'purge') {
       $('form[action*="action=purge"]').submit();
       $("#mw-content-text").text("Purging page...");
}

if(mw.config.get("wgPageName") != "Wikipedia:Usernames_for_administrator_attention") {
	importScript('User:Pythoncoder/Scripts/voteSymbols.js'); //Linkback: [[User:Pythoncoder/Scripts/voteSymbols.js]] Added by Script installer
}
mw.loader.using(['mediawiki.util', 'mediawiki.api'], function () {
	mw.loader.load('https://en.wikipedia.org/w/?title=MediaWiki:Gadget-MoreMenu.enwiki.js&action=raw&ctype=text/javascript');
});
$(document).on("click","#cite-auto-web-url-url",function() {
    $("#cite-date-web-access-date").click();
});

importScript('User:Writ Keeper/Scripts/googleTitle.js'); //Linkback: [[User:Writ Keeper/Scripts/googleTitle.js]] Added by Script installer
importScript('User:Enterprisey/delsort.js'); //Linkback: [[User:Enterprisey/delsort.js]] Added by Script installer
importScript('User:Writ Keeper/Scripts/deletionFinder.js'); //Linkback: [[User:Writ Keeper/Scripts/deletionFinder.js]] Added by Script installer
importScript('User:Opencooper/talkCount.js'); //Linkback: [[User:Opencooper/talkCount.js]] Added by Script installer
importScript('User:MJL/textDisallow.js'); //Linkback: [[User:MJL/textDisallow.js]] Added by Script installer
importScript('User:MJL/UserAbuseLogs.js'); //Linkback: [[User:MJL/UserAbuseLogs.js]] Added by Script installer
importScript('User:DannyS712/ExpandHistory.js'); // Backlink: [[User:DannyS712/ExpandHistory.js]]
importScript('Wikipedia:AutoEd/complete.js'); // Backlink: [[Wikipedia:AutoEd/complete.js]]
importScript('User:Evad37/Thanky.js'); // Backlink: [[User:Evad37/Thanky.js]]
importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: [[User:SuperHamster/CiteUnseen.js]]
importScript('User:Evad37/EditWarChecker.js'); // Backlink: [[User:Evad37/EditWarChecker.js]]
importScript('User:Opencooper/lastEdit.js'); // Backlink: [[User:Opencooper/lastEdit.js]]
importScript('User:Enterprisey/section-redir-note.js'); // Backlink: [[User:Enterprisey/section-redir-note.js]]
importScript('User:Equazcion/LagToMinutes.js'); // Backlink: [[User:Equazcion/LagToMinutes.js]]
importScript('User:Danski454/code-link.js'); // Backlink: [[User:Danski454/code-link.js]]
importScript('User:RealFakeKim/Scripts/pageInfo.js'); // Backlink: [[User:RealFakeKim/Scripts/pageInfo.js]]
importScript('User:Evad37/livenotifications.js'); // Backlink: [[User:Evad37/livenotifications.js]]
importScript('User:GeneralNotability/mark-locked.js'); // Backlink: [[User:GeneralNotability/mark-locked.js]]
importScript('User:SD0001/BDCS.js'); // Backlink: [[User:SD0001/BDCS.js]]
importScript('User:Vukky/Scripts/wiktmoss.js'); // Backlink: [[User:Vukky/Scripts/wiktmoss.js]]
importScript('User:Suffusion of Yellow/filterNotes.js'); // Backlink: [[User:Suffusion of Yellow/filterNotes.js]]
importScript('User:BrandonXLF/NullEdit.js'); // Backlink: [[User:BrandonXLF/NullEdit.js]]
importScript('User:BrandonXLF/UpdateNotifications.js'); // Backlink: [[User:BrandonXLF/UpdateNotifications.js]]
importScript('User:Nardog/PlayAudioNow.js'); // Backlink: [[User:Nardog/PlayAudioNow.js]]
importScript('User:Amorymeltzer/userinfo.js'); // Backlink: [[User:Amorymeltzer/userinfo.js]]
importScript('User:GeneralNotability/edit-filter-hit-analyzer.js'); // Backlink: [[User:GeneralNotability/edit-filter-hit-analyzer.js]]
importScript('User:Enterprisey/fancy-diffs.js'); // Backlink: [[User:Enterprisey/fancy-diffs.js]]
importScript('User:Joeytje50/JWB.js/load.js'); // Backlink: [[User:Joeytje50/JWB.js/load.js]]
importScript('User:Vukky/Scripts/MoreLove.js'); // Backlink: [[User:Vukky/Scripts/MoreLove.js]]
importScript('User:SD0001/edits-since-decline.js'); // Backlink: [[User:SD0001/edits-since-decline.js]]
importScript('User:Vukky/Scripts/twinkle-autoip.js'); // Backlink: [[User:Vukky/Scripts/twinkle-autoip.js]]
importScript('User:Vukky/Scripts/StatusChanger.js'); // Backlink: [[User:Vukky/Scripts/StatusChanger.js]]
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('User:Enterprisey/browser-notifs.js'); // Backlink: [[User:Enterprisey/browser-notifs.js]]
importScript('User:SD0001/DYK-helper.js'); // Backlink: [[User:SD0001/DYK-helper.js]]
importScript('User:Alexis Jazz/LuckyRename.js'); // Backlink: [[User:Alexis Jazz/LuckyRename.js]]
importScript('User:Amorymeltzer/logSwap.js'); // Backlink: [[User:Amorymeltzer/logSwap.js]]
importScript('User:ZLEA/Dashboard.js'); // Backlink: [[User:ZLEA/Dashboard.js]]
importScript('User:Terasail/Edit Request Tool.js'); // Backlink: [[User:Terasail/Edit Request Tool.js]]
importScript('User:Terasail/COI Request Tool.js'); // Backlink: [[User:Terasail/COI Request Tool.js]]
importScript('User:Anomie/linkclassifier.js'); // Backlink: [[User:Anomie/linkclassifier.js]]
mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Diegodlh/Web2Cit/script.js&action=raw&ctype=text/javascript' ); // Backlink: [[:en:User:Diegodlh/Web2Cit/script.js]]
importScript('User:RedWarn/.js'); // Backlink: [[User:RedWarn/.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Uziel302/typo.js&action=raw&ctype=text/javascript');
importScript('User:Taavi/Unslashifier.js'); // Backlink: [[User:Taavi/Unslashifier.js]]
importScript('User:Alexis Jazz/Kill-It-With-Fire.js'); // Backlink: [[User:Alexis Jazz/Kill-It-With-Fire.js]]
importScript('User:DannyS712/EFFPRH/sandbox.js'); // Backlink: [[User:DannyS712/EFFPRH/sandbox.js]]
importScript('User:Ingenuity/AntiVandal.js'); // Backlink: [[User:Ingenuity/AntiVandal.js]]
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
importScript( 'User:Eejit43/scripts/afcrc-helper.js' ); // Backlink: [[User:Eejit43/scripts/afcrc-helper.js]]
importScript( 'User:Eejit43/scripts/redirect-helper.js' ); // Backlink: [[User:Eejit43/scripts/redirect-helper.js]]
importScript( 'User:Ingenuity/AbuseFilterContribs.js' ); // Backlink: [[User:Ingenuity/AbuseFilterContribs.js]]
importScript( 'User:Novem Linguae/Scripts/CiteHighlighter.js' ); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
importScript('User:Aaron_Liu/MoveTop.js'); // Backlink: [[User:Aaron_Liu/MoveTop.js]]
importScript('User:Jeeputer/defconIndicator.js'); // Backlink: [[User:Jeeputer/defconIndicator.js]]