Jump to content

User:Nyakase/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 7
if(!/\bnocache=\b/.test(location.href)){let e=mw.config.values,t="text/javascript",r="text/css",n=(n,o,i)=>(n=n.replace(/special:mypage/i,"User:"+e.wgUserName),$.get("https://"+o+"/w/api.php?titles="+n+"&origin=*&format=json&formatversion=2&uselang=content&maxage=86400&smaxage=86400&action=query&prop=revisions|info&rvprop=content&rvlimit=1&inprop=protection").then(e=>{let a=e.query.pages[0];if(!a.missing){if(2!==a.ns&&8!==a.ns&&!a.protection.find(e=>"edit"===e.type&&"sysop"===e.level))return $.Deferred().reject('Refused to load "'+n+'"@'+o+": unprotected page");let l=a.revisions[0].content;if(i&&i!==t||"javascript"!==a.contentmodel){if(i!==r||"css"!==a.contentmodel)return $.Deferred().reject('Refused to load "'+n+'"@'+o+": content type mismatch");mw.loader.addStyleTag(l)}else document.head.appendChild(document.createElement("script")).innerHTML=l}})),o=e.wgServerName,i=e=>{let 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]||o]:null};window.importScript=e=>{n(encodeURIComponent(e),o,t)},window.importStyleSheet=e=>{n(encodeURIComponent(e),o,r)};let a=mw.loader.load;mw.loader.load=function(e,t){let r=i(e);r?n(r[0],r[1],t):a.apply(mw.loader,[...arguments])};let l=mw.loader.getScript;mw.loader.getScript=function(e){let r=i(e);return r?n(r[0],r[1],t):l.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]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
importScript('User:Evad37/duplinks-alt.js'); // Backlink: [[User:Evad37/duplinks-alt.js]]
importScript('User:Bugghost/Scripts/UserRoleIndicator.js'); // Backlink: [[User:Bugghost/Scripts/UserRoleIndicator.js]]
importScript('User:Novem Linguae/Scripts/DetectPromo.js'); // Backlink: [[User:Novem Linguae/Scripts/DetectPromo.js]]
importScript('User:Jdlrobson/responsiveVector2022.js'); // Backlink: [[User:Jdlrobson/responsiveVector2022.js]]