This script is for PERSONAL use only!
You are free to install this script for yourself , but it is not allowed to be used wiki-wide (e.g., in MediaWiki:Common.js or MediaWiki:Wikia.js), as it would violate Fandom's Terms of Use . (See the customization policy )
PurgeButton
Description
Adds "Purge" option to page controls
Updated
September 13, 2020
English (en) العربية (ar) অসমীয়া (as) asturianu (ast) azərbaycanca (az) беларуская (be) беларуская (тарашкевіца) (be-tarask) български (bg) বাংলা (bn) brezhoneg (br) bosanski (bs) català (ca) čeština (cs) Deutsch (de) dolnoserbski (dsb) Ελληνικά (el) Esperanto (eo) español (es) eesti (et) suomi (fi) français (fr) arpetan (frp) galego (gl) Alemannisch (gsw) ગુજરાતી (gu) हिन्दी (hi) hrvatski (hr) hornjoserbsce (hsb) magyar (hu) interlingua (ia) Bahasa Indonesia (id) íslenska (is) italiano (it) 日本語 (ja) Basa Jawa (jv) ქართული (ka) ភាសាខ្មែរ (km) 한국어 (ko) Limburgs (li) lietuvių (lt) latviešu (lv) македонски (mk) मराठी (mr) Bahasa Melayu (ms) эрзянь (myv) Nāhuatl (nah) Nederlands (nl) norsk nynorsk (nn) norsk (no) occitan (oc) polski (pl) Piemontèis (pms) português (pt) português do Brasil (pt-br) română (ro) tarandíne (roa-tara) русский (ru) slovenčina (sk) српски (ћирилица) (sr-ec) srpski (latinica) (sr-el) Seeltersk (stq) svenska (sv) lea faka-Tonga (to) Türkçe (tr) українська (uk) Tiếng Việt (vi) 中文(简体) (zh-hans) 中文(繁體) (zh-hant) 中文(香港) (zh-hk) 中文(台灣) (zh-tw) Translate!
PurgeButton adds a "Purge" option to page controls. Upon clicking the button, it purges both Fandom's caches and your browser's cache.
Installation
importArticles
Add this JavaScript on your wiki (or add the highlighted text to your existing import statement):
importArticles ({ type : 'script' , articles : [ 'u:dev:MediaWiki:PurgeButton/code.js' , ] });
Importing multiple scripts? This quick guide shows how to combine the imports. For personal use, note that personal JS must be enabled for your account.
Configuration
To change the text of the button, set PurgeButtonText
, like this:
window . PurgeButtonText = 'purge' ;
Text above can be found
here (edit )