Inject Stylus into shadowRoots

inject styles of stylus-addon in shadowRoot

这些是此脚本变更过代码的版本。 显示所有版本。

  • v2.2 2025-10-18
  • v2.1 2025-10-18

    Fix not removing styles

  • v2.0 2025-10-18

    feat(core): expand compatibility for multiple style extensions

    This update significantly enhances the script to support a wider range of user style extensions and injection methods.

    • Broader Extension Support: The CSS selector in syncStyles is expanded to find style tags from Stylish, Stylebot, Magic CSS, xStyle, and more, not just .stylus.

    • document.adoptedStyleSheets Syncing: Adds support for extensions (like modern Stylus) that inject styles directly via adoptedStyleSheets.

      • Patches Document.prototype.adoptedStyleSheets to detect changes.
      • A new syncAdoptedStyles function copies relevant rules into a separate CSSStyleSheet (sheetInDoc), which is then propagated to all shadow roots.
  • v1.2 2025-09-21
  • v1.1 2025-07-25
  • v1.1 2025-06-29
  • v1.0 2025-06-29