Commit Graph
22 Commits
Author SHA1 Message Date
DIYgod 566f028aaf refactor: migrate browser automation to Playwright (#21901)
* refactor: migrate browser automation to Playwright

* ci: update browser checks for Playwright
2026-05-04 21:16:18 +08:00
github-actions[bot] ebfe021b50 style: auto format 2026-04-14 15:15:05 +00:00
MMA 6288f06b97 fix(route/dailypush): use puppeteer (#21160)
* use puppeteer

* fix typo

* fix fetch page one by one

* use deprecated method

* bypass Disallow await inside of loops

* use one browser for the whole route

* bypass Disallow await inside of loops

* use one browser even if marked deprecated by doc

* use Promise.all()

* fix new destory -> destroy
2026-04-04 05:00:09 +08:00
LinxHex c97a5a286f feat(weibo): apply description render params to comments (#21389) 2026-03-16 21:09:59 +08:00
Tony b84bb92a8a style: replace unicorn/no-for-loop w/ typescript/prefer-for-of (#20798)
* style: replace unicorn/no-for-loop w/ typescript/prefer-for-of

* style: fix typescript-eslint/prefer-for-of

* style: fix typescript/no-inferrable-types

* style: fix typescript-eslint/consistent-generic-constructors

* style: typescript-eslint/consistent-type-assertions

* style: fix typescript-eslint/array-type

* fix: revert .entries() in d96ca62d3d80806b0475a54e749decfc07b24701
2026-01-02 09:42:24 +08:00
Rongrong 3158a46956 fix(route/weibo/utils): tryWithCookies: Cookies expiration not detected (#20583)
* feat(route/weibo/utils): getCookies: Add cooldown time

Signed-off-by: Rongrong <i@rong.moe>

* fix(route/weibo/utils): tryWithCookies: Cookies expiration not detected

Signed-off-by: Rongrong <i@rong.moe>

---------

Signed-off-by: Rongrong <i@rong.moe>
2025-12-02 11:59:52 +08:00
github-actions[bot] a28890a135 style: auto format 2025-11-27 02:55:46 +00:00
Rongrong 6eb460c33b feat(route/weibo): Fetch visitor Cookies before accessing some APIs (#20534)
* feat(route/weibo): Fetch visitor Cookies before accessing some APIs

Signed-off-by: Rongrong <i@rong.moe>

* fix(route/weibo/utils): getCookies: return too early on slow connection

Signed-off-by: Rongrong <i@rong.moe>

* fix(route/weibo/utils): getCookies: Redirection assertion is too loose

Signed-off-by: Rongrong <i@rong.moe>

---------

Signed-off-by: Rongrong <i@rong.moe>
2025-11-22 06:04:14 +08:00
Neko AriaandNekoAria 10cacfdf01 fix(route/weibo): add optional chaining for large.geo properties (#19973)
* fix(route/weibo): add optional chaining for `large.geo` properties

* fix(route/weibo): add optional chaining for `large.geo` properties

* fix(route/weibo): add optional chaining for `large.geo` properties

---------

Co-authored-by: NekoAria <NekoAria@users.noreply.github.com>
2025-09-05 21:44:20 +08:00
DIYgod 4523d37cbd feat: add img width height for bilibili/dynamic weibo/user xiaohongshu/user routes 2025-09-01 13:18:51 +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
cnk 4014732fa7 feat(routes/weibo): add showBloggerIcons option (#18302)
* feat(routes/weibo): add showBloggerIcons option

* fix(routes/weibo): apply review suggestion
2025-02-10 22:53:46 +08:00
远浅 8cd531187b fix: weibo livephoto get wrong object key (#17985) 2024-12-26 23:48:54 +08:00
DIYgod d982b5abef feat(weibo): remove redundant br 2024-09-09 18:54:18 +08:00
zsly387 e6d4e1e18a feat(router): 微博路由 评论增加图片输出功能 (#16227)
* updata

* update

* update

* update

* update

* test

* test2
2024-07-25 04:18:42 +08:00
DIYgod 5513d4a0fd feat: add author for pixiv ranking, pixiv user, twitter keyword, weibo keyword, youtube custom, youtube user routes 2024-06-06 01:22:28 +08:00
CaoMeiYouRen 2b5f4d092a feat(route): 微博路由 新增 category 字段 (#15734) 2024-05-28 00:40:55 +08:00
tmr e43b6fda84 fix: weibo image regex (#14739)
* fix: weibo image regex

* fix: return handlers

---------
2024-03-12 00:05:41 +08:00
DIYgod 44c9853541 feat: replace require with import 7/n 2024-03-07 01:17:21 +08:00
DIYgod 34d889743b feat: replace require with import 4/n 2024-03-07 00:15:48 +08:00
Yufan You 130b11224e chore: remove @ts-nocheck (#14669) 2024-03-05 21:06:03 +08:00
DIYgod 8065ededf5 feat: rename routes .js to .ts 2024-03-04 00:35:37 +08:00