您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
通过快捷键Ctrl+Alt+C来在无Emoji的情况下拷贝。
// ==UserScript== // @name 拷贝去除Emoji // @namespace http://tampermonkey.net/ // @version 1.2 // @description 通过快捷键Ctrl+Alt+C来在无Emoji的情况下拷贝。 // @author Cedaros // @match *://* // @match https://*.bilibili.com/* // @icon https://s1.328888.xyz/2022/08/11/6jrQy.png // @grant none // @license MIT // ==/UserScript== function copyContent(value,type="input"){ const input=document.createElement(type); input.setAttribute("readonly","readonly"); input.value=value;console.log(value); document.body.appendChild(input); input.setSelectionRange(0,9999); input.select(); document.execCommand("copy"); document.body.removeChild(input); } document.onkeydown=function(e){ if(e.ctrlKey&&e.altKey&&e.keyCode==67){ var nt=""; var tt=window.getSelection(0).toString(); for(var i=0;i<tt.length;i++){ if(tt.charCodeAt(i)>=32&&tt.charCodeAt(i)<=126)nt+=tt.charAt(i); } copyContent(nt); } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址