Greasy Fork is available in English.
A TamperMonkey addon which can help you send QQ emoji conveniently.
当前为
// ==UserScript==
// @name LuoguEmojiSender
// @namespace https://github.com/Maxmilite/LuoguEmojiSender
// @version 1.0
// @description A TamperMonkey addon which can help you send QQ emoji conveniently.
// @author Maxmilite
// @match https://www.luogu.com.cn/*
// @match http://www.luogu.com.cn/*
// ==/UserScript==
(function() {
const replaceElement = {
"/qq": "",
"/cy": "",
"/kel": "",
"/kk": "",
"/dk": "",
"/xyx": "",
"/jk": "",
"/qiang": "",
"/ruo": "",
"/ts": "",
"/yun": "",
"/yiw": "",
"/se": "",
"/px": "",
"/wq": "",
"/fad": "",
"/youl": ""
};
const prefix = "{", suffix = "}";
document.addEventListener("keypress", function () {
let sourceString = markdownPalettes.content;
for (let i in replaceElement) {
let newString = prefix + i + suffix;
sourceString = sourceString.replaceAll(newString, replaceElement[i]);
}
markdownPalettes.content = sourceString;
})
})();