A small issue with this userscript in Greasemonkey (ok in Tampermonkey)

262 views
Skip to first unread message

Kostas

unread,
Jan 10, 2014, 10:34:07 AM1/10/14
to greasemon...@googlegroups.com
It's about this userscript: IMDB - add Rottentomatoes info .
(using Firefox 26 (or latest Firefox Nightly 140110), Greasemonkey 1.13 and the script only)

It works ok, but whenever loading an imdb page
initially the part of the page that is just below the navbar
is displayed a lot lower for 1-2 seconds (screenshot taken from the video capture below)
and then it moves up in it's proper position
together with the script's RT info.

Video capture (0.8 MB, wmv)


On the other hand, in Chrome 31 with latest Tampermonkey
the problem never occurs.


jerone

unread,
Jan 23, 2014, 5:54:15 PM1/23/14
to greasemon...@googlegroups.com
And this happens only when you activate your userscript?

Kostas

unread,
Jan 23, 2014, 6:12:41 PM1/23/14
to greasemon...@googlegroups.com
Yes, exactly.
If I deactivate it, the problem never occurs again.
Message has been deleted

Kostas

unread,
Feb 17, 2014, 3:36:51 AM2/17/14
to greasemon...@googlegroups.com
Maybe it's a Firefox problem and not of Greasemonkey?
Should I file a bug for Firefox?

jerone

unread,
Feb 17, 2014, 9:15:03 AM2/17/14
to greasemon...@googlegroups.com
I think you have to investigate further. Your script contains a lot of code. Try to isolate the issue by removing parts of the code. Doesn't looks like an issue with Greasemonkey or Firefox to me.

Kostas

unread,
Feb 17, 2014, 9:31:15 AM2/17/14
to greasemon...@googlegroups.com
No, it's not my script.
I've reported it to ti's developer and he has noticed it too, but didn't locate what causes this.

My knowledge in Javascript is limited,
but have tried some setting some breakpoints via Firebug,
and couldn't find what's the problem.

What's most strange is that in Chrome (with Tampermonkey),
it never happens,

Thats why I thought of GM or Firefox as the reason for this.



--
You received this message because you are subscribed to a topic in the Google Groups "greasemonkey-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/greasemonkey-users/VKNGSBjSWRI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to greasemonkey-us...@googlegroups.com.
To post to this group, send email to greasemon...@googlegroups.com.
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/groups/opt_out.

jerone

unread,
Feb 17, 2014, 1:35:30 PM2/17/14
to greasemon...@googlegroups.com
I did some small tests and it's indeed an issue with this script specific.

Looking at the code doesn't make me happy. The scriptwriter should do a tutorial about variable scopes. This could be an issue.

I could find a real solution, but adding this .yesScript { display: none !important; } to the stylesheet variable, hides the iframes that popup for a sec.

Kostas

unread,
Feb 17, 2014, 2:02:53 PM2/17/14
to greasemon...@googlegroups.com
Thanks so much for your help!!






--
Message has been deleted

Kostas

unread,
Feb 18, 2014, 3:11:22 AM2/18/14
to greasemon...@googlegroups.com
Update:Sorry,  but I inserted the part:

.yesScript {                    \
display: none !important; \
}                                    \      
                              
  in lines 162 and 213,
and unfortunately the problem still occurs

Kostas

unread,
Feb 18, 2014, 1:44:25 PM2/18/14
to greasemon...@googlegroups.com
I hope I did what you were meaning - right?

Kostas

unread,
Feb 25, 2014, 7:07:30 AM2/25/14
to greasemon...@googlegroups.com
I also tried applying the css rule you suggested,
.yesScript { display: none !important; }
as a userstyle (using the Stylish addon)
and the problem still occurs.

Kostas

unread,
Mar 13, 2014, 9:07:04 PM3/13/14
to greasemon...@googlegroups.com
Update:
In latest Scriptish stable v0.1.11 the problem occurs like it does in Greasemonkey.
-always in a clean Firefox 27 profile with only Scriptish and the userscript installed-

But, if you create another FF profile
and install latest Scriptish nightly 0.1.12a (page link), instead:
https://github.com/scriptish/scriptish-nightlies/releases/download/nightly-2014-01-26-2000/scriptish-nightly-2014-01-26-2000.xpi
and the userscript,
the problem NEVER occurs again.


And, because, as I said before, also in Tampermonkey (Chrome) the problem never occurs in general,
I'm pretty sure that it's a Greasemonkey bug.

(the reason? I believe that one/some of the improvements -the commit(s)- that have been added to Scriptish repository between the 0.1.11 release (8 months ago), and the current nightly
must have fixed in Scriptish -which is a fork of Greasemonkey-  what was causing this issue )

Kostas

unread,
Mar 14, 2014, 9:32:11 AM3/14/14
to greasemon...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages