Double Spaced Source Code
|
|
Hey Vaughan, First off, one of my favorite scripts ever. Really "fixes" up facebook very nicely. About the double spaced source.. is that intentional? If it isn't, I fixed it for you here. (I did it with this code in firefox:
var p=document.body.firstChild;
p.innerHTML=p.textContent.replace(/\n{2,}/g,"\n");
) I <3 JavaScript, haha ;D -aVg |
|
|
Hi Avindra, It's not really intentional. I always assumed it was something to do with Windows' \r\n cause I think I wrote the first version of the script back when I was still using Windows every now and then. Know that I know people actually look at the source I guess I'll try to un-double space it for the next update. Nice code by the way. I can't believe I never knew about textContent. Vaughan |