Created
May 7, 2010 05:40
-
-
Save hitode909/393099 to your computer and use it in GitHub Desktop.
勝手にリンククリックしまくる
This file contains 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 random-surf | |
// @namespace http://www.hatena.ne.jp/hitode909 | |
// @include * | |
// ==/UserScript== | |
setInterval(function(){ | |
var anchors = document.querySelectorAll('a'); | |
var target = anchors[Math.floor(anchors.length * Math.random())]; | |
location.href = target.href; | |
}, 5000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment