Skip to content

Instantly share code, notes, and snippets.

@NeoHBz
Created May 13, 2026 15:06
Show Gist options
  • Select an option

  • Save NeoHBz/fbfed5dd2e6d8ed41b2acca8ebd8eaaa to your computer and use it in GitHub Desktop.

Select an option

Save NeoHBz/fbfed5dd2e6d8ed41b2acca8ebd8eaaa to your computer and use it in GitHub Desktop.
ViolentMonkey script for LPU UMS autologin
// ==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