Manual:セーフモード

From mediawiki.org
This page is a translated version of the page Manual:Safemode and the translation is 80% complete.

safemode パラメーターは、ウィキ内 JavaScriptウィキ内スタイルシート ページをインクルードせずにページを読み込むために、任意の MediaWiki URL に追加できます。 User:Example/common.js などの利用者スクリプトUser:Example/common.css などの利用者スタイルは読み込まれません。

Note that if $wgAllowSiteCSSOnRestrictedPages is set to true, site-wide scripts will be considered "safe" and this parameter will not disable them.

これは、Help:壊れたスクリプトを特定する で説明しているように、壊れた JavaScript ガジェットをデバッグするのに役立ちます。

使用法

任意の MediaWiki URL にパラメーター safemode=1 を追加します。

例:

MediaWiki バージョン:
1.41
Gerrit change 940156

Since MediaWiki 1.41, there's also a preference under 表示 → 詳細の設定: "セーフモードを常に有効にする", which can be used to enable this mode persistently.

関連項目