Why does script work on one computer but not the other?

84 views
Skip to first unread message

Scott Miller

unread,
Sep 3, 2014, 12:15:07 AM9/3/14
to greasemon...@googlegroups.com
Been pulling my hair out for weeks. Why does Greasemonkey script work on Firefox on one computer in my network, but not the other?

Klaus Johannes Rusch

unread,
Sep 3, 2014, 4:05:57 AM9/3/14
to greasemon...@googlegroups.com
On 2014-09-03 06:15, Scott Miller wrote:
> Been pulling my hair out for weeks. Why does Greasemonkey script work
> on Firefox on one computer in my network, but not the other?
Such different behavior is usually caused by some difference between the
computers.

Seriously, you are probably to get more help if you could share some
details, like which script, which pages and what doesn't work?

--
Klaus Johannes Rusch
klaus...@atmedia.net
http://klausrusch.atmedia.net/

Scott Miller

unread,
Sep 3, 2014, 10:14:50 PM9/3/14
to greasemon...@googlegroups.com, klaus...@atmedia.net
Thank you, Klaus.

The Greasemonkey script works fine on Firefox on one computer. But the same script on another computer in the network does not work.

Details:
Same script on both machines
Same GM (v2.2)
Same Firefox (v31.0)
Same Mac OS X (v10.9.4)
Similar iMacs:
(27" Late 2013 3.2 GHz Intel Core i5, 16 GB 1600 MHz DDR3)
(27" Mid 2011 2.7 GHz Intel Core i5, 8 GB 1333 MHz DDR3)

The script used to work on the 2011 Mac. But not anymore. You can view the script via the web page below.

Must-Have Greasemonkey Scripts for Volusion Back-end
http://deanp.net/2012/04/must-have-greasemonkey-scripts-for-volusion-back-end/

You can see the script where it says:

"Click here for Product script"

A member of GitHub tells me, "The script uses GM_addStyle, but does not specify // @grant GM_addStyle in the metadata. This behavior (requiring that they be granted) changed in v2.0.0. This is a problem with the script and should be corrected by the script author." But sadly, I do not understand what any of that means - or why it affects one computer but not the other. 

I attempted to contact the author last night via email. But the script is several years old and the web page above is out of date. I don't expect a reply.

The script makes managing my little online shop tolerable. So if there is something I can do to make the script work on the other computer, then that would be great. Otherwise, if you or someone on this forum can fix the script for a fee, then let's talk about it.

Scott Miller

Klaus Johannes Rusch

unread,
Sep 4, 2014, 3:41:14 AM9/4/14
to greasemon...@googlegroups.com
On 2014-09-04 04:14, Scott Miller wrote:
> http://deanp.net/2012/04/must-have-greasemonkey-scripts-for-volusion-back-end/
>
> You can see the script where it says:
>
> The script makes managing my little online shop tolerable. So if there
> is something I can do to make the script work on the other computer,
> then that would be great. Otherwise, if you or someone on this forum
> can fix the script for a fee, then let's talk about it.

Scott, I have no clue why the script still works on one of your
computers with GM 2.2 but for this script the fix is easy, just add

// @grant GM_addStyle

to the header section and the script seems to work again (I don't have
volusion so could only do a limit test that the script executes without
errors).

Hope this helps

Scott Miller

unread,
Sep 4, 2014, 1:22:28 PM9/4/14
to greasemon...@googlegroups.com
Thank you for the tip, Klaus.

It took me a few tries to find the right place in the header, but - Yay - now the script works!

Thank you again for your help.

Scott





http://klausrusch.atmedia.net/

--
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/sHqNZ8U_IiE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to greasemonkey-users+unsub...@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/d/optout.


Reply all
Reply to author
Forward
0 new messages