I'm trying to hide the ads from the right side of the emails in Gmail. For that I've made an extension that applies a CSS style.
"content_scripts": [
{
"matches": ["https://mail.google.com/mail/*", "https://*/*"],
"css": ["css/hide.css"]
}
]
The content of hide.css
is:
div.nH.HbF0O{ display: none; }
If I test this CSS in the file %userprofile%\Local Settings\Application Data\Google\Chrome\User Data\Default\User StyleSheets\Custom.css
, the ads disappear. If I load the extension, it's not working.
If I introduce other styles in the CSS file, for example body {display: none;}
or something simple, the CSS it's applied.
What could be the problem?