煎蛋彩色名字

彩色名字

  1. // ==UserScript==
  2. // @name 煎蛋彩色名字
  3. // @version 1.0
  4. // @icon http://cdn.jandan.net/static/img/favicon.ico
  5. // @description 彩色名字
  6. // @author kasusa
  7. // @match http*://jandan.net/*
  8. // @match http*://i.jandan.net/*
  9. // @grant GM_setValue
  10. // @grant GM_getValue
  11. // @grant GM_deleteValue
  12. // @grant GM_addStyle
  13. // @grant GM_registerMenuCommand
  14. // @namespace https://gf.qytechs.cn/users/734613
  15. // ==/UserScript==
  16.  
  17. (function() {
  18.  
  19. var username = respond.textContent.split(',')[0];
  20. const style = document.createElement('style');
  21. style.textContent = `
  22. .rainbow-text {
  23. width: 200%;
  24. background-color: #4158D0;
  25. background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
  26.  
  27. -webkit-text-fill-color: transparent;
  28. background-clip: text;
  29. background-size: 200% 100%;
  30. animation: maskedAnimation 10s infinite linear;
  31. }
  32.  
  33. @keyframes maskedAnimation {
  34. 0% {
  35. background-position: 0 0;
  36. }
  37.  
  38. 50% {
  39. background-position: 100% 0;
  40. }
  41.  
  42. 100% {
  43. background-position: 0 0;
  44. }
  45. }
  46.  
  47. `;
  48. document.head.appendChild(style);
  49. document.querySelectorAll("strong").forEach(element => {
  50. if (element.textContent.trim() === username) {
  51. element.classList.add('rainbow-text');
  52. }});
  53.  
  54. })();

QingJ © 2025

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