您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Клоунский скрипт
// ==UserScript== // @name Randomize font! // @namespace http://tampermonkey.net/ // @version 0.1 // @description Клоунский скрипт // @author Fenion // @match https://anichat.ru/ // @icon https://www.google.com/s2/favicons?sz=64&domain=anichat.ru // @grant none // ==/UserScript== const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min); const boldNames = ['bold', 'heavybold', 'ital', 'boldital', 'heavyital', '']; const injectToSendMessage = () => { const origin = window.processChatPost; window.processChatPost = (...args) => { const colorInt = randomInt(0, 32); const fontInt = randomInt(0, 7); const boldInt = randomInt(0, 5); fetch('/system/action_profile.php', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' }, body: new URLSearchParams({ save_color: !colorInt ? '': 'bcolor' + colorInt, save_bold: boldNames[randomInt(0, boldNames.length - 1)], save_font: !fontInt ? '': 'bfont' + fontInt, token: window.utk, }) }) .catch(console.error) .finally(() => origin(...args)); }; }; (function () { 'use strict'; injectToSendMessage(); })();