Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
IMDB - add Rottentomatoes info
Adds info from Rottentomatoes to IMDB title pages
Is it fresh or rotten? Tells percentage of good reviews and links to rottentomatoes.com movie pages.
Version 1.1 (26 Oct. 2007)-- fixes error on combined and maindetails pages -- didn't grab movieID correctly
Version 1.2 (27 Nov. 2007)-- adds link to RottenTomatoes page even if it didn't find a score
Version 1.3 (26 Dec. 2007)-- as suggested by ekbworldwide, adds information that Rotten Tomatoes doesn't have enough reviews to give a film a rating
Version 1.4 (19 Jan. 2008)-- Fixes to compensate for RottenTomatoes site update
Version 1.4.1 (4 Feb. 2008)-- Fixes to compensate for another RottenTomatoes site update -- should be more robust and less prone to errors now
Version 1.4.2 (4 Mar. 2008)-- Adds a link to a Google search of RottenTomatoes when the RT IMDB alias doesn't work properly
Version 1.4.3 (17 Mar. 2008) -- Another minor RT site update, another minor script update to fix
Version 1.4.4 (23 Mar. 2008) -- Fixes error on perfect RT scores
Version 1.4.5 (28 Mar. 2008) -- Changes link to Google search of RT
Version 1.4.6 (30 Mar. 2008) -- Fixes link to Google search of RT when the RT IMDB alias doesn't work properly
Version 1.4.6.1 (24 July 2008) -- Updates Fresh/Rotten graphics -- thanks to antoniohawk
|
|
Suggestion - you could add a screen shot to your description
|
|
|
Some updated .png icons with transparent background, just in case.
if (number_rotten_rating >= 60) { // it's fresh
rotten_rating_image_url = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThL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fcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfYBxgFDRi1PbNyAAACN0lEQVQ4y43T3WtUVxQF8N/ce9MxapOYRIkfDYlpCEEtiphAjVJLsYV+QClUsKLUggj6WHzoP1CKf4A++SD4FlBEFAQLBio0WoyUiqilNpg2bZzExPlM7sz1ITMagk3dsODsfdZaex/OOSwVWx3RrnUpSvAf9RTo9JnQpwKrF+111ZLoleI6H+n2pWbv+tiAYXXSnmmyxW/ajDol9vvLTvPRZ53jKzbbmRvQIS3wtDpjK23X+HzI6N8zDl7gek0U1hYfpNOb+ptWnyisKm94tiZJlRuSeXELb92hM2akU2NdowObM1IPYkMvDPp5/1BPz8UPt/U1HluzQ/2/kaHux7YPpsRvpjSUGDzH0Xu8MyF4ssx7vSXJCNdDrDwWRVf39PW1rpRICgUnm27L5vJ+uN1l389l53tL2kbZkGdVmYGS1BZ2XeNK2M3X+/nqjeZmcbFocnrG6a4/HLhYb2/rRumxcf0jsy61sGuKGGXUE8yxLNzOd1uTpHe2VFJJEsOljPJYzjfF9cqTk0qZjIY5lk/RgkrVoIwpgiimPY/ixIRCNisncThKy1XG5fJ5YZII0YOi+QnCKioE0Tj5QvW2ZgsFb6OoaG4B8VWIMMOj6CG//MXultcQLMwDkhsMhhX+nOZwD3ULz7cUKrjJT2f4NsSTf7if5ZP2qsn/Gf3K8Fm+yDJde4l3x7j8kI6EzhUE4aKOMR6TucH3ZziS5eniv1CLjWn2dNC7lqYGKjHjj7h1lx+RXUh+DjWr1r/bz49YAAAAAElFTkSuQmCC';
rotten_rating_text = "Fresh";
}
else { // it's rotten
rotten_rating_image_url = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJ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5CYII=';
rotten_rating_text = "Rotten";
}
|
|
|
Not sure if there are bugs or not because I just started using this script, but I really like this concept. Thanks! |
|
|
ekbworldwide, Again, the problem lies with RT's IMDB aliasing system, not with the script. See previous response to your previous comment. |
|
|
I found a bug. The Business of Being Born (2008)
The script says: Unable to find RT says 76%. The Business Of Being Born Movie Reviews, Pictures - Rotten Tomatoes
|
|
|
Thanks! One last tweak: you might want to trim leading/closing quotation marks to deal with TV titles such as http://www.imdb.com/title/tt0773262/ e.g. var movieName = escape($nodes.singleNodeValue.data.replace(/\s+$/, '').replace(/^"|"$/g, '')); |
|
|
Updated. Thanks chocolateboy -- that's a much better way to pull the title. |
|
|
|
|
|
this works: // 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 = ' |
|
|
doesn't work for e.g. http://www.imdb.com/title/tt0773262/ - produces an unterminated Google search. |
|
|
I don't deal with obscure film titles very often, but by popular demand I've tweaked the code to include ekb's Google search idea. (Everything except the "or" suggestion on point 4 of his comment.) |
|
|
Like this
|
|
|
A Suggestion... example
The google search link shows this
It's an obscure "video" that's never going to have an RT page. But it serves as an example of my suggestion. Why not change the google search to something like this
1
2
3
4
example of point four Harry and Tonto (1974)
The google search could be
|
|
|
As pointed out by TheGreekSage, there was an error on perfect scores. I've fixed it now, but this is another minor update that would have been avoided if I were doing the scraping with a proper regex. When I find time, I'll release a version 1.5 with this feature. |
|
|
I think there is another bug.
Check James Cameron's Aliens for example. |
|
|
The script is back up and running -- until the next minor RT tweak. I'm not great with regexes -- can anyone give me a more robust way to scrape out this stupid rating number that won't break every time they change their presentational code? |
|
|
Yes. The script is broken.
|
|
|
It looks like rt changed things around. I think many (or possibly) -all- movies with a rating show this...
|
|
|
>> Version 1.4.2 (4 Mar. 2008) Whoops. I just noticed that... |
|
|
RT must be typical for "Web 2.0" - more like Web 1.0001 How about this idea? If the imdb number is broken at RT - grab the title (Be sure it's an English language title - some foreign films at imdb have multiple English titles.) and make the link go to a plain old search at RT using the title and avoid the year entirely. In a simple title search of the movies I mentioned = Confessions of a Superhero
each appears on the first page of the search result. "intitle:" and searching by title appears not to work at RT. Lame. === I wonder if google's "I'm feeling lucky" could be used to give a likely link if the Rotten Tomatoes imdb number doesn't work. I have a keyword search that worked like a charm:
...but now it doesn't always work. |
|
|
ekbworldwide, The problem lies not with this script, but with RottenTomatoes itself. On http://www.rottentomatoes.com/help_desk/webmaster.php, RottenTomatoes claims the following:
A typical deep link to an IMDb movie looks like the following URL:
Using the IMDB ID number, "0079501", you may access the Rotten Tomatoes Mad Max page using the following URL:
Essentially, you simply need to replace the IMDb-assigned ID value at the end of the URL.
That's exactly what this script uses to link to RottenTomatoes pages. On the movies that you've cited as problems, the RT alias of the IMDB simply doesn't work. I see no way to automatically find the RT page when that alias isn't correct, but as a fallback, I've updated the script to include a link to a Google search of the RottenTomatoes site including the name of the film and its year of release. For the obscure films you've given me, the Google search correctly identifies "Confessions of a Superhero" and "Outpost", but not "Out of Line" (IMDB think it came out in 2001, but RT thinks it was 2000). |
|
|
Confessions of a Superhero (2007)
problem
Confessions of a Superhero - Rotten Tomatoes
|
|
|
It seems that for "obscure" movies your script can be unpredictable. Orphans (1987)
Orphans first continued to show checking but I just went to the link and it's working now 60%... Outpost - Rotten Tomatoes
Outpost is described as unable to find... === Well - that's enough posts for today. I'll keep a list of whatever quirks I find and post again in a few days or so. |
|
|
Also - rt now has lots more ads I wrote a one line script to skip ads. You might want to have a look at it.
|
|
|
I just installed 1.4.1 - I've only been using it a few minutes, but I did notice something... At the Out of Line page... Out of Line (2001)
...your script shows
The movie does have a page, it just doesn't have any reviews. Maybe you could have the text read "no reviews" And in similar situations "few reviews" === Visual suggestion You could do away with "more" and simply have x% [clickable image] and the clickable image could be the rt favicon
I think more "breaks" the layout style since you're sending people to an external link. |
You could comment on this script if you were logged in.

