我需要一些簡單的代碼來檢測阻塞的URL。對阻止檢測Adblocker(Ghostery)的URL運行Ajax請求
SethWhite說: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.
我可以用microajax做到這一點通過以下方式:
microAjax("/resource/url", function (res) {
alert (res);
});
我怎麼能叫window.open
如果請求沒有成功?
彈出窗口阻止程序將阻止該FYI – epascarello