hidan etc dark mode

dark mode for hidan and related domains

当前为 2024-08-14 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name hidan etc dark mode
  3. // @namespace Violentmonkey Scripts
  4. // @match *://hidan.co/*, *://fuckingfast.co/*, *://hidan.sh/*
  5. // @grant none
  6. // @run-at document-body
  7. // @description dark mode for hidan and related domains
  8. // @license MIT
  9. // @version 0.0.1.20240814162002
  10. // ==/UserScript==
  11. (function() {
  12. 'use strict';
  13.  
  14. // Create the style element
  15. var style = document.createElement('style');
  16. style.textContent = `
  17. @media (prefers-color-scheme: dark) {
  18. :root { color-scheme: dark; }
  19. a { color:#FFF!important }
  20. }
  21. `;
  22.  
  23. // Append the style element to the head
  24. document.head.insertBefore(style, document.head.firstChild);
  25. })();