您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Copy emotes from twitch(7tv) and 7tv(website) convert to post on discord
// ==UserScript== // @name Copy to discord // @namespace Violentmonkey Scripts // @match https://www.twitch.tv/* // @match https://7tv.app/emotes/* // @grant none // @version 1.0 // @run-at document-end // @author Pipos https://discord.com/users/375407448795774976 // @description Copy emotes from twitch(7tv) and 7tv(website) convert to post on discord // ==/UserScript== (function() { function checkClipboard() { navigator.clipboard.readText().then(function(text) { let regex = /https:\/\/cdn\.7tv\.app\/emote\/([a-f0-9]+)\/(1|2|3|4)x\.(avif|webp)/g; let modifiedText = text.replace(regex, 'https://cdn.7tv.app/emote/$1/2x.gif'); if (modifiedText !== text) { navigator.clipboard.writeText(modifiedText).then(function() { return }); } }); } setInterval(checkClipboard, 200); })();