InBasic schrieb: > I want to create site filtering firefox extension : Sounds like BlockSite to me: https://addons.mozilla.org/de/firefox/addon/3145
> > any body know any especial function used for filtering rules like: > "http://www.windowsupdate.com /* " ,.. If you only want to check the host you can do something like this: someString.indexOf("http://www.windowsupdate.com/") == 0; If you need wildcards you probably have to use regular expressions, maybe (depending on the expected number of rules) in conjunction with some algorithms to speed things up, like in Adblock Plus: http://adblockplus.org/blog/investigating-filter-matching-algorithms _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
