channel-worker 2.5.66 → 2.5.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -37,6 +37,14 @@ const REEL_ENTRY_SELECTORS = [
|
|
|
37
37
|
"div[role='region'][aria-label='Create post'] [aria-label='Reels']",
|
|
38
38
|
"div[role='region'][aria-label='Create post'] [aria-label='Create reel']",
|
|
39
39
|
"div[role='region'][aria-label='Create post'] [aria-label='Create a reel']",
|
|
40
|
+
// Facebook tiếng Anh ghi "Create a post" — THỪA một chữ "a" so với biến thể
|
|
41
|
+
// trên. Đo thật 2026-08-30 trên profile kenh-26: region trên trang chủ là
|
|
42
|
+
// ["create a post","reels"], nên mọi bộ chọn 'Create post' đều trượt và kênh
|
|
43
|
+
// đó không đăng nổi một video nào suốt từ 14/06.
|
|
44
|
+
"div[role='region'][aria-label='Create a post'] [aria-label='Reel']",
|
|
45
|
+
"div[role='region'][aria-label='Create a post'] [aria-label='Reels']",
|
|
46
|
+
"div[role='region'][aria-label='Create a post'] [aria-label='Create reel']",
|
|
47
|
+
"div[role='region'][aria-label='Create a post'] [aria-label='Create a reel']",
|
|
40
48
|
];
|
|
41
49
|
// Residential proxies can leave Facebook's final "Đang tải..." state active
|
|
42
50
|
// well past three minutes. The API only declares a publish command stale after
|
|
@@ -674,7 +682,7 @@ async function runOnce({ page, payload, log }) {
|
|
|
674
682
|
for (const region of document.querySelectorAll("[role='region'], [aria-label='Tạo bài viết']")) {
|
|
675
683
|
const aria = (region.getAttribute('aria-label') || '').toLowerCase();
|
|
676
684
|
if (allRegions.length < 10 && aria) allRegions.push(aria.slice(0, 30));
|
|
677
|
-
if (!/tạo bài viết|create post/.test(aria)) continue;
|
|
685
|
+
if (!/tạo bài viết|create (a )?post/.test(aria)) continue;
|
|
678
686
|
regionSeen++;
|
|
679
687
|
for (const b of region.querySelectorAll("[role='button'], button, a")) {
|
|
680
688
|
const t = (b.innerText || b.textContent || '').trim();
|