Skip to content

Instantly share code, notes, and snippets.

@dolpen
Created August 30, 2011 03:34
Show Gist options
  • Save dolpen/1180113 to your computer and use it in GitHub Desktop.
Save dolpen/1180113 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name HatenaStarCluster
// @namespace www.dolpen.net
// @description はてなスター爆撃
// @include *
// @require http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js
// ==/UserScript==
(function(){
var t;//ターゲット;
var s='.hatena-star-add-button';//セレクタ
var wait=1000;
var init=function(){
$(s).each(function(){
var self = $(this);
var func = function(){
self.click();
};
self.bind('mouseover',function(){
if(confirm('爆撃しますか?')){
setInterval(func,wait);
};
self.unbind('mouseover');
});
});
};
setTimeout(init,1000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment