Skip to content

Instantly share code, notes, and snippets.

@jadaradix
Created December 30, 2014 03:15
Show Gist options
  • Save jadaradix/5c428bba79a364608f15 to your computer and use it in GitHub Desktop.
Save jadaradix/5c428bba79a364608f15 to your computer and use it in GitHub Desktop.
Facebook Stalk continuously. Console this!
var as = ""; var s = false; var t; var c = function() { var f = $("#f").contentWindow; var ts = ($(".fbLastActiveTimestamp", f.document).childNodes[0].data == "active now"); var cd = new Date(); var st = cd.getHours() + ":" + cd.getMinutes() + "," + (s ? "online" : "offline"); console.log(st); as += st + "\n"; f.location.reload(); }; var stop = function() { clearInterval(t); }; var start = function() { $("body").insertAdjacentHTML('afterbegin', '<iframe id="f" src="https://m.facebook.com/messages/read/?tid=id.289725077795063"></iframe>'); t = setInterval(c, 60 * 1000); }; start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment