Fandom Developers Wiki
mNo edit summary
m (Automatic substitution of article type data)
(37 intermediate revisions by 10 users not shown)
Line 1: Line 1:
  +
{{Languages}}
 
{{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 file = MassNullEdit.png
| Image size = 240
+
| Scope = ps
| Scope = Any
+
| Status = stable
| Author = [[User:Ozuzanna|Ozuzanna]]
+
| Author =
  +
* [[User:Ozank Cx|Ozank Cx]]
| Updated = 24 August 2014
 
  +
* [[User:DarthKitty|DarthKitty]] (reworking)
| Code = [[/code.js]]
 
  +
* [[User:OneTwoThreeFall|OneTwoThreeFall]] (reworking + "Add pages" feature)
| Skins = Oasis<br/>Monobook
 
  +
| Code =
| Languages = {{#language:en}}
 
 
* [[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. It null edits one page every second in order to prevent overwhelming of the servers.
 
   
  +
'''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; it can be terminated early by blanking the list of pages remaining to be null edited.
 
   
 
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.
===Monobook===
 
The option to use the Mass Null Edit script will appear in your toolbox on the left.
 
   
  +
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.
===Oasis===
 
The option to use the Mass Null Edit script will appear under your "My Tools" list (the toolbar at the bottom of your screen).
 
   
  +
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:
'''Please note you must not have the toolbar at the bottom hidden or the script will not function. 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".'''
 
 
<syntaxhighlight lang="javascript">
  +
window.nullEditDelay = 3000;
 
</syntaxhighlight>
   
 
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.
 
[[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".