Fandom Developers Wiki
Advertisement

AjaxBatchDeleteは、Splarkaが書いたスクリプトが元となっています。
on Wikipediaを使用しています。このコードはGrunnyによってjQueryを使うように書き換えられました。

導入方法[]

使い方[]

一括削除スクリプトを使用するオプションは、「マイツール」リストの下に表示されます。

ページを一括して削除するには、フォームにページ名(ページのURLではありません)をそれぞれ改行して追加し、

理由を設定して削除を進めていきます。スクリプトは空の行に達すると停止し、削除が残っているページのリストを空白にすることで早期に終了させることができます。

また、削除後のページを保護する機能(これはオプション)や、任意のページでモーダルから読み込み、削除や保護の速度を変更できるオプションも備えています。

1000ミリ秒(1秒)に1回の削除というデフォルトのレートを変更したい場合は、

スクリプトをインポートする前にconfig window.batchDeleteDelayを追加して、代わりに独自の数値(ミリ秒単位)を指定します。 例えば、

window.batchDeleteDelay = 100;

とすると、削除速度が0.1秒になります。

Using configuration options with Fandom Developers Wiki scripts

The instructions on this page describe how to use configuration options with a script. Here on the Fandom Developers Wiki, many scripts provide optional configuration settings as a mean to alter or enhance the default behavior of the script. When installing configuration options in your JavaScript file, please note that they need to go above the import statement in order to work — unless the directions say otherwise. In case MediaWiki:ImportJS is used to load the scripts, it will be executed last.

Configuration options load too late, don't work
// 1. AjaxRC import statement
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:AjaxRC.js'
    ]
});

// 2. AjaxRC configuration option
window.ajaxRefresh = 30000;
Proper placement of configuration options
// 1. AjaxRC configuration option
window.ajaxRefresh = 30000;

// 2. AjaxRC import statement
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:AjaxRC.js'
    ]
});

また、ユーザーはカテゴリー全体のコンテンツを取得し、テキストエリアに配置して削除できるようになります。

このスクリプトは、ユーザーが削除権にアクセスできる場合 (コンテンツ・モデレーター、管理者、SOAP、スタッフ、ヘルパー、コンテンツ・ボランティア、コンテンツ・チーム・メンバー、またはウィキ・���ネージャー)

にのみロードされることに注意してください。

Advertisement