<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bharatpedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Bharatpedia%3AAntiVandal%2FDocumentation</id>
	<title>Bharatpedia:AntiVandal/Documentation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.bharatpedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Bharatpedia%3AAntiVandal%2FDocumentation"/>
	<link rel="alternate" type="text/html" href="https://en.bharatpedia.org/w/index.php?title=Bharatpedia:AntiVandal/Documentation&amp;action=history"/>
	<updated>2026-11-08T10:58:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://en.bharatpedia.org/w/index.php?title=Bharatpedia:AntiVandal/Documentation&amp;diff=563079&amp;oldid=prev</id>
		<title>WikiDwarf: Add</title>
		<link rel="alternate" type="text/html" href="https://en.bharatpedia.org/w/index.php?title=Bharatpedia:AntiVandal/Documentation&amp;diff=563079&amp;oldid=prev"/>
		<updated>2026-09-21T14:18:35Z</updated>

		<summary type="html">&lt;p&gt;Add&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Feature documentation for the AntiVandal userscript}}&lt;br /&gt;
{{shortcut|BP:AV/D|BP:AVD}}&lt;br /&gt;
{{warning|You review and own every edit this script saves. See [[Bharatpedia:AntiVandal#Abuse]].}}&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:13px;margin-bottom:8px;&amp;quot;&amp;gt;&lt;br /&gt;
[[Bharatpedia:AntiVandal|AntiVandal]] › &amp;#039;&amp;#039;&amp;#039;Documentation&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight:200;font-size:40px;&amp;quot;&amp;gt;Welcome to the AntiVandal documentation&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight:300;font-size:20px;&amp;quot;&amp;gt;&lt;br /&gt;
This page describes the tools that actually ship in [[User:WikiDwarf/AntiVandal.js]]. Report bugs or ask for a feature on [[Bharatpedia talk:AntiVandal]].&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[Bharatpedia:AntiVandal|AntiVandal]]&amp;#039;&amp;#039;&amp;#039; is a userscript for logged-in editors. On BharatpediaNeo it adds a red hazard control to the title action row. From there you can revert, warn, welcome a new editor, request protection, draft an AIV line, or restore an older revision.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
See [[Bharatpedia:AntiVandal#Install]]. In short: add this to [[Special:MyPage/common.js]], then hard-refresh.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mw.loader.load(&amp;#039;/w/index.php?title=User:WikiDwarf/AntiVandal.js&amp;amp;action=raw&amp;amp;ctype=text/javascript&amp;#039;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
BharatpediaNeo should also keep &amp;lt;code&amp;gt;&amp;amp;lt;span id=&amp;quot;antivandal-slot&amp;quot;&amp;amp;gt;&amp;amp;lt;/span&amp;amp;gt;&amp;lt;/code&amp;gt; immediately before the Edit link.&lt;br /&gt;
&lt;br /&gt;
== Quick start ==&lt;br /&gt;
# Open an existing article (not Special: or the main page).&lt;br /&gt;
# Look in the title action row — Edit, History, Watch, Like, Share, More.&lt;br /&gt;
# A red warning icon sits immediately before Edit.&lt;br /&gt;
# Click it. That row is replaced by AntiVandal tools.&lt;br /&gt;
# Click close (first icon) to get the original buttons back.&lt;br /&gt;
&lt;br /&gt;
If you see no red icon, you are on an old copy of the script, not logged in, or the title row is not rendered. See [[Bharatpedia:AntiVandal#Notes|troubleshooting on the main page]].&lt;br /&gt;
&lt;br /&gt;
== Title row ==&lt;br /&gt;
AntiVandal does not draw a bar above the heading. It uses the existing &amp;lt;code&amp;gt;.bpneo-title-actions&amp;lt;/code&amp;gt; row.&lt;br /&gt;
&lt;br /&gt;
After you open it the row is:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Close · Revert · Restore · Latest · Warn user · Welcome new user · Protect · More&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Dialogs use a compact card: red top edge, title and close on one row, red primary button.&lt;br /&gt;
&lt;br /&gt;
=== Open / close ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Open&amp;#039;&amp;#039;&amp;#039; — red &amp;lt;code&amp;gt;ri-error-warning-fill&amp;lt;/code&amp;gt; before Edit.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Close&amp;#039;&amp;#039;&amp;#039; — first icon after the row swaps. Restores Edit, History, and the rest.&lt;br /&gt;
&lt;br /&gt;
Nothing is saved when you open or close the row.&lt;br /&gt;
&lt;br /&gt;
=== Revert ===&lt;br /&gt;
Opens a dialog:&lt;br /&gt;
* Editor to revert (defaults to the last editor)&lt;br /&gt;
* Reason preset&lt;br /&gt;
* Edit summary (filled from the preset; you can edit it)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Warn user after revert&amp;#039;&amp;#039;&amp;#039; — optional; opens the warn dialog if the revert succeeds&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Revert all recent edits by this user when possible&amp;#039;&amp;#039;&amp;#039; — on by default&lt;br /&gt;
&lt;br /&gt;
Presets: vandalism, blanking, test edit, unsourced, spam/promo, POV/attack, custom summary.&lt;br /&gt;
&lt;br /&gt;
If that last box is checked:&lt;br /&gt;
* accounts with rollback use MediaWiki rollback (all consecutive edits by that user)&lt;br /&gt;
* otherwise the script undoes back to the last revision by someone else (up to 50 revisions)&lt;br /&gt;
&lt;br /&gt;
If the box is unchecked, only the latest revision is undone.&lt;br /&gt;
&lt;br /&gt;
Do not use the vandalism preset on an edit that could be a test or an honest mistake.&lt;br /&gt;
&lt;br /&gt;
=== Warn user ===&lt;br /&gt;
Posts a substituted template to the target talk page. Same tool as &amp;#039;&amp;#039;&amp;#039;More → Warn user&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
* Recent editors on this page (up to five)&lt;br /&gt;
* User (name or IP; type two letters to search accounts)&lt;br /&gt;
* Line showing who the save will sign as&lt;br /&gt;
* Related article (defaults to the page you are on)&lt;br /&gt;
* Notice type&lt;br /&gt;
* Level 1–4 when the template is levelled&lt;br /&gt;
* Extra note (second parameter)&lt;br /&gt;
&lt;br /&gt;
Suggested level is read from existing &amp;lt;code&amp;gt;uw-*&amp;lt;/code&amp;gt; templates on that talk page.&lt;br /&gt;
&lt;br /&gt;
Built-in types: vandalism, test, content removal, unsourced, error/hoax, spam, advertising, BLP, defamation, joke, not-a-vote, talk-as-chat, welcome, welcome-after-test.&lt;br /&gt;
&lt;br /&gt;
The template must already exist (for example {{tl|uw-vandalism1}}). If it does not, the API error is shown in the toast.&lt;br /&gt;
&lt;br /&gt;
=== Welcome new user ===&lt;br /&gt;
Posts one welcome template to the target talk page.&lt;br /&gt;
&lt;br /&gt;
The drop-down is filled from [[:Category:Welcome templates]] (template namespace) when the dialog opens. A template added to that category appears the next time you open the tool.&lt;br /&gt;
&lt;br /&gt;
If the category is empty or the API fails, the list falls back to {{tl|Welcome}} and {{tl|Welcometest}}.&lt;br /&gt;
&lt;br /&gt;
Saves as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{subst:TemplateName}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; plus your signature.&lt;br /&gt;
&lt;br /&gt;
=== Latest revision ===&lt;br /&gt;
Opens the current page as &amp;lt;code&amp;gt;diff=cur&amp;amp;oldid=prev&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Restore this revision ===&lt;br /&gt;
On the title row. Replaces the current text with the revision you are viewing (&amp;lt;code&amp;gt;oldid&amp;lt;/code&amp;gt; or current revid), after confirm. Use this when later editors have piled on and a single-user revert is not enough.&lt;br /&gt;
&lt;br /&gt;
=== Request protection ===&lt;br /&gt;
Shows the current protection, a requested level, and a reason.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Post request&amp;#039;&amp;#039;&amp;#039; appends a heading and {{tl|pagelinks}} block to [[Bharatpedia:Requests for page protection]]&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Open board with draft&amp;#039;&amp;#039;&amp;#039; opens a new section and fills the edit box from this browser’s session storage&lt;br /&gt;
&lt;br /&gt;
=== More ===&lt;br /&gt;
A small menu:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Warn user&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Welcome new user&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;New talk-page message&amp;#039;&amp;#039;&amp;#039; — new section; subject + wikitext; signed as the account in this tab&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Report at AIV&amp;#039;&amp;#039;&amp;#039; — draft &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;* {{vandal|…}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and open [[Bharatpedia:Administrator intervention against vandalism]] as a new section&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Report to administrators&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Privacy request&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Multiple notices&amp;#039;&amp;#039;&amp;#039; — check recent editors on this page and post the same notice to each selected talk page (confirm first)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Pending review&amp;#039;&amp;#039;&amp;#039; — lists pending-changes pages if that extension is enabled&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Preferences&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Rollback and restore ==&lt;br /&gt;
AntiVandal has one revert dialog, not a row of colour-coded rollback icons.&lt;br /&gt;
&lt;br /&gt;
* Use revert on the latest editor.&lt;br /&gt;
* Tick &amp;#039;&amp;#039;&amp;#039;Revert all recent edits by this user when possible&amp;#039;&amp;#039;&amp;#039; when they made several consecutive edits.&lt;br /&gt;
* If several &amp;#039;&amp;#039;other&amp;#039;&amp;#039; editors have piled on, open the revision you want and use &amp;#039;&amp;#039;&amp;#039;Restore this revision&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
On [[Special:Contributions]], a small &amp;#039;&amp;#039;&amp;#039;revert&amp;#039;&amp;#039;&amp;#039; control is added next to each row when the script can read the diff link.&lt;br /&gt;
&lt;br /&gt;
Empty summaries, and calling something vandalism when it is not, can cost rollback rights.&lt;br /&gt;
&lt;br /&gt;
== Shift + right-click ==&lt;br /&gt;
Hold Shift and right-click a link to a user page. The menu offers:&lt;br /&gt;
* User page&lt;br /&gt;
* Talk page&lt;br /&gt;
* Contributions&lt;br /&gt;
* New message&lt;br /&gt;
* Warn user&lt;br /&gt;
* Welcome new user&lt;br /&gt;
&lt;br /&gt;
Firefox and some extensions steal Shift+right-click. If the menu does not appear, use the title-row tools instead.&lt;br /&gt;
&lt;br /&gt;
== Preferences ==&lt;br /&gt;
Stored in this browser as &amp;lt;code&amp;gt;antivandal-prefs-v1&amp;lt;/code&amp;gt;. Not synced.&lt;br /&gt;
&lt;br /&gt;
* Prefer software rollback when the account has the right (used when “revert all” is checked)&lt;br /&gt;
&lt;br /&gt;
Older “bar placement” values are ignored on BharatpediaNeo; the title row is always used.&lt;br /&gt;
&lt;br /&gt;
There is no theme picker or animation setting.&lt;br /&gt;
&lt;br /&gt;
== Abuse ==&lt;br /&gt;
You confirm every save. Administrators can block or strip rights if the script is used as a blunt instrument.&lt;br /&gt;
&lt;br /&gt;
See also [[Bharatpedia:AntiVandal#Abuse]].&lt;br /&gt;
&lt;br /&gt;
== Pages ==&lt;br /&gt;
* [[Bharatpedia:AntiVandal]] — project page&lt;br /&gt;
* [[Bharatpedia talk:AntiVandal]] — bugs and requests&lt;br /&gt;
* [[User:WikiDwarf/AntiVandal.js]] — script&lt;br /&gt;
* [[User:WikiDwarf/AntiVandal/rules.json]] — optional extra notice list&lt;br /&gt;
&lt;br /&gt;
[[Category:Bharatpedia user scripts]]&lt;br /&gt;
[[Category:Bharatpedia counter-vandalism]]&lt;br /&gt;
[[Category:Bharatpedia help]]&lt;/div&gt;</summary>
		<author><name>WikiDwarf</name></author>
	</entry>
</feed>