now his code has no secondary encapsulation Ajax, scattered all over the page. So it"s not realistic to deal with data before a request.
use the ajax-hook plug-in, the documentation is not very detailed, I do not know how to re-assign the processed parameters to ajax.