I have been working on my bookmarklet for Links SQL, and written about it in my blog. I want to use auto-discovery features (not spidering) but seek coding help getting things right. Basically, I need to get this to work:
javascript:void(d=document);void(el=d.getElementsByTagName('link'));for(i=0;i<el.length;i++){if(el.getAttribute('rel').indexOf('alternate')!=-1 && el.getAttribute('type').indexOf('application/rss+xml')!=-1){rssfeed=el.getAttribute('href'))};void(location.href = 'http://slashdemocracy.org/links/page.php?do=add&Contact_Name=John&Contact_Email=john@slashdemocracy.org&cat_id=84&URL=' + window.location.href + rssfeed + '&Title=' + document.title + '&Description=' + escape(metatagged));
Or something to the same effect.
Any ideas? I hope I'm missing something really simple, like a bracket or something, but I just can't get it right.
John
Code:
javascript:void(d=document);void(el=d.getElementsByTagName('link'));for(i=0;i<el.length;i++){if(el.getAttribute('rel').indexOf('alternate')!=-1 && el.getAttribute('type').indexOf('application/rss+xml')!=-1){rssfeed=el.getAttribute('href'))};void(location.href = 'http://slashdemocracy.org/links/page.php?do=add&Contact_Name=John&Contact_Email=john@slashdemocracy.org&cat_id=84&URL=' + window.location.href + rssfeed + '&Title=' + document.title + '&Description=' + escape(metatagged));
Or something to the same effect.
Any ideas? I hope I'm missing something really simple, like a bracket or something, but I just can't get it right.
John