You may be looking for the similar AutoEditPages or FindAndReplace.

MassEdit is a script that enables users to create a set of inputted pages or edit/delete/find-and-replace content from a set of extant pages. It can affix templates to the top or bottom of articles, add categories to pages, remove or replace all instances of a word or phrase, or create new articles. Users can adjust the standard edit summary and rate of edit at will through the addition of a window object.

Due to the potential for abuse in the form of vandalism or spam, the script can only be used by high-level local staff (i.e. admins, content-moderators, and bots).


Add the following to your personal common.js or global.js files or your wiki's MediaWiki:Common.js file:

    type: "script",
    articles: [

Users may further configure the script through the addition of a window object denoting their preferences. Users may modify the standard edit summary at will by including an editSummary string, and can adjust the edit rate of the script by modifying the integer value of editInterval. An example config object is shown below.

window.massEditConfig = {
    editSummary: "Your edit summary",
    editInterval: 1500
Variables Type Default value(s)
editSummary String Editing page content (script)
editInterval Integer 1000

General usage

In addition to the standard usage of the "prepend" and "append" options to edit content of existing pages, these options may be used interchangeably to create a set of new pages based on the inputted values of the pages text area. Selecting either option and inputting page titles of nonexistent pages creates these pages automatically, allowing for a quick and efficient means of publishing new articles from a template or text extract.

Furthermore, though the find-and-replace function may be used as intended to locate and replace wikitext, HTML, or plaintext from existing articles, it may also be used to remove content from pages. Leaving the "New Content" field blank is counted as an empty string, allowing for the removal of the content of the "Target Content" field from the articles in question.

It is important to note that the script does not account for case sensitivity in the find-and-replace function. Upper and lowercase variations of the same word or phrase are treated separately and will require multiple iterations to replace as needed. In future, it is possible that a case sensitivity option will be added as per FindAndReplace's precedent.

importArticles — Best Practices for installing JavaScript on FANDOM
The importArticles statement is designed to combine multiple HTTP requests into a single data transfer, allowing multiple scripts to load and execute faster. If you've been installing several different scripts, your JavaScript file has probably accumulated unnecessary import statements. Click "Expand" to learn how to efficiently batch import scripts to speed up performance and make your code look cleaner. One other approach is by using the MediaWiki:ImportJS.
If your JavaScript file has several lines of code that say importScript, importScriptPage, or importArticles, you may be able to combine them! By batch importing a collection of scripts with a single import, your JavaScript code will load faster and look cleaner. Consider the example below. On the left is an example of what your JavaScript file might currently look like. On the right is how you could improve that code.
Multiple imports — messy and slow One import — clean and efficient
  type: 'script',
  article: 'u:dev:FloatingToc/code.js'
importScriptPage('page1.js', 'wikiname');
importScriptPage('page2.js', 'wikiname');
    type: 'script',
    articles: [
Note: In this example, pay close attention to the placement of commas and other punctuation. For people who aren't familiar with programming (and even those who are!), a common mistake when writing code is to accidentally delete, forget, or misplace critical symbols like commas or quotation marks. This can cause a syntax error that breaks the code. Carefully follow the convention shown here when using importArticles.
But there's much more to importArticles than just this! For more examples and advanced usage, see the help page at Help:Including additional JavaScript and CSS.


Initial revision
Revision of regex, removal of character limit
Retrofitting of I18n-js, addition of "find-and-delete" option, addition of config options, cleanup
Addition of find-and-replace function for set of pages; improved/expanded error handling for nonexistent pages, empty input fields, and pages without target text; general cleanup