您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
hilight defrent color
// ==UserScript== // @name tower-tag // @namespace http://tampermonkey.net/ // @version 0.2 // @description hilight defrent color // @author jswh // @match https://tower.im/* // @grant none // ==/UserScript== (function () { $(document).ready(function() {change();}); $(document).on('DOMNodeInserted', function(e) { if(e.target.className == 'todos-all todos-view member-view' || e.target.className == 'todos-all todos-view list-view' || e.target.className == 'simple-filedrop') { change(); } }); function change() { $('.tag').each(function (i, tag) { $tag = $(tag); tagText = $tag.text(); switch (tagText) { case 'block-header': $todo = $tag.closest('.todo'); $todo.css({ 'margin':'10px 0', 'text-align':'center' }); $wrap = $tag.closest('.todo-wrap'); $wrap.children('.simple-checkbox').hide(); $wrap.children('.todo-detail').hide(); $wrap.children('.todo-content').css({ 'color':'#333333'}); $tag.hide(); break; case 'bug': case 'BUG': $tag.removeClass('tag'); $tag.css({ 'background-color': '#fb93b8 !important', 'color': '#fff !important', 'padding': '0.1em 0.2em', 'vertical-align': '1px', 'font-size': '82%', 'font-weight': 'normal', 'border-radius': '2px' }); break; default: break; } }); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址