New filtering in MouseHole

why the lucky stiff why at hobix.com
Sun Sep 4 17:26:59 EDT 2005


Kevin Ballard wrote:

> That can't be done as a single string  register, and doing it as a 
> regex register_url is no "better" than my  approach.

Well, it's consistent with include_match and exclude_match.  I want all 
URL matching schemes to be identical.

So, let's say down the road I entertain an idea for per-part matching:

  include_match :scheme => "file"
  include_match :scheme => /https?/
  include_match :domain => /google\.com$/, :path => "user.js"
  exclude_match :scheme => "http", :domain => /boingboing/

If I add that, I want it to be consistent for exclude_match and 
register_url as well.  Consistency and ease of remembering MouseHole's 
API is paramount.

_why


More information about the Mousehole-scripters mailing list