AltoRetrato / IMDb 'My Movies' enhancer

I'm not sure if the script still works with others, but it doesn't work with me. The top buttons (refresh, clear highlight.. etc) don't appear after refreshing Firefox and re-installing the script. (Firefox 67.0)

When I opened the javascript console (Ctrl+Shift+J) on the IMDb list page, I found nearly 40 errors and 120 warnings. I'm not sure what do they mean though.

I love OpenUserJS! I sign-in, write you a long reply and the site deletes it and asks me to login again... 🤦

Anyway, do you have any other IMDb related script or add-on installed? My script works for me on Chrome and Firefox. I suggest you to open a new tab, open the JS console, load https://www.imdb.com/mymovies/ , then copy-and-paste any errors and warnings here.

I only have 6 addons on Firefox none of them is related to IMDb and tried disabling all of them but it still didn't work. This is the only script I have installed on Greasemonkey.

While looking at the JS console I found this error related to this script, does it help identifying the problem?!

Could not execute [Greasemonkey script http://www.flickr.com/photos/ricardo_ferreira/2502798105//IMDb 'My Movies' enhancer; version 1.46] 
 missing ) after argument list execute.js:29:15
    executeUserscriptOnNavigation moz-extension://7fdfbbb9-997f-4163-a852-a6aa8a46e506/src/bg/execute.js:29

I've never seen that type of error before. It is not a message emitted by my script, but by Greasemonkey - and it is not helpful at all (even its source code says it needs "Better indication of the root cause").

This is one of the reasons I'm currently rewriting this script as an add-on: one less puzzle piece to solve when there are problems...

Have you changed the source of the script? If so, I'd recommend to revert any changes or reinstall it first.

And what is your version of Greasemonkey? I've found I'm using 4.3 (according to about:addons), but it seems the latest version is 4.8 (which is only 18 days old)! I'll try the latest version soon.

I can confirm that my script doesn't run with Greasemonkey version 4.8. Thanks for bringing this to my attention. This issue is caused by a Greasemonkey bug, but there is a simple workaround:

  1. Click the Greasemonkey icon > IMDb 'My Movies' enhancer > Edit.
  2. Change the 13th line, removing both apostrophes (i.e., change 'My Movies' enhancer to My Movies enhancer).
  3. Click the "Save" icon (floppy disk at the top left corner).
  4. Reload https://www.imdb.com/mymovies/

FWIW, this bug is a know issue since the day the latest Greasemonkey version was released, and seems to affect any update or new installation of any script including 'single quotes' in the name. If baffles me that such crippling error wasn't already fixed and a new version released!

Yes, I do have the latest version of Greasemonkey (4.8), and the script works now after removing the apostrophes! It would be really great if this script becomes a standalone add-on.

Thank you for your quick and detailed replies and for solving the problem. We all appreciate that you're keeping this fantastic script updated all these years. I can't imagine using IMDb without it.

Re: @AltoRetrato:

I love OpenUserJS!

Don't we all?! :)

I sign-in, write you a long reply and the site deletes it and asks me to login again

Idleness is currently detected. If you don't initially navigate somewhere on the site you will be logged out within about five minutes with intendend behavior. So either type faster *eg* or visit another page first. ;)

... Change the 13th line, removing both apostrophes ...

You do know you can click the line number for current published revision and get a link for that revision right?

Interesting feature in GM4.x btw... didn't know that myself.

OUJS Admin

Re: @Marti:

Idleness is currently detected. If you don't initially navigate somewhere on the site you will be logged out within about five minutes with intendend behavior. So either type faster eg or visit another page first. ;)

Wouldn't it be much nicer to save the message and either submit it or go back to editing after signing in? The sign in page could have the message (and/or any other auxiliary data) in a hidden field form, as well as a redirection URL (so the user navigation could continue no matter why/where sign in was requested).

You do know you can click the line number for current published revision and get a link for that revision right?

Now I do! :) Thanks!

Re: @AltoRetrato:

Wouldn't it be much nicer to save the message and either submit it or go back to editing after signing in?

That would entail more cookies on your end and would need session forwarding which we don't do due to the TOS and structure e.g. visitors don't currently have a session as per @sizzle.

Will ponder though if there's any other way on development.

Re: @Marti:

That would entail more cookies on your end and would need session forwarding

That is not necessary. Since I'm submitting a form, all data (i.e., the message content and URL) can be included in the sign in form as hidden fields (no session information nor cookies are required). After signing in, you redirect the browser to the previous URL, but including the message content in a new reply.

Re: @AltoRetrato:

Feel free to open a request on development or better yet a PR to do what you think it should be and it will be there for peer review including DoS attack vectors. I will continue over there to examine possibilities but the idle detection routine is in place for a reason... which you need to grasp that concept. :)

Btw you, and anyone using Chromium backend, are experiencing a rather unusual issue that doesn't exist in other more mature browsers. We've added a partial work-around for the deficiency in the affected browsers atm.