您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replace emojis with traditional text emoticons
// ==UserScript== // @name emoji2emoticon // @namespace http://tampermonkey.net/ // @version 0.0.2 // @description Replace emojis with traditional text emoticons // @author huberatelier // @match *://*/* // @icon https://github.com/huberatelier/huberatelierThemes/blob/main/emoji2emoticon/lolicon.png?raw=true // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const emojers = { '😀': ' :D ', '😃': ' =D ', '😄': ' ^_^ ', '😁': ' ^_^V ', '😆': ' xD ', '😅': ' ^_^\' ', '😂': ' LOL ', '🙂': ' :) ', '🙃': ' (: ', '😉': ' ;) ', '😊': ' ^_^ ', '😇': ' O:-) ', '😍': ' <3 ', '😘': ' :-* ', '😗': ' :-* ', '☺️': ' ^_^ ', '😚': ' :-* ', '😙': ' ;-* ', '😋': ' :p ', '😛': ' :P ', '😜': ' ;P ', '😝': ' :p ', '🤑': ' $.$ ', '🤗': ' \\(^_^)/ ', '🤔': ' :-? ', '🤐': ' :-X ', '😐': ' :| ', '😑': ' :| ', '😶': ' : ', '😏': ' ¬‿¬ ', '😒': ' ¬⁔¬ ', '🙄': ' -_- ', '😬': ' :E ', '😌': ' ^_^\' ', '😔': ' :\\ ', '😪': ' |-O ', '😴': ' (-O-) ', '😷': ' :() ', '🤒': ' :###.. ', '🤕': ' @_@ ', '😵': ' %) ', '😎': ' B) ', '🤓': ' 8) ', '😕': ' :/ ', '😟': ' D: ', '🙁': ' :( ', '☹️': ' :C ', '😮': ' :o ', '😯': ' :o ', '😲': ' :o ', '😳': ' ://) ', '😦': ' :(', '😧': ' D: ', '😨': ' D: ', '😰': ' D: ', '😥': ' ^_^\' ', '😢': ' T_T ', '😭': ' T_T ', '😱': ' :-o ', '😖': ' ://{ ', '😣': ' >_< ', '😞': ' ://( ', '😓': ' ^_^\' ', '😩': ' D; ', '😫': ' 囧 ', '😤': ' >_< ', '😡': ' >_< ', '😠': ' >_< ', '😈': ' >:D ', '👿': ' >:( ', '💀': ' 8-X ' }; const emojiregex = new RegExp(Object.keys(emojers).join('|'), 'g'); function replacetext(node) { const original = node.nodeValue; const replaced = original.replace(emojiregex, match => emojers[match]); if (replaced !== original) { node.nodeValue = replaced; } } function replaceall() { const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT, null, false); const nodes = []; let node; while (node = walker.nextNode()) { nodes.push(node); } nodes.forEach(replacetext); } window.addEventListener('load', replaceall); const observer = new MutationObserver(() => { clearTimeout(observer.timeout); observer.timeout = setTimeout(replaceall, 100); }); observer.observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址