Created
April 5, 2022 19:14
-
-
Save lezsakdomi/b82b54b0d7971e4e2b24fd915c81131f to your computer and use it in GitHub Desktop.
ELTE Neptun userscripts
This file contains 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 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"); | |
} | |
})(); |
This file contains 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 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... | |
})(); |
This file contains 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 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