MediaWiki:Gadget-confirmationRollback-mobile.js

/* Require confirmation before performing rollback on mobile */

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