FANDOM


AjaxThreadDelete plugin allows people to completely delete threads, instead of removing/closing them. As of v1.2, it can allow thread deletion directly from a forum board without having to view the thread before deleting it.

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:AjaxThreadDelete/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:AjaxThreadDelete/code.js',
    ]
});

Configuration

There are two configuration options:

Option Location Description Default
Fast deletion AjaxThreadDeleteConfig.fastDelete Set to true to enable deletions without deletion prompt. N/A
Default reason AjaxThreadDeleteConfig.reason Reason for thread deletion. Note that the reason might not appear in all deletions. "Deletion executed through AjaxThreadDelete" in your respective language

Example

This is an example configuration of AjaxThreadDelete:

window.AjaxThreadDeleteConfig = {
    fastDelete: true,
    reason: 'Deleting comment'
};

This configuration is not required for the script to work properly.

Community content is available under CC-BY-SA unless otherwise noted.