Go to content Go to navigation Go to search

Bookmarklet für Textpattern

Ich bin ja ein Fan von Blog-Bookmarklets.

Das für dieses Blog war ‘irgendwie kaputt’.

Jetzt hat der lokale Blogguru Ralf Graf es wieder für mich repariert.

Danke.

Hier ist es:

javascript:
var d=document,
w=window,
e=w.getSelection,
k=d.getSelection,
x=d.selection,
s=(e?e():(k)?k():(x?x.createRange().text:0)),
f=‘http://DEINE_DOMAIN/textpattern/index.php’,
l=d.location,
e=encodeURIComponent,
p=’?bm=1&Section=atricle&from_view=1&Category1=CategoryName&Title=’e(d.title)‘&Body=’+e(s),
u=f+p;
a=function(){ if(!w.open(u,‘t’,‘toolbar=0,resizable=0,status=1,width=800,height=800’)) l.href=u;
}
;
if(/Firefox/.test(navigator.userAgent)) setTimeout(a,0);
else a();
void(0)

[2011-12-06 11:02 | | ]
[Kat. ]

Kommentarfunktion für diesen Artikel geschlossen.