Pengguna:Hidayatsrf/rollbackSum.js
Tampilan
Catatan: Setelah menyimpan, Anda harus memintas tembolok (cache) peramban Anda untuk melihat perubahannya. Google Chrome, Firefox, Microsoft Edge dan Safari: Tahan tombol ⇧ Shift dan klik Muat ulang (Reload) di tombol bilah alat. Untuk detail dan instruksi tentang peramban lain, lihat halaman menghapus singgahan (Inggris).
//translated by [[User:Hidayatsrf]]
// Original code at https://en.wiki-indonesia.club/wiki/User:Nageh/rollbackSum.js
/* Credits to [[User:Ilmari Karonen]] for original code
* ... [[User:Porchcrop]] for minor improvements (documentation at [[User:Porchcrop/Rollback Summary]])
* ... [[User:Alex_Smotrov]] for essentially this version (see [[en:Wikipedia:Village_pump_(technical)/Archive_96#Script_User:Porchcorpter.2FrollbackSum.js_working.2C_not_working.2C_working.2C_not_working...]])
*/
$(function(){
var promptSummary = function () {
var summary = prompt("Masukan ringkasan pengembalian (atau biarkan untuk menggunakan ringkasan ini):", "[[en:Help:Reverting|Mengembalikan]] suntingan [[Special:Contributions/$2|$2]] ([[User talk:$2|bicara]]) ke versi terakhir oleh $1");
if (summary == null || summary == "") return false;
if (summary == "[[en:Help:Reverting|Mengembalikan]] Suntingan [[Special:Contributions/$2|$2]] ([[User talk:$2|bicara]]) to last version by $1") return true;
this.href = this.href.replace("?", "?summary=" + encodeURIComponent(summary) + "&");
};
$('.mw-rollback-link a').click( promptSummary );
})