Created
February 17, 2009 14:22
-
-
Save eversonl/65755 to your computer and use it in GitHub Desktop.
press-this (for wordpress)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//press-this | |
CmdUtils.makeBookmarkletCommand({ | |
name: 'press-this', | |
icon: "http://wordpress.org/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: "[email protected]"}, | |
license: "GPL", | |
description: "invoke worpress press-this bookmarklet, any where any time. That's it!", | |
help: "Just type 'press-this'", | |
url: "javascript:var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://www.leeeverson.co.uk/wp-admin/press-this.php',l=d.location,e=encodeURIComponent,g=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=2';function%20a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=720,height=570')){l.href=g;}}setTimeout(a,0);void(0);", | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment