Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
勝手にリンククリックしまくる
// ==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