EU citizen here. Whenever a site presents me with a tracking consent form that has >500 checkboxes to click in order to tell them to disable all tracking, I open up the dev console and do something like this:
Enable firefox's built in "Do Not Track" features (it can block resources too now), use UBlock Origin, and Decentraleyes, and you've got everything you want. Still allows session cookies and everything for proper functionality, but prevents all ways to track you (3rd party stuff, and tracking via CDN) otherwise. Probably should use HTTPS Everywhere too as a safety precaution too.
Oh, hey. Looks like forEach has been added to the WebIDL spec for NodeList and other DOM iterables. Ain't that fancy. Time to go revise a whole bunch of code!
Or, if you're in Chrome, use $$(), which is a console method that returns the result of querySelectorAll() as an array instead of a nodelist! Very succinct and handy when futzing with the DOM in DevTools.
It does not. The Chrome command line API comes with $, which is not available from browser code. Also, the CLA version of $ is equivalent to document.querySelector, not querySelectorAll.
That's how I mass unfollowed everyone on my old Twitter, I hadn't used it in a few years and previously I had just followed a lot of random people because they had followed me first, ended up with 1000+ I didn't care about, I wanted to start over without losing the follower count so I just iterated over and clicked all the unfollow buttons
76
u/anlumo Mar 18 '19
EU citizen here. Whenever a site presents me with a tracking consent form that has >500 checkboxes to click in order to tell them to disable all tracking, I open up the dev console and do something like this:
document.querySelectorAll('.whateverClassTheCheckboxHas').forEach(cb => cb.click());