Return to Index  

two additions

December 6 2015 at 8:08 PM
No score for this post
Charlie  (no login)

i suggest you add these:

|| shExpMatch(host, "*click*")
this one was to get, but i thought why not make it more universal. i have not yet had any issues with it yet.

|| shExpMatch(url, "*/ads\?*")
this one is super important (there is a single back slash before the ?). originally it was to get the google thing at the bottom of ebay, but it also seems to remove the advertising on google results also. normally for shexpmatch, the ? means anycharacter, however i need that in the match, so i add \ (backslash) as the escape character before it. this was to get the url: but obviously it can get other websites also (not sure of any good ones yet), which is why its not in below:

just in case someone finds it useful, this is my google section (slightly incomplete due to hosts file that is also in use). the pilcrow symbol (can be any character) is there to make the first * always applicable.

|| (shExpMatch("ΒΆ" + host, "*google*")
&& !(dnsDomainIs(host, "") //allow youtube
|| shExpMatch(url, "*captcha*")
|| dnsDomainIs(host, "")
|| dnsDomainIs(host, "") //backups
|| (dnsDomainLevels(host) == 2 // == 2 allows US www. 3 allows AU,UK www (with other stuff)... still allows allows WWW,webcache,translate,ajax. does not allow any google domains with 3 or more dots. may see if i can ban dnsdomains that are too long...
&& !(shExpMatch(host, "*hosted*") //block
|| shExpMatch(host, "clients*") //block ,
|| shExpMatch(host, "apis*") //might block useful media.
|| dnsDomainIs(host, "") //found on some web pages with the adservices domain name
|| dnsDomainIs(host, "")
|| dnsDomainIs(host, "") //also required for youtube comments. use to see comments.
|| shExpMatch(url, "*adsense*") //

Its been a while since i checked, but if you disable and/or in the HOSTS file, firefox gets crippled after a month or so (crippled as in: works slowly). you have been warned. issue not applicable to non-chrome versions as far as i know.

I use the Web Server from to give a response when there is a blockage. it gives "Forbidden". it logs all the requests which i clear using a batch file at startup. the parameter is the shared directory.

backslashs were not present in post after previewing so I ensured that i wrote (backslash) note.

Scoring disabled. You must be logged in to score posts.Respond to this message   
Find more forums on Network54Create your own forum at Network54
 Copyright © 1999-2018 Network54. All rights reserved.   Terms of Use   Privacy Statement