This page, or parts of it, are still untranslated. Please translate it to the appropriate language (日本語).
MassEditは、JavaScriptで書かれたタスク自動化・一括編集ツールです。
この開発は、AutoWikiBrowserや
Pywikibotのような専用のボットソフトウェアの一括編集機能や、
FindAndReplaceのインエディタ機能を、
平均的な投稿者がより容易に利用できるようにしたいという願望から始まりました。
ブラウザ内のアプリケーションとして動作するMassEditは、
面倒な編集作業や維持管理を自動化する機能を提供します。
ページ/テンプレート/カテゴリの新規作成、既存ページへのコンテンツの追加/削除、
ページの一括カテゴリ化/再カテゴリ化、
ページ内のコンテンツの検索/置換、ユーザへのメッセージ送信、
カテゴリやネームスペースに属するメンバーページのリスト作成、
特定のテンプレートを含むページのリスト作成などを行うことができます。
ルースページのリストを提供することに加えて、ユーザーはcategoriesや
namespacesの名前を入力して、それぞれのメンバーページを一括して編集することもできます。
最近のアップデートでは、このスクリプトは、同様にDev.IOに置かれている他の多くの外部依存ファイルを採用しています。
MediaWikiでデフォルトでロードされるものに加えて、MassEditはモーダルデザインを標準化し、
より包括的なi18nサポートを提供する目的で、
Modal.js、Placement.js、I18n-js、Colors.js、
およびWgMessageWallsExistを使用しています。荒らしやスパムなどの悪用の可能性があるため、
このアプリケーションはハイレベルなローカルスタッフ(管理者、モデレーター、ボットなど)と、各種のグローバルグループのみが使用できます。
Installation
Configuration
MassEdit スクリプトの一部の要素は、window.MassEditConfigという変数を使用して、
ユーザーの好みに合わせて設定することができます。ユーザーはスクリプトがページを編集する間隔を自由に調整することができますが、
ユーザーやボットに課せられた制限よりも速い速度は、ユーザーには1500ミリ秒、ボットには750ミリ秒という内部の最大間隔に調整されます。
ユーザーは、モーダルを開いてスクリプトを使用する際に使用する「MassEdit」ボタンのデフォルトの配置を変更することもできます。
このスクリプトは、Placement.jsで承認されているすべての要素の配置をサポートしているため、
ユーザーはサポートされている配置をMassEditのデフォルトのボタンの位置として指定することができます。
(詳細は Placement's approved locations を参照してください)。
設定オブジェクトの例を以下に示します。
window.MassEditConfig = {
interval: 2500,
placement: {
element: "toolbar",
type: "append"
}
};
| Variables | Data Type | Default value(s) |
|---|---|---|
interval
|
Number | 1500 (750 for bots)
|
placement.element
|
String | "tools"
|
placement.type
|
String | "prepend"
|
一般的な使い方
既存のページの内容を編集するための標準的な「prepend」および
「append」オプションの使い方に加えて、これらのオプションは、pagesテキストエリアに
入力された値に基づいて一連の新しいページを作成するために、互換的に使用することができます。
いずれかのオプションを選択し、存在しないページのページタイトルを入力すると、自動的にページが作成されるため、
テンプレートやテキスト抽出物から新しい記事を迅速かつ効率的に公開することができます。
さらに、検索置換機能は、既存の記事からウィキテキスト、
HTML、プレーンテキストを探し出して置換するという本来の使い方だけでなく、
ページからコンテンツを削除するためにも使用することができる。「新しいコンテンツ」フィールドを空白にすると、
空の文字列としてカウントされ、「対象コンテンツ」フィールドのコンテンツを問題のある記事から削除することができます。
また、入力されたカテゴリーごとに、ページからコンテンツを編集・削除・置換する機能もあります。
「カテゴリー」を選択し、テキストエリアにカテゴリー名を入力すると、そのカテゴリーに含まれるすべてのページが編集されます。
(注:カテゴリのタイトルは、Category:Example Categoryまたは単にExample Categoryとして含めることができます。)
上記のカテゴリベースの編集に加えて、ユーザは特定の正当な名前空間に属するページを、
個々の名前空間の番号(0はメインの名前空間、4はプロジェクトの名前空間、など)を改行で区切って、標準的な使用方法に従って編集することができます。
また、リスト生成機能を使って、選択したテンプレートを使ったページのリストを作成することもできます。
カテゴリや名前空間と同様に、複数の埋め込みテンプレートを別の行に入力することができ、複数の入力テンプレートを使用した重複エントリは、ソートや表示の前にすべて削除されます。
Changelog
- 11-12-24
- Addition of rudimentary search functionality for finding target text in input categories/namespaces/loose pages
- 08-11-24
- Addition of functionality permitting the filtering out of redirects when editing/listing pages by namespace
- 04-10-21
- UCP update 4; removal of legacy MW 1.19 code, reinstitution of limited messaging functionality for UCP Message Walls
- 20-10-20
- Patch to address Fandom-side API bug related to comment section protection on UCP wikis
- 20-09-20
- UCP update 3; bug fixes to
ModalButtonenable/disable toggling, adjustments to modal assembly mechanism - 26-08-20
- UCP update 2: addition of Colors dependency, further updates to make basic functionality available on UCP wikis
- 05-07-20
- Improvements to dependency loader
init.load, minor bug fixes - 01-07-20
- Initial experiments in drafting extendable, UCP-friendly dependency-loading framework, pending UCPification of Dev dependencies or importation of legacy functionality like
importArticle(s)and ResourceLoader modules likeext.wikia.LinkSuggest - 27-06-20
- Organizational restructuring for enhanced readability, improvements to module/dependency loading, addition of
exportsobject towindow.dev.massEditto expose public debugging methods, minor bug fixes to user messaging functionality - 18-06-20
- Minor patching to handle ArticleComments extension edge cases, addition of
TESTINGconstant for testing API methods without actually editing page content - 28-05-20
- Refactor of find-and-replace functionality to accept user-input regex; refactor of scene-generation mechanism to lazy-initialize interfaces only when needed; addition of
localStoragecaching for scenes - 03-04-20
- Addition of functionality to generate listings of template transclusions via Embeddedin; addition of functionality to remove duplicate entries from listings prior to Quicksorting
- 08-10-19
- Expansion using WgMessageWallsExist to offer mass-messaging functionality; addition of category member page generation functionality per MassNullEdit; modal redesign and code expansion/alterations
- 20-09-19
- Addition of functionality to replace only specific occurrences of a replacement target; addition of case sensitive/insensitive matching for find-and-replace; minor code alterations
- 18-09-19
- Minor rewrite using Placement and Modal; addition of rudimentary pause/resume functionality,
query-continuehandling for categories/namespaces containing over 5000 member pages, and jQuerylinksuggest. - 24-05-18
- Removal of static config-based edit summary in favor of modal-based summary textbox; assorted cosmetic and improper input behavior fixes
- 17-04-18
- Addition of namespace-based editing/find-and-replace function
- 12-04-18
- Addition of category-based editing/find-and-replace function
- 07-01-18
- 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
- 18-12-17
- Retrofitting of I18n-js, addition of "find-and-delete" option, addition of config options, cleanup
- 06-02-17
- Revision of regex, removal of character limit
- 05-02-17
- Initial revision