inject styles of stylus-addon in shadowRoot
這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。
Fix not removing styles
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.
syncStyles
.stylus
document.adoptedStyleSheets Syncing: Adds support for extensions (like modern Stylus) that inject styles directly via adoptedStyleSheets.
document.adoptedStyleSheets
adoptedStyleSheets
Document.prototype.adoptedStyleSheets
syncAdoptedStyles
CSSStyleSheet
sheetInDoc