Page 1 of 1

Javascript Error

Posted: Fri Jul 15, 2011 12:16 am
by IronJustice
I figured this would be the place to go, I am very frustrated with an error I have been getting recently. This error pops up sometimes when I load a YouTube video. It doesn't seem to pop up on any other site. I have YouTube white listed.

Javascript Error

Document.Body is null


Thank you for your time.

Re: Javascript Error

Posted: Fri Jul 15, 2011 12:57 am
by GµårÐïåñ
This could be any number of things. To the best of my knowledge and as far as I know, it has nothing to do with NS. Do you happen to have Adblock Plus installed? Furthermore, do you happen to have "block youtube video ads" checked as well, or are you running any rules that are gutting the page? Sometimes these things will leave behind orphan or null objects that are simply ignored during rendering.

Re: Javascript Error

Posted: Fri Jul 15, 2011 7:36 am
by IronJustice
Thank you for the fast reply.

I do have Adblock Plus. Actually I posted in their forum as well as here, but haven't had a reply there. I have "Disable on youtube.com" Is there anything else you can recommend? Also, do you think NoScript would be sufficient to block the ads on YouTube? If so I may just get rid of ABP.

Re: Javascript Error

Posted: Fri Jul 15, 2011 7:01 pm
by GµårÐïåñ
IronJustice wrote:Thank you for the fast reply.
You are welcome, we usually address all issues in less than a few hours to a day at most. We find it helps finding new emerging issues if you address them quickly.
I do have Adblock Plus. Actually I posted in their forum as well as here, but haven't had a reply there. I have "Disable on youtube.com" Is there anything else you can recommend? Also, do you think NoScript would be sufficient to block the ads on YouTube? If so I may just get rid of ABP.
I suspected that you did, as this is caused by many of the rules, as well as element hiding, which once collapsed and rendered get funky. Most of the time the browser will simply ignore it, log it in the console and move on and won't affect functionality but if you are getting an actual popup, then I can imagine its pretty annoying. I use YouTube for testing myself, I have both NS and ABP installed and I have no issues per se other than the elements that end up getting logged into the console. You shouldn't have to actually disable ABP on YouTube, you can still get its benefit but might need to do some configuration changes.

Although NoScript by virtue of blocking scripts will often break ads and such, it is not designed to do so and so it should not be relied on for adblocking, just security - unless you have the knowledge, time and desire to learn and get involved in using ABE rules. You are able to use ABP without much interference if you reduce the number of rules and subscriptions that you have. Keep in mind, that although most of them sound good, having too many of them will often create duplicate or fringe overlap situations which can cause problems, especially that they are maintained by different people with little consistency. So I would recommend sticking with just Easylist+EasyPrivacy as it takes care of most items. You can use Fanboy's lists but be careful with the "element hiding" lists as they are designed to make things look nicer but can break function if there are special cases.

Now if these changes I suggested don't fix your problem and you are willing, you can try on the pages that give you the error to open the ABP "blockable elements" and see what items are being blocked (the ones in red) and if you want, highlight them, copy them and post them here so I can see which rule could be possibly hurting you and give you an exemption for it. Good luck.