AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

***THE FIREFOX POPUP BLOCKER*** /// SCRATCHED & UPDATED

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Muzzi



Joined: 15 Jun 2008
Posts: 111
Location: Sydney, Australia

PostPosted: Wed Sep 23, 2009 3:07 pm    Post subject: ***THE FIREFOX POPUP BLOCKER*** /// SCRATCHED & UPDATED Reply with quote

*scratched




UPDATED VERSION HERE
http://www.autohotkey.com/forum/viewtopic.php?t=49246

IT WAS UPDATED DUE TO TERMINATING FIREFOX'S PRIMARY WINDOW. THERE WERE POPUPS THAT POPPED UNDER THAT TRICKED THE SCRIPT AND KILLED ALL WINDOWS. GRRRR! I HATE THEM! Rolling Eyes


Last edited by Muzzi on Fri Sep 25, 2009 3:18 pm; edited 8 times in total
Back to top
View user's profile Send private message
TheIrishThug



Joined: 19 Mar 2006
Posts: 419

PostPosted: Wed Sep 23, 2009 3:40 pm    Post subject: Reply with quote

Is there a reason why you indent your code when you are not starting a new section or block?
Back to top
View user's profile Send private message Visit poster's website AIM Address
sinkfaze



Joined: 18 Mar 2008
Posts: 5044
Location: the tunnel(?=light)

PostPosted: Wed Sep 23, 2009 4:26 pm    Post subject: Reply with quote

TheIrishThug wrote:
Is there a reason why you indent your code when you are not starting a new section or block?


He appreciates aesthetics?
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message Send e-mail
Muzzi



Joined: 15 Jun 2008
Posts: 111
Location: Sydney, Australia

PostPosted: Wed Sep 23, 2009 10:23 pm    Post subject: Reply with quote

This link serves as a good test bench as it produces 10 popup windows in a couple of seconds.... and my script stops them all.

Just make sure the script is running as popups occur instantly on entry and exit of the page.

http://www.popuptest.com/popuptest1.html
Back to top
View user's profile Send private message
Z_Gecko
Guest





PostPosted: Thu Sep 24, 2009 12:07 am    Post subject: Reply with quote

Why should i use an external popup-blocker for Firefox?
The built-in popup-blocker works very well,
i get no popups on the demo-site you posted with my unmodified Firefox.
Back to top
Muzzi



Joined: 15 Jun 2008
Posts: 111
Location: Sydney, Australia

PostPosted: Thu Sep 24, 2009 12:26 am    Post subject: Reply with quote

Hi Z_Gecko, yes that is true!

But for example could you try this site with and without my script and tell me what you get?

http://www.searchftps.com/indexer/search.aspx ...and for it to take effect click 3 times on a blank area within the page and a popup should appear then it will pop under.

Works for me everytime Wink
Back to top
View user's profile Send private message
Z_Gecko
Guest





PostPosted: Thu Sep 24, 2009 8:49 am    Post subject: Reply with quote

ah, i see. thanks.
Back to top
doyle



Joined: 14 Nov 2007
Posts: 325
Location: London, England

PostPosted: Thu Sep 24, 2009 10:01 am    Post subject: Reply with quote

Cannot test, as I am currently at work, but does it recognise when I "Open a New Window"?

Also, what about the occasional pop-ups that I do want?

There appears to be no way of white-listing?

It looks like a good hard/fast script for blocking everything though.
Back to top
View user's profile Send private message Visit poster's website
Muzzi



Joined: 15 Jun 2008
Posts: 111
Location: Sydney, Australia

PostPosted: Thu Sep 24, 2009 2:16 pm    Post subject: Reply with quote

^^^^^^^^
^UPDATED^ 24/9/09 - full credits to doyle for this idea
*Now with added toggling feature so you can still allow the wanted popups within pages - read the full details within the script.
Back to top
View user's profile Send private message
SoggyDog



Joined: 02 May 2006
Posts: 783
Location: Greeley, CO

PostPosted: Thu Sep 24, 2009 9:18 pm    Post subject: Reply with quote

When I test against the 2nd website provided above, it attempts to close my main window and leaves the popup open.

Since I usually run with several tabs open in Firefox [v3.5.3], it asks if I want to close all tabs or cancel;
It won't let me cancel (endless loop)... I have to either let it close all the tabs or exit out of your popup blocker.
_________________

SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Muzzi



Joined: 15 Jun 2008
Posts: 111
Location: Sydney, Australia

PostPosted: Thu Sep 24, 2009 9:37 pm    Post subject: Reply with quote

Hmmm! I'm intrigued in your results SoggyDog. I used this as my test bench for weeks and my script never faulted for days, and you've seen something I was getting during my scripts R&D days.

What OS are you running on and what is the build of your PC? Not that this should matter but just curious.

I havent had this happen to me yet so if you're keen to mod my script please do so and touch base with me for an update, would be much appreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group