Advertisement
astalush

login auto

Apr 10th, 2020
585
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement