Skip to content

Instantly share code, notes, and snippets.

Crippling Facebook

Facebook works with advertisers to target you. These instructions are one of the many ways to begin crippling that relationship. When AI targeting is crippled, your psychosecurity improves :)

  1. On your desktop machine, goto https://accountscenter.facebook.com/ads/audience_based_advertising
  2. Maximize the browser window
  3. Press F12 and click on the Console tab
  4. Select the code below, copy it, paste it upon the Console line (The area next to the > character in the Console window), and press enter:
@scpurcell
scpurcell / NoRecommend.js
Created August 7, 2019 20:31
JS function to tell amazon not to use items for recommendation
/* Paste this in the JS console on the amazon "improve your recommendations" page.
It finds all the "don't use this item" checkboxes, and clicks them if they are not checked.
Finally it waits a few seconds for the XHR to complete, then loads the next page.
Of course this will all break when Amazon changes their page layout, but it shouldn't be too hard to fix.
*/
(function() {
var cb = document.querySelectorAll('[type=checkbox]');
for (var i = 0 ; i < cb.length ; i++) {
if (cb[i].parentElement.parentElement.id.startsWith("cb_isExcluded")) {
if (cb[i].checked === false) {