Supplemental BlockersThis filter group consists of 5 custom filters:
1. Inject Start Script - inject a script which blocks most IE only dialogs (modal, modeless, print, add favorites, etc), check
this page for details. Blocking/automatic answering of alerts, confirmations and prompts will be added in the future.
2. Rewrite External Methods - enable the start script to redefine the behavior of some IE dialogs for intelligent blocking.
3. Remove Sneaky Iframes - remove iframes with height and width less than 5px, which are used mostly for tracking, opening ads, or injecting virus.
4. Disable Script Clicks - disable the automatic click function, which is used mostly for opening ads in a new window.
5. Inject End Script - inject a script to remove floating ads. More functions may be added in the future.
To use this filter, the attached file has to be downloaded and extracted to the C: drive. The extracted folder "Html" can be moved to other location but the path of the injected script in the "Inject Start Script" and "Inject End Script" filter have to be adjusted accordingly.
CODE
<group name="Supplemental Blockers" enable="1">
<filter uid="392e95d236f04059790aa3afb628f7bdec718b347bfe61068994f8a1ec86b903" enable="1" name="Inject Start Script" author="abc@home" type="text" comment="" action="3" postaction="0" priority="0" match="(<html[^>]*>|<head>)(.*)(<meta[^>]*charset[^>]*>)|(<html[^>]*>|<head>)" match_count="1" replace="$1$3$4<script type="text/javascript" src="C:\\Html\\JS_start.js"></script>$2" update="" match_url="" exclude_url="$KEYWORDS(ExcludedUrls)" bound="" max_bound_size="0" exclude="" ver="1.0" keywords=""><keywords name="ExcludedUrls"><item>mail.google.com</item><item>update.microsoft.com</item></keywords></filter>
<filter uid="392e95d236f04059790aa3afb628f7bdec718b347bfe61068994f8a1ec86b903" enable="1" name="Rewrite External Methods" author="abc@home" type="text" comment="" action="3" postaction="0" priority="0" match="\.(AddFavorite|AddChannel|AddDesktopComponent|ShowBrowserUI|setHomePage)" match_count="0" replace="_$1" update="" match_url="" exclude_url="$KEYWORDS(ExcludedUrls)" bound="" max_bound_size="0" exclude="" ver="1.0" keywords=""><keywords name="ExcludedUrls"><item>mail.google.com</item><item>update.microsoft.com</item></keywords></filter>
<filter uid="392e95d236f04059790aa3afb628f7bdec718b347bfe61068994f8a1ec86b903" enable="1" name="Remove Sneaky Iframes" author="abc@home" type="text" comment="" action="3" postaction="0" priority="0" match=".*\swidth\W*=\W*[0-5]\W.*\sheight\W*=\W*[0-5]\W.*|.*\sheight\W*=\W*[0-5]\W.*\swidth\W*=\W*[0-5]\W.*" match_count="0" replace="<!-- Removed Sneaky Iframe -->" update="" match_url="" exclude_url="$KEYWORDS(ExcludedUrls)" bound="<iframe.*?</iframe>" max_bound_size="0" exclude="" ver="1.0" keywords=""><keywords name="ExcludedUrls"><item>mail.google.com</item><item>update.microsoft.com</item></keywords></filter>
<filter uid="392e95d236f04059790aa3afb628f7bdec718b347bfe61068994f8a1ec86b903" enable="1" name="Disable Script Clicks" author="abc@home" type="text" comment="" action="3" postaction="0" priority="0" match="\.(click)" match_count="0" replace="\.no_$1" update="" match_url="" exclude_url="$KEYWORDS(ExcludedUrls)" bound="" max_bound_size="0" exclude="" ver="1.0" keywords=""><keywords name="ExcludedUrls"><item>mail.google.com</item><item>update.microsoft.com</item></keywords></filter>
<filter uid="392e95d236f04059790aa3afb628f7bdec718b347bfe61068994f8a1ec86b903" enable="1" name="Inject End Script" author="" type="text" comment="" action="3" postaction="0" priority="0" match="$FILEEND()" match_count="1" replace="<script type="text/javascript" src="C:\\Html\\JS_end.js"></script>" update="" match_url="" exclude_url="$KEYWORDS(ExcludedUrls)" bound="" max_bound_size="0" exclude="" ver="1.0" keywords=""><keywords name="ExcludedUrls"><item>mail.google.com</item><item>update.microsoft.com</item></keywords></filter>
</group>