MediaWiki:Gadget-ConfirmRollbackMobile.js

/* Require confirmation before performing rollback on mobile */

$(function {	if (/Android|BlackBerry|iPhone|iPad|iPod|Mobile|Opera Mini|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; });	} });