Jump to content

User:Hidden Lemon/common.js

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Hidden Lemon (talk | contribs) at 04:40, 6 February 2021 (Disabling User:Þjarkur/Highlight recently added text.js (script-installer)). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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.
// Signautre timestamps converted to local time with custom format
window.LocalComments = {
    dateDifference: true,
    dateFormat: 'mdy',
    dayOfWeek: false,
    dropDays: 45,
    dropMonths: 12,
    timeFirst: true,
    twentyFourHours: false,
};
window.LocalComments = $.extend(window.LocalComments, {
	enabled: true,
	formats: {
		day: function (then) { return then.calendar({
			sameDay: 'LT',
			lastDay: '[Yesterday –] LT'
			});
		},
		week: function (then) { return then.calendar({
			sameDay: '[Today –] LT',
			nextDay: '[Tomorrow] [–] LT',
			nextWeek: '[Next] dddd [–] LT',
			lastDay: '[Yesterday –] LT',
			lastWeek: 'dddd [–] LT',
			});
		},
		other: "ll [–] LT",
	},
	tooltipFormats: [
		function (then) { return then.fromNow(); },
		"LLLL",
		"YYYY-MM-DDTHH:mmZ",
	],
});
importScript('User:Mxn/CommentsInLocalTime.js'); // Backlink: [[User:Mxn/CommentsInLocalTime.js]]

// Live clock gadget in personal toolbar
window.LiveClockTimeZone = 'America/Chicago';

// Insert {{delsort}} categories to AfD discussion pages that are not show in Twinkle
importScript('User:Enterprisey/delsort.js'); // Backlink: [[User:Enterprisey/delsort.js]]

// Add link to left sidebar for Source Assessment Table generation
importScript('User:DannyS712/SATG.js'); // Backlink: [[User:DannyS712/SATG.js]]

// Auto-collapse lists of transcluded edit discussions
//importScript('User:Gary/nominations viewer.js'); // Backlink: [[User:Gary/nominations viewer.js]]

// Add "reply" links after user signatures to quickly reply via popup form
//importScript('User:Enterprisey/reply-link.js'); // Backlink: [[User:Enterprisey/reply-link.js]]

// Highlight text added since last visit in current browser (ex mainspace)
//importScript('User:Þjarkur/Highlight recently added text.js'); // Backlink: [[User:Þjarkur/Highlight recently added text.js]]
window.highlightRecentlyAddedTextSettings = {
  color: 'rgba(108, 255, 18, 0.09)', // Faint green
  useInMainspace: false,
}

// Archy McArchFace: a script to easily archive talk page discussions
mw.loader.load( '/w/index.php?title=User:%CE%A3/Testing_facility/Archiver.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Σ/Testing facility/Archiver]]