User:Lightdarkness/GML Fix
From Wikipedia, the free encyclopedia
Due to a recent change in the Wikimedia code, the current Godmode-light script does not get the vandal's username or IP correctly, thus making rollback impossible. Apply the following fix, and you will be all set!
Find this line:
vandal = l[i].getElementsByTagName('a')[1].title.split(':')[1];
(It is also possible for the second [1] to be a [2], that's fine, the real thing that needs to be edited is the first number, see below.)
and replace it with this
vandal = l[i].getElementsByTagName('a')[2].title.split(':')[1];
That line is located in the function AddRevertButtons. If you have any questions, let me know on my talk page.