Chú ý: Sau khi lưu thay đổi trang, bạn phải xóa bộ nhớ đệm của trình duyệt để nhìn thấy các thay đổi. Google Chrome, Firefox, Internet ExplorerSafari: Giữ phím ⇧ Shift và nhấn nút Reload/Tải lại trên thanh công cụ của trình duyệt. Để biết chi tiết và hướng dẫn cho các trình duyệt khác, xem Trợ giúp:Xóa bộ nhớ đệm.

$(document).ready(function() {
	console.log("[StatusChanger] Module has started!");
	console.log("[StatusChanger] MediaWiki API connection started!");
	$(".vector-user-links").append("<button onclick='changeStatus()'>Đổi status</button>");
});

function changeStatus() {
	var mwApi = new mw.Api();
	var newStatus = prompt("Nhập Status mới của bạn:");
	if (newStatus == null) return console.log("[StatusChanger] Aborted by user.");
	console.log("[StatusChanger] Changing status to " + newStatus + ".");
	mwApi.postWithToken("csrf", { action: "edit", title: "Thành viên:CookieGMVN/Bản mẫu/Tình trạng", format: "json", text: "Trạng thái hiện tại: Đang " + newStatus + ". {{{note}}}" });
	return location.reload();
}