Need object.getElementsByClassName snippet
Hi,
I am trying to get the Youtube Classic Viewer userscript to operate:
http://userscripts.org/scripts/review/101753
Unfortunately, script will not run because I don't have getElementsByClassName in my browser webkit.
I tried adding a generic getElementsByClassName snippet, but it doesn't work as a subsidiary function,
(i.e.) parentObject.getElementsByClassName("class name")[i]
"is not a function." -- javascript error console message
even when I insert a javascript library snippet at the bottom of the script (I tried several snippets from back before the function became standard in recent browsers).
Anyone have a javascript library version I can add to the userscript to get it to work, or do I have to upload it in some other fashion?
Bear in mind, I'm not too knowledgeable about Javascript, especially when it comes to object handling and adding in built-in functions.