<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://petitplanet.wiki/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-purge.js</id>
	<title>MediaWiki:Gadget-purge.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://petitplanet.wiki/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-purge.js"/>
	<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=MediaWiki:Gadget-purge.js&amp;action=history"/>
	<updated>2026-04-11T10:38:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://petitplanet.wiki/index.php?title=MediaWiki:Gadget-purge.js&amp;diff=207&amp;oldid=prev</id>
		<title>Cronos: Created page with &quot;(function($, mw) { 	function purgePage(e) { 		mw.notify(&quot;The page is now purging and will refresh when it is ready.&quot;, { title: &#039;Purging&#039;, tag: &#039;purge&#039;, autoHide: false }); 		(new mw.Api()).post({ 			action: &#039;purge&#039;, 			titles: mw.config.get(&#039;wgPageName&#039;) 		}).then(function() { 			window.location.reload(); 		}, function() { 			var uri = new mw.Uri(); 			uri.query.action = &#039;purge&#039;; 			mw.notify($.parseHTML(&#039;Purging the page failed. Please try again or &lt;a href=&quot;&#039; + uri.toSt...&quot;</title>
		<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=MediaWiki:Gadget-purge.js&amp;diff=207&amp;oldid=prev"/>
		<updated>2025-11-09T23:42:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;(function($, mw) { 	function purgePage(e) { 		mw.notify(&amp;quot;The page is now purging and will refresh when it is ready.&amp;quot;, { title: &amp;#039;Purging&amp;#039;, tag: &amp;#039;purge&amp;#039;, autoHide: false }); 		(new mw.Api()).post({ 			action: &amp;#039;purge&amp;#039;, 			titles: mw.config.get(&amp;#039;wgPageName&amp;#039;) 		}).then(function() { 			window.location.reload(); 		}, function() { 			var uri = new mw.Uri(); 			uri.query.action = &amp;#039;purge&amp;#039;; 			mw.notify($.parseHTML(&amp;#039;Purging the page failed. Please try again or &amp;lt;a href=&amp;quot;&amp;#039; + uri.toSt...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;(function($, mw) {&lt;br /&gt;
	function purgePage(e) {&lt;br /&gt;
		mw.notify(&amp;quot;The page is now purging and will refresh when it is ready.&amp;quot;, { title: &amp;#039;Purging&amp;#039;, tag: &amp;#039;purge&amp;#039;, autoHide: false });&lt;br /&gt;
		(new mw.Api()).post({&lt;br /&gt;
			action: &amp;#039;purge&amp;#039;,&lt;br /&gt;
			titles: mw.config.get(&amp;#039;wgPageName&amp;#039;)&lt;br /&gt;
		}).then(function() {&lt;br /&gt;
			window.location.reload();&lt;br /&gt;
		}, function() {&lt;br /&gt;
			var uri = new mw.Uri();&lt;br /&gt;
			uri.query.action = &amp;#039;purge&amp;#039;;&lt;br /&gt;
			mw.notify($.parseHTML(&amp;#039;Purging the page failed. Please try again or &amp;lt;a href=&amp;quot;&amp;#039; + uri.toString() + &amp;#039;&amp;quot;&amp;gt;do so manually&amp;lt;/a&amp;gt;.&amp;#039;), { title: &amp;#039;Purging failed&amp;#039;, tag: &amp;#039;purge&amp;#039;, type: &amp;#039;error&amp;#039;, autoHide:false });&lt;br /&gt;
		});&lt;br /&gt;
		e.preventDefault();&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	function init() {&lt;br /&gt;
		var link = mw.util.addPortletLink(&amp;#039;p-cactions&amp;#039;, &amp;#039;#&amp;#039;, &amp;#039;Refresh&amp;#039;, &amp;#039;ca-purge&amp;#039;, &amp;#039;Purge page contents&amp;#039;);&lt;br /&gt;
		$(link).click(purgePage);&lt;br /&gt;
		$(&amp;#039;.jsPurgeLink&amp;#039;).click(purgePage);&lt;br /&gt;
		$(&amp;#039;.jsPurgeLink &amp;gt; a&amp;#039;).attr({&amp;#039;href&amp;#039;: &amp;#039;#&amp;#039;, target: &amp;#039;&amp;#039;});&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	$(init);&lt;br /&gt;
}(jQuery, mediaWiki));&lt;/div&gt;</summary>
		<author><name>Cronos</name></author>
	</entry>
</feed>