Last modified: 2013-06-18 13:42:56 UTC
If I use the Vector skin and change (by user JS) the class of the element with ID "ca-watch" or "ca-unwatch", the text of the Watch/Unwatch link doesn't change when I click on it.
I think this is because Vector has additional <span> around the link text and because of this, wgAjaxWatch.setLinkText doesn't work.
You need to make a special case for the condition that the text is surrounded by a span, as this span is required so that we can make this work on all browsers. Such accommodations have already been made in scripts that add/change tabs and drop-down menus in Vector.
wgAjaxWatch has been deprecated and removed for a while now.