// <nowiki>
// Fork of [[User:Novem Linguae/Scripts/CWWEditSummary.js]]
$(async function () {
const action = mw.config.get('wgAction');
let title = mw.config.get('wgPageName').replace(/_/g, ' ');
const wiki = mw.config.get('wgDBname');
if (action === 'edit' || action === 'submit') {
$('.editCheckboxes > .oo-ui-layout').append('<div><a style="padding: 4px; text-decoration: underline;" id="SetSummary">+NOV24</a></div>');
$('#SetSummary').on('click', function () {
$('#wpSummary').val('#NOV24 - Adding reference(s) for [[WP:NOV24]] drive');
});
}
if (title === 'Special:Import') {
$('#mw-input-wpintro').parent(3).after('<div style="margin-top: 0.7em;"><a style="background-color: rgba(255, 255, 0, 0.4); padding: 4px; text-decoration: underline;" id="SetSummarySpecialImport">+NOV24</a></div>');
$('#SetSummarySpecialImport').on('click', function () {
$('#log-comment').val('#NOV24 - Adding reference(s) for [[WP:NOV24]] drive');
});
}
});
// </nowiki>