ManeraKai 2024-08-01 12:31:26 +03:00
parent c6f986524d
commit ff16ab40f8
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" ><path fill="#ffd706" d="m5 3.4 3.25 9.15C9.2 9.85 11.7 6.8 15.8 6.8c4.3 0 6.95 3.15 7.45 6.6h6.8L33.25 1 25.7 4.9c-1.8-1.5-4.15-2.35-6.7-2.35-3.45 0-6 1.4-7.7 3.3L5 3.4zM18.5 21.65 36 13.4v14.9l-3.65-1.4C30.3 33.15 25.6 37.6 18.4 37.6c-8 0-13.6-6.25-13.6-13.9 0-2.25.45-4.1 1.25-5.9h.1a13.79 13.79 0 0 0-.65 4.3c0 6.05 4.6 10.6 10.55 10.6 5.3 0 8.7-3.7 10.3-8.05l-7.85-3z"></path></svg>

After

Width:  |  Height:  |  Size: 472 B

View File

@ -531,6 +531,15 @@ function rewrite(url, frontend, randomInstance) {
}
return `${randomInstance}${url.pathname}${url.search}`
}
case "freetar":
if (url.pathname.startsWith("/search.php")) {
url.searchParams.set("search_term", url.searchParams.get("value"))
url.searchParams.delete("value")
url.searchParams.delete("search_type")
return `${randomInstance}/search${url.search}`
}
if (url.pathname.startsWith("/artist")) return
return `${randomInstance}${url.pathname}${url.search}`
case "piped":
case "pipedMaterial":
case "cloudtube":
@ -779,6 +788,7 @@ const defaultInstances = {
priviblur: ["https://pb.bloat.cat"],
nitter: ["https://nitter.privacydev.net"],
pasted: ["https://pasted.drakeerv.com"],
freetar: ["https://freetar.de"],
}
function initDefaults() {

View File

@ -1032,6 +1032,24 @@
},
"imageType": "svgMono",
"url": "https://paste.libredirect.invalid"
},
"ultimateGuitar": {
"frontends": {
"freetar": {
"name": "Freetar",
"instanceList": true,
"url": "https://github.com/kmille/freetar"
}
},
"targets": ["^https?:\\/{2}(tabs\\.|www\\.)?ultimate-guitar\\.com"],
"name": "Ultimate Guitar",
"options": {
"enabled": false,
"unsupportedUrls": "bypass",
"frontend": "freetar"
},
"imageType": "svg",
"url": "https://www.ultimate-guitar.com"
}
}
}