Inject Stylus into shadowRoots

inject styles of stylus-addon in shadowRoot

Ниже показаны версии этого скрипта, в которых изменялся код. Показать все версии.

  • вер. 2.2 18.10.2025
  • вер. 2.1 18.10.2025

    Fix not removing styles

  • вер. 2.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.
  • вер. 1.2 21.09.2025
  • вер. 1.1 25.07.2025
  • вер. 1.1 29.06.2025
  • вер. 1.0 29.06.2025