您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
fix twitter selection not working
// ==UserScript== // @name twitter fix select style // @namespace http://tampermonkey.net/ // @version 2024-05-17 // @description fix twitter selection not working // @author You // @match https://twitter.com/* // @match https://x.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com // @grant none // @license MIT // ==/UserScript== (async()=>{ let scr=document.head.querySelector("#draftjs-styles") while(!scr){ await new Promise(res=>setTimeout(res,10)) scr=document.head.querySelector("#draftjs-styles") } scr.textContent=scr.textContent.replace("div:only-child > .public-DraftStyleDefault-block::selection {\n background: transparent;\n","div:only-child > .public-DraftStyleDefault-block::selection {\n background: rgb(29, 155, 240);\n") })()