User:NguoiDungKhongDinhDanh/BlankThePage.js

// Originally written by NhacNy2412.

$(function {	if (mw.config.get('wgNamespaceNumber') < 0) return;	mw.loader.using(['mediawiki.util'],	function { mw.util.addPortletLink('p-cactions', 'javascript:void(0)', 'Blank', 'ca-btp'); $('#ca-btp').click(function {			(new mw.Api).postWithToken('csrf', { action: 'edit', title: mw.config.get('wgPageName'), text: '', summary: 'Blanked the page using BlankThePage.js' }).done(function { location.reload; });		});	}); });