// ==UserScript== // @name WikiFur Text Replacement // @namespace https://example.com/wikifur-replace // @version 1.0 // @description Replace a specific word in the editor textarea and set edit summary // @match https://en.wikifur.com/* // @grant none // ==/UserScript== (function () { 'use strict'; // ===== CONFIGURATION ===== const fromWord = 'fursona'; const toWord = 'soysona'; const editSummary = `Text replacement - ${fromWord} to ${toWord}`; // ========================= window.addEventListener('load', () => { const textarea = document.getElementById('wpTextbox1'); const summaryInput = document.getElementById('wpSummary'); if (!textarea) return; // Create a global, case-sensitive regex const regex = new RegExp(fromWord, 'g'); textarea.value = textarea.value.replace(regex, toWord); if (summaryInput) { summaryInput.value = editSummary; } }); })();