Skip to content

Instantly share code, notes, and snippets.

@lezsakdomi
Created April 5, 2022 19:14
Show Gist options
  • Save lezsakdomi/b82b54b0d7971e4e2b24fd915c81131f to your computer and use it in GitHub Desktop.
Save lezsakdomi/b82b54b0d7971e4e2b24fd915c81131f to your computer and use it in GitHub Desktop.
ELTE Neptun userscripts
// ==UserScript==
// @name Auto login redirect
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Automatically redirects to Neptun login page
// @author lezsakdomi
// @match https://neptun.elte.hu/
// @icon https://www.google.com/s2/favicons?domain=elte.hu
// @grant none
// ==/UserScript==
(function() {
'use strict';
try {
document.querySelector('a[href="/Account/Login"]').click();
} catch (e) {
console.log("No login required");
}
})();
// ==UserScript==
// @name Auto login click button
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Automatically clicks login button when on Neptun login page; needs password to be saved
// @author lezsakdomi
// @match https://neptun.elte.hu/Account/Login
// @icon https://www.google.com/s2/favicons?domain=elte.hu
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.querySelector('input[type="submit"]').click();
// Your code here...
})();
// ==UserScript==
// @name Neptun info bg
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Dark mode for Neptun info tooltips
// @author lezsakdomi
// @match https://*.neptun.*.hu/main.aspx?*
// @icon https://www.google.com/s2/favicons?domain=elte.hu
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(`
.tooltipbase {
background-color: yellow !important;
}`);
console.log("Info bg done");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment