1
0
Fork 0
mirror of https://github.com/prise6/anywhere synced 2024-05-04 08:53:10 +02:00
redirect to random link in current page
Go to file
2016-04-28 02:13:23 +02:00
Js Fix ancre & mailto & empty array 2016-04-28 02:13:23 +02:00
.gitignore Init 2016-04-28 01:21:14 +02:00
README.md Update readme 2016-04-28 01:41:00 +02:00

__bookmarklet to install : drag and drop __

<a href="javascript:(function(){var l=Array.prototype.slice.call(document.getElementsByTagName('a'));for(var i=l.length-1;i>=0;i--){if(/^(#|mailto)/.test(l[i].href.slice(0,1))||l[i].href==document.location.href)l.splice(i,0)};r=l[Math.floor(Math.random()*l.length)].href;console.log(r);document.location.href=r})();">Anywhere</a>

to be continued