Added clip support to SafeTwitch https://github.com/libredirect/browser_extension/issues/833
This commit is contained in:
parent
ea53506c72
commit
4e379b0623
|
@ -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}`
|
||||||
}
|
}
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in New Issue