Page 1 of 1
External Filters
Posted: Wed May 12, 2010 5:59 pm
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
Re: External Filters
Posted: Wed May 12, 2010 9:44 pm
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
Re: External Filters
Posted: Wed May 12, 2010 9:58 pm
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).
Re: External Filters
Posted: Wed May 26, 2010 5:41 pm
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
Re: External Filters
Posted: Wed May 26, 2010 7:03 pm
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?
Re: External Filters
Posted: Wed May 26, 2010 7:18 pm
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.