Inject Stylus into shadowRoots

inject styles of stylus-addon in shadowRoot

Acestea sunt versiunile scriptului în care codul a fost actualizat. Arată toate versiunile.

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

    Fix not removing styles

  • v2.0 18-10-2025

    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 21-09-2025
  • v1.1 25-07-2025
  • v1.1 29-06-2025
  • v1.0 29-06-2025