I am trying to learn to write user scripts that run on greasemonkey.
I have a small personal website (that no one visits) so I'm using that as my experimental tool. I want to perform a function every time there is a GET
request from the page. My page has a few ajax requests, some user initiated and some timed. Initially I added an event handler for DOM node insert, but I realized there are some requests that makes no changes to the DOM elements.
So, is it possible to add a hook to web requests?
And if not, how do I approach this issue? I'm trying to display some cool stats on the page that basically logs every request with a counter and success/failure rate... all via said userscript.
ps: it's completely pointless, but I started this out of boredom during the holidays and now I can't walk away from it!