Custom Syntax Alert

Replaces the alert message with a custom message

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Custom Syntax Alert
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Replaces the alert message with a custom message
// @author       duckckckckck
// @match        https://www.syntax.eco/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    function replaceMessage() {
        var element = document.getElementById('websitewidemessage');
        if (element) {
            var newMessage = getRandomMessage();
            element.innerHTML = '<p>' + newMessage + '</p>';
        }
    }

    function getRandomMessage() {
        var messages = [
            "OOPSIE WOOPSIE!! Uwu We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!"
            // add more shit if u want lol
        ];

        var randomIndex = Math.floor(Math.random() * messages.length);
        return messages[randomIndex];
    }

    replaceMessage();

    var observer = new MutationObserver(replaceMessage);
    observer.observe(document.body, { childList: true, subtree: true });
})();