Fandom Developers Wiki
mNo edit summary
m (Automatic substitution of article type data)
(27 intermediate revisions by 10 users not shown)
Line 1: Line 1:
  +
{{Languages}}
{{Personal}}{{Infobox JavaScript
+
{{Infobox JavaScript
| Description = Null edit multiple pages in a list fashion, similar to AjaxBatchDelete.
+
| Description = Null edit multiple pages from a list.
| Image file = MassNullEdit.png
 
| Image size = 240
+
| Image file = MassNullEdit.png
| Scope = Personal
+
| Scope = ps
  +
| Status = stable
| Author = [[User:Ozuzanna|Ozuzanna]]
 
  +
| Author =
| Updated = 8 September 2014
 
  +
* [[User:Ozank Cx|Ozank Cx]]
| Code = [[/code.js]]
 
  +
* [[User:DarthKitty|DarthKitty]] (reworking)
| Skins = Oasis<br/>Monobook
 
  +
* [[User:OneTwoThreeFall|OneTwoThreeFall]] (reworking + "Add pages" feature)
| Languages = {{#language:en}}
 
  +
| Code =
 
* [[MediaWiki:MassNullEdit/code.js|code.js]]
  +
* [[MediaWiki:MassNullEdit.css|MassNullEdit.css]]
 
| Languages = auto
  +
| Type = editing
 
}}
 
}}
'''MassNullEdit''' is based on several other scripts ([[NullEditButton]], [[AjaxBatchDelete]] and [[ChatBlockButton]]), that provides a link to a modal (without changing location) which allows the user to list pages to be null edited, via API.
 
   
  +
'''MassNullEdit''' allows the user to null edit multiple pages from a list. It is based on several other scripts ([[NullEditButton]], [[AjaxBatchDelete]] and [[ChatBlockButton]]). It can also generate page lists for use elsewhere.
{{Script Instal|Use=GP
 
  +
|Source=<syntaxhighlight lang="javascript">
 
  +
== Installation ==
importScriptPage('MassNullEdit/code.js', 'dev');
 
 
{{Script Install
</syntaxhighlight>
 
 
| codepage = MassNullEdit/code.js
 
}}
 
}}
   
==Usage==
+
== Usage ==
 
MassNullEdit should appear under your "My Tools" list (in the toolbar at the bottom of the screen).
In order to null edit multiple pages, add the page names ('''not''' page URLs) each on a new line (including their namespace if necessary) and proceed to null edit them. The script will stop when it reaches an empty line.
 
   
  +
To null edit multiple pages, add each page name (not the page URL) to the list on a new line (including their namespace, if necessary) and click the "Start" button. The script will stop once all items on the list have been null edited. If any pages fail to edit, a notice will be shown and the page will be readded to the list once the script stops.
If the script is used on a category or [[Special:WhatLinksHere]], it will automatically add the listed pages/files into the text area.
 
   
  +
Using the "Add pages" button, all pages from a namespace or category, or all pages that link to a particular page can be added to the list. This feature can also be useful for generating plain text lists for use elsewhere. If the script is used on [[Special:WhatLinksHere]], [[Special:Prefixindex]], [[Special:Allpages]] or a category page, it will automatically add the linked pages/category members to the list.
===Monobook===
 
The option to use the Mass Null Edit script will appear in your toolbox on the left.
 
   
  +
By default, the script will null edit one page per second. If you'd like to change that, set the <code>window.nullEditDelay</code> property to a number (in milliseconds) in your JavaScript page. For example, add the below line to your JavaScript page to null edit once every three seconds:
===Oasis===
 
 
<syntaxhighlight lang="javascript">
There are two ways to use the Mass Null Edit script in Oasis:
 
  +
window.nullEditDelay = 3000;
* A button will appear under your "My Tools" list (the toolbar at the bottom of your screen)
 
 
</syntaxhighlight>
* A button will appear when hovering over your username in the top right corner (usually along with talk, preferences etc.) '''Please note you must not have the toolbar at the bottom hidden or this button will not appear. If you do not see the "My Tools" (or other language equivalent), try clicking Customize and then "reset defaults" to not hide the "My Tools".'''
 
   
  +
If you do not see the "My Tools" menu (or other language equivalent), try clicking "Customize" and then "reset defaults".
== Updates ==
 
;August 18th 2014: Script published.
 
;August 20th 2014: Updated for better error readings.
 
;August 21st 2014: Monobook support added.
 
;August 24th 2014: Script updated.
 
;August 31th 2014: Auto-complete support added for categories and [[Special:WhatLinksHere]].
 
;September 1st 2014: Script updated.
 
;September 4th 2014: Script updated.
 
;September 5th 2014: Script updated.
 
;September 8th 2014: Script updated.
 
[[Category:JavaScript]]
 

Revision as of 18:11, 15 November 2018

MassNullEdit allows the user to null edit multiple pages from a list. It is based on several other scripts (NullEditButton, AjaxBatchDelete and ChatBlockButton). It can also generate page lists for use elsewhere.

Installation

Usage

MassNullEdit should appear under your "My Tools" list (in the toolbar at the bottom of the screen).

To null edit multiple pages, add each page name (not the page URL) to the list on a new line (including their namespace, if necessary) and click the "Start" button. The script will stop once all items on the list have been null edited. If any pages fail to edit, a notice will be shown and the page will be readded to the list once the script stops.

Using the "Add pages" button, all pages from a namespace or category, or all pages that link to a particular page can be added to the list. This feature can also be useful for generating plain text lists for use elsewhere. If the script is used on Special:WhatLinksHere, Special:Prefixindex, Special:Allpages or a category page, it will automatically add the linked pages/category members to the list.

By default, the script will null edit one page per second. If you'd like to change that, set the window.nullEditDelay property to a number (in milliseconds) in your JavaScript page. For example, add the below line to your JavaScript page to null edit once every three seconds:

window.nullEditDelay = 3000;

If you do not see the "My Tools" menu (or other language equivalent), try clicking "Customize" and then "reset defaults".