Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //page crawler walkthrough the site and click on anything
- (function (debug) {
- if (debug == true ) {
- var dl, dll, i;
- dl = document.links;
- dll = dl.length;
- for (i = dll - 1; i >= 0; i--) {
- if (dl[i].href.substr(0, 7) == 'mailto:') dl.splice(i,1);
- if (dl[i].href.substr(0, 11) == 'javascript:') dl.splice(i,1);
- if (dl[i].href == '#') dl.splice(i,1);
- if (dl[i].href == '') dl.splice(i,1);
- setTimeout(function(){
- var item = dl[Math.floor(Math.random()*dll)];
- window.location.href = item.href;
- },500)
- }
- }
- })(false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement