您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces the alert message with a custom message
// ==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 }); })();