dev

This page, or parts of it, are still untranslated. Please translate it to the appropriate language (日本語).

RecentChangesMultiple is designed for monitoring multiple wikis at once, giving one central location to view all the edits. While this script is designed to emulate standard recent changes as close as possible (pre UCP update design), there are many subtle differences (see Notes below).

This tool is designed primarily with Fandom wikis in mind, but should work for any wiki running on the MediaWiki codebase. For problems with non-Fandom wikis, click here.

This script can be found on GitHub, along with a changelog.

Installation

Usage

All that's truly needed after the script is installed is a <div> with the rc-content-multiple class and a bullet list with the link of the wiki's domain (the <div> will need to be added via source mode). Duplicate entries are ignored. Example:

<div class="rc-content-multiple">
*https://runescape.fandom.com/fr/
*wowpedia.fandom.com
*https://dev.fandom.com &bgcolor=green
</div>

Basic Features

While not part of Special:RecentChanges, these are some additional features included by default.

Additional Parameters

While the above works and that's all that may be needed, there are also many other additional parameters that can be added, in 3 ways: 1 that affects every RCM, 1 that affects every wiki on a specific RCM list, and one that affects a specific wiki.

URL variables

This affects every RCM on the page. Currently the only URL variables accepted are those used by a standard RecentChanges page. See more at RC Params below: https://yourwiki.fandom.com/wiki/RecentChangesMultiplePage?hidemyself=1&days=7

Dataset

These affect every wiki / the script as a whole for a single instance.

Ones labeled [Global] only are checked on the first instance, and are used for all other instances. Note: If you edit global parameters in the UCP editor the changes won't appear until you refresh the page.

Name Expects Default Description
data-params= Recent changes URL parameters - The exact params you would use on Special:RecentChanges, without the "?" after the title (ex: hidemyself=1&days=10&limit=50). See more at RC Params below.
data-hideusers= コンマ区切りのリスト - すべてのWikiで編集を隠したいユーザーのリスト。コンマ(,)で区切ってください。 "User:"を含めないでください。コンマの前後に空白を含めることができます(もし名前に空白またはアンダースコアが(_)ある場合)。
data-timezone= String utc デフォルトでは、このスクリプトはUTCの時刻をリストします。この属性が "local"に設定されている場合、一覧表示される時間はWebブラウザによって決定された現地時間に基づきます。
data-timeformat= String 24 デフォルトでは、このスクリプトは24時間形式で時間を一覧表示します。この属性が "12"に設定されている場合、時間は12時間の午前/午後の形式で表示されます。
data-autorefresh= Whole number 60 スクリプトが自動更新を待機する秒数(自動更新ボックスがチェックされている場合)。更新が完全に終了し、すべての結果が画面に追加された後に時間が開始することに注意してください。
data-autorefresh-evenOnFocus= Boolean true 自動更新が有効になっていると、デフォルトでは、現在ページが開いていてクリック/読み取り中であってもスクリプトが更新されます。これは厄介なことになるので、このオプション( "false"に設定されている場合)は、ページにフォーカスがある場合(最後にクリックしたウィンドウと現在のタブ)にスクリプトが更新されないようにします。
data-notifications-hideusers= コンマ区切りのリスト - 編集時に自動更新通知を表示したくないユーザーのリスト。コンマで区切ってください。"User:"を含めないでください。コンマの前後に空白を含めることができます(名前には空白またはアンダースコアが必要です)。
data-discussions-enabled= Boolean or comma separated list true 各WikiのFandomディスカッションを一覧表示します。無効にするには "false"に設定します(オプションパネルの切り替えはこれをオーバーライドします)。詳しくは 下記を参照してください。
data-abuselogs-enabled= Boolean false Set to true to enable. Note that abuse logs are "separate" from typical logs (similar to discussions), although it doesn't require an additional API call (instead just making the initial API call return more abuse-log-only values).
高度なオプション(ほとんどの人には必要ありません)
高度なオプション
Name Expects Default Description
data-lang= 言語コード auto-detect これは、スクリプト内のテキストを翻訳するときに使用される言語です。デフォルトでは、このスクリプトはユーザ設定で設定された言語(またはanonの場合はwiki言語)を使用し、サポートされている場合は言語を表示します。サポートされていない場合は"en"(サーバから直接取得されるRCテキストを除く)を表示します。言語がサポートされていないが翻訳に英語を使用したくない場合は、これを2文字の言語コード("fr"、"pl"など)に設定してください。
data-onlyshowusers= コンマ区切りのリスト - If a list of users exists, the script will only show edits by these user(s), hiding all non-specified user edits. hideusers (both dataset (above) and wiki-specific (below)) takes precedence. Do not include "User:", and whitespace may be included before/after the commas (white space/underscores in names is required).
data-ajaxlinks= Boolean false Set to true to enable. When enabled, various links will behave the same (on click) as their icon counterpart: "diff" and "changes" links will open ajax diffs, and "Upload log" and file names (when not in a log and is the page that was changed) will open the ajax gallery.
data-hiderail= Boolean true [Global] By default any page that includes a .rc-content-multiple <div> will have its rail hidden (so it takes up whole page, like normal RC). This parameter is simply a way to reverse this, if desired, when this parameter is equal to false.
data-autorefresh-enabled= Boolean false If no cookie is present, this controls whether or not the "Auto refresh" feature is enabled by default. Setting it to "true" will enable it by default.
data-loaddelay= Number 10 [Global] The time (in milliseconds) to wait between loading wikis. Only time this is needed to be increased is when loading a large number of wikis (100+) to avoid load limit and being blocked temporarily.
data-extraLoadingEnabled= Boolean true 最初の呼び出しですべての情報を取得できるわけではないため(最初の情報が必要になるため)、すべてのコンテンツが画面に追加された後に読み込まれます。これは厳密には必要ないので、これを無効にする方法を提供します(おそらくサーバー呼び出しを制限するか帯域幅を節約するため)。

