I've built a Chrome Extension, that injects HTML elements into the existing website DOM based on different urls inside the website.
When using AdBlockers, VPNs or Multi-Login browsers, the CSS sometimes doesn't get injected so the elements (divs with class
) that the extension injects appear without any styling.
It happens rarely and difficult to reproduce consistently.
I am looking for different leads I can investigate to understand why an extension CSS might not inject to the page or load properly. and some users have reported that the CSS of my extension is all messed up.
I have this in my manifest:
"content_scripts": [
{
"matches": [
"https://website.com/*"
],
"js": [
"build/content.js"
],
"css": [
"build/content.css"
]
}
],
content.css
is the webpck output of style.scss
.
I also have this at the top of content.js
:
import './css/style.scss';
Is there any reason why using a VPN (like openVPN) would interfere with the loading of a Google Chrome extension CSS?