Commit Graph
195 Commits
Author SHA1 Message Date
DIYgod 7f5ae64a2f feat(twitter): add UserMedia support and enhance pagination logic 2025-12-01 22:57:09 +08:00
Stephen Zhou d5e4fba8b2 style: format 2025-11-27 11:04:48 +08:00
github-actions[bot] a28890a135 style: auto format 2025-11-27 02:55:46 +00:00
DIYgod 92032a8c51 fix(twitter): update proxy agent implementation to use new Client and HttpCookieAgentCookie 2025-11-15 09:37:48 +08:00
DIYgod d03f5697a4 fix(twitter): replace zstd decompression with gzip for third-party API requests 2025-11-15 09:01:46 +08:00
Tony daf9460e6a fix(router/twitter): replace zstd decoder with native zlib decompression (#20485)
* fix(twitter): replace zstd decoder with native zlib decompression

* fix(twitter): update node version compatibility and enable experimental features
2025-11-15 01:56:23 +08:00
DIYgod a07565d356 feat(api): implement zstd decoding for third-party API responses 2025-11-14 14:13:18 +08:00
DIYgod 12a519ff83 fix: twitter data 2025-09-25 11:38:11 +08:00
dependabot[bot] 802cbf95d2 chore(deps-dev): bump eslint-plugin-unicorn from 60.0.0 to 61.0.2 (#19998)
* chore(deps-dev): bump eslint-plugin-unicorn from 60.0.0 to 61.0.1

Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 60.0.0 to 61.0.1.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v60.0.0...v61.0.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-version: 61.0.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* refactor: replace `replace(/regex/g)` with replaceAll

* refactor: replace sort() with toSorted() for immutability in various routes and utilities

* refactor: fix unicorn/prefer-array-find

* refactor: fix unicorn/prefer-at

* refactor: add unicorn/no-array-sort rule to ESLint configuration

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 23:03:48 +08:00
github-actions[bot] 25f8cd5e63 style: auto format 2025-08-14 02:55:48 +00:00
Unknown 81ef9775b4 fix(route/twitter): fix error username in desc (#19553) 2025-07-07 22:47:13 +08:00
Tony 857d5989c1 feat(utils/puppeteer): replace puppeteer-extra-plugin-stealth with rebrowser (#19506)
* feat: use rebrowser

* fix: remove rebrowser-puppeteer-core

* fix: chrome not found

* fix: replace remove-infobar with disable-blink-features

remove-infobar was removed since M76 https://github.com/puppeteer/puppeteer/issues/1765

* feat: remove outdated stealth plugin

* fix: remove puppeteer non stealth test
2025-07-01 04:38:05 +08:00
Neko AriaandNekoAria d6ea75914f fix(route/twitter): handle timeline_v2 nested structure (#19428)
Co-authored-by: NekoAria <NekoAria@users.noreply.github.com>
2025-06-23 01:18:01 +08:00
pseudoyu 7807467377 fix(route/twitter): extract name and screen_name from core field 2025-06-18 15:48:01 +08:00
pseudoyu 4cf510d2d7 fix(route/twitter): undefined username and author in feeds 2025-06-18 11:24:04 +08:00
pseudoyu 5048710a37 refactor(route/twitter): support both timeline and timeline_v2 in twitter web api 2025-06-18 09:58:54 +08:00
pseudoyu aaac8a2626 fix(route/twitter): twitter graphql resp data struct 2025-06-18 09:52:31 +08:00
Unknown c150211749 feat(twitter): add option to number the medias (#19050)
* feat(twitter): add number to the media

* (feat/twitter): add option `mediaNumber` to number the medias in tweets

--------
2025-06-06 01:08:59 +08:00
AiraNadihandAiraNadih 89fe12969f refactor(twitter): reduce token lock time from 24h to 1h (close #17580) (#19274)
Co-authored-by: AiraNadih <AiraNadih@users.noreply.github.com>
2025-06-04 22:45:53 +08:00
DIYgod 2dce2e32dd feat: docs sorting and auto popular 2025-05-31 17:10:01 +08:00
Tony f19a725157 refactor: fix all no array reduce (#18973)
* refactor: no-array-reduce cleanup

* refactor: keep

* refactor: nhk

* refactor: rattibha

* fix: cctv

* fix: jiemian

* refactor: juejin

* refactor: kpopping

* refactor: yoasobi-music

* refactor: mycard520

* refactor: newrank

* refactor: sse

* refactor: zhihu

* feat!: remove trending

https://github.com/huqi-pr/trending-in-one is archived and no longer being updated.
https://github.com/huqi-pr/trending-in-one/commit/2ef4cd236fcccb908be7907d5ac9aab6f1f4a188

* refactor: sspai

* refactor: sysu

* refactor: nikkei

* refactor: utils

* refactor: mydrivers

* refactor: scmp

* refactor: gov/moa

* refactor: bloomberg

* refactor: manhuagui

* refactor: twitter
2025-04-30 04:16:32 +08:00
Tony 03969f3867 refactor: fix lint issue (#18963)
* fix: unicorn/no-empty-file

* fix: unicorn/prefer-node-protocol

* fix: unicorn/prefer-number-properties

* fix: unicorn/consistent-destructuring

* fix: unicorn/no-array-callback-reference

* fix: unicorn/new-for-builtins

* fix: set checkNaN to false in unicorn/prefer-number-properties

* fix: unicorn/prefer-string-slice

* fix: update eslint ignore
2025-04-29 03:00:16 +08:00
DIYgod 4fb59dd8b1 feat: twitter not include replies by default 2025-03-18 21:30:02 +08:00
dependabot[bot]andTony 8a0efc0ba2 chore(deps-dev): bump eslint-plugin-unicorn from 56.0.1 to 57.0.0 (#18392)
* chore(deps-dev): bump eslint-plugin-unicorn from 56.0.1 to 57.0.0

Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 56.0.1 to 57.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v56.0.1...v57.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: remove unicorn plugin

* style: fix eslint issues

* style: fix more issues

* chore: flat config unicorn

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2025-02-19 05:10:11 +08:00
pseudoyu 1e336483df feat(route/twitter): add repost url in _extra 2025-01-23 06:24:41 +08:00
pseudoyu fcd4b8f8f6 feat(route/twitter): support third-party twitter keywords api 2024-12-17 00:37:29 +08:00
pseudoyu 6deb2f57cf feat(route/twitter): support twitter list third-party api 2024-12-12 13:53:50 +08:00
pseudoyu 844e658008 feat(route/twitter): only apply third-party api supported routes 2024-12-10 11:29:59 +08:00
pseudoyu c70fda5b99 feat(route/twitter): support tweets with replies 2024-12-09 18:17:11 +08:00
pseudoyu 60dd8f6ba6 feat(route/twitter): support getUserTweets thirdparty api 2024-12-06 16:12:32 +08:00
pseudoyu b32c5ca07e fix(route/twitter): add enable thirdparty api switcher 2024-11-29 14:59:44 +08:00
pseudoyu 3e102d5a53 refactor(route/twitter): keep twitter graphql endpoints consistent 2024-11-29 14:18:20 +08:00
pseudoyu 3f12f922bf feat(route/twitter): add third-party twitter api support 2024-11-29 13:50:59 +08:00
Rick Lahaye 6dc521e38c fix(twitter): set title to author (#17673) 2024-11-22 23:50:05 +08:00
lifegpc 4b6658605a fix(twitter)!: 修复Twitter 长文本显示不全 (#17596)
* Try fix

* apply fix for mobile api
2024-11-15 23:48:09 +08:00
TonyandCaoMeiYouRen 40d4a1f81a fix(route): 修复 部分情况下 url.expanded_url 可能为 undefined 的问题 (#17560)
fix #17382

Co-authored-by: CaoMeiYouRen <996881204@qq.com>
2024-11-13 01:16:55 +08:00
Gnosnay a8ae1e1567 fix(twitter): await set cookie (#17545) 2024-11-12 02:34:23 +08:00
DIYgod 3ea381e7db feat(twitter): debug 2024-11-09 02:01:24 +08:00
Gnosnay fd5a888f18 fix(route/twitter): await when get cache (#17429) 2024-11-03 22:18:10 +08:00
DIYgod 0c506b84c8 feat(twitter): double lock time 2024-11-03 22:15:46 +08:00
DIYgod a9d2ea5b04 feat(twitter): recover cookie updating 2024-11-03 21:45:55 +08:00
DIYgod 70435d4ae1 feat(twitter): debug 2024-11-03 21:28:21 +08:00
pseudoyu 0a42f88de7 feat(route): add lang field in route namespace 2024-11-01 22:09:31 +07:00
Andvari 2eef201d16 fix(route/twitter): Prevent storing empty cookie if obtaining such from auth_token failed. (#17232) 2024-10-31 23:56:54 +08:00
DIYgod 682c9439b7 fix(twitter): disable cookie updating 2024-10-31 22:42:48 +08:00
Eric Zhu b60ef4de32 feat(twitter): support LoginEnterAlternateIdentifierSubtask task and better login flow controll (#17331)
* feat(twitter): support LoginEnterAlternateIdentifierSubtask task and better login flow controll

* chore: lint

* chore: lint

* refactor(twitter): login flow

* fix: var name
2024-10-30 04:28:56 +08:00
Thomas a71410fdd7 feat(twitter): only display tweets that contains a media (#17310)
* feat: only display tweets that contains a media

* Use lambda to simplify filtering

* wording: media is uncountable

---------
2024-10-27 02:56:48 +08:00
Thomas 8dd3e0b875 feat: support twitter lists through mobile api (#17176) 2024-10-22 01:43:35 +08:00
Otstar Lin 78bf6daf6c fix(route/twitter): Mask the error output to avoid leak token (#17193) 2024-10-19 14:03:37 +08:00
pseudoyu fc80e4400e feat(router/twitter): modify twitter list configs 2024-10-18 17:04:03 +08:00