Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. Geobert revised this gist Apr 14, 2009. 1 changed file with 10 additions and 11 deletions.
    21 changes: 10 additions & 11 deletions press-this (for wordpress)
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,11 @@
    //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);",
    }
    //press-this
    CmdUtils.makeBookmarkletCommand({
    name: 'press-this',
    icon: "http://wordpress.org/favicon.ico",
    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://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);",
    }
    );
  2. @eversonl eversonl revised this gist Mar 6, 2009. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion press-this (for wordpress)
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,6 @@ CmdUtils.makeBookmarkletCommand({
    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.frigi.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);",
    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);",
    }
    );
  3. @eversonl eversonl revised this gist Feb 27, 2009. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions press-this (for wordpress)
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    //press-this
    CmdUtils.makeBookmarkletCommand({
    name: 'press-this',
    icon: "http://wordpress.org/favicon.ico",
  4. @eversonl eversonl created this gist Feb 17, 2009.
    11 changes: 11 additions & 0 deletions press-this (for wordpress)
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    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.frigi.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);",
    }
    );