A Javascript interceptor