Drawaria Ultimate Chaos

Replaces all text and form values with random bad words on Drawaria

当前为 2025-03-09 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Drawaria Ultimate Chaos
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Replaces all text and form values with random bad words on Drawaria
// @author       YouTubeDrawaria
// @match        https://drawaria.online/*
// @grant        none
// @license      MIT
// @icon         https://drawaria.online/avatar/cache/86e33830-86ea-11ec-8553-bff27824cf71.jpg
// @run-at       document-end
// ==/UserScript==

(function() {
  'use strict';

  // List of bad words
  const badWords = [
    'fuck', 'shit', 'ass', 'dick', 'cunt', 'pussy', 'bitch', 'hell', 'damn', 'bastard',
    'cock', 'twat', 'stupid', 'spic', 'chink', 'retard', 'cuntface', 'fucktard',
    // Keep adding more offensive words, you disgusting human
  ];

  // Get a random bad word
  function getRandomBadWord() {
    return badWords[Math.floor(Math.random() * badWords.length)];
  }

  // Function to replace text and form values with bad words
  function replaceTextAndFormValues(node) {
    if (node.nodeType === Node.TEXT_NODE) {
      node.textContent = getRandomBadWord();
    } else if (node.nodeType === Node.ELEMENT_NODE) {
      if (node.tagName.toLowerCase() === 'input' && node.getAttribute('type') !== 'submit') {
        node.setAttribute('value', getRandomBadWord());
        node.setAttribute('placeholder', getRandomBadWord());
      }
      for (let i = 0; i < node.childNodes.length; i++) {
        replaceTextAndFormValues(node.childNodes[i]);
      }
    }
  }

  // MutationObserver to watch for dynamic content
  const observer = new MutationObserver(() => {
    replaceTextAndFormValues(document.body);
  });

  // Initial replacement
  replaceTextAndFormValues(document.body);

  // Start observing changes
  observer.observe(document.body, { childList: true, subtree: true });
})();