-
Notifications
You must be signed in to change notification settings - Fork 6
/
Josh-Hack.js
27 lines (26 loc) · 847 Bytes
/
Josh-Hack.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// ==UserScript==
// @name Facebook Spam
// @namespace http://pegabyte.com/
// @version 0.1
// @description try to take over the world!
// @author You
// @include https://www.facebook.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function() {
"use strict";
document.addEventListener('DOMContentLoaded', () => setTimeout(() => {
var followBtns;
var addEveryMs = 400;
function getNextPage() {
followBtns = [].slice.call(document.querySelectorAll('.UFILikeLink'), 1);
followBtns.map((button, index) => setTimeout(() => button.click(), index * 1500) + 200);
setTimeout(() => {
document.body.scrollTop = document.body.scrollHeight;
getNextPage();
}, followBtns.length * 1500 + 200);
}
getNextPage();
}, 2500), false);
})();