您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Change the color of the username to match with the desired user color
当前为
// ==UserScript== // @name Twitter - Match username with user color // @copyright hzmen1 <[email protected]> // @version 1.7.1 // @namespace https://greasyfork.org/users/11517 // @homepageURL https://greasyfork.org/scripts/9952 // @description Change the color of the username to match with the desired user color // @match *://twitter.com/* // @include /^https?://twitter.com // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js // @grant none // @author hzmen1 // @license (CC) by-nc-sa 3.0 // @run-at document-end // ==/UserScript== (function(win){var main=function(){Array.prototype.slice.call(win.document.querySelectorAll('#page-container a.twitter-timeline-link[href*="t.co"]'),0).forEach(function(el){if(el.dataset && el.dataset.expandedUrl){el.href=el.dataset.expandedUrl;}});};main();win.onscroll=main;})(window); $("a").click(function(){someFunction();}); $(document).ready(function(){someFunction();}); setInterval(function(){someFunction()},50); function someFunction(){ $('.ProfileHeaderCard-nameLink').removeClass('u-textInheritColor'); $('.ProfileNameTruncated-link').removeClass('u-textInheritColor'); $('.ProfileNameTruncated-link').addClass('u-textUserColor'); $('.ProfileNameTruncated-link').addClass('bypassuser'); $('.ProfileNameTruncated-link').removeClass('ProfileNameTruncated-link'); $('.Icon--verified').addClass('u-textUserColor'); $('.Icon--protected').addClass('u-textUserColor'); $('.Icon--translator').addClass('u-textUserColor'); $('.twitter-atreply').removeClass('pretty-link'); $('.twitter-hashtag').removeClass('pretty-link'); $('.twitter-atreply').addClass('u-textUserColor'); $('.twitter-hashtag').addClass('u-textUserColor'); $('.avatar').addClass('u-bgUserColor'); $('.ProfileHeaderCard-location').addClass('u-textUserColor'); $('.bird-topbar-etched').addClass('u-textUserColor'); $('.DashboardProfileCard-name').addClass('u-textUserColor'); $('.Icon--person').addClass('u-textUserColor'); $('.PhotoRail-heading').addClass('u-textUserColor'); $('.ProfileHeaderCard-joinDate').addClass('u-textUserColor'); $('.ProfileHeaderCard-url').addClass('u-textUserColor'); $('.ProfileHeaderCard-birthdate').addClass('u-textUserColor'); $('.ProfileAvatar').addClass('u-borderUserColor'); $('.avatar').addClass('u-borderUserColor'); $('.DMAvatar-image').addClass('u-borderUserColor'); $('.DashboardProfileCard-avatarImage').addClass('u-borderUserColor'); $('.hovercard.profile-card .ProfileCard-avatarImage').addClass('u-borderUserColor'); }