User:Isochrone/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. |
The accompanying .css page for this skin is at User:Isochrone/common.css. |
// 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])}}
mw.loader.load( '/w/index.php?title=User:Enterprisey/short-tab-titles.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Enterprisey/short-tab-titles.js]] // Backlink: [[User:Enterprisey/short-tab-titles.js]]
mw.loader.load( '/w/index.php?title=User:MusikAnimal/scriptManager.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:MusikAnimal/scriptManager.js]] // Backlink: [[User:MusikAnimal/scriptManager.js]]
//SCRIPT MANAGER
scriptsToManage = {
"Discussion closer" : "//en.wikipedia.org/w/index.php?title=User:DannyS712/DiscussionCloser.js&action=raw&ctype=text/javascript",
"List sorter" : "//en.wikipedia.org/w/index.php?title=User:BrandonXLF/ListSorter.js&action=raw&ctype=text/javascript",
"Draft sorter" : "//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/draft-sorter.js&action=raw&ctype=text/javascript",
"DYK helper" : "//en.wikipedia.org/w/index.php?title=User:SD0001/DYK-helper.js&action=raw&ctype=text/javascript",
"GAN helper" : "//en.wikipedia.org/w/index.php?title=User:SD0001/GAN-helper.js&action=raw&ctype=text/javascript",
"AfD Voter" : "//en.wikipedia.org/w/index.php?title=User:Awesome_Aasim/xfdvote.js&action=raw&ctype=text/javascript",
"AFC/R helper" : "//en.wikipedia.org/w/index.php?title=User:Enterprisey/AFCRHS.js&action=raw&ctype=text/javascript",
"LuckyRename" : "//en.wikipedia.org/w/index.php?title=User:Alexis_Jazz/LuckyRename.js&action=raw&ctype=text/javascript",
};
// END SM
mw.loader.load("/w/index.php?title=User:10nm/beta.js&action=raw&ctype=text/javascript");
mw.loader.load( '/w/index.php?title=User:Amorymeltzer/userinfo.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Amorymeltzer/userinfo.js]] // Backlink: [[User:Amorymeltzer/userinfo.js]]
mw.loader.load( '/w/index.php?title=User:Chlod/Scripts/UserHighlighter.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Chlod/Scripts/UserHighlighter.js]] // Backlink: [[User:Chlod/Scripts/UserHighlighter.js]]
mw.loader.load( '/w/index.php?title=User:Headbomb/unreliable.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Headbomb/unreliable.js]] // Backlink: [[User:Headbomb/unreliable.js]]
mw.loader.load( '/w/index.php?title=User:BrandonXLF/FindSources.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:BrandonXLF/FindSources.js]] // Backlink: [[User:BrandonXLF/FindSources.js]]
mw.loader.load( '/w/index.php?title=User:Pythoncoder/Scripts/voteSymbols.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Pythoncoder/Scripts/voteSymbols.js]] // Backlink: [[User:Pythoncoder/Scripts/voteSymbols.js]]
mw.loader.load( '/w/index.php?title=User:Jackmcbarn/editProtectedHelper.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Jackmcbarn/editProtectedHelper.js]]}}
mw.loader.load( '/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Evad37/rater.js]] // Backlink: [[User:Evad37/rater.js]]
//mw.loader.load( '/w/index.php?title=User:Amorymeltzer/oldafd.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Amorymeltzer/oldafd.js]] // Backlink: [[User:Amorymeltzer/oldafd.js]]
//mw.loader.load( '/w/index.php?title=User:Awesome_Aasim/editrequest.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Awesome Aasim/editrequest.js]] // Backlink: [[User:Awesome Aasim/editrequest.js]]
mw.loader.load( '/w/index.php?title=User:BrandonXLF/QuickEdit.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:BrandonXLF/QuickEdit.js]] // Backlink: [[User:BrandonXLF/QuickEdit.js]]
//mw.loader.load( '/w/index.php?title=User:DannyS712/DiscussionCloser.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:DannyS712/DiscussionCloser.js]] // Backlink: [[User:DannyS712/DiscussionCloser.js]]
//mw.loader.load( '/w/index.php?title=User:BrandonXLF/ListSorter.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:BrandonXLF/ListSorter.js]] // Backlink: [[User:BrandonXLF/ListSorter.js]]
mw.loader.load( '/w/index.php?title=User:BrandonXLF/FFUHelper.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:BrandonXLF/FFUHelper.js]] // Backlink: [[User:BrandonXLF/FFUHelper.js]]
// Little scripts that opens links on cats starting with "Files" in a new tab
if (mw.config.get('wgPageName').startsWith('Category:Files')) {
$('#mw-category-media .gallery a').each(function(i,e) {
e.target = "_blank";
});
}
// End
//mw.loader.load( '/w/index.php?title=User:BrandonXLF/MoreDiffInfo.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:BrandonXLF/MoreDiffInfo.js]] // Backlink: [[User:BrandonXLF/MoreDiffInfo.js]]
//mw.loader.load( '/w/index.php?title=User:Howcheng/quickimgdelete.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Howcheng/quickimgdelete.js]] // Backlink: [[User:Howcheng/quickimgdelete.js]]
mw.loader.load( '/w/index.php?title=User:Enterprisey/link-deleted-revs.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Enterprisey/link-deleted-revs.js]] // Backlink: [[User:Enterprisey/link-deleted-revs.js]]
mw.loader.load( '/w/index.php?title=User:SD0001/StubSorter.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:SD0001/StubSorter.js]] // Backlink: [[User:SD0001/StubSorter.js]]
//mw.loader.load( '/w/index.php?title=User:Chlod/Scripts/FoldArchives.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Chlod/Scripts/FoldArchives.js]] // Backlink: [[User:Chlod/Scripts/FoldArchives.js]]
mw.loader.load( '/w/index.php?title=User:Evad37/livenotifications.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Evad37/livenotifications.js]] // Backlink: [[User:Evad37/livenotifications.js]]
mw.loader.load( '/w/index.php?title=User:Enterprisey/rfa-count-toolbar.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Enterprisey/rfa-count-toolbar.js]] // Backlink: [[User:Enterprisey/rfa-count-toolbar.js]]
window.citeHighlighterLighterColors = true;
mw.loader.load( '/w/index.php?title=User:Novem_Linguae/Scripts/CiteHighlighter.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]] // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
//mw.loader.load( '/w/index.php?title=User:Terasail/COI_Request_Tool.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Terasail/COI_Request_Tool.js]] // Backlink: [[User:Terasail/COI_Request_Tool.js]]
mw.loader.load( '//commons.wikimedia.org/w/index.php?title=User:Rillke/SVGedit.js&action=raw&ctype=text/javascript' );
importScript('User:TheresNoTime/linkThings.js'); // Backlink: [[User:TheresNoTime/linkThings.js]]
importScript('User:Novem Linguae/Scripts/DetectSNG.js'); // Backlink: [[User:Novem Linguae/Scripts/DetectSNG.js]]
importScript('User:Firefly/more-block-info.js'); // Backlink: [[User:Firefly/more-block-info.js]]
mw.loader.load( '/w/index.php?title=User:Chlod/Scripts/Deputy.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Chlod/Scripts/Deputy.js]]
importScript('User:Awesome_Aasim/xfdvote.js'); // Backlink: [[User:Awesome_Aasim/xfdvote.js]]
importScript('User:Taavi/Unslashifier.js'); // Backlink: [[User:Taavi/Unslashifier.js]]
importScript('User:Nardog/CopyCodeBlock.js'); // Backlink: [[User:Nardog/CopyCodeBlock.js]]
importScript('User:Enterprisey/section-redir-note.js'); // Backlink: [[User:Enterprisey/section-redir-note.js]]
importScript('User:Writ Keeper/Scripts/deletionFinder.js'); // Backlink: [[User:Writ Keeper/Scripts/deletionFinder.js]]
mw.loader.load( '/w/index.php?title=User:Enterprisey/cv-revdel.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:DannyS712/copyvio-check.js'); // Backlink: [[User:DannyS712/copyvio-check.js]]
importScript('User:Þjarkur/Highlight homographs in title.js'); // Backlink: [[User:Þjarkur/Highlight homographs in title.js]]
importScript('User:Mr. Stradivarius/gadgets/Draftify.js'); // Backlink: [[User:Mr. Stradivarius/gadgets/Draftify.js]]
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
importScript('User:Evad37/OneClickArchiver.js'); // Backlink: [[User:Evad37/OneClickArchiver.js]]
mw.loader.load( '/w/index.php?title=User:Awesome_Aasim/editrequest.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Awesome_Aasim/editrequest.js]]
importScript('User:Chlod/Scripts/DummyEdit.js'); // Backlink: [[User:Chlod/Scripts/DummyEdit.js]]
importScript('User:Mesidast/Tidy_citations.js'); // Backlink: [[User:Mesidast/Tidy_citations.js]]
importScript('User:Eejit43/scripts/redirect-helper.js'); // Backlink: [[User:Eejit43/scripts/redirect-helper.js]]
importScript('User:Nardog/RefRenamer.js'); // Backlink: [[User:Nardog/RefRenamer.js]]
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]
importScript('User:BrandonXLF/HotDefaultSort.js'); // Backlink: [[User:BrandonXLF/HotDefaultSort.js]]
importScript('User:Ohconfucius/script/EngvarB.js'); // Backlink: [[User:Ohconfucius/script/EngvarB.js]]
importScript('Wikipedia:AutoEd/complete.js');