Skip to content

Instantly share code, notes, and snippets.

View Geobert's full-sized avatar
🦀

Geobert Quach Geobert

🦀
View GitHub Profile
//press-this
CmdUtils.makeBookmarkletCommand({
name: 'press-this',
icon: "http://wordpress.org/favicon.ico",
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://pti-zarticles.dnsalias.org/wp/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);",
}