Galaxy CSS

a cool CSS for suroi i will work on it :)

  1. // ==UserScript==
  2. // @name Galaxy CSS
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description a cool CSS for suroi i will work on it :)
  6. // @author Mr.Penguin
  7. // @match https://suroi.io/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. document.getElementById('splash-ui').style.backgroundImage = 'none';
  15.  
  16. var video = document.createElement('video');
  17. video.src = 'https://cdn.discordapp.com/attachments/1129277020661100605/1228264588596744263/vecteezy_small-particles-and-stars-moving-on-galaxy_2017224.mp4?ex=662b6989&is=6618f489&hm=81319591c10452d2c6f274c13a0db2fc1c4e8535e3cdd0e8493bd8b5b592b29e';
  18. video.loop = true;
  19. video.muted = true;
  20. video.autoplay = true;
  21. video.style.position = 'fixed';
  22. video.style.top = '0';
  23. video.style.left = '0';
  24. video.style.width = '100%';
  25. video.style.height = '100%';
  26. video.style.objectFit = 'cover';
  27. video.style.zIndex = '-1';
  28. video.style.pointerEvents = 'none';
  29.  
  30. document.getElementById('splash-ui').appendChild(video);
  31.  
  32. var normalColor = '#0077cc';
  33. var settingsColor = '#006699';
  34. var healthBarColor = '#004466';
  35.  
  36. function applyButtonStyles(btn) {
  37. btn.style.backgroundColor = normalColor;
  38. btn.style.color = '#ffffff';
  39. btn.style.borderColor = normalColor;
  40.  
  41. btn.addEventListener('mousedown', function() {
  42. btn.style.backgroundColor = normalColor;
  43. });
  44.  
  45. btn.addEventListener('mouseup', function() {
  46. btn.style.backgroundColor = normalColor;
  47. });
  48. }
  49.  
  50. var btnPlaySolo = document.getElementById('btn-play-solo');
  51. var btnPlayDuo = document.getElementById('btn-play-duo');
  52. var btnSettings = document.getElementById('btn-settings');
  53. var btnCustomize = document.getElementById('btn-customize');
  54.  
  55. applyButtonStyles(btnPlaySolo);
  56. applyButtonStyles(btnPlayDuo);
  57. applyButtonStyles(btnSettings);
  58. applyButtonStyles(btnCustomize);
  59.  
  60. applyButtonStyles(btnSettings);
  61.  
  62. var dialogHeader = document.querySelector('.dialog-header');
  63. dialogHeader.style.backgroundColor = settingsColor;
  64.  
  65. var healthBar = document.getElementById('health-bar');
  66. healthBar.style.setProperty('background-color', healthBarColor, 'important');
  67. })();

QingJ © 2025

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