FANDOM


For a script that can generally delete pages fast, see AjaxDelete.
AjaxCommentDelete is a script that allows deletion of comments without leaving the article page comment is on by adding an "Ajax Delete" button to every comment. When clicked, the button opens a modal asking for entering a deletion reason.

Installation

Importing multiple scripts? This quick guide shows how to combine the imports.
  • For site-wide use, an administrator can add the line below to the wiki's MediaWiki:ImportJS page.
dev:AjaxCommentDelete/code.js
  • For personal use, add the code snippet below to your global.js page (for use on all wikis) or your common.js page on your wiki (for use on a single wiki). Note that personal JS must be enabled for your account.
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:AjaxCommentDelete/code.js',
    ]
});

Configuration

You can configure the script to delete comments without prompting for a reason every time, by inserting the following code in your common.js or global.js:

window.AjaxCommentDeleteConfig = {
    fastDelete: "The reason for deletion of the comment. You can modify this text!"
};

The above code is provided as an example configuration and isn't necessary for the script to work.

Changelog

v1.0
Initial revision
v1.1
Added fastDelete configuration option.
v1.2
Better internationalization system
General reformatting
v1.3
Not using Wikia's code bindings anymore.
Changed i18n system to use I18n-js library instead of the non-standardized system.
Moved to Dev Wiki.
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+