User:Mesidast/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])}}

mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer%3ATMg%2FautoFormatter.js&action=raw&ctype=text/javascript');
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // Backlink: [[User:Ohconfucius/script/MOSNUM dates.js]]
//importScript('User:BrownHairedGirl/BareURLinline.js'); // Backlink: [[User:BrownHairedGirl/BareURLinline.js]]
//importScript('User:Ohconfucius/dashes.js'); // Backlink: [[User:Ohconfucius/dashes.js]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
mw.loader.load('/w/index.php?title=User:Evad37/duplinks-alt.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Evad37/duplinks-alt.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ANardog%2FMoveHistory.js&action=raw&ctype=text/javascript');
importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: [[User:SuperHamster/CiteUnseen.js]]
importScript('User:DaxServer/BooksToSfn.js'); // Backlink: [[User:DaxServer/BooksToSfn.js]]
importScript('User:Tol/VECN.js'); // Backlink: [[User:Tol/VECN.js]]
importScript('User:Taavi/Aligner.js'); // Backlink: [[User:Taavi/Aligner.js]]
importScript('User:Mesidast/Tidy citations.js'); // Backlink: [[User:Mesidast/Tidy citations.js]]
//importScript('User:Mesidast/Fix ITN Talk.js'); // Backlink: [[User:Mesidast/Fix ITN Talk.js]]
//importScript('User:Meteor sandwich yum/Tidy citations.js'); // Backlink: [[User:Meteor sandwich yum/Tidy citations.js]]
//importScript('User:Ohconfucius/script/EngvarB.js'); // Backlink: [[User:Ohconfucius/script/EngvarB.js]]
//importScript('User:Ohconfucius/script/formatgeneral.js'); // Backlink: [[User:Ohconfucius/script/formatgeneral.js]]
//importScript('User:Ohconfucius/script/Sources.js'); // Backlink: [[User:Ohconfucius/script/Sources.js]]
//importScript('User:Ohconfucius/script/Common Terms.js'); // Backlink: [[User:Ohconfucius/script/Common Terms.js]]
//importScript('User:Mesidast/Sandbox.js'); // Backlink: [[User:Mesidast/Sandbox.js]]
importScript('User:BrandonXLF/CitationStyleMarker.js'); // Backlink: [[User:BrandonXLF/CitationStyleMarker.js]]
//importScript('User:PleaseStand/segregate-refs.js'); // Backlink: [[User:PleaseStand/segregate-refs.js]]
//importScript('User:GorillaWarfare/script/curlies.js'); // Backlink: [[User:GorillaWarfare/script/curlies.js]]
importScript('User:Venkat TL/ColourContrib.js'); // Backlink: [[User:Venkat TL/ColourContrib.js]]
importScript('User:Mesidast/Curly Quotes.js'); // Backlink: [[User:Mesidast/Curly Quotes.js]]
importScript('User:Mesidast/EnDash To Clipboard.js'); // Backlink: [[User:Mesidast/EnDash To Clipboard.js]]
importScript('User:Dr pda/editrefs.js'); // Backlink: [[User:Dr pda/editrefs.js]]
//importScript('User:Alex 21/script-functions.js'); // Backlink: [[User:Alex 21/script-functions.js]]
//importScript('User:Alex 21/script-categoriessort.js'); // Backlink: [[User:Alex 21/script-categoriessort.js]]
importScript('User:Trappist the monk/HarvErrors.js'); // Backlink: [[User:Trappist the monk/HarvErrors.js]]
importScript('User:Nardog/RefRenamer.js'); // Backlink: [[User:Nardog/RefRenamer.js]]