I am working on a chrome-extension that intercepts a form submit event of a webpage and checks the headers. I am using jquery form intercept for the same. It’s working for most sites, but off late I found it is not working for twitter. Has anyone experienced the same? I am not sure whether it is any change of API or some mistake on my code.Attached my form intercept code.
$("form").submit(function(e) {
var $this = $(this);
e.preventDefault();
process(function() {
$this.unbind('submit');
$this.submit();
});
});
process = function(callback) {
alert("inside process");
alert("location.href");
};
Thanks,
Shankar
just an update. It actually works for the sidebar login (provided in the screen shot below). But only in the regular login, its not working. Could be a security feature. But I found all password manager utilities to intercept the submit. Will update if I found the reason.
Thanks,
Shankar