Forza statistics user script update

I hacked around a little bit on the forza-stats user script, and ended up with this:

Changes: I also spent some time seeing if I could make this script work with Opera 8's user scripting support, but reliance on GM_* functions makes this difficult. I tried using a script that implements the GM_* functions, but ran into several problems:
  1. The GM_getValue implementation in that script is broken. It's trying to eval the stored value, which doesn't work when storing simple strings.
  2. The GM_xmlhttpRequest "implementation" is simply an aliasing of Opera's XMLHttpRequest object. That's not enough for a proper implementation of GM_xmlhttpRequest.
If those two items in the compatibility script were fixed, or if a different compatibility library was used (I don't normally use Opera, so I don't know what exists in terms of mimicking Greasemonkey functions), forza-stats may work in Opera. However, given the differing CSS implementations across browsers, the bar itself probably wouldn't look right (Opera supports "position: fixed", but my browser check may not handle Opera properly; the width of the bar may be incorrect; Opera doesn't support the opacity style or the filter style which is used to do opacity in IE; etc).

As before, forza-stats is compatible with both Mozilla/Greasemonkey and IE/Turnabout.

Posted by Todd at July 1, 2005 12:51 AM-08:00

« Forza statistics user script | Main | Depiq user script »

Comments

is there a way to make it so the script will go out and get the stats regarless of what page you have open?

Posted by: Jeff Stone at July 13, 2005 10:32 AM

For now, I believe the bar insertion is pretty much tied into the Forza page layouts (I need to look at the script again, since I thought I changed that). You can certainly change your include list to * rather than just Forza Community pages, but I can't guarantee it'll continue to display properly. It wouldn't hurt to try.

Posted by: Todd at July 13, 2005 1:17 PM