Open hamada1400 opened 1 year ago
// ==UserScript== // @name TLS RABAT info vissa // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://de.tlscontact.com/ma/RBA/* // @match https://visas-de.tlscontact.com/appointment/ma/maRBA2de/1651569 // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // ==/UserScript==
( function testTls() { 'use strict';
let varInterval = setInterval(reload, 30 * 1000); var mp3_url = 'https://www.zapsplat.com/wp-content/uploads/2015/sound-effects-84577/zapsplat_multimedia_bell_ping_new_alert_notification_triple_ping_low_pitched_87955.mp3'; var mp3_url_2 = 'https://www.zapsplat.com/wp-content/uploads/2015/sound-effects-41945/zapsplat_vehicles_aircraft_call_bell_single_tone_44563.mp3' var audio = new Audio(mp3_url) var audio2 = new Audio(mp3_url_2) function reload() { if (isLoggedOut()) { logIn(); } else { let element = document.getElementsByClassName("appt-table-btn dispo"); //let element = document.getElementsByClassName("appt-table-btn full"); if (element.length > 0) { console.log('Rendez vous disponible'); playAudio(); localStorage.setItem("message",localStorage.getItem("message")+"*** Rendez vous disponible: "+new Date()); } refresh(); } } function playAudio() { console.log('play audio'); audio.play(); wait(2000); } function playAudio2() { console.log('play audio 2 logged out'); audio2.play(); wait(2000); } function wait(ms) { var start = new Date().getTime(); var end = start; while (end < start + ms) { end = new Date().getTime(); } } function isLoggedOut() { let element = document.getElementsByName("pwd"); if(element.length > 0){ console.log('Logged Out'); playAudio2(); return true; } return false; } function logIn() { console.log('i='+localStorage.getItem("i")); if (parseInt(localStorage.getItem("i")) <14 ) { console.log('Login with email '+localStorage.getItem("i")+'@gmail.com'); document.getElementById("email").value = 'email_abcdef_test'+localStorage.getItem("i")+'@gmail.com'; document.getElementById("pwd").value = 'password'; document.getElementsByClassName("submit mt-2 btn btn-primary btn-xl-tls px-5 py-1")[0].click(); localStorage.setItem("i",parseInt(localStorage.getItem("i"))+1); } }
function refresh(){ console.log('reloading'); location.href=location.href; }
function insert(main_string, ins_string, pos) { if(typeof(pos) == "undefined") { pos = 0; } if(typeof(ins_string) == "undefined") { ins_string = ''; } return main_string.slice(0, pos) + ins_string + main_string.slice(pos); }
} )();
https://visa-fr.tlscontact.com/services/customerservice/api/tls/appointment/table?client=fr&issuer=dzORN2fr&formGroupId=12622030&appointmentType=Affaire&appointmentStage=appointment
https://visa-fr.tlscontact.com/services/customerservice/api/tls/appointment/table?client=fr&issuer=dzORN2fr&formGroupId=12622030&appointmentType=prime%20time&appointmentStage=appointment
https://visa-fr.tlscontact.com/services/customerservice/api/tls/appointment/table?client=fr&issuer=dzORN2fr&formGroupId=12622030&appointmentType=prime%20time%20weekend&appointmentStage=appointment
https://visa-fr.tlscontact.com/services/customerservice/api/tls/appointment/table?client=fr&issuer=dzORN2fr&formGroupId=12611172&appointmentType=Primo&appointmentStage=appointment
![Uploading 1525CD03-0221-444A-AAFE-7AE33B53F234.jpeg…]()
Rendez-vous rabat France
// ==UserScript== // @name TLS RABAT info vissa // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://de.tlscontact.com/ma/RBA/* // @match https://visas-de.tlscontact.com/appointment/ma/maRBA2de/1651569 // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // ==/UserScript==
( function testTls() { 'use strict';
function refresh(){ console.log('reloading'); location.href=location.href; }
function insert(main_string, ins_string, pos) { if(typeof(pos) == "undefined") { pos = 0; } if(typeof(ins_string) == "undefined") { ins_string = ''; } return main_string.slice(0, pos) + ins_string + main_string.slice(pos); }
} )();
https://visa-fr.tlscontact.com/services/customerservice/api/tls/appointment/table?client=fr&issuer=dzORN2fr&formGroupId=12622030&appointmentType=Affaire&appointmentStage=appointment
https://visa-fr.tlscontact.com/services/customerservice/api/tls/appointment/table?client=fr&issuer=dzORN2fr&formGroupId=12622030&appointmentType=prime%20time&appointmentStage=appointment
https://visa-fr.tlscontact.com/services/customerservice/api/tls/appointment/table?client=fr&issuer=dzORN2fr&formGroupId=12622030&appointmentType=prime%20time%20weekend&appointmentStage=appointment
https://visa-fr.tlscontact.com/services/customerservice/api/tls/appointment/table?client=fr&issuer=dzORN2fr&formGroupId=12611172&appointmentType=Primo&appointmentStage=appointment