User:OnlyNano/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.
scriptsToManage = {
  "Article Info" : "//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&titleUser:Terasail/ArticleInfo.js",
}

// 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:10nm/beta.js'); // Backlink: [[User:10nm/beta.js]]
importScript('User:Novem Linguae/Scripts/DraftCleaner.js'); // Backlink: [[User:Novem Linguae/Scripts/DraftCleaner.js]]
importScript('User:Novem_Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem_Linguae/Scripts/CiteHighlighter.js]]
importScript('User:Novem Linguae/Scripts/VoteCounter.js'); // Backlink: [[User:Novem Linguae/Scripts/VoteCounter.js]]
importScript('User:Novem Linguae/Scripts/DetectPromo.js'); // Backlink: [[User:Novem Linguae/Scripts/DetectPromo.js]]
importScript('User:Novem Linguae/Scripts/ShowAdminMessages.js'); // Backlink: [[User:Novem Linguae/Scripts/ShowAdminMessages.js]]
importScript('User:Guywan/Scripts/ConfirmLogout.js'); // Backlink: [[User:Guywan/Scripts/ConfirmLogout.js]]
importScript('User:Evad37/livenotifications.js'); // Backlink: [[User:Evad37/livenotifications.js]]
importScript('User:Ingenuity/quickNavigate.js'); // Backlink: [[User:Ingenuity/quickNavigate.js]]
//importScript('User:Terasail/ArticleInfo.js'); // Backlink: [[User:Terasail/ArticleInfo.js]]
importScript('User:MusikAnimal/scriptManager.js'); // Backlink: [[User:MusikAnimal/scriptManager.js]]
importScript('User:Shubinator/DYKcheck.js'); // Backlink: [[User:Shubinator/DYKcheck.js]]
importScript('User:Eizen/LastEditor.js'); // Backlink: [[User:Eizen/LastEditor.js]]
importScript('User:Galobtter/scripts/adminhighlighter.js'); // Backlink: [[User:Galobtter/scripts/adminhighlighter.js]]
importScript('User:Mvolz/displayContributions.js'); // Backlink: [[User:Mvolz/displayContributions.js]]
importScript('User:Anomie/useridentifier.js'); // Backlink: [[User:Anomie/useridentifier.js]]
importScript('User:PleaseStand/userinfo.js'); // Backlink: [[User:PleaseStand/userinfo.js]]
importScript('User:BrandonXLF/ShowUserGender.js'); // Backlink: [[User:BrandonXLF/ShowUserGender.js]]
importScript('User:JJPMaster/wmcommons.js'); // Backlink: [[User:JJPMaster/wmcommons.js]]
importScript('User:ZLEA/Dashboard.js'); // Backlink: [[User:ZLEA/Dashboard.js]]
importScript('User:Nigos/scripts/RecentChanges.js'); // Backlink: [[User:Nigos/scripts/RecentChanges.js]]
importScript('User:Theopolisme/Scripts/autocompleter.js'); // Backlink: [[User:Theopolisme/Scripts/autocompleter.js]]
importScript('de:Benutzer:TMg/autoFormatter.js'); // Backlink: [[de:Benutzer:TMg/autoFormatter.js]]
importScript('User:Moonythedwarf/extra-unreliable.js'); // Backlink: [[User:Moonythedwarf/extra-unreliable.js]]
importScript('User:Enterprisey/fancy-diffs.js'); // Backlink: [[User:Enterprisey/fancy-diffs.js]]
importScript('User:Theopolisme/Scripts/ajaxWatchlist.js'); // Backlink: [[User:Theopolisme/Scripts/ajaxWatchlist.js]]
importScript('User:Enterprisey/rc-thanks.js'); // Backlink: [[User:Enterprisey/rc-thanks.js]]
//importScript('User:Awesome_Aasim/rcwidget.js'); // Backlink: [[User:Awesome_Aasim/rcwidget.js]]
importScript('User:Caburum/UTCclock.js'); // Backlink: [[User:Caburum/UTCclock.js]]
importScript('User:Guywan/Scripts/12HourFormat.js'); // Backlink: [[User:Guywan/Scripts/12HourFormat.js]]
importScript('User:Ingenuity/AntiVandal.js'); // Backlink: [[User:Ingenuity/AntiVandal.js]]
importScript('Wikipedia:AutoEd/complete.js');
importScript('User:Smith609/citations.js'); // Backlink: [[User:Smith609/citations.js]]