Monitoring javascript events

I recently discovered and wrote about monitoring javascript functions in the console using monitor() – very handy and well worth a read if you’re interested in these kind of things. Whilst I was at it, I also re-discovered monitorEvents(), which I’d completely forgotten about.  This works by letting you actually monitor the event itself, rather than the…

Monitoring javascript functions

Debugging javascript can be hard… really hard. There are times when you find yourself adding in a million console.log() calls (not alerts, no more javascript alerts!) just to try and figure out where on earth the interpreter is going.  There have been times where I’ve added one at the top of every function to try…

No more javascript alerts

I’ve been a web developer long enough to remember when window.console wasn’t a thing.  Then it appeared in Safari and Firebug, the awesome developer tool plugin for Firefox (that made Firefox my default development browser it was so good), but we had to object detect for it.  And Opera decided to go their own way and…

Fun with console logging

Ok, so “fun” is probably a relative term here, but it’s certainly possible to do a lot more with console logging than a lot of developers realise, including myself up until a couple of weeks ago, and I’ve just had the opportunity to use it in my latest project, Compare the Project™. So if you got…

My code is not unsafe(-eval)

I was working on a project this week when I came across something which confused me, and that was the following error in my browser console… Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source of script in the following Content Security Policy directive: ‘self’ In itself, not massively odd.  I…