Greasy Fork is available in English.

IMDB - add Rottentomatoes info

Adds info from Rottentomatoes to IMDB title pages

< Commentaires sur IMDB - add Rottentomatoes info

Avis: Mauvais - le script ne fonctionne pas

§
Posté le: 12/03/2017

Not working anymore

Gives No Score Yet and No Audience messages for each IMDb movie page.

§
Posté le: 12/03/2017

Same here.
Hope someone will see to it and repair.

Curtis GibbyAuteur
§
Posté le: 15/03/2017

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.

§
Posté le: 30/03/2017
Édité le: 30/03/2017

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

Curtis GibbyAuteur
§
Posté le: 26/01/2018

I've updated this script to a new version 4.1 that now works again!

§
Posté le: 26/01/2018
Édité le: 26/01/2018

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.

§
Posté le: 26/01/2018
Édité le: 29/01/2018

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,

Curtis GibbyAuteur
§
Posté le: 27/01/2018

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.

§
Posté le: 29/01/2018
Édité le: 29/01/2018

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'

§
Posté le: 29/01/2018

@darkred thanks man

§
Posté le: 29/01/2018
Édité le: 06/02/2018

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

§
Posté le: 16/02/2018

Stopped working.

It always shows
"Checking Rotten Tomatoes..."

§
Posté le: 26/02/2018

Yep, doesn't work - always results in: "Error getting results from Cinesift."

§
Posté le: 26/02/2018
Édité le: 26/02/2018
Yep, doesn't work - always results in: "Error getting results from Cinesift."

What extension do you use? Did you try darkred's solution?

Curtis GibbyAuteur
§
Posté le: 15/03/2018

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.

§
Posté le: 15/03/2018

Works again thanks!

§
Posté le: 15/03/2018
Édité le: 15/03/2018

Unfortunately I still get "Error getting results from Cinesift" with your new version. Using Tampermonkey in both Chrome and Firefox.

§
Posté le: 15/03/2018

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.

§
Posté le: 15/03/2018
Édité le: 15/03/2018

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.

§
Posté le: 31/03/2018
Édité le: 31/03/2018

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

§
Posté le: 31/03/2018

Yeah stopped working again :(

§
Posté le: 11/04/2018
Édité le: 11/04/2018

Doesn't work anymore: "Error getting results from Cinesift." :(

Chrome with Tampermonkey

§
Posté le: 18/05/2018
Édité le: 18/05/2018

Looks like cinesift are now redirecting to flickmetrix, which don't expose the same API.

Poster une réponse

Connectez-vous pour poster une réponse.