您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
return 140 char highlighting to twitter
// ==UserScript== // @name twitter 140 char highlighting // @namespace http://tampermonkey.net/ // @version 0.3 // @description return 140 char highlighting to twitter // @author ashleyjames.xyz // @match https://twitter.com/* // @grant none // ==/UserScript== (function() { 'use strict'; var textdiv = document.getElementById('tweet-box-home-timeline'); var otherdiv = document.getElementById('tweet-box-global'); textdiv.onkeyup = function(){ var str = textdiv.innerText; if (str.length > 140){ textdiv.style.backgroundColor = "#faa"; } else if (str.length <= 140){ textdiv.style.backgroundColor = "#fff"; } }; otherdiv.onkeyup = function(){ var otherstr = otherdiv.innerText; if (otherstr.length > 140){ otherdiv.style.backgroundColor = "#faa"; } else if (otherstr.length <= 140){ otherdiv.style.backgroundColor = "#fff"; } }; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址