Wikipedia talk:WikiProject User scripts/Scripts/Revert tools: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 1:
=Instructions=
==Installation==
To install the script:
* Go to [[Special:Mypage/monobook.js]] and click on edit.
* Copy/Paste the following script into the edit box, and save. Follow the displayed instruction to bypass your browser cache.
<pre>
document.write('<script type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=Wikipedia:WikiProject User scripts/Scripts/Revert tools&action=raw&ctype=text/javascript&dontcountme=s"></script>');
</pre>
==Usage==
Go to any diff page and these links will be placed at the top under "From Wikipedia, the free encyclopedia".
:(Revert / Message) (Vandalism / Message) (Warn: Test / Blatant / Nonsense / Blanking)
* '''Revert:''' Will revert the edit and put this in the edit summary: Reverted edits by [user] to version [version] by [user].
* '''Message:''' Displays a dialogue box for you to enter a message (Ie. Why you reverted it) and will put it in backets after the "Reverted edits..." bit.
* '''Vandalism/Message:''' Does the same as above but displays "Reverted vandalism" instead of "Reverted edits".
* '''Warnings:''' Will subst the relevant warnings on the editors talk page.
=History=
{|border="1" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 95%;"
!Name
!Version
!Description
!Skins
!Author
|-
|'''Revert tools'''
|1.0
|Displays links to revert an edit when viewing a diff page
|MonoBook
|[[User:Lorian|Lorian]]
|-
|
|1.1
|Edits by [[User:Konman72|Konman72]], see talk page
|MonoBook
|[[User:Konman72|Konman72]]
|}
=Comments=
==Alterations==
Hey, I made some slight alterations to the code that I thought made it better. First of all there was a typo in the message text. Secondly I changed it so that the links in the edit summary lead to contributions rather than the user page. I find this useful since most vandals are IP addresses without an actual user page. I don't know the etiquette for these sorts of things so I didn't want to edit the code here, but if it is alright I thought this might help.
|