[MWI]UI Optimization: Borderless Theme Style

Force remove all border styles from web pages

目前为 2025-05-12 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name [MWI]UI Optimization: Borderless Theme Style
  3. // @name:zh-CN [银河奶牛]UI优化:无边框主题样式
  4. // @namespace https://github.com/shenhuanjie
  5. // @version 1.0.0
  6. // @description Force remove all border styles from web pages
  7. // @description:zh-CN [银河奶牛]UI优化:移除网页中所有元素的边框样式
  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. // Apply global border removal style
  25. // 应用全局无边框样式
  26. GM_addStyle(`
  27. * {
  28. border: none !important;
  29. }
  30. `);
  31. console.log('[Global Border Remover] Loaded. All element borders have been removed.');
  32. console.log('[全局无边框样式] 已加载,所有元素边框已被移除');
  33. })();