Skip to content

Instantly share code, notes, and snippets.

@eversonl
Created February 17, 2009 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eversonl/65755 to your computer and use it in GitHub Desktop.
Save eversonl/65755 to your computer and use it in GitHub Desktop.
press-this (for wordpress)
//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: "lee@0-21.co.uk"},
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