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