Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name New Userscript
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://metis.afpa.fr/login/index.php
- // @grant none
- // ==/UserScript==
- const credentials = {
- userName: "baba",
- password: "test"
- };
- (function() {
- 'use strict';
- //Asteapta 3.5 secunde (3500 ms) inainte sa faci login
- setTimeout(() => {
- document.querySelector("#username").value = credentials.userName;
- document.querySelector("#password").value = credentials.password;
- //document.querySelector("#loginbtn").click();
- }, 3500);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement