July 13, 2004
6:42 AM   RSS feed for this thread Subscribe

I love kokogiak's bookmarklet for inserting printable link footnotes at the bottom of pages. However, it's IE only. Does anyone know of a way to do this with Firefox?
posted by monju_bosatsu to (2 comments total)
javascript:function x(){var anchors=document.getElementsByTagName('a');var links=[];for(var i=0;i<anchors.length;++i){var anchor=anchors[i];if(anchors[i].innerHTML.replace(/<[^>]+>/g,"").match(/\S/)){links.push(anchors[i]);anchor.parentNode.insertBefore(document.createElement("sup"),anchor.nextSibling);anchor.nextSibling.appendChild(document.createTextNode(links.length))}}var footnotes='';for(var i in links){var link=links[i];footnotes+='<li style=margin-bottom:3px;>'+link.innerHTML.replace(/<[^>]+>/g,"")+': <a href='+link.href+'>'+link.href+'</a>'}document.body.innerHTML+='<br style=clear:both;><div><hr>Link Footnotes:<ol>'+footnotes+'</ol></div><hr>'}; x();

posted by Khalad at 7:55 AM on July 13, 2004


You, sir, are my new best friend. Thanks!
posted by monju_bosatsu at 8:01 AM on July 13, 2004


« Older Do I have allergies? (more ins...   |   Soccerfilter: We've seen Beckh... Newer »

You are not logged in, either login or create an account to post comments



Related Questions
Know of any good Portland print houses that do big... May 22, 2007
Set number of copies in Firefox 1.5 Print Dialog... December 8, 2005
How do I assign a hotkey to a Firefox bookmark? August 23, 2005
How can I make the del.icio.us bookmarklet open on... December 14, 2004
Firefox (un)check all extension: Does anyone know... October 21, 2004