User:Chlod/common.js

This is an old revision of this page, as edited by Chlod (talk | contribs) at 16:00, 6 September 2020 (Restoring revision 977020604 by Chlod: downgrade rw (RWv16dev)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
// === ADDITIONAL NOTES ===
// As a JavaScript developer, I might write code here that isn't
// properly documented. If you want to know what a specific part
// of my common.js does, please reach out to my on my talk page.
//
// Thank you! Have a nice day.
//
// PS: Whoever uses single quotes for strings is a monster.

// === SCRIPTS BY OTHER USERS ===
//importScript("script"); //[[script]]

importScript("User:Ed6767/redwarn.js"); // [[User:Ed6767/redwarn]]
// Use local developer build of RedWarn.
// mw.loader.load("https://redwarn.chlod.local/build.php"); //[[User:Ed6767/redwarn.js]]

importScript("User:Guywan/Scripts/12HourFormat.js"); // [[User:Guywan/Scripts/12HourFormat]]
importScript("User:Þjarkur/NeverUseMobileVersion.js"); // [[User:Þjarkur/NeverUseMobileVersion]]
importScript("User:Evad37/EditWarChecker.js"); // [[User:Evad37/EditWarChecker]]
importScript("User:BrandonXLF/QuickEdit.js"); // [[User:BrandonXLF/QuickEdit]]
importScript("User:Mxn/CommentsInLocalTime.js"); // [[User:Mxn/CommentsInLocalTime]]
importScript("User:Mvolz/displayContributions.js"); //[[User:Mvolz/displayContributions]]
importScript("User:Anne drew Andrew and Drew/PageDetails.js"); //[[User:Anne drew Andrew and Drew/PageDetails]]
importScript("User:Enterprisey/fancy-diffs.js"); //[[User:Enterprisey/fancy-diffs]]
importScript("User:Amorymeltzer/userinfo.js"); //[[User:Amorymeltzer/userinfo]]
importScript("User:Enterprisey/reply-link.js"); //[[User:Enterprisey/reply-link]]
importScript("User:Evad37/rename editors.js"); //[[User:Evad37/rename editors.js]]

// === STYLESHEETS BY OTHER USERS ===

importStylesheet("User:BrandonXLF/FloatHead.css"); // [[User:BrandonXLF/FloatHead]]
importStylesheet("User:BrandonXLF/GreenRedirects.css"); // [[User:BrandonXLF/GreenRedirects]]

// === EVERYTHING BELOW THIS POINT WAS WRITTEN BY "Chlod" ===
// I take responsibility for whatever is written below this section, including sublinks.

importScript("User:Chlod/Scripts/RCP-CV_Quicklink.js"); // [[User:Chlod/Scripts/RCP-CV Quicklink]]
importScript("User:Chlod/Scripts/UserHighlighter.js"); // [[User:Chlod/Scripts/UserHighlighter]]
importScript("User:Chlod/Scripts/DirectPDFDownload.js"); // [[User:Chlod/Scripts/DirectPDFDownload]]
importScript("User:Chlod/Scripts/GlobalUserToolbox.js"); // [[User:Chlod/Scripts/GlobalUserToolbox]]

// Open Media Viewer links in new tabs.
$(document).click((function (click_event) {
	if (click_event.target.className === ("mw-mmv-stripe-button mw-mmv-description-page-button "
		+ "mw-ui-big mw-ui-button mw-ui-progressive mw-mmv-repo-button-commons")) {
		click_event.target.setAttribute("target", "_blank");
		}
}));

// Load my testing script from my website
mw.loader.load("https://wiki.chlod.net/userscripts/wiki_test_userscript.js");

// END