Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
YouTube confirmOnRate
Displays a confirmation dialog when rating a YT video.
- Adapted script to recent changes in the watch page.
- Include now covers the international sites of YT.
[2007-12-16]
- Adapted to 2007-12-12 changes in the watch page.
[2008-02-05]
- Adapted to YT switching their static image server on 2008-02-02.
[2008-04-10]
- Adapted to 2008-04-09 changes in the watch page.
|
|
jaberwocky: Curiously, the script still works as intended here. I just tried on FF 2.0.0.11 with GM 0.7 and on a recent SM trunk nightly with GM 0.6.6. What browser and GM version do you use? Can you give an URL where it's not working? Does the error console have anything useful to say? The passage you quoted matches all elements inside the ratingDiv element against the XPath expression in the first parameter. The matches (HTMLImageElement objects in this case) are then accessible through ratingStars, which is an XPathResult object. It's explained here:
If other people are having problems as well, please leave a comment. |
|
|
I'm going through the source but I can't figure out what this section of script does: ratingStars = document.evaluate(
I think I understand what the rest does. I come from a non-expert C++ background. |
|
|
This doesn't seem to work. After I rate a video it just says "Thanks for rating!" |
You could comment on this script if you were logged in.
