Skip to content

Instantly share code, notes, and snippets.

@thomseddon
Created July 24, 2018 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thomseddon/613aa4124beb99cc71c6ea39593017a1 to your computer and use it in GitHub Desktop.
Save thomseddon/613aa4124beb99cc71c6ea39593017a1 to your computer and use it in GitHub Desktop.
Automatically change privay to friends except acquaintances (run in console on https://www.facebook.com/me/allactivity)
var confirm1 = () => { document.querySelectorAll('.uiLayer:not(.hidden_elem) .uiContextualLayer li')[3].click(); }
var confirm2 = () => { document.querySelectorAll('.uiLayer:not(.hidden_elem) .layerConfirm')[0].click() }
document.querySelectorAll('a[data-tooltip-content="Your friends"]').forEach(function (e, i) { setTimeout(() => { e.click(); setTimeout(confirm1, 1000); setTimeout(confirm2, 2000); }, 3000 * i); })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment