wow! AdBlock for Firefox Blocks Requests too..

Posted at

my notes on debugging a code that downloads an external javascript file

Yes you would probably expect that but listen carefully:

1. I have blocked it in my HOSTS.

..ok no biggy thats the first place I've looked and remarked it..

2. I have PeerBlock...
..handled it.. turned it off

3. still nothing, perhaps clearing cookies, cache... help!

4. restarting browser...

5. trimming my script to ~nil~

6. still does not download ga.js... it it something on my computer?
trying modern event handlers? lets try native onload/onerror debug messages...

oh.. keep getting the onerror message, thats progress,

**some sobbing**

opening the ga.js directly in the browser.. as a url,
it works! @!@#@#!

so its probably my script (?)

disabling greasemonkey, Google-Tracking-B-Gone..
...getting warmer...

switching from pure js to jquery just to verify,
JSLint, JSHint and all the validations on WebStorm
...getting colder...

and then!
ha ha! (some even say HA!ZA!
nope! I'm doing just fine there...

it appears that AdBlock, as an all mighty Firefox extension has some big power tools on its control,
one of them, is "sitting" right on the peer of the connections (figuratively speaking its like someone is sitting near the entrance of your house selectively blocking some of the people from entering..)


I've already found the reason, but just to show you the real power of AdBlock for Firefox,
it was not blocking ga.js when I've entered the url in my address-bar, but no script could it..

in the way to find the cause I've also---...

putting small html, and js with minimal code, in my server instead of my wamp localhost server..
surfing using hidemyass proxy..

connecting and disconnecting my VPN, since it could relate to DNS tables re-written by OpenVPN device-handler..
closing the browsers and CCleaner it all..

after 8 minutes..
(yeah all this took about 8 and a half minutes.. :) )

I've should probably have checked with Chrome or IE,
But I'm a Mozilla Fan..!

if verbose-ing the cause is not enough,
feast your eyes on this :)