ankit / stylebot

Change the appearance of the web instantly
https://stylebot.dev/
MIT License
1.41k stars 208 forks source link

Styling within chrome-extension:// URL? #705

Closed Zeego closed 2 years ago

Zeego commented 2 years ago

I would like to apply styling to a URL that has the pattern chrome-extension://......

My main reason being that the "Recent Tabs with your browsing history" extension (https://chrome.google.com/webstore/detail/recent-tabs-with-your-bro/khjgklaeknnibmeeanmbfjcnjablcpil) only displays as 135px wide in Vivaldi, when it should be 550px wide - see screenshot below. There are other scenarios where being able to style the extension popups or dialogs like this would be useful.

Recent Tabs display issue in Vivaldi

probablytukars commented 2 years ago

it might be a chrome security policy that prevents this

ankit commented 2 years ago

Yes, Chrome doesn't allow injecting scripts into chrome:// scheme URLs. see https://developer.chrome.com/docs/extensions/mv2/match_patterns/ (we are using <all_urls> - https://github.com/ankit/stylebot/blob/main/src/extension/manifest.json#L18)