There's already a way to do this manually in your prefs.js (or user.js) 
file. Take a look at www.mozilla.org/unix/customizing.html. I found the 
following

// Use configurable security policies to override popups, see
// http://www.mozilla.org/projects/security/components/configPolicy.html
// Turn window.open off for particular sites:
user_pref("capability.policy.popupsites.sites", 
"http://www.annoyingsite1.com http://www.popupsite2.com";);
user_pref("capability.policy.popupsites.windowinternal.open","noAccess");
// Or turn it off everywhere:
user_pref("capability.policy.default.windowinternal.open","noAccess");

// Override popping up new windows on target=anything
user_pref("browser.target_new_blocked", true);

- Pratik.

Alex Chaffee wrote:
> I'm sure I'm not the only one who hates porno pop-up ads, especially 
> inside onclose handlers.
> 
> Seems like it would be super great if I could configure Mozilla to 
> disable this feature (at least in sites I don't know yet).
> 
> More specifically, I'd like to have a mode where I can
>   - globally disable window opening
>   - except for URL patterns I specify in a list
>    - like http://www.goodsite.com/*
>    - or http://www.mostlybad.com/foo/agoodpage.html
> 
> Even more super-wonderful would be the ability to do this for any 
> JavaScript function, or any of a set of functions.  If so, it would be 
> good to have different lists for different functions.
> 
> Naturally, this option should not be set by default. There may also be 
> an alternate mode where the default is to globally *enable* window 
> opening except for (bad) sites I specify. Maybe this could be done with 
> an allow list and a deny list (order deny,allow).
> 
> Is this the right place to request this? Should I also make a bugzilla 
> report?
> 
> Thanks -
> 
> - Alex
> 
> 


Reply via email to