User:Kovcszaln6/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump.
This code will be executed when previewing this page.
This code will be executed when previewing this page.
The accompanying .css page for this skin is at User:Kovcszaln6/common.css.
// Enable caching for resource loads, see [[User:SD0001/Making_user_scripts_load_faster]], @revision 8
if(!/\bnocache=\b/.test(location.href)){let e=mw.config.values,t="text/javascript",o="text/css",n=(n,r,i)=>(n=n.replace(/special:mypage/i,"User:"+e.wgUserName),$.get("https://"+r+"/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+'"@'+r+": unprotected page");let e=a.revisions[0].content;if(i&&i!==t||"javascript"!==a.contentmodel){if(i!==o||"css"!==a.contentmodel)return $.Deferred().reject('Refused to load "'+n+'"@'+r+": content type mismatch");mw.loader.addStyleTag(e)}else{let t=document.createElement("script");t.innerHTML=e,document.head.appendChild(t)}}}))),r=e.wgServerName,i=e=>{let t=/^(?:(?:https:)?\/\/(.*))?\/w\/index.php/.exec(e),o=/\btitle=([^=?&]*)/.exec(e);return t&&o&&/\baction=raw\b/.test(e)&&/\bctype=/.test(e)?[o[1],t[1]||r]:null};window.importScript=e=>{n(encodeURIComponent(e),r,t)},window.importStyleSheet=e=>{n(encodeURIComponent(e),r,o)};let a=mw.loader.load;mw.loader.load=function(e,t){let o=i(e);o?n(o[0],o[1],t):a.apply(mw.loader,[...arguments])};let l=mw.loader.getScript;mw.loader.getScript=function(e){let o=i(e);return o?n(o[0],o[1],t):l.apply(mw.loader,[...arguments])}}
const ns = mw.config.get('wgNamespaceNumber');
const SPECIAL = -1;
const MAIN = 0;
const TALK = 1;
const USER = 2;
const USERTALK = 3;
const TEMPLATETALK = 11;
const DRAFT = 118;
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User%3AJon_Harald_S%C3%B8by%2Fdiffedit.js&action=raw&ctype=text/javascript'); // [[m:User:Jon Harald Søby/diffedit.js]]
importScript('User:DannyS712/SATG.js'); // Backlink: [[User:DannyS712/SATG.js]]
importScript('User:Enterprisey/diff-permalink.js'); // Backlink: [[User:Enterprisey/diff-permalink.js]]
importScript('User:Andrybak/Scripts/Unsigned helper.js'); // Backlink: [[User:Andrybak/Scripts/Unsigned helper.js]]
importScript('User:Cyberdog958/Scripts/Superlinks.js'); // Backlink: [[User:Cyberdog958/Scripts/Superlinks.js]]
importScript('User:Awesome Aasim/linkinfo.js'); // Backlink: [[User:Awesome Aasim/linkinfo.js]]
importScript('User:SD0001/W-Ping.js'); // Backlink: [[User:SD0001/W-Ping.js]]
importScript('User:Þjarkur/Highlight homographs in title.js'); // Backlink: [[User:Þjarkur/Highlight homographs in title.js]]
importScript('User:Daniel Quinlan/Scripts/UserHighlighter.js'); // Backlink: [[User:Daniel Quinlan/Scripts/UserHighlighter.js]]
mw.loader.load( '/w/index.php?title=User:Ingenuity/AntiVandal.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Ingenuity/AntiVandal.js]]
importScript('User:Red-tailed hawk/SATG CORP.js'); // Backlink: [[User:Red-tailed hawk/SATG CORP.js]]
if (ns === MAIN || ns === USER || ns === DRAFT) {
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:Evad37/duplinks-alt.js'); // Backlink: [[User:Evad37/duplinks-alt.js]]
importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: [[User:SuperHamster/CiteUnseen.js]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
importScript('User:Novem Linguae/Scripts/DetectSNG.js'); // Backlink: [[User:Novem Linguae/Scripts/DetectSNG.js]]
importScript('User:Novem Linguae/Scripts/WatchlistAFD.js'); // Backlink: [[User:Novem Linguae/Scripts/WatchlistAFD.js]]
importScript('User:Novem Linguae/Scripts/DraftCleaner.js'); // Backlink: [[User:Novem Linguae/Scripts/DraftCleaner.js]]
importScript('User:Polygnotus/DuplicateReferences.js'); // Backlink: [[User:Polygnotus/DuplicateReferences.js]]
importScript('User:The Earwig/copyvios.js'); // Backlink: [[User:The Earwig/copyvios.js]]
importScript('User:Scaledish/Scripts/404.js'); // Backlink: [[User:Scaledish/Scripts/404.js]]
importScript('User:Novem Linguae/Scripts/NPPLinks.js'); // Backlink: [[User:Novem Linguae/Scripts/NPPLinks.js]]
//importScript('User:Sophisticatedevening/LLMslop.js'); // Backlink: [[User:Sophisticatedevening/LLMslop.js]]
importScript('User:GrabUp/External Links Remover.js'); // Backlink: [[User:GrabUp/External Links Remover.js]]
importScript('User:Novem Linguae/Scripts/SpeciesHelper.js'); // Backlink: [[User:Novem Linguae/Scripts/SpeciesHelper.js]]
if (ns === MAIN) {
//importScript('User:GoldenRing/wordcount.js'); // Backlink: [[User:GoldenRing/wordcount.js]]
importScript('User:1AmNobody24/Find Link.js'); // Backlink: [[User:1AmNobody24/Find Link.js]]
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
importScript('User:AndyZ/peerreviewer.js'); // Backlink: [[User:AndyZ/peerreviewer.js]]
importScript('User:Wugapodes/Capricorn.js'); // Backlink: [[User:Wugapodes/Capricorn.js]]
importScript('User:DannyS712/copyvio-check.js'); // Backlink: [[User:DannyS712/copyvio-check.js]]
importScript('User:Writ Keeper/Scripts/deletionFinder.js'); // Backlink: [[User:Writ Keeper/Scripts/deletionFinder.js]]
importScript('User:Novem Linguae/Scripts/ReviewStatus.js'); // Backlink: [[User:Novem Linguae/Scripts/ReviewStatus.js]]
importScript('User:DannyS712/deOrphan.js'); // Backlink: [[User:DannyS712/deOrphan.js]]
importScript('User:Danski454/stubsearch.js');
}
}
if (ns === MAIN || ns === TALK) {
importScript('User:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]
if (ns === TALK) {
importScript('User:Novem Linguae/Scripts/GANReviewTool.js'); // Backlink: [[User:Novem Linguae/Scripts/GANReviewTool.js]]
}
}
if (ns === TALK || ns === TEMPLATETALK) {
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Backlink: [[User:Jackmcbarn/editProtectedHelper.js]]
importScript('User:Terasail/COI_Request_Tool.js'); // Backlink: [[User:Terasail/COI_Request_Tool.js]]
}
if (ns === SPECIAL) {
importScript('User:Novem Linguae/Scripts/UserRightsDiff.js'); // Backlink: [[User:Novem Linguae/Scripts/UserRightsDiff.js]]
importScript('User:DreamRimmer/Search sort.js'); // Backlink: [[User:DreamRimmer/Search sort.js]]
importScript('User:Daniel Quinlan/Scripts/Unfiltered.js'); // Backlink: [[User:Daniel Quinlan/Scripts/Unfiltered.js]]
}