Skip to content

Commit 6fdab2e

Browse files
committed
✨ [feat] Update user scripts and stylesheets with new features and improvements
- 📝 [docs] Update download and update URLs for user stylesheets - 🎨 [style] Improve formatting and structure in user scripts - 🐛 [fix] Correct module type declaration in Strava balance scripts - ✨ [feat] Add eslint-plugin-userscripts dependency for better linting Signed-off-by: Nick2bad4u <[email protected]>
1 parent 5f0e77a commit 6fdab2e

178 files changed

Lines changed: 975 additions & 1063 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,3 +716,4 @@ zwiftbikes/
716716
.github\copilot-instructions.md
717717
package.json
718718
.stylelintcache
719+
.eslintcache

.stylelintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ node_modules/
33
dist/
44
build/
55

6+
# Files using Stylus preprocessor syntax with .css extension (cannot be parsed as standard CSS)
7+
RedditColoredComments.user.css
8+
69
# Minified / generated
710
**/*.min.css
811
**/*.min.*.css

.stylelintrc.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
{
5454
"severity": "warning",
5555
"ignorePseudoClasses": [
56+
"input-placeholder",
5657
"-webkit-autofill",
5758
"-moz-any",
5859
"-moz-any-link",
@@ -72,6 +73,8 @@
7273
{
7374
"severity": "warning",
7475
"ignorePseudoElements": [
76+
"input-placeholder",
77+
"last-child",
7578
"-webkit-scrollbar",
7679
"-webkit-scrollbar-button",
7780
"-webkit-scrollbar-corner",
@@ -83,6 +86,35 @@
8386
"-webkit-input-placeholder"
8487
]
8588
}
86-
]
89+
],
90+
"selector-type-no-unknown": [
91+
true,
92+
{
93+
"severity": "warning",
94+
"ignoreTypes": [
95+
"z",
96+
"png",
97+
"row",
98+
"basic-analysis",
99+
"text-display5",
100+
"trk-shared-icon",
101+
"ytu-menu-item",
102+
"ytu-nav-bar",
103+
"ytd-searchbox",
104+
"ytd-masthead",
105+
"ytd-button-renderer",
106+
"ytd-subscribe-button-renderer",
107+
"ytd-author-comment-badge-renderer",
108+
"ytd-guide-entry-renderer",
109+
"ytd-watch",
110+
"paper-toggle-button",
111+
"paper-button",
112+
"yt-icon",
113+
"app-drawer",
114+
"mat-toolbar"
115+
]
116+
}
117+
],
118+
"at-rule-prelude-no-invalid": null
87119
}
88120
}

17track.net-DarkMode.user.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ==UserStyle==
1+
/* ==UserStyle==
22
@name 17track.net - Dark Mode
33
@version 20241115.05.16
44
@namespace typpi.online
@@ -9,6 +9,8 @@
99
@license UnLicense
1010
1111
@var color baseColor "Base Color" #ffffff
12+
@downloadURL https://github.com/Nick2bad4u/UserStyles/raw/refs/heads/main/17track.net-DarkMode.user.css
13+
@updateURL https://github.com/Nick2bad4u/UserStyles/raw/refs/heads/main/17track.net-DarkMode.user.css
1214
==/UserStyle== */
1315

