Auto-Continue

This is the place for general discussions on fetishes, sexuality and anything else. What's on your mind right now?
Post Reply
User avatar
nilcum
King of Hardware
King of Hardware
Posts: 143
Joined: Tue Dec 26, 2006 6:47 am
Gender: Male
I am a: Switch

Auto-Continue

Post by nilcum »

So, for those of you that are tired of clicking continue over and over I have a treat for you. I spent an hour or so and wrote a quick and dirty javascrirpt auto clicker (really uses xmlhttp) for you. Just copy and paste this line into the URL bar of your browser and the pages will go by every 15 seconds. It will only do it for the first 10 pages so after that you will need to paste it again.

Also, don't let it click through on the last page of the tease will get a rating of 1. Didn't really care to fix this... just rate the tease within the timeout.

The timeout is set for 30 seconds between refreshes.

Code: Select all

javascript:function g(){var u=document.getElementsByTagName('a')[6];var r=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("MSXML2.XMLHTTP.3.0");r.onreadystatechange=function() {if(r.readyState==4 && r.status==200) {document.body.innerHTML=r.responseText;clearTimeout(x);}};r.open('GET',u,true);r.send(null);};for(var i=1;i<11;i++) {var x=setTimeout("g();",30000*i);}
Enjoy!

-nilcum
User avatar
nilcum
King of Hardware
King of Hardware
Posts: 143
Joined: Tue Dec 26, 2006 6:47 am
Gender: Male
I am a: Switch

Upgrade

Post by nilcum »

Ok, I've fixed the 10 page only situation. It will now run until the end of the tease and not automatically rate it a 1. It will also prompt for the number of seconds to wait between pages. Should work with IE too.

Sometimes it seems to miss the "The End" statement. I'm not sure why. If this happens just click on a link a the script should stop.

Code: Select all

javascript:function g(){var u=document.getElementsByTagName('a')[6]; var r=window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("MSXML2.XMLHTTP.3.0"); r.onreadystatechange=function(){if(r.readyState==4 && r.status==200){if( r.responseText.match("The End")){document.body.innerHTML=r.responseText; return;}else{document.body.innerHTML=r.responseText;x=setTimeout("var p=g();",timeOut);return;}}};var p=r.open('GET',u,true);var p=r.send(null);};function gt() {return prompt("How many seconds between pages?",30)*1000;};var x;var timeOut=gt();if(timeOut<1000){alert('Timeout value too small -- defaulting to 30 seconds.');var timeOut=30000;}var p=setTimeout("var p=g();",timeOut);
enjoy
alexi4u
Explorer
Explorer
Posts: 34
Joined: Mon Jan 29, 2007 12:13 am

Post by alexi4u »

thanks. used the xml on sensitivity training at 20 seconds and worked perfectly....WOW!
Xenophobe
Explorer
Explorer
Posts: 92
Joined: Sat Jul 07, 2007 1:42 pm

Post by Xenophobe »

Woa, I didn't know you could put javascript into a url! Amazing!
User avatar
nilcum
King of Hardware
King of Hardware
Posts: 143
Joined: Tue Dec 26, 2006 6:47 am
Gender: Male
I am a: Switch

Post by nilcum »

Xenophobe wrote:Woa, I didn't know you could put javascript into a url! Amazing!
Yeah you can manipulate any portion of a webpage from the URL with the javascript: moniker. In firefox you can make a button on the link bar that does this to. You could even change the images of a tease to match whatever you want. It's pretty cool stuff.
seraph0x
Administrator
Administrator
Posts: 2666
Joined: Sun Jul 23, 2006 8:58 am

Post by seraph0x »

Do a search for Greasemonkey. These guys take it even further and use JavaScript to make permanent dynamic customizations for websites. :-)
Post Reply