diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-04-08 22:55:13 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-04-08 22:55:13 +0000 |
commit | e5657ca4bbd8a43bf2dd44c2554e807a45224bd7 (patch) | |
tree | 3ad9a722f787e277ab571d40522cd5289da738dc /doc-src/bookmarklet | |
parent | e632f3be6f48c187b8049f35756b25ae80be2f0b (diff) | |
parent | 070cd3533c3474dc065c6681befb92dac51f4bf7 (diff) |
Merge branch '0.7.x' into 0.8.x
Diffstat (limited to 'doc-src/bookmarklet')
-rw-r--r-- | doc-src/bookmarklet | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc-src/bookmarklet b/doc-src/bookmarklet new file mode 100644 index 000000000..6cd2c08f9 --- /dev/null +++ b/doc-src/bookmarklet @@ -0,0 +1,7 @@ +A bookmarklet is a small piece of javascript code used as a bookmark. This one will let you post to %%site.name%% simply by selecting some text on a page and pressing the bookmarklet. + +Drag-and-drop the following link to your bookmarks bar or right-click it and add it to your browser favorites to keep it handy. + +<MTMarkdownOptions output='raw'> +<a href="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://%%site.server%%/%%site.path%%/index.php?action=newnotice',l=d.location,e=encodeURIComponent,g=f+'&status_textarea=%22'+((e(s))?e(s):e(document.title))+'%22 from '+l.href;function%20a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=800,height=570')){l.href=g;}}a();void(0);">Post to %%site.name%%</a> +</MTMarkdownOptions> |