Five Server - Preview Dark Theme

Dark theme for Five Server preview that excludes .html files

目前為 2025-01-15 提交的版本,檢視 最新版本

  1. /* ==UserStyle==
  2. @name Five Server - Preview Dark Theme
  3. @namespace typpi.online
  4. @version 1.0.3
  5. @description Dark theme for Five Server preview that excludes .html files
  6. @author Nick2bad4u
  7. @license UnLicense
  8. @homepageURL https://github.com/Nick2bad4u/UserStyles
  9.  
  10. @var color background-color "Background Color" #ffffff
  11. ==/UserStyle== */
  12. @-moz-document url-prefix("http://192.168.1.223:5500/"),
  13. url-prefix("https://192.168.1.223:5500/"),
  14. url-prefix("http://localhost:5500/"),
  15. url-prefix("http://127.0.0.1:5500/"),
  16. url-prefix("https://127.0.0.1:5500/")
  17. {
  18. :root {
  19. --background-color: var(background-color);
  20. }
  21.  
  22. /* Invert colors except images and videos */
  23. html,
  24. img,
  25. svg,
  26. video,
  27. iframe {
  28. filter: invert(1) hue-rotate(180deg);
  29. background: var(--background-color);
  30. }
  31.  
  32. .container {
  33. filter: invert(1) hue-rotate(180deg);
  34. }
  35. }
  36.  
  37. @-moz-document regexp(".*\.html$") {
  38. /* Invert colors except images and videos */
  39. html,
  40. img,
  41. svg,
  42. video,
  43. iframe {
  44. filter: none !important;
  45. background: unset !important;
  46. }
  47.  
  48. .container {
  49. filter: none !important;
  50. }
  51. }

QingJ © 2025

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