Commit graph

666 commits

Author SHA1 Message Date
wukko 01240b6ca3 utils: getIP formatting 2024-01-31 16:47:18 +06:00
dumbmoron a375000ae9
api: use req.ip instead of cloudflare headers, ratelimit ipv6 by prefix
allows for more versatile configurations that do not necessarily have to use cloudflare

also ratelimits IPv6 addresses by prefix instead of individual addresses
currently set at /56, which should not be too strict
(yet allows a /48 holder to make 256 as many requests instead of 2^80 as many requests), change if needed
2024-01-31 10:36:19 +00:00
wukko 5a45f5ef64
Merge branch 'current' into fix-hold-various-picker 2024-01-31 16:12:20 +06:00
wukko 1345964280 front: fix picker padding and content alignment 2024-01-28 14:15:11 +06:00
wukko b0d1840087 front: update picker descriptions 2024-01-28 14:13:53 +06:00
wukko d73d431eec front: use same picker title for images and media 2024-01-28 13:59:18 +06:00
wukko c9947fc75d tiktok: fix photo link parsing 2024-01-28 13:23:00 +06:00
wukko 8e24f91a06 cobalt.css: brighter light mode 2024-01-28 12:43:13 +06:00
wukko dc3e32bb7d
test: add twitter mediaviewer link
merge pull request #308 from mxr/patch-1
2024-01-24 17:43:13 +06:00
wukko 00ef8cd288
types: add processing priority
merge pull request #331 from wukko/processing-priority
2024-01-21 22:47:33 +06:00
wukko a14116e902 types: actually unwrap args 2024-01-21 22:37:55 +06:00
wukko 8b6e147b4b types: add nice priority to ffmpeg commands 2024-01-21 22:35:42 +06:00
dumbmoron a1369215c0
setup: fix crash caused by module dependency 2024-01-19 22:40:25 +00:00
wukko 48dab09487 config: rearrange crypto donation list 2024-01-19 11:51:27 +06:00
wukko debe8ba8aa
twitter: fix gif encoding for multi-media tweets
merge pull request #327 from dumbmoron/twitter-multi-gif-fix
2024-01-19 11:22:16 +06:00
dumbmoron 558e466478
twitter: fix gif encoding for multi-media tweets 2024-01-18 16:21:28 +00:00
wukko 592398f4de cobalt.css: fix header padding on smaller devices 2024-01-18 21:36:29 +06:00
wukko a7a59bd1a9
matchActionDecider: reprioritize gif action above audio settings
merge pull request #323 from dumbmoron/patch-1
2024-01-17 23:22:26 +06:00
wukko 45a85e5928 pinterest: fix id checking for shortened links 2024-01-17 23:20:49 +06:00
dumbmoron b6f4d61af6
matchActionDecider: reprioritize gif action above audio settings 2024-01-17 15:34:31 +01:00
wukko 01e28ec7e4 pinterest: accept more links 2024-01-17 20:20:18 +06:00
wukko e4405828a6 7.9 changelog 2024-01-17 19:35:50 +06:00
wukko da0c765ad9 page: remove data-nosnippet from body 2024-01-17 18:04:02 +06:00
wukko 5a769ceb94 page: remove init fade-in when animations are disabled 2024-01-17 18:03:40 +06:00
wukko 2332c18cee
biblically accurate HTML and clean up
merge pull request #317 from dumbmoron/html-cleanup
2024-01-17 17:17:57 +06:00
wukko 93c329c52f
servicesConfig: enable wildcard subdomains for reddit
merge pull request #318 from dumbmoron/patch-1
2024-01-17 17:16:41 +06:00
wukko 7a2a022aaa
servicesConfig: add support for instagram live vods
merge pull request #316 from dumbmoron/instagram-vod
2024-01-17 17:16:15 +06:00
dumbmoron 2acbbadbcb
Merge branch 'twitter-gif' into html-cleanup 2024-01-17 12:08:01 +01:00
wukko fc9740545c banners: replace shutup with higher quality version 2024-01-17 16:57:00 +06:00
wukko f57faad853 page: translated donate image description 2024-01-17 16:47:08 +06:00
wukko ecb42c0fc8 cobalt.css: fix error button color 2024-01-17 16:43:14 +06:00
wukko 64f5f360c6 loc: remove outdated update strings 2024-01-17 16:18:38 +06:00
wukko 58a0547def vimeo: remove debugging (oops) 2024-01-17 15:55:45 +06:00
wukko 4d850c5d64 vimeo: fix 1440p bug and format filtering 2024-01-17 15:54:52 +06:00
wukko 18c0dbadfd loc: update gif strings and translate them to russian 2024-01-17 15:30:35 +06:00
wukko 9aabb4d738 pinterest: pin.it support & fix parsing 2024-01-17 15:05:39 +06:00
wukko 8c868c4385 tests: add ok 2024-01-17 13:17:26 +06:00
wukko 5b1e9f1fa6 add support for ok videos & clean up 2024-01-17 13:02:52 +06:00
wukko a63a35c74d twitter: add option to convert .mp4 to .gif 2024-01-17 11:38:51 +06:00
dumbmoron 22d4587318
servicesConfig: enable wildcard subdomains for reddit 2024-01-16 00:27:33 +01:00
dumbmoron ca51acd5bd
onDemand: add alt texts to historical changelogs 2024-01-15 00:30:37 +00:00
dumbmoron e807a3f2ab
loc: escape less-than sign in MadeWithLove 2024-01-15 00:22:30 +00:00
dumbmoron 233d4ee4bc
changelog: add alt text to banners 2024-01-15 00:22:27 +00:00
dumbmoron 2d1c1782de
changelogManager: refactor 2024-01-15 00:13:16 +00:00
dumbmoron 7a7343bf13
updateBanners: correct file format for v4.6 update 2024-01-15 00:13:16 +00:00
dumbmoron c32704dfe3
frontend: more self-closing/invalid closing tag cleanup 2024-01-15 00:13:16 +00:00
dumbmoron 4680582ce9
frontend: use class instead of id for reoccurring elements 2024-01-15 00:13:16 +00:00
dumbmoron c04c37a548
page: deduplicate tiktok settings element id 2024-01-15 00:13:16 +00:00
dumbmoron 6f5bb80b3a
page: remove invalid attributes, closing tags, useless trailing slashes 2024-01-15 00:13:11 +00:00
dumbmoron 62f847ba61
servicesConfig: add support for instagram live vods 2024-01-14 23:54:36 +00:00
dumbmoron b0996b85fb
page, stream: drop leftover selfURL usage 2024-01-14 23:02:49 +00:00
dumbmoron e5045df9af
emoji: add space after style attribute if added 2024-01-14 23:02:49 +00:00
dumbmoron b5952f1ef9
page: fix invalid style preload 2024-01-14 23:02:49 +00:00
dumbmoron 6145259db8
page: remove useless trailing slash on meta elements 2024-01-14 23:02:27 +00:00
wukko 1672901bad page: make html biblically correct 2024-01-14 22:40:41 +06:00
wukko 0c39102b3c page: remove broken unused element 2024-01-14 22:30:46 +06:00
busybox11 177fa3c150
cobalt.css: fix blurry text on modal contents 2024-01-08 01:23:45 +01:00
Max R b5714bbd77
Add twitter test for mediaviewer 2024-01-07 16:43:17 -05:00
wukko a41e50b533 loc: update SettingsCodecDescription 2024-01-07 14:43:12 +06:00
wukko e1edecb859 twitter: fix parsing from /video/<index> links
error is no longer thrown if index is an unexpected value (such as 0 or negative)
2024-01-07 14:22:59 +06:00
wukko 678d6a56ca twitter: clean up 2024-01-07 13:48:30 +06:00
dumbmoron 678e00430b
twitter: add support for media[vV]iewer links 2024-01-05 21:11:14 +00:00
dumbmoron ed2c63f9a4
twitter: downloading specific video if given index 2024-01-05 21:10:12 +00:00
dumbmoron 7b41dfef9e
twitter: cache token, get new one & retry on error 2024-01-04 16:59:55 +00:00
dumbmoron 02b67a3145
twitter: cleanup/decomposition 2024-01-04 16:59:33 +00:00
wukko e06034c22f soundcloud: bump max artist name length to 255 2024-01-02 12:34:31 +06:00
wukko 987f2f76b9 localization: updated support text 2024-01-02 12:33:03 +06:00
wukko 6ad9827c1f support: removed link to mastodon account 2024-01-02 12:29:29 +06:00
wukko 58246dfcdb soundcloud: accommodate for longer usernames
closes #293
2023-12-29 08:19:15 +06:00
wukko 90f82ae36e tiktok: throw a proper error if no video was returned from api 2023-12-29 08:16:40 +06:00
wukko a69497245b robots: added more paths to ignore 2023-12-26 18:28:47 +06:00
wukko 1360bf4f08
front: ignore shift+key combinations if url bar is focused
merge pull request #288 from dumbmoron/input-ignore-kb-shortcuts
2023-12-26 18:24:57 +06:00
wukko c474f15d80 changelog: updated 7.8 list of changes 2023-12-26 18:23:29 +06:00
wukko 0b138264d4 page: remove autofocus from url input area 2023-12-26 18:23:08 +06:00
dumbmoron 798d0d7242
front: ignore shift+key combinations if url bar is focused
prevents shortcuts from getting triggered by accident when manually typing out url
2023-12-26 00:55:30 +00:00
wukko c0c4ca167e changelog: 7.8
also replaced all mentions of full repo url (for some reason i never used {repo})
2023-12-26 01:37:47 +06:00
wukko 210ac86e3f elements: remove deprecated stuff 2023-12-26 01:10:40 +06:00
wukko cc47f9fd8a update: add 7.8 update message and emoji 2023-12-26 00:08:58 +06:00
wukko 1fbd0a2c05 front: optimise ui (mostly address area)
- using :first-child and :last-child instead of classes for switchers
- improved scaling
- less mess in css
2023-12-25 23:57:33 +06:00
wukko ca04acc468 tumblr: fix at.tumblr link handling 2023-12-25 22:45:04 +06:00
wukko 0dcd36c16f tumblr: formatting 2023-12-25 22:40:02 +06:00
wukko 197198ad79 soundcloud: fall back to mp3 when no opus found
also made match action decider readable
2023-12-25 22:21:06 +06:00
wukko 4b9d61b13f
clean up url handling
merge pull request #271 from dumbmoron/cleanup-url-handling
2023-12-25 18:36:18 +06:00
wukko ddc87ca42b
api: clean url upon entry, not down the road 2023-12-25 12:34:20 +00:00
wukko d6e4b5ac20
servicesConfig: www is unnecessary here too 2023-12-25 12:34:20 +00:00
wukko 88666eeeaa
servicesConfig: www was unnecessary... 2023-12-25 12:34:20 +00:00
wukko 509d24fd87
servicesConfig: add subdomains for twitter and youtube 2023-12-25 12:34:20 +00:00
wukko aaa61cfee9
processing url: alt domains for services and fixvx support 2023-12-25 12:34:20 +00:00
dumbmoron 5928b21fee
tumblr: fix priority of subdomain/segment for username 2023-12-25 12:34:20 +00:00
dumbmoron 18a3c06a9e
url: always strip username, password, port, fragment 2023-12-25 12:34:20 +00:00
dumbmoron e1fa32beb3
front: don't mangle and encode urls when sending to api 2023-12-25 12:34:20 +00:00
dumbmoron 3a00bc7f8d
url: remove tumblr aliasing
not quite sure what its purpose is/was anyways (tracking id removal? it's not used anyways)
2023-12-25 12:34:20 +00:00
dumbmoron 0244c40d0b
config: add "@" to allowed pattern symbols
needed for tiktok urls
2023-12-25 12:34:20 +00:00
dumbmoron ba35ec923e
url: re-parse hostname after validating 2023-12-25 12:34:20 +00:00
dumbmoron 34d8333d72
tumblr: render error template for broken links 2023-12-25 12:34:20 +00:00
dumbmoron 81e68c37f5
processing: pass URL object instead of string 2023-12-25 12:34:20 +00:00
dumbmoron 30c9652b6e
url: typo 2023-12-25 12:34:20 +00:00
dumbmoron 662360509c
url: return host instead of bool for success 2023-12-25 12:34:20 +00:00
dumbmoron 3056624b3d
servicesConfig: set up subdomains 2023-12-25 12:34:20 +00:00
dumbmoron c458423e03
match: light cleanup 2023-12-25 12:34:20 +00:00
dumbmoron f9feaa41ce
tumblr: stricter subdomain parsing 2023-12-25 12:34:20 +00:00
dumbmoron 149c16abbb
url: make youtu.be alias rule more lax 2023-12-25 12:34:20 +00:00
dumbmoron 2e1eb1b864
api: rename hostOverrides to 'url'
it does a bit more than it did before now
2023-12-25 12:34:20 +00:00
dumbmoron dd563eb752
api: rework url parsing
- tlds are now parsed and validated correctly (e.g. ".co.uk" works now)
- url patterns are pre-compiled instead of being compiled for every request
- aliases are computed in a safe manner using the URL object where possible
2023-12-25 12:34:20 +00:00
wukko f500d8b5f9 better support section in about
- added status page to support section
- updated order of items
- clean up
2023-12-25 17:46:33 +06:00
wukko a4349b4c41 throw a critical error when youtube api returns a stub 2023-12-25 12:59:00 +06:00
wukko 0014c8b9fb front: fixed quick ⌘+V pasting on mac
also rearranged list of crypto donation methods
2023-12-21 00:31:48 +06:00
wukko e27c02c55e twitter & stream: formatting 2023-12-17 23:50:04 +06:00
wukko 4834f21554 twitter: use original media timestamp for fix check 2023-12-17 23:45:15 +06:00
wukko 8556a5fe2c twitter: fix videos only within affected time range 2023-12-17 23:05:43 +06:00
wukko e00a3a4849 7.7.2: made terms and ethics more descriptive 2023-12-08 18:54:44 +06:00
wukko e605a99d54 front: removed download popup auto closing 2023-12-05 15:50:01 +06:00
wukko d34337370f changelog: minor spelling mistake 2023-12-03 00:23:07 +06:00
wukko 8c9cc21068 update 7.7 banner 2023-12-03 00:07:40 +06:00
wukko 760f55bdb4 7.7 changelog and banner 2023-12-02 23:47:34 +06:00
wukko 89c5067685 web: fix auto hiding of download popup 2023-12-02 23:10:19 +06:00
wukko 83d82f5da9 web: saving cobalt streams via action chooser 2023-12-02 22:51:08 +06:00
wukko afab7f94a7 api & web: ports in env are no longer strictly required 2023-12-02 22:01:58 +06:00
wukko 3e8c059a3a vimeo: fix parsing and resolution in filename
- all videos/audios should now be downloadable
- proper resolution is now displayed in basic and pretty filename styles
2023-12-02 21:52:38 +06:00
wukko 5bd50fd55f twitter: remux all videos
- increased stream link lifespan to 90 seconds
- decreased max video duration back to 3 hours
2023-12-02 20:44:19 +06:00
wukko aef9b390b0 7.6.8: minor updates
updated support and donation lists
2023-12-02 12:54:27 +06:00
wukko abb3e15426 page: hide the urgent notice 2023-11-23 22:51:44 +06:00
wukko 24870c5dd7 pattern tester: less yapping 2023-11-23 22:18:49 +06:00
wukko 5d1d25a6dd
twitch: add filename attributes to twitch clips
merge pull request #233 from Snazzah/feat/twitch-pretty
2023-11-23 21:49:22 +06:00
wukko 19ba117838 twitch (oops): actually import cleanString 2023-11-23 21:45:23 +06:00
wukko 158361c95e twitch: sanitise video title 2023-11-23 21:43:35 +06:00
wukko 88b8a69f9c
fix handling of URLs containing utf-8 characters
Merge pull request #253 from dumbmoron/fix-utf8-urls
2023-11-23 21:40:24 +06:00
wukko 3ca65e0daf reddit: remove the rest of references to title 2023-11-23 21:35:02 +06:00
dumbmoron 7468b803fb
reddit: don't include title in API request path 2023-11-23 14:52:30 +00:00
dumbmoron 190a0131d4
api: url-encode UTF-8 characters in url
this encode-decode construct is ugly, but necessary to retain
backwards compatibility for weirdos that encode the URL when
passing it in via json ( like the frontend, for example. :/ )
2023-11-23 14:52:08 +00:00
dumbmoron c26800ca2e
reddit: fix expiry check 2023-11-17 12:00:04 +00:00
dumbmoron d936dd73fe
fix robots.txt
currently the robots.txt file is useless because
it's interpreted as one path "/icons/ /fonts/ *.js *.css"
(an example path that would be accepted -- and therefore disallowed
for robots) by this regex would be `https://cobalt.tools/icons/ /fonts/ bla.js .css`,
which is obviously nonsense & useless)
2023-11-10 17:41:51 +00:00
wukko 463ece02c7 7.6.6: refined twitter module, removed spaces 2023-11-07 22:37:47 +06:00
wukko 2de4688015
Merge branch 'current' into stream-close-handling-2 2023-11-06 07:55:50 +06:00
dumbmoron 7a3be8b981
stream: don't listen for close event for audio 2023-11-06 01:48:49 +00:00
wukko 4a9e4cd915
types: make streamVideoOnly more readable 2023-11-06 01:37:27 +00:00
wukko b662f472dd
types: added comments 2023-11-06 01:37:27 +00:00
dumbmoron fb69dbdb4f
stream: use strings for signals instead of number
hopefully a little more explanatory than "9"
2023-11-06 01:37:27 +00:00
dumbmoron 2bd8a0bccd
stream: use descriptive variables for i/o for better readability 2023-11-06 01:37:27 +00:00
dumbmoron f66ed5c414
stream: generalize pipe event handling 2023-11-06 01:37:27 +00:00
dumbmoron 7c871b6b85
stream: wrap abort controller in try-catch 2023-11-06 01:37:27 +00:00
dumbmoron dbd13bc8b6
stream: send SIGKILL after timeout
in case the ffmpeg process decides to hang when SIGTERM'd
2023-11-06 01:37:27 +00:00
dumbmoron cae4a68aa4
stream: improve shutdown handling, minor clean up
- try to close as many things as possible when shutting down

- remove redundant (e.g. `exit` on process when
  listening for `close`) and straight up useless
  (`disconnect`) event listeners
2023-11-06 01:37:24 +00:00
wukko 408f5e99f0
Revert "improve stream shutdown handling" 2023-11-06 07:17:44 +06:00
wukko 4f47a68c17
improve stream shutdown handling
merge pull request #225 from dumbmoron/stream-close-handling
2023-11-06 06:56:11 +06:00
wukko b01c9f3e54 types: make streamVideoOnly more readable 2023-11-06 06:53:54 +06:00
wukko 758bb8fef7 types: added comments 2023-11-06 06:44:34 +06:00
dumbmoron 33072003bc
stream: use strings for signals instead of number
hopefully a little more explanatory than "9"
2023-11-06 00:31:44 +00:00
dumbmoron 58f7ed7827
stream: use descriptive variables for i/o for better readability 2023-11-05 22:27:28 +00:00
dumbmoron aabde229ed
stream: generalize pipe event handling 2023-11-05 22:26:56 +00:00