[银河奶牛]UI优化:无边框主题样式

[银河奶牛]通过微调渲染参数和注入 CSS 样式,自动将用户界面转换为无边框主题,无缝实现界面现代化并提升沉浸体验。

  1. // ==UserScript==
  2. // @name:en [MWI]UI Optimization: Borderless Theme Style
  3. // @name [银河奶牛]UI优化:无边框主题样式
  4. // @namespace https://github.com/shenhuanjie
  5. // @version 1.0.4
  6. // @description:en This script auto-converts UIs to borderless themes via rendering parameter tweaks and CSS injection, seamlessly modernizing interfaces for immersive experiences.
  7. // @description [银河奶牛]通过微调渲染参数和注入 CSS 样式,自动将用户界面转换为无边框主题,无缝实现界面现代化并提升沉浸体验。
  8. // @author shenhuanjie
  9. // @match https://www.milkywayidle.com/game*
  10. // @icon https://www.milkywayidle.com/favicon.svg
  11. // @grant GM_addStyle
  12. // @license MIT
  13. // @homepageURL https://github.com/shenhuanjie/userscripts
  14. // @supportURL https://github.com/shenhuanjie/userscripts/issues
  15. // @run-at document-start
  16. // @compatible chrome Tampermonkey
  17. // @compatible firefox Greasemonkey
  18. // @compatible edge Tampermonkey
  19. // @grant none
  20. // ==/UserScript==
  21.  
  22. (function() {
  23. 'use strict';
  24.  
  25. // Apply global border removal style
  26. // 应用全局无边框样式
  27. GM_addStyle(`
  28. * {
  29. border: none !important;
  30. }
  31. `);
  32.  
  33. console.log('[Global Border Remover] Loaded. All element borders have been removed.');
  34. console.log('[全局无边框样式] 已加载,所有元素边框已被移除');
  35. })();