External Filters

Ask for help about NoScript, no registration needed to post
BrianDavis
Posts: 3
Joined: Wed May 12, 2010 5:42 pm

External Filters

Post by BrianDavis »

Hi,

On the "Advanced-External Filters" tab, I see a button for adding a new filter. When I press it, it prompts me for an executable file. I'm a C++ developer, so this immediately intrigued me. What are the requirements for writing a supported executable file? I've searched the forum, but I cannot find any info on this at all.

What I'm hoping to accomplish by this is to disable Google's scripts on their front page only. I really don't like their fade-in menu thing and would like to disable it completely. Disabling all scripts for Google site-wide accomplishes this, but it also cripples many aspects of their site. If I could write an add-in filter that allowed me to do this, that would be great.

Thanks,
Brian
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9
BrianDavis
Posts: 3
Joined: Wed May 12, 2010 5:42 pm

Re: External Filters

Post by BrianDavis »

BrianDavis wrote:What I'm hoping to accomplish by this is to disable Google's scripts on their front page only. I really don't like their fade-in menu thing and would like to disable it completely. Disabling all scripts for Google site-wide accomplishes this, but it also cripples many aspects of their site. If I could write an add-in filter that allowed me to do this, that would be great.
I did some digging and discovered the Greasemonkey plugin. Using it and a user script to disable the Google's fade-in effect solved that part of my problem. I am still interested in learning about the external filters, though.

Thanks,
Brian
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: External Filters

Post by Giorgio Maone »

BrianDavis wrote: I did some digging and discovered the Greasemonkey plugin. Using it and a user script to disable the Google's fade-in effect solved that part of my problem.
You may want to check also
http://hackademix.net/2009/01/25/surrog ... analytics/
and
http://hackademix.net/2010/01/06/noscri ... op-unders/
BrianDavis wrote: I am still interested in learning about the external filters, though.
External Filters are a generalization of the work I made to allow Blitzablaiter integration within NoScript, as requested by Blitzablaiter developers (a beta will be demonstrated at BlackHat Las Vegas this summer).

In short, external executables can be choosen to pre-process plugin content (such as Flash, Silverlight or Java files).
The executable must accept two command line arguments:

Code: Select all

filter.exe <input_file> <output_file>
and return 0 upon successful filtering.

It will be invoked asynchronously (not blocking the page load) and <output_file> will replace the original content (a 0 bytes content will be used if the filter reports failure, instead).
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
BrianDavis
Posts: 3
Joined: Wed May 12, 2010 5:42 pm

Re: External Filters

Post by BrianDavis »

I appreciate the information on how to further customize NoScript. The external filters sound cool, too. I'll have to check them out.

Brian
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: External Filters

Post by dhouwn »

What if you have
plugin.override_internal_types
activated and a plugin is registering itself for let's say PNGs (wasn't QuickTime doing that?), will the lightning rod executable be also triggered for content of this type?
Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:1.9.3a5pre) Gecko/20100526 Firefox/3.7
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: External Filters

Post by Giorgio Maone »

dhouwn wrote:What if you have
plugin.override_internal_types
activated and a plugin is registering itself for let's say PNGs (wasn't QuickTime doing that?), will the lightning rod executable be also triggered for content of this type?
Almost certainly yes. Of course the filter's definition must have a matching content type attribute.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Post Reply