1416
@-moz-document domain("17track.net") {

ActivityFixDarkMode.user.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ==UserStyle==
1+
/* ==UserStyle==
22
@name activityfix.com - Dark Mode
33
@namespace typpi.online
44
@version 1.4
@@ -16,6 +16,8 @@
1616
@var color border-color-blue "Border Color Blue" #2196f3
1717
@var color background-color-white "Background Color White" #ffffff
1818
@var color text-color-black "Text Color Black" #000000
19+
@downloadURL https://github.com/Nick2bad4u/UserStyles/raw/refs/heads/main/ActivityFixDarkMode.user.css
20+
@updateURL https://github.com/Nick2bad4u/UserStyles/raw/refs/heads/main/ActivityFixDarkMode.user.css
1921
==/UserStyle== */
2022
@-moz-document domain("activityfix.com") {
2123
:root {

Archive.orgNightTheme(Updated).user.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ==UserStyle==
1+
/* ==UserStyle==
22
@name Archive.org - Night Theme (Updated)
33
@namespace typpi.online
44
@author stylish.c0d3d.net / Nick2bad4u (Updated)
@@ -24,6 +24,8 @@
2424
@var color ia-theme-primary-text-color "IA Theme Primary Text Color" #2C2C2C
2525
@var color ia-theme-secondary-text-color "IA Theme Secondary Text Color" #666666
2626
@var color ia-theme-link-color "IA Theme Link Color" #4B64FF
27+
@downloadURL https://github.com/Nick2bad4u/UserStyles/raw/refs/heads/main/Archive.orgNightTheme%28Updated%29.user.css
28+
@updateURL https://github.com/Nick2bad4u/UserStyles/raw/refs/heads/main/Archive.orgNightTheme%28Updated%29.user.css
2729
==/UserStyle== */
2830
@-moz-document regexp("^(?!.*archive\\.org\\/web\\/\\d+\\/https?\\:\\/\\/).*archive\\.org.*$") {
2931
:root {

AscentDescentMetersToFeet-AutoFetcher.user.js

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,40 @@
1111
// @grant none
1212
// @run-at document-end
1313
// @homepageURL https://github.com/Nick2bad4u/UserStyles
14+
// @homepage https://github.com/Nick2bad4u/UserStyles
1415
// @supportURL https://github.com/Nick2bad4u/UserStyles/issues
1516
// @license Unlicense
16-
// @note This is for use with: https://update.greasyfork.org/scripts/520655/Convert%20Ascent%20and%20Descent%20to%20Feet.user.js
1717
// @downloadURL https://update.greasyfork.org/scripts/530304/Strava%20Button%20Clicker%20%5BFor%20Use%20Convert%20Ascent%20and%20Descent%20to%20Feet%5D%5BELevate%20%20Sauce%20Users%5D.user.js
1818
// @updateURL https://update.greasyfork.org/scripts/530304/Strava%20Button%20Clicker%20%5BFor%20Use%20Convert%20Ascent%20and%20Descent%20to%20Feet%5D%5BELevate%20%20Sauce%20Users%5D.meta.js
1919
// ==/UserScript==
2020

21+
// Note: This is for use with: https://update.greasyfork.org/scripts/520655/Convert%20Ascent%20and%20Descent%20to%20Feet.user.js
22+
2123
(function () {
22-
'use strict';
24+
'use strict';
2325

24-
// Run 5 seconds after the page finishes loading
25-
setTimeout(() => {
26-
// Select the button by its ID
27-
let button = document.querySelector('#extendedStatsButton');
28-
if (button) {
29-
button.click();
30-
console.log('Button clicked.');
26+
// Run 5 seconds after the page finishes loading
27+
setTimeout(() => {
28+
// Select the button by its ID
29+
let button = document.querySelector('#extendedStatsButton');
30+
if (button) {
31+
button.click();
32+
console.log('Button clicked.');
3133

32-
// Close the popup after 3 seconds using the Escape key
33-
setTimeout(() => {
34-
let event = new KeyboardEvent('keydown', {
35-
key: 'Escape',
36-
code: 'Escape',
37-
keyCode: 27,
38-
which: 27,
39-
bubbles: true,
40-
});
41-
document.dispatchEvent(event);
42-
console.log('Popup closed.');
43-
}, 3000);
44-
} else {
45-
console.error('Button not found. Please ensure the selector is correct.');
46-
}
47-
}, 5000);
34+
// Close the popup after 3 seconds using the Escape key
35+
setTimeout(() => {
36+
let event = new KeyboardEvent('keydown', {
37+
key: 'Escape',
38+
code: 'Escape',
39+
keyCode: 27,
40+
which: 27,
41+
bubbles: true,
42+
});
43+
document.dispatchEvent(event);
44+
console.log('Popup closed.');
45+
}, 3000);
46+
} else {
47+
console.error('Button not found. Please ensure the selector is correct.');
48+
}
49+
}, 5000);
4850
})();

AscentDescentMetersToFeet.user.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// ==UserScript==
2-
// @name Convert Ascent and Descent to Feet
3-
// @namespace typpi.online
4-
// @version 1.1
5-
// @description Converts ascent and descent values from meters to feet on the for Strava Sauce users.
6-
// @author Nick2bad4u
7-
// @license UnLicense
8-
// @match https://www.strava.com/activities/*
9-
// @resource https://www.google.com/s2/favicons?sz=64&domain=strava.com
10-
// @icon https://www.google.com/s2/favicons?sz=64&domain=strava.com
11-
// @icon64 https://www.google.com/s2/favicons?sz=64&domain=strava.com
12-
// @grant none
13-
// @run-at document-end
14-
// @downloadURL https://update.greasyfork.org/scripts/520655/Convert%20Ascent%20and%20Descent%20to%20Feet.user.js
15-
// @updateURL https://update.greasyfork.org/scripts/520655/Convert%20Ascent%20and%20Descent%20to%20Feet.meta.js
2+
// @name Convert Ascent and Descent to Feet
3+
// @namespace typpi.online
4+
// @version 1.1
5+
// @description Converts ascent and descent values from meters to feet on the for Strava Sauce users.
6+
// @author Nick2bad4u
7+
// @license UnLicense
8+
// @match https://www.strava.com/activities/*
9+
// @resource https://www.google.com/s2/favicons?sz=64&domain=strava.com
10+
// @icon https://www.google.com/s2/favicons?sz=64&domain=strava.com
11+
// @icon64 https://www.google.com/s2/favicons?sz=64&domain=strava.com
12+
// @grant none
13+
// @run-at document-end
14+
// @downloadURL https://update.greasyfork.org/scripts/520655/Convert%20Ascent%20and%20Descent%20to%20Feet.user.js
15+
// @updateURL https://update.greasyfork.org/scripts/520655/Convert%20Ascent%20and%20Descent%20to%20Feet.meta.js
1616
// ==/UserScript==
1717

1818
(function () {

Asus-DarkMode.user.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
/* ==UserStyle==
1+
/* ==UserStyle==
22
@name asus.com - Dark Mode
33
@namespace typpi.online
44
@version 1.0.2
55
@description Easy Dark mode for Asus
66
@author Nick2bad4u
77
@license UnLicense
88
@homepageURL https://github.com/Nick2bad4u/UserStyles
9+
@supportURL https://github.com/Nick2bad4u/UserStyles/issues
910
1011
@updateURL https://userstyles.world/api/style/22508.user.css
12+
@downloadURL https://github.com/Nick2bad4u/UserStyles/raw/refs/heads/main/Asus-DarkMode.user.css
1113
==/UserStyle== */
1214
@-moz-document domain("asus.com") {
1315
/* Invert colors except images and videos */

AutoMergeDependabotPRs.user.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
// @license UnLicense
1010
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
1111
// @homepageURL https://github.com/Nick2bad4u/UserStyles
12+
// @homepage https://github.com/Nick2bad4u/UserStyles
1213
// @supportURL https://github.com/Nick2bad4u/UserStyles/issues
14+
// @downloadURL https://github.com/Nick2bad4u/UserStyles/raw/refs/heads/main/AutoMergeDependabotPRs.user.js
15+
// @updateURL https://github.com/Nick2bad4u/UserStyles/raw/refs/heads/main/AutoMergeDependabotPRs.user.js
1316
// ==/UserScript==
1417

1518
(function () {

0 commit comments

Comments
 (0)