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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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