0% found this document useful (0 votes)
411 views2 pages

TLS Contact Appointment Script

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
0% found this document useful (0 votes)
411 views2 pages

TLS Contact Appointment Script

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
  • Initialization Script
  • Begin Work Function
  • Popup Management Functions

// ==UserScript==

// @name infovisa tls france 1


// @namespace [Link]
// @version 0.1
// @description try to take over the world!
// @author You
// @match [Link]
// @match [Link]
// @match [Link]
// @match [Link]
// @match [Link]
// @match [Link]
// @match [Link]
// @include [Link]
// @icon [Link]
// @icon
data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
// ==UserScript==
// @name New Userscript
// @namespace [Link]
// @version 2024-06-09
// @description try to take over the world!
// @author You
// @match [Link]
// @icon [Link]
// @grant none
// ==/UserScript==
// url to table

// url to table

[Link]("Begin work")
var sc=[Link]('div');

[Link]='<div style="padding:20px;position:fixed;z-
index:99999;top:0px;left:0px;background-color:white;">Starting.</div>';
[Link](sc);

if([Link](".[Link]/appointment/")){
[Link]='<div style="padding:20px;position:fixed;z-
index:99999;top:0px;left:0px;background-color:red;">Searching........</div>';
[Link](sc);
}

// url to table
setTimeout(function(){
var load = [Link]('vld-overlay is-active is-full-page')

var my = setInterval(function() {
if([Link]('-available').length>0){
[Link]='<div style="padding:20px;position:fixed;z-
index:99999;top:0px;left:0px;background-color:red;">Searching........</div>';
[Link](sc);
work()
clearInterval(my)
}
if(load[0].[Link] == 'none'){
popup()
clearInterval(my)
}
}, 100);
}, 100);

function popup(){
var popup = [Link]('tls-popup')
//var btnC = [Link]('tls-button-primary -uppercase')

if(popup[0].innerText =="×\nDésolé, il n'y a pas de rendez-vous disponible pour


le moment, veuillez vérifier plus tard.\nCONFIRMER"){
[Link](function(){ [Link](); }, 110*1000)
}else{
if([Link]('-available').length>0){
//[Link]('-available')[0].click();
var half = parseInt(([Link]('-available').length
- 1)/2)
[Link]('-available')[half].click();
var btnConfirm = [Link]('tls-button-primary -
uppercase')
btnConfirm[0].click()
}
}
}

function work(){
if([Link]('-available').length>0){
[Link]='<div style="padding:20px;position:fixed;z-
index:99999;top:0px;left:0px;background-color:red;">Searching........</div>';
[Link](sc);
//[Link]('-available')[0].click();
var half = parseInt(([Link]('-available').length -
1)/2)
[Link]('-available')[half].click();
var btnConfirm = [Link]('tls-button-primary -
uppercase')
btnConfirm[0].click()
[Link]("[Link]
setTimeout(function(){
var btnConfirm1 = [Link]('tls-button-primary -
uppercase')
btnConfirm1[0].click()
}, 100);
}
}

// ==UserScript==
// @name         infovisa tls france 1
// @namespace    http://tampermonkey.net/
// @version      0.1
// @d
if(load[0].style.display == 'none'){
      popup()
      clearInterval(my)
    }
  }, 100);
}, 100);
function popup(){

You might also like