This commit is contained in:
ManeraKai 2023-10-18 23:55:11 +03:00
parent ea53506c72
commit 4e379b0623
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
3 changed files with 8 additions and 2 deletions

View File

@ -522,6 +522,12 @@ function redirect(url, type, initiator, forceRedirection) {
} }
return `${randomInstance}` return `${randomInstance}`
} }
case "safetwitch": {
if (url.hostname.startsWith("clips.")) {
return `${randomInstance}/clip${url.pathname}${url.search}`
}
return `${randomInstance}${url.pathname}${url.search}`
}
default: { default: {
return `${randomInstance}${url.pathname}${url.search}` return `${randomInstance}${url.pathname}${url.search}`
} }

View File

@ -182,7 +182,7 @@
} }
}, },
"targets": [ "targets": [
"^https?:\\/{2}(www\\.)?twitch\\.(tv|com)\\/" "^https?:\\/{2}(www\\.|clips\\.)?twitch\\.(tv|com)\\/"
], ],
"name": "Twitch", "name": "Twitch",
"options": { "options": {

View File

@ -1,7 +1,7 @@
{ {
"name": "__MSG_extensionName__", "name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__", "description": "__MSG_extensionDescription__",
"version": "2.8.0", "version": "2.8.1",
"manifest_version": 2, "manifest_version": 2,
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "gecko": {