Skip to content

Commit e8e2951

Browse files
committed
Bump version to 1.3 for Google sign-in user scripts and update download URLs
1 parent 4c3f077 commit e8e2951

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

GoogleAutoClickFirstAccountSignIn.user.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name Automatically Select First Google Account to Sign In
33
// @namespace typpi.online
4-
// @version 1.2
4+
// @version 1.3
55
// @description Selects the first Google account in the Google account selector page
66
// @author Nick2bad4u
77
// @match https://accounts.google.com/*
@@ -10,34 +10,34 @@
1010
// @homepageURL https://github.com/Nick2bad4u/UserStyles
1111
// @supportURL https://github.com/Nick2bad4u/UserStyles/issues
1212
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
13-
// @downloadURL https://update.greasyfork.org/scripts/531638/Automatically%20Select%20First%20Google%20Account%20to%20Sign%20In.user.js
14-
// @updateURL https://update.greasyfork.org/scripts/531638/Automatically%20Select%20First%20Google%20Account%20to%20Sign%20In.meta.js
13+
// @downloadURL https://update.greasyfork.org/scripts/531639/Automatically%20Select%20First%20Google%20Account%20to%20Sign%20In.user.js
14+
// @updateURL https://update.greasyfork.org/scripts/531639/Automatically%20Select%20First%20Google%20Account%20to%20Sign%20In.meta.js
1515
// ==/UserScript==
1616

17-
(function() {
17+
(function () {
1818
'use strict';
1919

2020
// Function to select the first account
2121
const selectFirstAccount = () => {
22-
const firstAccount = document.querySelector('li.aZvCDf');
23-
if (firstAccount) {
24-
const firstLink = firstAccount.querySelector('div[role="link"]');
25-
if (firstLink) {
26-
firstLink.click();
27-
} else {
28-
console.log('First account link not found.');
29-
}
22+
const firstAccount = document.querySelector('li.aZvCDf');
23+
if (firstAccount) {
24+
const firstLink = firstAccount.querySelector('div[role="link"]');
25+
if (firstLink) {
26+
firstLink.click();
3027
} else {
31-
console.log('First account not found on the page.');
28+
console.log('First account link not found.');
3229
}
30+
} else {
31+
console.log('First account not found on the page.');
32+
}
3333
};
3434

3535
// Set up a MutationObserver to wait for dynamic content
3636
const observer = new MutationObserver(() => {
37-
if (document.querySelector('li.aZvCDf')) {
38-
selectFirstAccount();
39-
observer.disconnect(); // Stop observing once the element is found
40-
}
37+
if (document.querySelector('li.aZvCDf')) {
38+
selectFirstAccount();
39+
observer.disconnect(); // Stop observing once the element is found
40+
}
4141
});
4242

4343
// Observe changes in the document body

StravaAutoGoogleSignIn.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name Auto Click Google Sign-In Button
33
// @namespace typpi.online
4-
// @version 1.2
4+
// @version 1.3
55
// @description Automatically clicks the Google sign-in button on the page
66
// @author Nick2bad4u
77
// @match https://www.strava.com/login
@@ -10,8 +10,8 @@
1010
// @homepageURL https://github.com/Nick2bad4u/UserStyles
1111
// @supportURL https://github.com/Nick2bad4u/UserStyles/issues
1212
// @icon https://www.google.com/s2/favicons?sz=64&domain=strava.com
13-
// @downloadURL https://update.greasyfork.org/scripts/531639/Auto%20Click%20Google%20Sign-In%20Button.user.js
14-
// @updateURL https://update.greasyfork.org/scripts/531639/Auto%20Click%20Google%20Sign-In%20Button.meta.js
13+
// @downloadURL https://update.greasyfork.org/scripts/531638/Auto%20Click%20Google%20Sign-In%20Button.user.js
14+
// @updateURL https://update.greasyfork.org/scripts/531638/Auto%20Click%20Google%20Sign-In%20Button.meta.js
1515
// ==/UserScript==
1616

1717
(function () {

0 commit comments

Comments
 (0)