Manual:Safemode/pl
The safemode parameter can be added to any MediaWiki URL to load the page without including any on-wiki JavaScript or on-wiki stylesheet pages.
User scripts like User:Example/common.js
and user styles such as User:Example/common.css
are not loaded.
Note that if $wgAllowSiteCSSOnRestrictedPages is set to true
, site-wide scripts will be considered "safe" and this parameter will not disable them.
This can be useful for debugging broken JavaScript gadgets, as described at Help:Lokalizowanie niedziałających skryptów .
Użycie
Append the parameter safemode=1
to any MediaWiki URL.
Przykłady:
- https://www.mediawiki.org/wiki/MediaWiki?safemode=1
- https://www.mediawiki.org/w/index.php?title=MediaWiki&action=history&safemode=1
Wersja MediaWiki: | ≥ 1.41 Gerrit change 940156 |
Since MediaWiki 1.41, there's also a preference under Wygląd → Zaawansowane: "Zawsze aktywuj tryb bezpieczny", which can be used to enable this mode persistently.