Wikipedia talk:WikiProject User scripts/Scripts/Revert tools: Difference between revisions

Content deleted Content added
CTZMSC3 (talk | contribs)
Vandalism warnings
 
(9 intermediate revisions by 6 users not shown)
Line 144:
 
I will leave it to someone to double check this and/or improve it before modifying the code on the project page. Seems to work for me. Thanks for the script, working nicely -- will add my own auto-messages shortly ;). '''∴''' [[user:here|here]]…[[user_talk:here|♠]] 05:31, 8 December 2006 (UTC)
:Three words of thanks, thank you to ''Lorian'' for the script v1.0, to ''Konman72'' for the modification v1.1 and ''here'' for the undo fix! (umm (v1.1.1) I guess), looks good! :-) ▪◦▪[[User:Sirex98|<span style="border:3px solid #aaf;cursor:crosshair"><span style="background:#11e;color:#bbf">'''≡Ѕirex98≡''']]</span></span>]] 15:20, 8 December 2006 (UTC)
 
::a bug, on a revert [http://en.wikipedia.org/w/index.php?title=Ivan&diff=next&oldid=92946353 here] it says (Reverted edits by Antandrus to version 92946117 by 66.121.167.14) it should had said (Reverted edits by Itis51890 to version 92946117 by Antandrus) I wasn't reverting Antandrus. ▪◦▪[[User:Sirex98|<span style="border:3px solid #aaf;cursor:crosshair"><span style="background:#11e;color:#bbf">'''≡Ѕirex98≡''']]</span></span>]] 17:52, 8 December 2006 (UTC)
 
additional info: [http://en.wikipedia.org/w/index.php?title=Ivan&diff=next&oldid=92946117 I was here went I clicked revert] ▪◦▪[[User:Sirex98|<span style="border:3px solid #aaf;cursor:crosshair"><span style="background:#11e;color:#bbf">'''≡Ѕirex98≡''']]</span></span>]] 17:57, 8 December 2006 (UTC)
:I dunno, worked fine for me from the same place, [http://en.wikipedia.org/w/index.php?title=Ivan&diff=93033256&oldid=92961503 diff]. That said, my fix is somewhat uneducated... so please do report more problems if you run into them. '''&there4;''' [[user:here|here]]&hellip;[[user_talk:here|&spades;]] 23:14, 8 December 2006 (UTC)
::Your test accidentally added the vandalism back, the text would had been right (''Reverted edits by Itis51890 to version 92946247 by Antandrus'') but the revert isn't, as it added back the text "'''Ivan Cho'''"..."thus being one of the greatest human figures of all times", which shouldn't be there. [http://en.wikipedia.org/w/index.php?title=Ivan&diff=93033256&oldid=92961503].. Look at Antandrus earlier good revert that removed the vandalism [http://en.wikipedia.org/w/index.php?title=Ivan&diff=prev&oldid=92946117].
 
::When I made a revert earlier the opposite happen [http://en.wikipedia.org/w/index.php?title=Ivan&diff=next&oldid=92946353] the text is wrong (''Reverted edits by Antandrus to version 92946117 by 66.121.167.14'') but the revert was correct as it removed Itis51890 vandalism ▪◦▪[[User:Sirex98|<span style="border:3px solid #aaf;cursor:crosshair"><span style="background:#11e;color:#bbf">'''≡Ѕirex98≡''']]</span></span>]] 02:32, 9 December 2006 (UTC)
:::Wow, you're right. I think this has something to do with the oldid. Check these diff pages, same diff, different ''oldid'' listed in the url: [http://en.wikipedia.org/w/index.php?title=Ivan&diff=prev&oldid=93033256 prev,93033256] , [http://en.wikipedia.org/w/index.php?title=Ivan&diff=next&oldid=92961503 next,92961503]. Since the script is basing it's revert on the oldid, this variation will mess up what version it reverts to. I don't believe my code changes are influencing this behavior. I haven't been able to replicate the misreported names.
:::I'm not sure it has ever worked perfectly when scrolling through diffs in this manner? Unfortunately, I don't have time to get to the bottom of this right now! Anyone? '''&there4;''' [[user:here|here]]&hellip;[[user_talk:here|&spades;]] 06:19, 9 December 2006 (UTC)
:::: That's cool, I'll wait to see if anyone else can make a fix, or if you know of another good one, I liked the script a lil better then pop-up's, then again It just may be a matter of me getting used to it, thanks for looking into it. ps I was getting sick of my sig after looking this page, too big! :-) ▪◦▪[[User:Sirex98|<span style="background:#44e;color:#bbf">'''≡ЅiREX≡'''</span>]][[User_talk:Sirex98|<sup>'''Talk'''</sup>]]</span> 07:00, 9 December 2006 (UTC)
:::::I've always used godmode-lite for rollback... currently maintained at [[User:Olliminatore/godmode-light.js]]... but I love the message feature on these revert tools, an essential addition. I also hope to see a solution here shortly! '''&there4;''' [[user:here|here]]&hellip;[[user_talk:here|&spades;]] 09:16, 9 December 2006 (UTC)
 
Line 176:
 
Is it possible to use the [[Template:uw-vandalism1|uw]] warnings instead? -&nbsp;<span style="font-family:courier new; background-color:black">[[User:BANG!|<font color="lightgreen">BANG</font>]][[User talk:BANG!|<font color="lightgrey">!</font>]]</span> 02:43, 9 May 2007 (UTC)
 
:Concur! - [[User:BillCJ|BillCJ]] ([[User talk:BillCJ|talk]]) 01:55, 29 March 2008 (UTC)
 
== Bug ==
 
When I access the diff from the user contributions list, it reverts to the current (vandalized) version instead of the previous one. -&nbsp;<span style="font-family:courier new; background-color:black">[[User:BANG!|<font color="lightgreen">BANG</font>]][[User talk:BANG!|<font color="lightgrey">!</font>]]</span> 00:38, 13 May 2007 (UTC)
 
== firefox ==
 
i think it is compatible with firefox it does't work ! but in IE it works--[[User:Mardetanha|mardetanha(/\/\ ()&#91;-&#93;$&#91;- /\/)]] ([[User talk:Mardetanha|talk]]) 21:19, 8 March 2008 (UTC)
 
==UW functionality==
I've been experimenting with adding the UW warning templates to the script at [[User:BillCJ/Scripts/Revert tools-uw]]. I'd also like to expand the warnings to include the "uw-vandal" range of 1 through 4, but I've had difficulty getting it to work. In addition, it would be nice to add the pagename function to the script, so that the warning include the page on which the vandalism occured. Unfourtunately, I know absolutely nothing about these scripts, so any advice/help would be appreciated. This script appears to be the only one available that actually works with IE, and it would be nice to get it updated to the new UW codes, with a few more additional functions added to it. Thanks. - [[User:BillCJ|BillCJ]] ([[User talk:BillCJ|talk]]) 21:53, 9 April 2008 (UTC)
 
I've been able to get my additions working on my test page, so the UW-functionality is in place. I have 9 different Warn tabs now, instead of the original 4, and all use the UW templates. Anyone is welcome to try out my script now though, and if there's support for it, we can add it here, or set up a new script page. Now the final thing I'd like to add is the PAGENAME function, but again, I have no idea how to do it! - [[User:BillCJ|BillCJ]] ([[User talk:BillCJ|talk]]) 03:49, 14 April 2008 (UTC)
 
== Cross-skin support ==
 
I just found this tool and it looks like exactly what I've been wanting.
 
I notice that as-is right now, not all skins are supported. I did some tinkering and found a small change that could be implemented to allow this script to work in any skin. If someone could check the change and implement it if there are no problems, I'd appreciate it. In the meantime, I've just pasted the code (with the change) to my personal javascript page for my chosen skin.
 
Here's the change:
<font color="red">'''WAS:'''</font> document.getElementById('contentSub').innerHTML
<font color="green"> '''IS:'''</font> document.getElementById('difference').innerHTML
...as it appears all skins have a '<code>difference</code>' id, but not all have a '<code>contentSub</code>' id.
 
--&nbsp;[[User:BullWikiWinkle|<font color="red">'''B'''ull</font>]][[Special:Contributions/BullWikiWinkle|<font color="blue">'''W'''iki</font>]][[User_talk:BullWikiWinkle|<font color="darkgreen">'''W'''inkle</font>]] 05:30, 7 October 2008 (UTC)