MediaWiki:Gadget-confirmationRollback-mobile.js

/********************************************************************
 * ***WARNING: GLOBAL GADGET FILE***               **
 * Any changes to this file will affect many users. Please discuss **
 * changes on the talk page or at FP:VPT before editing.   **

// (function {	if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {		$(".mw-rollback-link").on('click', function(e) { var linkText = $(e.target).text, count = linkText.match(/\d/) ? linkText.match(/\d+/)[0] : null, message = 'Rollback ' + (count ? count + ' edits' : 'edit') + ' by ' + mw.util.getParamValue('from',e.target.href) + '?'; if(!confirm(message)) return e.preventDefault; });	} }); //