Hi,
I am writing a greasemonkey script to insert extra content into
radiotimes.com TV listings like this example:
http://www.radiotimes.com/ListingsServlet?event=10&channelId=92&programmeId=106592517&jspLocation=/jsp/prog_details_fullpage.jsp
However, I am having a problem returning a node which I want to
InsertBefore using getElementsByClassName
Here's what I am doing at the moment:
var summary = document.getElementsByClassName('summary');
var Thissummary = (summary[0]);
This returns: [object XPCNativeWrapper [object HTMLHeadingElement]]
Then later on I call:
document.body.insertBefore(logo, Thissummary);
however, this fails with 'Node was not found'
How can I change my script to return a node, or is there a better way
altogether to do this?
Thanks in advance,
Gids