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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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);
    }
}