Clauses

Clauses are only used in rule definitions for routing and renaming to determine if a download should be renamed or routed.

Output and Capture

into: :fileext:/foo Required Routes downloads to, or rewrites download filenames into the given pattern
capture: pageurl Optional Selects the matcher for regex capture group variables ( :$1:, :$2:…)

Matchers

Matcher clauses use regular expression strings.
context: page Matches what is clicked { media, link, selection, page, click, tab (Firefox)}
menuindex: 1 Matches the menu index of the clicked menu item (1, 2, 3…)
comment: a menu item comment Matches the comment of the clicked menu item
fileext: jpg Matches the file extension
filename: actual_filename.jpg Matches the final filename
frameurl: http://www.google.com Matches the URL of the current frame
linktext: Click here to download Firefox Matches the link text or element title attribute
mediatype: image Matches the media type: audio, video, or image
naivefilename: cat.jpg Matches the naive filename
pagedomain: xyz.com Matches the page hostname
pagetitle: Welcome to my page! Matches the current page title
pageurl: http://www.google.com Matches the current page URL
selectiontext: "X-Cops" is the twelfth Matches the selection text
sourcedomain: cdn.xyz.com Matches the source hostname for media
sourceurl: http://cdn.xyz.com/pic.jpg Matches the source URL for media