[Greasemonkey] 0.6.1.4 scripts not executing on some eBay pages
Jason Diamond
jason at diamond.name
Fri Sep 9 19:05:21 EDT 2005
Hi.
I'm having a hard time figuring out why my include directives aren't working
on eBay.
I'm using FF 1.0.6 on Ubuntu Linux 5.04 with GM 0.6.1.4 <http://0.6.1.4>. I
have a script that modifies search.ebay.com <http://search.ebay.com>. As
soon as I upgraded to 0.6.1.4 <http://0.6.1.4>, it stopped working. After
some experimentation, I was able to reduce my script to the minimum
necessary to reproduce the problem:
>>>
// ==UserScript==
// @name Why is this broken?
// @namespace http://jason.diamond.name/userscripts
// @description this is a test
// @include http://search.ebay.com/*
// ==/UserScript==
alert('you should see me!');
<<<
As you can see, my original script had nothing to do with my current
problem.
Notice the @include directive. If I install this script, I do see the alert
box when I visit http://search.ebay.com/. But when I visit any other URL
that starts with that address, I don't see the alert box. For example, if I
visit http://search.ebay.com/foo, I won't see the alert box.
Whenever I don't see the alert box, I see this in my JavaScript Console:
Error: uncaught exception: Permission denied to call method
HTMLDocument.evaluate
When I do see the alert box (by visiting http://search.ebay.com/), I don't
see that message.
If I uninstall my script, I still see that error message in my JavaScript
Console. So maybe it's a problem with the eBay search pages? Could they be
throwing an exception that is causing GM to not execute my script? Any
ideas?
An unrelated weirdness: My test script is called test.user.js. But when I
install it, I see this in the status bar: "whyisthisbroken.user.js installed
succesfully."
Thanks.
--
Jason
More information about the Greasemonkey
mailing list