I'm manually scraping data from some websites just using "Javascript:;" in a browser's address bar. It's easier than copy/pasting.
I've come across a few instances where I have to do: object.parentNode.parentNode.... to get some information and as it varies from site to site it could be at any level.
Obviously I don't want a loop and traverse it as that would make a simple task a bit more extensive.
Is there a way to do say: object.parentNode[4] or something such as without jQuery?
I don't think you'll manage to avoid a good ol' loop: