sound for captcha

in
Subscribe to sound for captcha 5 posts, 4 voices



beruksakti Scriptwright
FirefoxWindows

can you add sound for captcha page??, i tried to add some script like this
if(document.getElementById("captcha_session") != null)
{
 document.body.innerHTML = document.body.innerHTML + "

Ghost Trappers Smart Autohunt detected a captcha. Stopping refresh.


"; bebunyian(); here the script } function bebunyian () { var kerasukan = document.createElement("div"); kerasukan.innerHTML = "<embed name=\"captcha\" src=\"http://images.norack.info/prodigy_-_girls.mid\" type=\"audio/midi\" autostart=\"true\" hidden=\"true\" loop=\"true\" mastersound enablejavascript=\"true\"></embed&gt"; if (SoundWarning) { document.getElementById("content").appendChild(kerasukan); } document.title = "Macro is paused: Enter your Captcha | " + Judul; kerasukan=null; }
the script become not working i got the code from mousehunt autohunt v3.5 by "" (i forget) could you fix it
 
ihwan pramudita Scriptwright
FirefoxWindows

try to override captcha? nice effort dude...

 
beruksakti Scriptwright
FirefoxWindows

here the source for sound capctcha and prevent script stop working except captcha appears. this script also show timer in browser title like script for MH :D

 
// ==UserScript==
// @name           Facebook - Ghost Trappers Smart Autohunt
// @namespace      Wr3cktangle
// @description    A smart autohunt script for the Ghost Trppers Facebook App
// @include        http://apps.facebook.com/ghost-trappers/*
// @versions       1.3 Updated code to find and parse out code value. GT switched to a d=XXX value. Hopefully script is now more resilient.
// @versions       1.2 Updated code to find and parse out c value (it's not always 3 numbers, d'oh) 
// @versions       1.1 Added handling for stopping refreshes when a captcha is detected. Changed error writing, misc comments.
// @versions       1.0 Initial Release
// @issues         Does not stop attempting to refresh when you run out of whiskey.
// ==/UserScript==

var ttdetik;
var SoundWarning = true;

  deteksi = document.body.innerHTML.search(/captcha_image.php/);
  timerlocation = document.body.innerHTML.search(/topstarttimer\([0-9]{1,2},[0-9]{1,2}\)/);
  linklocation = document.body.innerHTML.search(/hunt.php\?[a-zA-z]+=[0-9]+/);
  
 
  if(timerlocation != -1 && linklocation != -1)
  {
    timerlocation = document.body.innerHTML.search(/topstarttimer\([0-9]{1,2},[0-9]{1,2}\)/);
	cari = document.body.innerHTML.substring(timerlocation + "topstarttimer(".length, timerlocation + "topstarttimer(".length + 8);
    minutes = parseInt(cari.substring(0, cari.indexOf(',')));
    seconds = parseInt(cari.substring(cari.indexOf(',') + 1, cari.indexOf(')')));
    ttdetik = (minutes * 60) + seconds + Math.floor((Math.random() * 30)) +3;
	blow();
  }
  
  if((timerlocation == -1 && linklocation != -1) && deteksi == -1)
  {
	  lokasi();
  }
 if(deteksi != -1)
 {
	  cekdulu();
 }
  if((timerlocation == -1 && linklocation == -1) && deteksi == -1)
  {
	  window.document.title = "error (reloading...)";
	  setTimeout(function() {document.location = "http://apps.facebook.com/ghost-trappers/index.php";},5000);
  }


function lokasi()
{
	linklocation = document.body.innerHTML.search(/hunt.php\?[a-zA-z]+=[0-9]+/);
	link1 = document.body.innerHTML.substring(linklocation + "hunt.php?".length, linklocation + "hunt.php?".length + 15);
    link2 = link1.substring(0,link1.indexOf("\"") - 1); 
	setTimeout(function() {document.location = 'http://apps.facebook.com/ghost-trappers/hunt.php?' + link2;} , 1000);
}


function cekdulu()
{
	window.document.title= "Captcha detekted ";
	var kerasukan = document.createElement("div");
   kerasukan.innerHTML = "<embed src="\\"></embed>";
   if (SoundWarning)
   {
      document.getElementById("content").appendChild(kerasukan);
   }
  
   kerasukan=null;
}

function blow()
	{
		if (ttdetik > 0 )
		{
			document.title =  itung(ttdetik--) + " | Ghost Trappers |";
			window.setTimeout(function () { (blow)() }, 1000);
		}
		if (ttdetik <= 1)
			{
				lokasi();
			}
	}
	
function itung (ttdetik)
	{
	var menit = parseInt(ttdetik / 60);
	var detik = ttdetik % 60;
	var tunjuk = "";
		if (menit > 0)
			{
				tunjuk = menit + " m " + detik + " s";
			}
		else
			{
				if (detik >0)
					{
						tunjuk = detik + " s";
					}
		
			}
	menit = null;detik=null;
	return tunjuk;
	}

i hope you enjoy this edited script :P
it's 100% work on my flock 2.5.6

 
CaptBadd User
FirefoxWindows

Added A New Script, with some more features

http://userscripts.org/topics/53829

 
alvin tan User
FirefoxWindows

sorry berukasakti the script code that you proposed isn't working at all. any possible reason?

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel