Move files from util to mods
[friendica.git/.git] / mods / fpostit / fpostit.js
1 javascript: (function() {
2     the_url = 'http://testbubble.com/fpostit.php?url=' + encodeURIComponent(window.location.href) + '&title=' + encodeURIComponent(document.title) + '&text=' + encodeURIComponent('' (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text));
3     a_funct = function() {
4         if (!window.open(the_url, 'fpostit', 'location=yes,links=no,scrollbars=no,toolbar=no,width=600,height=300')) location.href = the_url;
5     };
6     if (/Firefox/.test(navigator.userAgent)) {
7         setTimeout(a_funct, 0)
8     } else {
9         a_funct()
10     }
11 })()