Greasy Fork is available in English.
Adds info from Rottentomatoes to IMDB title pages
< Feedback on IMDB - add Rottentomatoes info
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,
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'
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
Yep, doesn't work - always results in: "Error getting results from Cinesift."What extension do you use? Did you try darkred's solution?
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.Unfortunately I still get "Error getting results from Cinesift" with your new version.
Using Tampermonkey in both Chrome and Firefox.
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.
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.
Gives No Score Yet and No Audience messages for each IMDb movie page.