Hacker News new | ask | show | jobs
by gnicholas 2140 days ago
Chrome lets you limit access to a list of specified websites. Right click the extension icon, click manage extension, and find the option there.
2 comments

I wish there was a way to exclude some websites instead! I want most of the extensions like ad/script/etc blockers to run everywhere, except say GMail.
Excellent, I hadn't noticed that one yet. Yeah, that's a good start.
I only discovered it because I was going to add a similar feature to my Chrome extension, and I was researching to see how others tend to implement it. I was glad to see that Chrome offers the feature natively, and surprised to see that Firefox didn’t.
You can add domains to protected sites. No addons will work there.

So if you want no extension to be able to read gmail,

Add mail.google.com or google.com to

extensions.webextensions.RestrictedDomains in about:config

It's fairly new (maybe 1-2 years old, I forget), that's probably why you didn't notice it.