67% found this document useful (3 votes)
3K views1 page

BLS Alert

This document contains the code for a Tampermonkey user script. The script refreshes the page if there are no upcoming appointment dates available, and plays a machine gun sound effect if an active appointment date is detected on the page. It checks every 3 seconds and refreshes the page automatically after 40 minutes if no appointments are found.

Uploaded by

Ahmed Hellal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
67% found this document useful (3 votes)
3K views1 page

BLS Alert

This document contains the code for a Tampermonkey user script. The script refreshes the page if there are no upcoming appointment dates available, and plays a machine gun sound effect if an active appointment date is detected on the page. It checks every 3 seconds and refreshes the page automatically after 40 minutes if no appointments are found.

Uploaded by

Ahmed Hellal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

// ==UserScript==

// @name BLS Alert 2


// @namespace http://tampermonkey.net/
// @version 2.0.3
// @description bls aler P|R|C Clean Refresh Alarm Notif
// @author @ItsHellal
// @match *://*.algeria.blsspainvisa/appointment_family.php
// @match *://*.algeria.blsspainvisa/*/appointment_family.php
// @match https://algeria.blsspainvisa.com/appointment.php
// @match *://*.algeria.blsspainvisa/*/appointment.php
// @match *://*.algeria.blsspainvisa/embassy_appointment.php
// @match *://*.algeria.blsspainvisa/*/embassy_appointment.php
// @grant none
// ==/UserScript==

var gun=setInterval(function(){
if (document.getElementById("app_date").Value.length === 0)
{
setTimeout(function(){window.location.reload(1);}, 40*10000);;
}
if (document.getElementsByClassName('day activeClass').length !==0) {
new Audio('https://www.soundjay.com/mechanical/sounds/machine-gun-
02.mp3').play();
clearInterval(gun);
}
}, 3000)

You might also like