Commit graph

9 commits

Author SHA1 Message Date
dumbmoron
a2216510b7 add cookie support
usage:
 - create cookies.json file somewhere, preferrably outside cobalt directory
 - in docker, you can bind mount it (`volumes` in composefile)
   - if you don't want cobalt to update the cookies, set it to `:ro` (cobalt will print a warning about this, ignore it)
 - set COOKIE_PATH to the absolute path of this file
 - enjoy?

usage in services: probably the simplest api ever
 - import { getCookie, updateCookie } from '../../cookie/manager.js';
 - const cookie = getCookie('<service_name>');
   - add this to headers - `headers: { cookie }`
 - after fetch is done, save potential cookie updates: updateCookie(cookie, fetch.headers)
 - see instagram.js for example usage
2023-08-16 19:59:33 +00:00
wukko
9edc4bd61b new inner layout
- one main controlling script (cobalt.js).
- added api server name to serverInfo endpoint.
- one dockerfile.
- less mess.
2023-05-22 01:13:05 +06:00
wukko
4d369170ff separated web and api, build improvements
wip:
- separate web and api servers.
- script for building static pages.
- building improvements.
- async localisation preloading.
2023-05-19 16:13:38 +06:00
wukko
7f533b3485 retweet links, new clipboard icon, mobile layout and loc improvements
- added support for retweet links
- updated spaces endpoint
- bumped up the user agent version
- new clipboard icon
- new clipboard + auto mode layout on mobile, less wasted space
- fixed button press animations for safari on mobile
- tons of localization improvements for english and russian
- bumped up youtubei.js to 4.1.0
2023-03-24 23:16:10 +06:00
wukko
a3daa65148 5.2
- page render caching
- onDemand block caching
- page html minify
- better rate limiting
- minor cobalt.js clean up
- page render platform indication in settings popup

all these changes are aimed to improve performance and responsiveness

!! not final version of 5.2 !!
2023-03-10 00:41:17 +06:00
wukko
dacaaf5b27 5.0-dev1
- rewrote and/or optimized all service modules
- rewrote matching and processing modules to optimize readability and performance
- added support for reddit gifs
- fixed various issues with twitter error explanations
- code optimizations and enhancements (such as finally getting rid of ==, prettier and more readable formatting, etc)
- added branch information
- all functions in currentCommit submodule run only once and cache received data
- added a test script. only twitter and soundcloud are 100% covered and tested atm, will add tests (and probably fixes) for the rest of services in next commits
- changed some localization strings for russian
- added more clarity to rate limit message
- moved services folder into processing folder
2023-02-12 13:40:49 +06:00
wukko
22c16b2fc8 implemented esbuild and cleaned up stuff
cobalt should now load even faster
2022-07-30 15:01:54 +06:00
wukko
67223b3acd internal changes only
- remade config module
- renamed loc to i18n because that's what all developers do
- moved code to src to make repo look cleaner
- fixed some i18n strings
2022-07-17 17:08:49 +06:00
wukko
ec105fb333 oops 2022-07-09 01:05:43 +06:00