MediaWiki:Gadget-ConfirmRollbackMobile.js

/* Require confirmation before performing rollback on mobile */

$(function {	if (/Android|BlackBerry|iPhone|iPad|iPod|Kindle|Mobile|Opera M|Silk|webOS/i.test(navigator.userAgent)) {		$('.mw-rollback-link a').click(function(e) { if (confirm('Are you sure you want to perform this rollback?')) return; e.preventDefault; });	} });