]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Bookmark/bookmarklet
Merge remote-tracking branch 'upstream/master'
[quix0rs-gnu-social.git] / plugins / Bookmark / bookmarklet
1 <!-- Copyright 2008-2010 StatusNet Inc. and contributors. -->
2 <!-- Document licensed under Creative Commons Attribution 3.0 Unported. See -->
3 <!-- http://creativecommons.org/licenses/by/3.0/ for details. -->
4
5 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.
6
7 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.
8
9 <a href="javascript:(function(){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=bookmarkpopup',l=d.location,e=encodeURIComponent,g=f+'&title='+((e(s))?e(s):e(document.title))+'&url='+e(l.href);function%20a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=650,height=520')){l.href=g;}}a();})()">Bookmark on %%site.name%%</a>