View difference between Paste ID: 51915W5r and YmLKr0vJ
SHOW: | | - or go back to the newest paste.
1
// ==UserScript==
2
// @name         New Userscript
3
// @namespace    http://tampermonkey.net/
4
// @version      0.1
5
// @description  try to take over the world!
6
// @author       You
7
// @match        https://metis.afpa.fr/login/index.php
8
// @grant        none
9
// ==/UserScript==
10
11
const credentials = {
12
    userName: "baba",
13
    password: "test"
14
};
15
16
(function() {
17
    'use strict';
18
19
    //Asteapta 3.5 secunde (3500 ms) inainte sa faci login
20
    setTimeout(() => {
21
        document.querySelector("#username").value = credentials.userName;
22
        document.querySelector("#password").value = credentials.password;
23
        //document.querySelector("#loginbtn").click();
24
    }, 3500);
25
26
})();