daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 29th, 2018 51 in 21 hours
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Facebook Removal
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @match        https://www.facebook.com/Tomas.Toka.Mrazek/allactivity?privacy_source=activity_log&log_filter=app_221226937919712
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. console.log("fb-removal-start");
  12.  
  13. function first() {
  14.     console.log("first-start");
  15.     document.getElementById("fbTimelineLogBody")[0].getElementsByClassName("_6a _6b uiPopover rfloat")[0].getElementsByClassName("_55pe")[0].click();
  16.     console.log("first-end");
  17. }
  18.  
  19. function second() {
  20.     console.log("second-start");
  21.     document.querySelectorAll('.uiContextualLayerPositioner.uiLayer:not(.hidden_elem)')[0].getElementsByTagName("a")[0].click();
  22.     console.log("second-end");
  23. }
  24.  
  25. function third() {
  26.     console.log("third-start");
  27.     document.getElementsByTagName("button")[2].click();
  28.     console.log("third-end");
  29. }
  30.  
  31. function run() {
  32.     console.log("run-start");
  33.     first();
  34.     second();
  35.     third();
  36.     console.log("run-end");
  37. }
  38.  
  39. setTimeout(first, 5000);
  40. setTimeout(second, 5000);
  41. setTimeout(third, 5000);
  42. setTimeout(run, 10000);
  43.  
  44. run();
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top