This commit is contained in:
parent
2453c19269
commit
7f97244775
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 6.7 KiB |
|
@ -517,6 +517,24 @@ function redirect(url, type, initiator, forceRedirection) {
|
||||||
}
|
}
|
||||||
return `${randomInstance}${url.pathname}${url.search}`
|
return `${randomInstance}${url.pathname}${url.search}`
|
||||||
}
|
}
|
||||||
|
case "tuboYoutube": {
|
||||||
|
if (url.pathname.startsWith("/channel")) {
|
||||||
|
return `${randomInstance}/channel?url=${encodeURIComponent(url.href)}`
|
||||||
|
}
|
||||||
|
if (url.pathname.startsWith("/watch")) {
|
||||||
|
return `${randomInstance}/stream?url=${encodeURIComponent(url.href)}`
|
||||||
|
}
|
||||||
|
return `${randomInstance}`
|
||||||
|
}
|
||||||
|
case "tuboSoundcloud": {
|
||||||
|
if (url.pathname.match(/\/user[^\/]+(\/$|$)/)) {
|
||||||
|
return `${randomInstance}/channel?url=${encodeURIComponent(url.href)}`
|
||||||
|
}
|
||||||
|
if (url.pathname.match(/\/user[^\/]+\/[^\/]+/)) {
|
||||||
|
return `${randomInstance}/stream?url=${encodeURIComponent(url.href)}`
|
||||||
|
}
|
||||||
|
return `${randomInstance}`
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
return `${randomInstance}${url.pathname}${url.search}`
|
return `${randomInstance}${url.pathname}${url.search}`
|
||||||
}
|
}
|
||||||
|
@ -670,7 +688,9 @@ const defaultInstances = {
|
||||||
'destructables': ['https://ds.vern.cc'],
|
'destructables': ['https://ds.vern.cc'],
|
||||||
'wtfismyip': ['https://myip.wtf'],
|
'wtfismyip': ['https://myip.wtf'],
|
||||||
'safetwitch': ['https://safetwitch.drgns.space'],
|
'safetwitch': ['https://safetwitch.drgns.space'],
|
||||||
'proxigram': ['https://proxigram.privacyfrontends.repl.co']
|
'proxigram': ['https://proxigram.privacyfrontends.repl.co'],
|
||||||
|
'tuboYoutube': ['https://tubo.migalmoreno.com'],
|
||||||
|
'tuboSoundcloud': ['https://tubo.migalmoreno.com'],
|
||||||
}
|
}
|
||||||
|
|
||||||
function initDefaults() {
|
function initDefaults() {
|
||||||
|
|
|
@ -60,7 +60,21 @@
|
||||||
"name": "CloudTube",
|
"name": "CloudTube",
|
||||||
"embeddable": false,
|
"embeddable": false,
|
||||||
"instanceList": true,
|
"instanceList": true,
|
||||||
"url": "https://sr.ht/~cadence/tube/"
|
"url": "https://sr.ht/~cadence/tube",
|
||||||
|
"excludeTargets": [
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tuboYoutube": {
|
||||||
|
"name": "Tubo",
|
||||||
|
"embeddable": false,
|
||||||
|
"instanceList": true,
|
||||||
|
"url": "https://github.com/migalmoreno/tubo",
|
||||||
|
"excludeTargets": [
|
||||||
|
2,
|
||||||
|
3
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"freetube": {
|
"freetube": {
|
||||||
"excludeTargets": [
|
"excludeTargets": [
|
||||||
|
@ -213,7 +227,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
"^https?:\\/{2}(www\\.)?instagram\\.com\\/?"
|
"^https?:\\/{2}(www\\.)?instagram\\.com"
|
||||||
],
|
],
|
||||||
"name": "Instagram",
|
"name": "Instagram",
|
||||||
"options": {
|
"options": {
|
||||||
|
@ -299,6 +313,29 @@
|
||||||
"imageType": "svg",
|
"imageType": "svg",
|
||||||
"url": "https://www.pixiv.net"
|
"url": "https://www.pixiv.net"
|
||||||
},
|
},
|
||||||
|
"soundcloud": {
|
||||||
|
"frontends": {
|
||||||
|
"tuboSoundcloud": {
|
||||||
|
"name": "Tubo",
|
||||||
|
"embeddable": false,
|
||||||
|
"instanceList": true,
|
||||||
|
"url": "https://github.com/migalmoreno/tubo"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
"^https?:\\/{2}soundcloud\\.com"
|
||||||
|
],
|
||||||
|
"name": "SoundCloud",
|
||||||
|
"options": {
|
||||||
|
"enabled": false,
|
||||||
|
"redirectType": "main_frame",
|
||||||
|
"frontend": "tuboSoundcloud",
|
||||||
|
"unsupportedUrls": "bypass"
|
||||||
|
},
|
||||||
|
"imageType": "svg",
|
||||||
|
"embeddable": false,
|
||||||
|
"url": "https://soundcloud.com"
|
||||||
|
},
|
||||||
"medium": {
|
"medium": {
|
||||||
"frontends": {
|
"frontends": {
|
||||||
"scribe": {
|
"scribe": {
|
||||||
|
|
Loading…
Reference in New Issue