Replies: 1 comment 2 replies
|
The latest version doesn't have CHROME, so the patch should be export const supported = /*@__PURE__*/ regExpTest.bind(new RegExp(
`^(?:(?:ht|f)tps?:|file:|chrome://|edge://|chrome-extension://|edge-extension://|${ownRoot})`
));But this unfortunatly still doesn't work for extension pages, and trying to add "content_scripts": [
{
"matches": ["chrome-extension://*/*","<all_urls>"],...}]This error
(this is on Vivaldi 7.9.3969.3 (Official Build) (64-bit) |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Why this can’t be implemented in stylus: #1582
List of all Chrome URLs:
chrome://about/How to make Stylus work on chrome:// URLs
chrome://flags/#extensions-on-chrome-urls(MS Edgeedge://flags/#extensions-on-edge-urls)--test-typecommand-line switch to hide the warning banner"chrome://*/*"to src/manifest.json (MS Edge"edge://*/*")chrome://|edge://|to src\js\urls.jspnpm zip-chrome-mv2chrome://extensions/and load unpacked Stylus extension (\dist) or drag and drop the stylus-chrome.zipbrave://settings/, but the actual URL ischrome://settings/. Make sure to use the correct URL in your style (url-prefix("chrome://settings/")ordomain("settings"))For Stylus v1.5.51 and older (click to expand)
"chrome://*/*"to manifest.json (MS Edge"edge://*/*")url.startsWith('chrome') ||to \js\toolbox.js (MS Edgeurl.startsWith('edge') ||)Dark Reader
"chrome://*/*"to manifest.jsonAll reactions