Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         TAU injector
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  Autofill my password to TAU form
  6. // @author       Yoav Sternberg
  7. // @match        *://nidp.tau.ac.il/*
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12.     'use strict';
  13.  
  14.     const name = document.getElementsByName('Ecom_User_ID');
  15.     if (name.length !== 0) {
  16.         name[0].value = "YOUR_USERNAME";
  17.     }
  18.     const userId = document.getElementsByName('Ecom_User_Pid');
  19.     if (userId.length !== 0) {
  20.         userId[0].value = "YOUR_ID_NUMBER";
  21.     }
  22.     const password = document.getElementsByName('Ecom_Password');
  23.     if (password.length !== 0) {
  24.         password[0].value = "YOUR_PASSWORD";
  25.     }
  26. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement