Instantly share code, notes, and snippets.

Embed
What would you like to do?
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