Inject Stylus into shadowRoots

inject styles of stylus-addon in shadowRoot

A continuación se muestran las versiones de este script en las que se actualizó el código. Ver todas las versiones.

  • 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/9/2025
  • v1.1 25/7/2025
  • v1.1 29/6/2025
  • v1.0 29/6/2025