Add periodic user agent string updates

This commit is contained in:
hensm
2025-12-27 02:13:57 +00:00
parent 50851b4831
commit 1f200bef9a
7 changed files with 131 additions and 27 deletions

9
docs/ua.json Normal file
View File

@@ -0,0 +1,9 @@
{
"$schema": "./ua.schema.json",
"version": 1,
"platforms": {
"win": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
"mac": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
"linux": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36"
}
}

22
docs/ua.schema.json Normal file
View File

@@ -0,0 +1,22 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"ua_string": { "type": "string", "minLength": 1 }
},
"properties": {
"$schema": { "type": "string" },
"version": { "type": "integer", "const": 1 },
"platforms": {
"type": "object",
"properties": {
"win": { "$ref": "#/$defs/ua_string" },
"mac": { "$ref": "#/$defs/ua_string" },
"linux": { "$ref": "#/$defs/ua_string" }
},
"required": ["win", "mac", "linux"],
"additionalProperties": false
}
},
"required": ["version", "platforms"],
"additionalProperties": false
}