Closed yuvadm closed 7 years ago
Error nowhere to be seen
I'm still seeing it, FWIW, when going to the "Sources" tab in the devtools (on the haaretz page, not on the background page).
It makes sense I suppose, because they've changed how they load those urls you're trying to block - they are now minified, and opening the devtools loads the source-maps.
And regarding the error itself.. indeed the docs say it should be redirectUrl
, not url
.
@antishok heh, thanks for looking into this and replying! Any chance you wanna send a PR for this?
@antishok from what I can tell, there's no erorr since this block is never actually executed - it looks like the bots script is no longer referenced. I'll probably just remove the stale code.
@yuvadm yeah I agree that it's probably not needed anymore as it is now..
They are still loading those same scripts, but they are now bundled into 2 minified bundles:
So to block them it won't be as simple as blocking a list of urls (because those bundles contain other code unrelated to adblocking).
It seems right now that blocking them is not needed.. but a few weeks ago it suddenly stopped working for me - that's when I started noticing this error in the background-page - I thought it's the reason it's not working, but 2 days later it suddenly started working again. FYI :)
@antishok keep in mind I'm not trying to handle the anti adblock scripts, those are already handled in https://github.com/easylist/EasyListHebrew so the only extra functionality I'm adding here is the user agent change, and blocking of any specific anti-bot scripts.
@yuvadm I see.. well I guess those scripts are not interfering right now. It's just good to keep in mind that they are being loaded and executed - easylist doesn't block them (and I'm not sure it can).
This error shows up on the background page, seemingly without actually affecting behavior:
Probably want to fix this.