Skip to content

Instantly share code, notes, and snippets.

@taizooo
Created November 6, 2010 13:58
Show Gist options
  • Save taizooo/665440 to your computer and use it in GitHub Desktop.
Save taizooo/665440 to your computer and use it in GitHub Desktop.
javascript:
'pook_all_follow.bookmark.js';
(function(){
if(typeof HTMLElement!='undefined'&&!HTMLElement.prototype.click){
HTMLElement.prototype.click=function(){
var evt = this.ownerDocument.createEvent('MouseEvents');
evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
this.dispatchEvent(evt);
}
}
Array.prototype.slice.call(document.querySelectorAll('a[href^="/f/add/"]')).forEach(function(e){
e.click();
});
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment