medialab / artoo

artoo.js - the client-side scraping companion.
http://medialab.github.io/artoo/
MIT License
1.1k stars 93 forks source link

How to list existing ajaxSniffers? #303

Open marcogomex opened 2 years ago

marcogomex commented 2 years ago

Hi,

How can I list existing sniffers?

Best regards,

MG

Yomguithereal commented 2 years ago

@marcogomex try looking in artoo.ajaxSniffer.listeners.

marcogomex commented 2 years ago

Thanks,

Now I can´t turn off the spider.

off

Yomguithereal commented 2 years ago

Yes it seems to be a bug because the actual callback wrapper I bind into my internal listeners is not the same reference as the one you pass sorry. I can try to find some time to fix this.