Created
November 6, 2010 13:58
-
-
Save taizooo/665440 to your computer and use it in GitHub Desktop.
for http://pook.jp/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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