Skip to content

Instantly share code, notes, and snippets.

@aborruso
Created October 23, 2008 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aborruso/19027 to your computer and use it in GitHub Desktop.
Save aborruso/19027 to your computer and use it in GitHub Desktop.
To use citebite inside mozilla ubiquity
CmdUtils.makeBookmarkletCommand ({
name: "citebite",
url: "javascript:(function()%7Bvar%20a=window,b=document,c=encodeURIComponent,d=a.open(%22http://citebite.com/fetch?q=%22+(window.getSelection%20?%20window.getSelection()%20:%20document.selection.createRange().text)+%22&u=%22+c(b.location)+%22&qs=bookmarklet%22,%22popup%22,%22left=%22+((a.screenX%7C%7Ca.screenLeft)+10)+%22,top=%22+((a.screenY%7C%7Ca.screenTop)+10)+%22,height=600px,width=800px,toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,alwaysRaised=1%22);a.setTimeout(function()%7Bd.focus()%7D,300)%7D)();"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment