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}`
|
||||
}
|
||||
case "safetwitch": {
|
||||
if (url.hostname.startsWith("clips.")) {
|
||||
return `${randomInstance}/clip${url.pathname}${url.search}`
|
||||
}
|
||||
return `${randomInstance}${url.pathname}${url.search}`
|
||||
}
|
||||
default: {
|
||||
return `${randomInstance}${url.pathname}${url.search}`
|
||||
}
|
||||
|
|
|
@ -182,7 +182,7 @@
|
|||
}
|
||||
},
|
||||
"targets": [
|
||||
"^https?:\\/{2}(www\\.)?twitch\\.(tv|com)\\/"
|
||||
"^https?:\\/{2}(www\\.|clips\\.)?twitch\\.(tv|com)\\/"
|
||||
],
|
||||
"name": "Twitch",
|
||||
"options": {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "__MSG_extensionName__",
|
||||
"description": "__MSG_extensionDescription__",
|
||||
"version": "2.8.0",
|
||||
"version": "2.8.1",
|
||||
"manifest_version": 2,
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
|
|
Loading…
Reference in New Issue