MediaWiki:Gadget-ConfirmRollbackDesktop.js

/* Require confirmation before performing rollback on desktop */

$(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; });	} });