Run an Ajax request on a URL blocked for detecting Adblocker (Ghostery)
问题 I need some simple code for detecting a blocked url. SethWhite has said: You could also try to run an ajax request on a URL blocked by an adblocker. If it succeeds, there's no adblocker, if it fails, there's an adblocker. I can use microajax to do this in the following way: microAjax("/resource/url", function (res) { alert (res); }); How I can call window.open if the request does not succeed? 回答1: Edit: For microAjax, look up its documentation. I'd imagine in the response you can find the