Extend {site} Command to Extract Page Info


#1

Currently the {site} command can extract a limited set of information about a page’s URL.

For example:

{site:url}
{site:domain}

To enable including more contextual information from a page in a snippet, the site command could be extended with the following variants:

  • {site: title} - The title of the page
  • {site: html} - The HTML of the page
  • {site: text} - The text of the page
  • {site: html; selector=div.user-name} - The HTML of the element matching the given CSS selector
  • {site: text; selector=div.user-name} - The text of the element matching the given CSS selector

Question with Texts
Custom Javascript to excute on the current page
#2

This feature has launched now launched! see the following for examples:


archived #3

unarchived #4

closed #5