Can I block extensions from running on a specific site?

Solved

I use a few (trustworthy) extensions on my work laptop, including an ad blocker. I think that overall this is a good security (and quality-of-life) choice. However, I'd like to minimize the number of extensions that run while I'm on work-internal sites (no ads or security risks there).

Is it possible, in Firefox, to prevent extensions from running on a specific site?

Posted Sep 16, 2020, 9:22 PM UTC

35
jscher2000Firefox Windows•

What do you think about creating a separate "Work" profile to use in those cases?

Firefox Profiles

Firefox uses separate data folders for each profile you create, so each can have its own bookmarks, history, and theme (so they are more visually distinct). To give it a try:

New Profile Setup

This one-time operation takes about 3 minutes.

Inside Firefox, type or paste about:profiles in the address bar and press Enter/Return to load it. You probably want to bookmark this page.

Click the "Create a New Profile" button, then click Next. Assign a name like Work, ignore the option to relocate the profile folder, and click the Finish button.

After creating the profile, scroll down to it and click the Launch profile in new browser button.

Firefox should open a new window that looks like a brand new, uncustomized installation. (Your existing Firefox window(s) should not be affected.) Please ignore any tabs enticing you to connect to a Sync account or to activate extensions found on your system to avoid cross-contamination.

You can change the theme so when you switch windows it's immediately obvious which is which. See: https://support.mozilla.org/kb/built-themes-firefox-alternative-complete-themes

If there is particular data you want to migrate, we can drill down to specific options and files, but for now, does this look like the kind of arrangement that will work for you?

You can launch the Work profile from the about:profiles page whenever needed, and you can close all windows of the Work profile without affecting your regular profile.

However: this first time, on the about:profiles page, make sure to restore your regular profile to being the default profile by clicking its Set as Default Profile button. Otherwise, Firefox will start up with Work instead, which is a viable option, but probably not what you want as the standard setup.

What do you think?

2
CountOneInterruptOP•

That sounds like it should work, thanks! I'll give it a try.

2
panoptigram•

Add the site to extensions.webextensions.restrictedDomains in about:config.

2
CountOneInterruptOP•

I figured there would be some about:config option. That solved it perfectly! Thanks!

1
123234-028u34:firefox:•

Is it just for this adblocker?

With ublockorgin(best adblocking extension btw) you go to the site and just press the power button.

For other extensions you'll have to dib in the settigs. I know you can for Privacy badger, LocalCDN and other extensions but I don't really see the need too unless it's interfering with the website.

1