Here's my favelet

Here's my favelet

Hope this will reproduce OK on here:

javascript:function%20s(h){r='';t=0;for(i=0;i<h.length&&r.length<255;i++){c=h.charAt(i);if(c=='<'){t=1}if(c=='>'){t=0;}else{if(!t)r+=c}}return%20r}w=window;d=document;l=location;q='';f='';if(!q&&w.getSelection){q=w.getSelection();f+='w.gs'+q+'%250D%250A'}if(!q&&d.getSelection){q=d.getSelection();f+='d.gs'+q+'%250D%250A'}if(!q&&d.selection){q=d.selection.createRange().text;f+='d.s'+q+'%250D%250A'}if(!q){q=d.body.innerHTML;f+='d.b'+q+'%250D%250A'}l.href=('http://www.clarkeology.com/cgi-bin/board.cgi?mPrecis='+l.href+'&mSubject='+escape(d.title)+'&mText='+s(q)+'%250D%250A[['+escape(l.href)+'%250D%250A%250D%250A'+s(q))

Those are arbitrary breaks in there, it should all be on one line... getSelection does work, but it's clashing with something else, the results of my function s() aren't being appended to the URL... that's the prob with writing these things on just one line, it's a bit hard to debug! I need to write it out in full and then write a sort of compiler that'll shrink the code as much as poss... I will do some more work on this today, it might be all good by the time you see it. Well, hopefully...

⬅️ :: Just spoken to Special Mail ➡️
Thu Dec 16 2004