Created
May 13, 2026 15:06
-
-
Save NeoHBz/fbfed5dd2e6d8ed41b2acca8ebd8eaaa to your computer and use it in GitHub Desktop.
ViolentMonkey script for LPU UMS autologin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name LPU autologin | |
| // @namespace Violentmonkey Scripts | |
| // @version 1.0.0 | |
| // @match https://ums.lpu.in/* | |
| // @grant none | |
| // @author neohbz | |
| // @description autologin | |
| // ==/UserScript== | |
| const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
| (async () => { | |
| if (window.location.href === 'https://ums.lpu.in/') { | |
| window.location.href = 'https://ums.lpu.in/lpuums/'; | |
| return; | |
| } | |
| await sleep(100); | |
| const happening = document.getElementById('Happeningleft'); | |
| if (happening) happening.remove(); | |
| const row = document.querySelector('.ums > .container-fluid > .row'); | |
| if (row) { | |
| row.style.display = 'flex'; | |
| row.style.justifyContent = 'center'; | |
| row.style.alignContent = 'center'; | |
| } | |
| if (window.location.href === 'https://ums.lpu.in/lpuums/') { | |
| const user = document.getElementById('txtU'); | |
| const pass = document.querySelector( | |
| '#UpdatePanel1 > .login-inner-form > .form-group.form-box.clearfix > input' | |
| ); | |
| if (user) user.value = ''; | |
| if (pass) pass.value = ''; | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment