4 ms·
Tampermonkey is great for this, because it can log everything and it brings its own XMLHttpRequest: GM_xmlhttpRequest({ method : 'GET',
by Udo 4y ago
Tampermonkey is great for this, because it can log everything and it brings its own XMLHttpRequest:
GM_xmlhttpRequest({
method : 'GET',
url : 'https://myloggingurl/?client='+client+'&url='+encodeURIComponent(window.location.href)+
'&title='+encodeURIComponent(document.title),
responseType : 'json',
onerror : function(e) { console.error('URL-Logger', e); },
});
I've been logging all my web activities since 2018, it's been a great tool. On the server side, I filter out ad spam and other extraneous URLs, and then run a cronjob that converts all new HTML documents it sees to PDFs with wkhtmltopdf. It's been a great tool for finding stuff in those moments where I go "hm, I remember seeing something about this months ago..."
- akpa1 4y agoThat's pretty neat! The PDF idea is something a few people have mentioned - I might steal it, since I've been thinking of archiving that list for a little while now, too. I can imagine that's ended up being a pretty large repository of PDFs, though!
- Udo 4y agoThe PDFs are a couple of GB every year - I could limit that further by putting more aggressive filtering in place. There is also a rule that copies the contents of image and PDF URLs verbatim without converting them. Over time I'm going to extend all of this to a more fully-fledged "sousveillance" dataset. I would love to add health and location data, but alas Apple is such a walled garden. But I did add a note-taking system, Zettelkasten-style.