User talk:Sam Hocevar/archive3
Shock Sites
I saw your comment about the Shock Site page needing to be expanded but no one is able to. Every bit of information that is added is repeatedly deleted by the same administrator over and over again. He originally voted to have the entire page deleted. Shock Sites like Meatspin need your help. Please sign this Wikipedia:Requests_for_comment/Mangojuice Ciper 16:46, 28 February 2007 (UTC)
Good Laugh!
I love the new "to hell with userboxes" item. Do you mind if I use it on my page too? --Depakote 06:45, 23 January 2006 (UTC)
: Feel free to do so. Sam Hocevar 08:47, 23 January 2006 (UTC)
Another godmode light
This looks like a great tool, but I'm having a problem. When I click rollback, I get this message:
Please wait, reverting edits by undefined...
Getting article history (/w/index.php?title=Awesome&action=history&limit=50)...
Error: Last editor is 24.92.249.34, not undefined!
I'm using Firefox 1.5 Thanks Liamdaly620 01:06, 24 January 2006 (UTC)
Rollback
I copied the rollback java script onto the relevant page ( I am M Johnson) but it comes up all funny on mine when I've copied exactly the same thing. Can you help, because I can't program computers in a fit. I'd prefer it if you reply on [http://en.wikipedia.org/w/index.php?title=User_talk:M_Johnson&action=edit§ion=new my talk page]. Thanks--M W Johnson 13:30, 29 January 2006 (UTC)
Rollback
Never mind, now it works. -- King of Hearts | (talk) 05:48, 31 January 2006 (UTC)
monobook
I am trying to get a "vandalism" link next to rollback so that I can choose two different edit summaries rapidly. So far, my vandalism link works, but it only appears on the contribs pages, not the diff pages. I am a sysop, so I think that might be interferening. How can I change my moonobook code to do this?Voice of AllT|@|ESP 02:06, 2 February 2006 (UTC)
[[http://en.wikipedia.org/w/index.php?title=User_talk:Encephalon&fakeaction=rollback&vandal=title= Encephalon]&token=a39d37237b45ed6ed046f90d1a96308a">rollback]
Hey Sam,
You've been deluged with concerns about godmode-l and the above bug; don't wish to add to the incessant chorus, but I thought I'd just note here some observations that may help you fix the bug when you get around to it.
So this is what happens:
- On any Special:Contributions/XYZ page, the above type of link appears where before a [rollback] appeared. Using Special:Contributions/Encephalon as an example, we have
- *21:48, 2006 February 6 ([http://en.wikipedia.org/w/index.php?title=User_talk:Encephalon&action=history hist]) ([http://en.wikipedia.org/w/index.php?title=User_talk:Encephalon&diff=prev&oldid=38517475 diff]) m User talk:Encephalon (Reverted edits by Encephalon to last version by Titoxd) (top) [[http://en.wikipedia.org/w/index.php?title=User_talk:Encephalon&fakeaction=rollback&vandal=title= Encephalon]&token=a39d37237b45ed6ed046f90d1a96308a">rollback]
- On the diff page for that edit, we have the normal rollback button
- * [[http://en.wikipedia.org/w/index.php?title=User_talk:Encephalon&fakeaction=rollback&vandal=Encephalon&token=378ac3849cb43976f83bc283fff1af10 rollback]]
- The rollback button on the diff page works (see [http://en.wikipedia.org/w/index.php?title=User_talk:Encephalon&diff=prev&oldid=38517387]); the botched link on the Contribs page doesn't (we get the message Please wait, reverting edits by title=... Bad authentication token!).
Now, there is one person's Contribs page that is unaffected (ie. when I load that contribs page, the rollback links are normal). Yours.
- For example, we have
- *12:29, 2006 February 6 (hist) ([http://en.wikipedia.org/w/index.php?title=Wikipedia:Articles_for_deletion/LS_Studio&diff=prev&oldid=38454975 diff]) Wikipedia:Articles for deletion/LS Studio (keep) (top) http://en.wikipedia.org/w/index.php?title=Wikipedia:Articles_for_deletion/LS_Studio&fakeaction=rollback&vandal=Hocevar%3C/a%3E&token=b8e68b80a50ecdd63f2586c2275e6968 rollback
- On the diff page
- *[[http://en.wikipedia.org/w/index.php?title=Wikipedia:Articles_for_deletion/LS_Studio&fakeaction=rollback&vandal=Sam%20Hocevar&token=762bad93e3ba157e8afff6d18809b61a rollback]]
I haven't tested them, of course, but there's no reason they shouldn't both work. I'm not sure why this is—other admin contrib pages are affected, for example—but there you go. I suspect the problem lies somewhere in the following bit of script, but I'm not expert enough to figure out where. ENCEPHALON 00:57, 7 February 2006 (UTC)
function AddRevertButtons() {var l, article = '', vandal;
// Add 'revert' links to a diff page
l = document.getElementById('bodyContent').getElementsByTagName('td');
for (i = 0; i < l.length; i++) {
if (l[i].className == 'diff-otitle') {
article = l[i].getElementsByTagName('a')[0].href.split('&')[0].replace(/[^\/]*\/\/[^\/]*/, '');
} else if (l[i].className == 'diff-ntitle') {
var toplink = l[i].getElementsByTagName('a')[0].href;
vandal = l[i].getElementsByTagName('a')[1].title.split(':')[1];
var t = l[i].innerHTML
n = t.indexOf(')
)
if (n >= 0 && article != '' && toplink.indexOf('oldid=') == -1) {
l[i].innerHTML = t.substring(0, n + 5) + ' [' + rollbacklink + '] ' + t.substring(n + 5, t.length);
}
}
}
// Add 'revert' links to a contributions page
if (location.href.indexOf(':Contributions') != -1) {
var c = document.getElementById('contentSub');
var a = c.getElementsByTagName('a');
if (a.length == 2) {
vandal = a[0].innerHTML;
} else {
vandal = c.innerHTML.replace(/ \(.*/, ).replace(/.* /, );
}
l = document.getElementById('bodyContent').getElementsByTagName('li');
for (i = 0; i < l.length; i++) {
var t = l[i].innerHTML
// If we are already a sysop on this wiki, abort
if (t.indexOf('>' + rollbacklink + ']') != -1)
break;
//if (t.indexOf('&diff=0') != -1) {
if (t.indexOf(' (') != -1) {
article = l[i].getElementsByTagName('a')[0].href.split('&')[0].replace(/[^\/]*\/\/[^\/]*/, '');
l[i].innerHTML += ' [' + rollbacklink + ']';
}
}
}
}
The rollback link that appears on Special contribs is specified by:
l[i].innerHTML += ' [' + rollbacklink + ']';
Compare the broken link from my contribs page:
:[[http://en.wikipedia.org/w/index.php?title=User_talk:Encephalon&fakeaction=rollback&vandal=title= Encephalon]&token=a39d37237b45ed6ed046f90d1a96308a">rollback], where the link is
:http://en.wikipedia.org/w/index.php?title=User_talk:Encephalon&fakeaction=rollback&vandal=title=
with an unbroken rollback link from your contribs page:
:http://en.wikipedia.org/w/index.php?title=Wikipedia:Articles_for_deletion/LS_Studio&fakeaction=rollback&vandal=Hocevar%3C/a%3E&token=b8e68b80a50ecdd63f2586c2275e6968
There is an extra element, title=
, in the broken link. I think the way + vandal +
is specified may be at issue? Just a guess, of course — I'm a complete non-expert here. Anyway, hope this helps. Regards ENCEPHALON 00:57, 7 February 2006 (UTC)
UPDATE I've found other special contributions pages that render the rollback button properly: Jimbo Wales and anons (IPs). I also thought I'd let you know about my browsers. The problem is present in Firefox 1.5 and 1.0.7. IN IE 6, no rollback button can be seen on any contributions page; however they are visible on diff pages. OS Windows XP Professional SP2. ENCEPHALON 16:02, 8 February 2006 (UTC)
- I've found that even when the contributions page appears normally, I get an error when I try to rollback. I don't remember what it was but it was something like, "Last editor was vandal's name not Talk". As you said, I have no problem when rolling back from the "diff" page.--Bill 17:11, 8 February 2006 (UTC)
::Having the user contib problem and the user-name not Talk problems. Just thought I'd let you know. Hexagon1 10:14, 13 February 2006 (UTC)
Godmode-Light
Could you help me? I am having trouble installing godmode-light.js. What is the exact procedure to be able to use it. David618 04:16, 18 February 2006 (UTC)
:Never mind. I have it. Thank you. David618 22:12, 21 February 2006 (UTC)
I wrote that prematurely. The rollback button appears but I can not rollback. When I check, it says that the error is accuring on line 230 character 3 and the object doesn't support this property or method. David618 03:53, 22 February 2006 (UTC)
Littl
maybe you have a look at
- :de:Benutzer:Littl/monobook.js
- :de:Benutzer:Littl/godmode-light.js
- :de:Benutzer:Littl/monobook.css
- -- 172.208.231.47 20:57, 21 February 2006 (UTC)
godmode-light problem
Hello Sam,
I am trying to use the godmode-light script, but I am running into problems. These have been mentioned in your talk page, but none of the questions were properly answered, and I was hoping mine would be different :). Every time I click the rollback link, it says:
Failed to parse XML data returned by the server.
Hint: try to disable both "Enable section editing by right-clicking on section titles (JavaScript)" and "Edit pages on double click (JavaScript)" in your editing preferences until a proper fix is found.
Both of those settings are disabled, so what else could be causing it? Thanks --Deemo 00:44, 23 February 2006 (UTC)
:Are you running IE?Voice-of-AllT|@|ESP 06:54, 3 March 2006 (UTC)
::It returns the same thing on IE and FF --Deemo 14:35, 15 March 2006 (UTC)
godmode lite fix
Recently reported problem "vandal=Talk" seems to be caused by the line
if (a.length == 2) {
in function AddRevertButtons() with the links on contribution page. Replacing 2 by 3 seems solving the problem. Firefox 1.5.0.1. Good luck --tasc 13:22, 25 February 2006 (UTC)
:This solution worked visually for me, and I no longer get the long string of text on the contribs page. Unfortunately, rolling back from the contribs page still doesn't work, as I get a "Bad authentication token!" error when I try. - dharmabum 01:35, 9 March 2006 (UTC)
:: Hm, are you sure that link looks similar to the one on the diff page? if so, maybe the reason is hash calculator. but it too complicated for me. I've never had this problem btw. --tasc 07:48, 9 March 2006 (UTC)
You're a [[Slovenians|Slovene]]!
But you are! You are. In the face of "Nationality: French" you are still a Slovene. :D
Ahem. Nothing but a question of personal interest. Thank you for working on Wikipedia.
The Slovenes are good people here. Pay a visit to their Wikipedia one day. --VKokielov 05:49, 27 February 2006 (UTC)
Curious about godmode.js
Strange effects of godmode-light.js
A friendly administrator of fr:Wikipedia helped me install the godmode-light.js a couple of days ago.
Of course, he used the [http://sam.zoy.org/wikipedia/godmode-light.js latest version]
It seemed to work fine, but today somebody came up to my [http://fr.wikipedia.org/w/index.php?title=Discussion_Utilisateur:Alex_lbh&redirect=no#Vilain_casseur_.21 Talk] page to complain about this [http://fr.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:Livre_d'or&diff=next&oldid=5889246 revert] that had extremely strange effets.
Weird, uh? I clicked to revert [http://fr.wikipedia.org/w/index.php?title=Wikip%C3%A9dia%3ALivre_d%27or&diff=5889246&oldid=5884625 this] and the page is completely [http://fr.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:Livre_d'or&diff=next&oldid=5889246 screwed up], apparently because the godmode replaced "<" and ">" with strange codes.
My friend advises me to replace the code on my monobook with this:
document.write('