Greasy Fork is available in English.
Adds info from Rottentomatoes to IMDB title pages
< Valutazione su IMDB - add Rottentomatoes info
Same here.
Hope someone will see to it and repair.
This is a problem with the OMDb API that actually provides the Rotten Tomatoes information. For whatever reason, it now just returns "n/a" for all of the RT fields. See http://www.omdbapi.com/?tomatoes=true&i=tt0121765 . Until OMDb fixes their side, there's nothing that I can do to get it back up and running.
Rottentomatoes' rating issue/bug has been fixed by your collegue chocolateboy a few hours ago, so please fix your script also, thank you in advance.
Fix: https://github.com/chocolateboy/userscripts/commit/5d5e736fbd9c90ccd468ec1b2fc44cf22365833c
Script: https://greasyfork.org/de/scripts/15222-imdb-tomatoes
I've updated this script to a new version 4.1 that now works again!
OMG that's great news!!! However I installed it and I'm getting "Error getting results from Cinesift". My friend got the same error on Chrome too.
EDIT: I use Violentmonkey on FF and Tampermonkey on Chrome.
Thanks for the good news!
It works fine in Greasemonkey (using 4.2beta3 in Firefox).
Unfortunately it doesn't work (I get 'Error getting results from Cinesift.') with Tampermonkey (using 4.5) in neither Firefox nor Chrome,
I don't know the intricacies of Greasemonkey vs. Violentmonkey vs. Tampermonkey. I'm hooking into jQuery's $.ajax function to pull in the data. I really only develop for Greasemonkey. If you can figure out a possible change to get it working in the other add-ons, I'll add it to the script.
The problem is that ajax requests are subject to the same origin policy (CSP). In Greasemonkey 4.x that is not happening yet, like it was in 3.x. In Tampermonkey it is.
So, you may add
// @require https://github.com/greasemonkey/gm4-polyfill/raw/master/gm4-polyfill.js
// @grant GM_xmlhttpRequest
// @grant GM.xmlHttpRequest
and replace lines 291-298 :
$.ajax({
url: apiUrl
}).done(function(data) {
data = JSON.parse(data);
parseValidResponse(data);
}).error(function(err) {
$('#rottenTomatoesResults').html('Error getting results from Cinesift.');
});
with
GM.xmlHttpRequest({
method: 'GET',
url: apiUrl,
onload: function(response) {
parseValidResponse(JSON.parse(JSON.parse(response.responseText)))
},
onerror: function(err) {
$('#rottenTomatoesResults').html('Error getting results from Cinesift');
},
});
(yes, JSON.parse is applied twice).
Then, the first time you'll load any imdb page you'll get a prompt from TM
to confirm allowing cinesift.com
in the script's settings | XHR security | User domain whitelist'
@darkred thanks man
I've added in the code the following
// @require https://github.com/greasemonkey/gm4-polyfill/raw/master/gm4-polyfill.js
// @grant GM.xmlHttpRequest
in order to make it compatible with both TM and GM 4.x
Stopped working.
It always shows
"Checking Rotten Tomatoes..."
Yep, doesn't work - always results in: "Error getting results from Cinesift."
Yep, doesn't work - always results in: "Error getting results from Cinesift."
What extension do you use? Did you try darkred's solution?
The "Error getting results from Cinesift" error was because they changed something in their URL. I've updated the script to compensate, so it should be working again.
Works again thanks!
Unfortunately I still get "Error getting results from Cinesift" with your new version. Using Tampermonkey in both Chrome and Firefox.
Unfortunately I still get "Error getting results from Cinesift" with your new version.
Using Tampermonkey in both Chrome and Firefox.
I use Violentmonkey on FF and I modified the new version of the script as you suggested a few comments above and it works.
Yes, in Tampermonkey with my modifications it works ok.
In Greasemonkey 4.2 stable on FF59 it installs and works ok.
In Greasemonkey 4.3beta7 on FF59 (even in a fresh FF profile) the script doesn't get installed due to this GM bug. It's fixed in the upcoming GM 4.3beta8/4.3.
Well, I'm still getting "Error getting results from Cinesift." with Greasemonkey 4.2 stable on FF59 :( 4.3 it behaves the same way also
Yeah stopped working again :(
Doesn't work anymore: "Error getting results from Cinesift." :(
Chrome with Tampermonkey
Looks like cinesift are now redirecting to flickmetrix, which don't expose the same API.
Not working anymore
Gives No Score Yet and No Audience messages for each IMDb movie page.