mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 13:17:45 +02:00
even more cleansing
- added support for x.com urls - removed del shortcut for clearing url input area because it was causing regular typing issues - added info about no liability - fixed donate button glow and text backdrop padding - updated donation and privacy policy texts for more clarity in both english and russian - made cors question in setup script to take yes as answer, not just 'y' - text-to-copy now has proper rounding when highlighted - home screen now smoothly fades in instead of popping in
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
function bestQuality(arr) {
|
||||
return arr.filter((v) => { if (v["content_type"] === "video/mp4") return true }).sort((a, b) => Number(b.bitrate) - Number(a.bitrate))[0]["url"].split("?")[0]
|
||||
return arr.filter((v) => { if (v["content_type"] === "video/mp4") return true }).sort((a, b) => Number(b.bitrate) - Number(a.bitrate))[0]["url"]
|
||||
}
|
||||
|
||||
export default async function(obj) {
|
||||
|
Reference in New Issue
Block a user