Skip to content

Instantly share code, notes, and snippets.

@eversonl
Created February 16, 2009 22:00
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 eversonl/65399 to your computer and use it in GitHub Desktop.
Save eversonl/65399 to your computer and use it in GitHub Desktop.
kwout for ubiquity
//kwout-this
CmdUtils.makeBookmarkletCommand({
name: 'kwout-this',
icon: "http://kwout.com/favicon.ico",
homepage: "http://www.0-21.co.uk/index.php/200902173422/Blog/Lee-s-Blog/My-Ubiquity-commands.html",
author: { name: "Lee Everson", email: "lee@0-21.co.uk"},
license: "GPL",
description: "invoke Kwout, any where any time. That's it!",
help: "Just type 'kwout'",
url: "javascript:(function(){var%20b=document.body,e=document.documentElement,h=100,s=self,y=0,w=window;if(s.pageYOffset)y=s.pageYOffset;else%20if(e%20&&%20e.scrollTop)y=e.scrollTop;else%20if(b)y=b.scrollTop;if(w.innerHeight%20&&%20w.scrollMaxY)h=w.innerHeight+w.scrollMaxY;else%20if(b.scrollHeight%20>%20b.offsetHeight)h=b.scrollHeight;else%20h=b.offsetHeight;w.open('http://kwout.com/grab?address='+encodeURIComponent(location.href)+'&scroll='+(y/h));})();",
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment