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

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

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