Created
August 30, 2011 03:34
-
-
Save dolpen/1180113 to your computer and use it in GitHub Desktop.
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
// ==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