Skip to content

Instantly share code, notes, and snippets.

@robbiemu
Created December 3, 2011 13:32
Show Gist options
  • Save robbiemu/1427128 to your computer and use it in GitHub Desktop.
Save robbiemu/1427128 to your computer and use it in GitHub Desktop.
omni-bar button (showed on any page where it is allowed to function)
button menu:
Disallow on page
popup window with submit form and URL regex
Pass page to data source -> {sources}
new tab (default) result
Currently highlighted text to data source -> {sources}
in-line bubble (default) result
Make data source from page
popup window with
URL regex (%s = highlight string, %u = url),
name for data source
a list of items to add to the inline bubble, each new item:
button for DOM element selector for output to encapsulate
(from Firebug's javascipt, just like Stylebot)
checkbox for "with css properties" for this and all dependent elements
checkbox for "get text only"
context menu:
Currently highlighted text to data source -> {sources}
in-line bubble (default) result
Options:
Highlight + command to pass to data source:
"T" -> translate (eg translate.google)
"C" -> conjugate (eg verbix)
Highlight + ctl + c => copy translated text after passing through a data source
Highlight + ctl + v => overwrite all instances of this text with its output from the last data source throughout the page
Font/colors, rounding/transparency for bubble (default and per source)
-- these OVERRIDE source CSS
design notes:
use i18n
use local storage for configured data sources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment