Greasy Fork is available in English.

Auto-login on gerrit

Check if you're logged in to gerrit or not. If not, click the sign-in link.

יוצר
Darin Kelkhoff
התקנות יומיות
0
סה"כ התקנות
7
דירוגים
0 0 0
גרסה
0.1
נוצר
09-03-2022
עודכן
09-03-2022
רישיון
MIT
חל על

I get annoyed every morning, when I'm logged out of Gerrit, and I start doing a code review, only then to eventually find out that I'm not logged in.

So, this script checks if you're logged in as soon as you load a Gerrit page, and, if you're not, then it automatically clicks the login link after a second and brings you to the login page.

Annoyance averted!

Just make sure to provide your garret server URL in the @match line - e.g., http://gerrit.mycompany.com:8080/*