User:Enbi/scripts/LAC.js

User:Enbi/scripts/LAC.js

← Previous revision Revision as of 20:58, 18 April 2026
Line 74: Line 74:
srgLink.style.color = '#ff0077';
srgLink.style.color = '#ff0077';
srgLink.style.fontWeight = 'bold';
srgLink.style.fontWeight = 'bold';
srgLink.addEventListener('click', async () => await requestLock(prettyUser, srgLink));
srgLink.addEventListener('click', async () => {
if (mw.config.get('wgSkin') === 'minerva') {
if (confirm(`Are you sure you want to request a lock for ${prettyUser}?`)) {
await requestLock(prettyUser, srgLink);
}
} else {
await requestLock(prettyUser, srgLink);
}
});
li.append(' ', srgLink);
li.append(' ', srgLink);