User:Hidden Lemon/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:Hidden Lemon/common.css. |
// 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]]