Twitter - Match username with user color

Change the color of the username to match with the desired user color

目前為 2015-10-03 提交的版本,檢視 最新版本

// ==UserScript==
// @name           Twitter - Match username with user color
// @copyright      hzmen1 <[email protected]>
// @version        1.7.1
// @namespace      https://gf.qytechs.cn/users/11517
// @homepageURL    https://gf.qytechs.cn/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');
$('.ThreadedConversation-tweet:after').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');
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址