MediaWiki:Common.js: Difference between revisions

From New England Defenses
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
alert("Website maintenance will take place October 28th, 2023");
alert("Website maintenance will take place October 28th, 2023");
document.addEventListener('contextmenu', function(e) {
    e.preventDefault(); // Prevents the browser's default right-click menu from appearing
    var notification = new Notification('Right Click Detected!');
});

Revision as of 17:13, 26 October 2023

/* Any JavaScript here will be loaded for all users on every page load. */
alert("Website maintenance will take place October 28th, 2023");

document.addEventListener('contextmenu', function(e) {
    e.preventDefault(); // Prevents the browser's default right-click menu from appearing
    var notification = new Notification('Right Click Detected!');
});