Twitch Rainbow Background

Adds a rainbow gradient background to Twitch

  1. // ==UserScript==
  2. // @name Twitch Rainbow Background
  3. // @namespace http://tampermonkey.net/
  4. // @version V1
  5. // @description Adds a rainbow gradient background to Twitch
  6. // @author You
  7. // @match https://www.twitch.tv/*
  8. // @grant GM_addStyle
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Add a CSS rule for the rainbow background
  15. GM_addStyle(`
  16. body {
  17. background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #00ff00, #00b0ff, #8a00ff, #ff00cc, #ff0000);
  18. background-size: 300% 300%;
  19. animation: rainbowBackground 10s ease infinite;
  20. height: 100%;
  21. margin: 0;
  22. color: white; /* Adjust text color for better contrast */
  23. }
  24.  
  25. @keyframes rainbowBackground {
  26. 0% { background-position: 0% 50%; }
  27. 50% { background-position: 100% 50%; }
  28. 100% { background-position: 0% 50%; }
  29. }
  30. `);
  31. })();

QingJ © 2025

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