Wrap text
|
|
// didn't find either a score or an explanation
const $xpath = '//div[@id="tn15title"]/h1/text()';
var $nodes = document.evaluate($xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
var movieName = escape($nodes.singleNodeValue.data.replace(/\s+$/, ''));
googleRottenTomatoesFallbackURL = "http://www.google.com/search?q="
+ "intitle%3A%22" +
+ movieName
+ "%22+"
+ "site%3Arottentomatoes.com"
+ "&btnG=Search";
addedDivRotten.innerHTML = 'Rotten Tomatoes:\nUnable to find\nmore';
addedDivRotten.style.color='red';
|