Possible to block ForSee surveys?

General discussion about the NoScript extension for Firefox
Post Reply
Andycat
Posts: 4
Joined: Sat May 21, 2011 7:36 pm

Possible to block ForSee surveys?

Post by Andycat »

I searched the forums and was surprised this has apparently never come up.

Is it possible to block the ForSee survey pop-ups that so many web sites seem to use? According to the wikipedia article, it's necessary to block the javascript trigger, "*/foresee-trigger.js". This would seem to be right in the wheelhouse for no NoScript.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17 ( .NET CLR 3.5.30729; .NET4.0C)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Possible to block ForSee surveys?

Post by Giorgio Maone »

NoScript Options|Advanced|ABE, edit your USER ruleset and add the following lines:

Code: Select all

Site */foresee-trigger.js
Deny
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Possible to block ForSee surveys?

Post by GµårÐïåñ »

Just curious Giorgio, can this be done with more of a wildcard like in ABP by say making it ( */forsee* ) or will that fail?
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/6.9 (en-US; rv:6.9.6.9) Gecko/66666666 Firefox/6.6.6
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: Possible to block ForSee surveys?

Post by dhouwn »

GµårÐïåñ wrote:Just curious Giorgio, can this be done with more of a wildcard like in ABP by say making it ( */forsee* ) or will that fail?
Should also be possible (see the specification), and even if it wasn't you could still use RegExps.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Possible to block ForSee surveys?

Post by GµårÐïåñ »

Thank you but yeah I am aware of the specs, I have been writing the rules since ABE release, and familiar with the use of regular expressions as well. I was simply asking for the sake of end-user ease for the more novice users so if they encounter a situation like this, they can possibly more easily figure out what rules would work. It was more of an expansion on the answer type question. Most users are not familiar with regexp and/or don't quite understand the rules included in the documentation but those same people generally understand simple "windows" based if you will, wildcard concepts and/or can adopt its understanding easier.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/6.9 (en-US; rv:6.9.6.9) Gecko/66666666 Firefox/6.6.6
MaxHelloWorld
Posts: 2
Joined: Thu May 23, 2013 3:08 pm

Re: Possible to block ForSee surveys?

Post by MaxHelloWorld »

I also was looking to stop the Foresee Results pop-ups.
But I never did anything with ABE before.
So I read, and re-read ABE's documentation, yet I still found it (ABE) daunting.

Thankfully I came across the code posted above by Giorgio Maone.
I pasted it in ABE, and it (not surprisingly) works like a charm!
I just wanted to say thank you very much Giorgio. :D

Max
Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20100101 Firefox/21.0
MaxHelloWorld
Posts: 2
Joined: Thu May 23, 2013 3:08 pm

Re: Possible to block ForSee surveys?

Post by MaxHelloWorld »

I spoke too soon...
There is a foresee survey that gets through at tigerdirect.ca.
Looks different too...

I found the script is there with the same name
"/foresee/foresee-trigger.js"

I'm not 100% sure, but it appears to me that its using image code to pop-up?
Those images are on some 3rd party website...
http://images.highspeedbackbone.net/foresee/

For example:
http://images.highspeedbackbone.net/for ... ogo_ca.jpg

So, any ideas on blocking this one?
Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20100101 Firefox/21.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Possible to block ForSee surveys?

Post by Thrawn »

How about this?

Code: Select all

Site ^.*/foresee.*
Deny
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Possible to block ForSee surveys?

Post by GµårÐïåñ »

That rule given before your message will do it perfectly.

But if you want to do a hack around and KNOW the script file on that particular site, you can use ABP to block it directly but that is not a wildcard, meaning on a different site using different names or different implementation, you are on your own.

Since NS is effectively blocking anything coming foresee given the rule, that means it will break it everywhere. HOWEVER, note that like jquery which can be linked by CDN, directly to Jquery's site, or SELF HOSTED, this means that anyone choosing not to deliver directly from them and ends up self hosting or changing the name or implementation on their site, can technically get around it. An example of above JQuery is when people use google's mirror of googleapis in its myriad of variations in domain names and so on, it will not kill those.

My recommendation is to look into doing a decent surrogate script for it and neuter it that way.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36
barbaz
Senior Member
Posts: 11067
Joined: Sat Aug 03, 2013 5:45 pm

Re: Possible to block ForSee surveys?

Post by barbaz »

Image
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Possible to block ForSee surveys?

Post by GµårÐïåñ »

okie dokie
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36
Post Reply