更好的通义浏览器扩展

去除通义浏览器扩展的悬浮球并加强扩展体验

  1. /* ==UserStyle==
  2. @name 更好的通义浏览器扩展
  3. @namespace better_tongyi_browser_extension
  4. @version 1.0.0
  5. @description 去除通义浏览器扩展的悬浮球并加强扩展体验
  6. @author lingbopro
  7. @license WTFPL
  8. @preprocessor stylus
  9. @var checkbox hideFloatBall "隐藏悬浮球" 1
  10. @var checkbox hideSelectionTooltip "隐藏文本选择时的工具框" 0
  11. @var checkbox showSelectionTooltipOnFloat "文本选择工具框鼠标悬浮在图标上时展开" 1
  12. ==/UserStyle== */
  13.  
  14. @-moz-document url-prefix("http") {
  15. /* 通义优化 */
  16. if hideFloatBall {
  17. tongyi-web-extension .react-draggable {
  18. display: none;
  19. }
  20. }
  21. if hideSelectionTooltip {
  22. tongyi-web-extension [data-role=tongyi-selection-ops-popover] {
  23. display: none;
  24. }
  25. }
  26. if showSelectionTooltipOnFloat {
  27. tongyi-web-extension [data-role=tongyi-selection-ops-popover] * {
  28. transition: ease-in-out 0.5s;
  29. max-width: 100px;
  30. max-height: 40px;
  31. }
  32. tongyi-web-extension .ant-popover:has([data-role=tongyi-selection-ops-popover]):not(:hover) .ant-popover-inner {
  33. padding: 0!important;
  34. }
  35. tongyi-web-extension [data-role=tongyi-selection-ops-popover]:not(:hover) *:not(img) {
  36. /* display: none; */
  37. max-width: 0;
  38. max-height: 0;
  39. margin: 0;
  40. padding: 0;
  41. border: 0;
  42. overflow: hidden;
  43. }
  44. tongyi-web-extension [data-role=tongyi-selection-ops-popover]:not(:hover)>:first-child {
  45. margin-right: 0!important;
  46. }
  47. }
  48. }

QingJ © 2025

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