Multi
Multi
Facebook Poke Bot; Chrome Extension
Topic Started: Sunday, 30. December 2012, 19:51 (461 Views)
Andrew
Member Avatar
ぼくたちがすべてはばか。
So I got bored today and decided to make a poke bot for chrome.

http://andrewleenj.com/scripts/autopoke.crx

All you need to do is download that and drag it into your extensions page.

Source code:
Code: JavaScript
 
function poke(){
var people = document.querySelectorAll('a.uiIconText');

for(var n = 0; n < people.length; n++){
var person = people[n];

if(person.getAttribute('rel') == 'async-post' && person.getAttribute('ajaxify').match(/^\/ajax\/pokes\/poke_inline.php\?uid=/gi)){
var evt = document.createEvent('MouseEvents');
evt.initEvent('click', true, true);
person.dispatchEvent(evt);
}
}

console.log('Poke Bot by Andrew Lee (Kirigaya Kazuto/Wild Andrew Lee) http://andrewleenj.com');
}

if(location.href.match(/facebook\.com\/pokes/gi)){
var delay = parseInt(prompt('Enter the delay in seconds:'));

setInterval(function(){
poke();
}, delay * 1000);
}
Edited by Andrew, Sunday, 30. December 2012, 19:51.
Posted Image

Professional web design/development services.http://wildandrewlee.com/
Off
Profile
Quote
Top
 
Cody
Member Avatar
Winter is coming.
Interesting - you'd never lose a poke war ever again. :r
Posted Image
Posted Image
Off
Profile
Quote
Top
 
Nick
Member Avatar
Let it go, let it go, can't hold it back anymore!
Cody
Sunday, 30. December 2012, 21:37
Interesting - you'd never lose a poke war ever again. :r
Lol epic +D

How exactly does it work? Just automatically poke back, or?
Ephex - A Development, Design & Community Discord

Posted Image

Nick | 'Atta Boy Luther! | Outline Manager | Ask Me!

Myy Stuff
Off
Profile
Quote
Top
 
Venomed
Member Avatar
BABA KHUA URI JUAA!!!!!!!
i guess each and every person gets a poke
ha ha
Off
Profile
Quote
Top
 
Andrew
Member Avatar
ぼくたちがすべてはばか。
All you need to do is have a tab or something open to your pokes page. The bot will automatically poke back any pokes that haven't been poked back and then proceed to poke back future pokes.
Posted Image

Professional web design/development services.http://wildandrewlee.com/
Off
Profile
Quote
Top
 
cynosure.x
Member Avatar
Reach for the stars.
Hahaha, nice! :P I'll download this tonight if I remember. :r
Posted Image

Posted Image
Off
Profile
Quote
Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Media & Technology · Next Topic »

Welcome Guest [Log In] [Register]
Outline Live
Loading..
Loading..