現在これが必要なもの:

  • フォーラム/メッセージウォールのタイトルの表示、ページへのリンクを修正
  • ディスカッションタイトルの表示
  • ブロックとユーザーグループごとのcssクラスを追加
data-localSystemMessages= Boolean true WikiのAPIを含む一部のWikiは、一般のアクセスが制限されています。監視していなくても通常は問題にはなりませんが、このようなWikiでこのスクリプトを実行すると、スクリプトが言語サポートのために使用しているシステムメッセージにアクセスできなくなります。これを "false"に設定すると、代わりにCommunity Centralからシステムメッセージを取得します。スクリプトを英語で実行する場合、これは必要ありません。Wikiのシステムメッセージはパーソナライズすることができ、ローカルのものを使用することでスクリプトがそれらを使用することを可能にするので、これはデフォルトで作動しています。
Example

Datasets go directly inside the <div>, like so:

<div class="rc-content-multiple" data-params="hidemyself=1&days=10&limit=50" data-hideusers="TestUser,My awesome username,ILikePIE">
*List of wikis
</div>

On List Items

Every item on the list must start with the wiki's base URL, in the format "name.fandom.com" (or name.fandom.com/lang/, or "wikiname.com" (or other top level domain if the wiki doesn't have "fandom"/"wikia" in it).

These allow you to customize a specific wiki's results, instead of requiring every wiki listed to use the same options.

Each list item may have parameters added to add additional functionality for how that wiki is displayed / loaded. This can be done in one of two ways:

*dev.fandom.com
**bgcolor=green
Name Expects Default Description
&params= Recent changes URL parameters - Same as data-params, except "&"s must be turned into commas (","), and "="s into colons (":"). See also RC Params below.
&hideusers= コンマ区切りのリスト - Much like the data-hideusers= above, this accepts a comma-separated list of users, but instead they are only hidden for the specified wiki. Do not include "User:".
&onlyshowusers= コンマ区切りのリスト - Much like the data-onlyshowusers= above, this accepts a comma-separated list of users, but instead it only triggers for the specified wiki. Do not include "User:".
&notifications_hideusers= コンマ区切りのリスト - Much like the data-notifications-hideusers= above, this accepts a comma-separated list of users, but instead it only triggers for the specified wiki. Do not include "User:".
&notifications_enabled= Boolean true Set to false to prevent edits on this wiki from sending out notifications. Note: if you wish to disable notifications for the whole script, don't use script settings; instead use your native browser way to disable notifications you accepted (usually click the gear icon on a notification that pops up).
Special cases for properly displaying wikis
&scriptdir= Text - (for non-Fandom wikis) The sub-directory of the wiki scripts should access for the api. Ending "/" should not be included. By default the script checks the root of the domain (as this is how it is on Fandom), but for some wikis it may be something else (popular directories are "/w" and "/wiki"). An easy way to find a wiki's API directory is to enter "console.log(mw.config.get("wgScriptPath"));" in your browser's console on that respective wiki. Or for newer wikis, go to Special:Version and select "Script path" under the "Entry point URLs" section.
&username= Text - これはFandom以外のWikiにのみ"必要"です。. 外部のユーザ名は知られていないので、これはあなたがWikiのためにそれを指定することを可能にします。これにより、「自分の編集を隠す」が機能し、(「ブロック」リンクなどを表示するための)ユーザー権限が検出されます。これらの機能を気にしないのであれば、これは省くことができます。表示先がFandom Wikiの場合、現在ログインしているユーザーをチェックするので、これは必須ではありません。(あなたが別のFandom Wikiのために別のアカウントを持っているなら、これが使われるかもしれませんが、そうなると多分ブロックされるでしょう)。
&favicon= URL (without https://) - Wikiに使用されているfaviconを指定されたものに置き換えます。 Simply include the full url without the "https://". faviconの設定がないWiki、またはそのWikiのfaviconがリストにある他のWikiとあまりにも似ている場合を対象としています。
&bgcolor= CSS background - If set, the recent changes for this wiki will show this background color behind them (instead of the favicon tiled). Any valid CSS "background" value will work (even none, rgb(), or url()). It is also possible to tweak other values by chaining CSS (ex: &bgcolor=orange;opacity:0.5). bgcolor opacity is 0.1 by default.
Examples
<div class="rc-content-multiple">
*https://fewfre.fandom.com &hideusers=Fewfre,FewBot
*https://pixelmonmod.com &scriptdir=wiki&params=hidemyself:1,limit:5
*https://wiki.guildwars2.com
**favicon=wiki.guildwars2.com/images/thumb/d/df/GW2Logo_new.png/180px-GW2Logo_new.png
</div>

Options Panel

Offers a way to tweak "data-params=" options in real-time. The options panel does have a setting to remember the options you changed via localStorage (off by default). Any options changed before turning this feature on will also be remembered. Clicking this off again will remove the info from storage. One of the above methods should be used if you want the change to persist on a different computer / without using localStorage. The options panel also allows a way to toggle Fandom Discussions on/off.

Due to these options changing display requirements, all current changes listed on the page will be cleared and then refreshed.

RC Params

To help emulate Special:RecentChanges as much as possible, this script accepts RC-style URL params (used as explained above with "data-params", "&params", URL variables, or the options panel). There are multiple params, as explained below. Please note that these affect each wiki individually (so a limit of 50 for 4 wikis is actually a limit of 200 total).

There are a few ways to specify params in the script. If more than one is specified, they will "fall through", with the more specific one overwriting the less specific one (ex: "&params" is more specific than "data-params"), but only if they both change the same thing (such as "days"). The order of specificity is as such:

  1. [Default values]
  2. User settings - uses the 4 settings under "Special:Preferences > Under the Hood > Recent changes"
  3. URL variables – same as a normal recent changes page.
  4. data-params
  5. Options panel (run-time options)
  6. &params (note that the "options panel" will not overwrite these)

Note that for "true/false" boolean switches, "0" is false, and "1" is true.

Available parameters
Parameter Default Description
limit 50 This can be any whole number between 0-500 (may be less depending on "days").
days 7 Number of days (may be less depending on "limit").
hideminor 0
(false)
Hides edits that were marked as "minor".
hidebots 1
(true)
Hides edits done by a bot.
hideanons 0
(false)
Hides edits done by anonymous users.
hideliu 0
(false)
Hides edits done by logged-in users.
hidemyself 0
(false)
Hides edits done by the account you are logged in as. Note: "hide-users=" will override this (even when using options panel). Also note that external wikis require the use of "&username=" (see above) for this to work.
hideenhanced 0
(false)
Doesn't show group edits, instead showing each edit in the order they were done. Note: Isn't supported on a wiki-per-wiki basis (all or nothing).
hidelogs 0
(false)
Hides logs.
hidenewpages 0
(false)
Hides any page creation recent changes.
hidepageedits 0
(false)
Hides any page edits (not counting page creations).
namespace none By default, all namespaces are shown. Shown namespaces can be limited by adding the namespace number to be shown. If more than one namespace is to be shown, the namespaces must be separated with a "|" and no spaces (ex: 1|10|2001 to only show Talk and Template).
Unsupported Parameters
from, invert, associated, tagfilter, hidewikidata, and any others not listed.
Feel free to request support for an unsupported parameter to be added if you need it; all should be more or less possible.

Extra Features

Refresh All

<span class="rcm-refresh-all button">Refresh All</span>

CSS Styling

This script uses as many default recent changes classes as possible to allow styling to be consistent. Most RCM-specific features also use class names to allow for customization. Some useful classes are:

So long as "data-extraLoadingEnabled" is not turned off, user links also have attributes added once the data is fetched. .rcm-userblocked signifies a user is blocked on that wiki, .rcm-usergroup-$1 allows you to customize names based on the user's group (with "$1" being the unique ID for that group), and .rcm-useranon is added for anonymous users. You can find common group IDs here (listed as "group-$1") and you can find a list of all groups (and the rights that come with them if curious) here; simply change the wiki in the URL to see it for your target wiki (if it has a custom group). ex: .rcm-usergroup-content-moderator

There are many other classes (either custom or recent changes classes) that can be utilized to customize the script. Best way to find them is to just inspect the element you want to customize and go from there.

Discussions

In late 2016 Fandom started pushing their discussion system onto new wikis, eventually working towards placing it on all wikis. Edits made inside the discussion area do not show up inside recent changes, so support has to be tacked on. This has a few potentially unexpected results:

HTTPS

Since all Fandom wikis have HTTPS enabled, you will not be able to load content from wikis without HTTPS.

If you are having HTTPS loading issues running the script on a fandom.com wiki, try changing any wikia.com wiki links in your list to fandom.com. All wikia wikis are now converted to Fandom, so shouldn't be an issue.

This issue will still affect some external wikis however that will continue to run without HTTPS. There is currently no workaround for this issue.

Non-Fandom wikis

This tool is designed primarily with Fandom wikis in mind, but should work for many wikis by default, and has some settings to handle special cases for certain non-Fandom wikis (such as "&scriptdir=" above). When adding non-Fandom wikis, it's important to note that this script is designed for MediaWiki wikis only, and requires the Mediawiki API to be enabled on a wiki to run (usually on, but some wikis do have it turned off).

Also note that as Fandom uses HTTPS, wikis running on HTTP cannot be loaded using this script.

Notes

Other

必要事項