AutoPhy

Remplace les fi/phi/si/s'il/ci par PhY. Mettre <> en début de message pour désactiver pendant 30 secondes le script

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

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

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.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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==
// @author Askidox
// @name AutoPhy
// @description Remplace les fi/phi/si/s'il/ci par PhY. Mettre <> en début de message pour désactiver pendant 30 secondes le script
// @version  1.5
// @grant none
// @match https://s1.abyssus.games/*
// @include https://s1.abyssus.games/*
// @namespace https://greasyfork.org/users/190016
// ==/UserScript==

if (location.href.indexOf("cgnew") * location.href.indexOf("chat") < 0) main();
var nop = false;
function main(){
    try {if (/^<>/.test(document.getElementById("message").value)){
        document.getElementById("message").value = document.getElementById("message").value.replace(/^<>/, "");
        nop = true;
    } else {
        document.getElementById("message").value = document.getElementById("message").value.replace(/(?:fi)|(?:phi)|(?:si)|(?:s'i)|(?:ci)/gi, "PhY");
    }
        } catch (e) {}
    if (nop){
        nop = false;
        setTimeout(main, 60000);
    } else {
        setTimeout(main, 500);
    }
}