Not in the top 1,000 by GitHub stars

Hao0321/claude-skill-social-post

A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day content calendar. Mega-viral validated: 80K reach / 448 likes / 500 comments on first post. Includes Day 2 flop postmortem.

History

Review weekly changes to SKILL.md before updating. Dates mark the weeks in which we observed each version; checks apply to the recorded commits.

View weekly changes

chatgpt-socialpost/SKILL.md

Week of Oct 26, 2026 · +0 / −0 lines

Before Instructions only → After Instructions only

c22737a33d6c → c22737a33d6c

Compare on GitHub

social-post/SKILL.md

Week of Oct 26, 2026 · +0 / −0 lines

Before Network or broad shell → After Network or broad shell

c22737a33d6c → c22737a33d6c

Compare on GitHub

View on GitHubAdd to my skills

Verified commit c22737a33d6cf09c48690f8be076b28bffc43a67

749GitHub stars
1star in 7 days
2skills in this repository
3commits in 30 days

Heat

4.3
  • Star growth, last 7 daysNot available
  • Star growth, last 24 hoursNot available
  • Rank movement, last 7 daysNot available
  • Commits, last 30 daysNot available
  • Accounts asking about it through MCP, last 7 daysNot available
  • Hot votes this weekNot available

Heat never changes the order by stars, and sponsorship never touches it. How heat works

Stars over time

Aug 2, 2026Nov 7, 2026749

Individual skills in this repository

How it works

socialpost

When your agent uses it

在 ChatGPT 聊天中規劃、撰寫與修改 Facebook、Instagram、Threads、YouTube、X 貼文;處理 Mode C、黑底白字、作者語氣、版型與成效證據。使用者說「發文」「寫文」「文案」「用我的口氣/格式」「Mode C」「黑底白字」「分析貼文」時啟用。

What it loads into context

Frontmatter

96 tokens

Always available to the agent

SKILL.md

976 tokens

When the skill is activated

Reference documents

0 tokens

Loaded on request

Token counts are estimates. Scripts run separately; they are not counted as reference context.

The playbook

  1. 來源與校準
  2. 產稿流程
  3. 發布與學習邊界

Files

  • SKILL.mdcore3,323 bytes
  • agents/openai.yamlasset286 bytes
Read SKILL.md

# Social Post — ChatGPT Chat

這是公開、可重用的執行規則,不含任何作者的私人語氣卡、貼文原文、受眾數據或帳號資訊。公開 GitHub 範本不等於已學會目前使用者的聲音。

## 來源與校準

1. 先讀當輪要求與修稿指令,再讀目前聊天可存取的私人語氣卡、專案檔、使用者提供的原文/截圖。只有在確實讀到時,才可說已依個人格式校準。不要把記憶、公開範本或猜測冒充為已讀取的私人資料。
2. 產稿前標定平台、surface(純文字、黑底白字卡、照片、Reel/Shorts caption 等)、意圖與模式。選同平台、同 surface、同意圖的真實原文作對照;其他類型只能借語氣,不可硬套字數、段落或發文時段。
3. 若完全沒有可讀的私人卡或同類原文,先索取一篇原文或請使用者選取其私人 Skill/專案來源。若仍須先寫,只交「未校準初稿」,不得稱為作者個人版或直接發布稿。
4. 沒有本機資料庫或分析工具時,不得宣稱執行過成效比較。發文時段、長度、關鍵字與流量推論要標成待測假設,不可由少數截圖宣稱因果。

## 產稿流程

1. 一篇只選一個主要目的與一個主張。開頭用可驗證的結果、反差、問題或本人立場;不要用空泛的「今天想分享」與 AI 顧問腔。
View the complete source on GitHub

Skills included

  • socialpost
  • social-post

Repository facts

License
MIT
Created
Apr 21, 2026
Last pushed
Oct 15, 2026
Forks
150
Open issues
0
Project activity
Active

Rank over the last 12 weeks

Now #884 · best #756 · down 59 in 30 days

  1. #881 on Oct 14
  2. #879 on Oct 16
  3. #858 on Oct 17
  4. #847 on Oct 18
  5. #912 on Oct 21
  6. #884 since Oct 22
46 earlier periods
  1. #756 on Aug 2
  2. #760 on Aug 7
  3. #773 on Aug 9
  4. #808 on Aug 10
  5. #805 on Aug 11
  6. #800 on Aug 12
  7. #801 on Aug 13
  8. #786 on Aug 14
  9. #757 on Aug 15
  10. #780 on Aug 16
  11. #810 on Aug 18
  12. #804 on Aug 19
  13. #805 on Aug 21
  14. #757 on Aug 22
  15. #804 on Aug 23
  16. #818 on Aug 24
  17. #811 on Aug 26
  18. #816 on Aug 27
  19. #855 on Aug 28
  20. #780 on Aug 29
  21. #788 on Aug 30
  22. #828 on Aug 31
  23. #849 on Sep 1
  24. #829 on Sep 3
  25. #796 on Sep 4
  26. #772 on Sep 5
  27. #803 on Sep 6
  28. #820 on Sep 7
  29. #842 on Sep 8
  30. #822 on Sep 9
  31. #829 on Sep 10
  32. #803 on Sep 12
  33. #799 on Sep 13
  34. #832 on Sep 14
  35. #825 on Sep 18
  36. #818 on Sep 24
  37. #855 on Sep 28
  38. #805 on Oct 1
  39. #800 on Oct 2
  40. #782 on Oct 3
  41. #811 on Oct 4
  42. #826 on Oct 5
  43. #846 on Oct 7
  44. #890 on Oct 8
  45. #836 from Oct 10 to Oct 11
  46. #859 on Oct 12

Before you install

Network or broad shell

Automated signals, not a guarantee

Checked Nov 4, 2026

Not fully analyzed: some files were too long, unreadable or missing. This never lowers the level.

Show 5 notes
  • social-post/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • social-post/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • social-post/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • social-post/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • social-post/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
Show all 757 signals by file

social-post/references/chrome-comment-adapter.md

  • Network accessline 174
    "account_key": "expected-account",   "post_key": "platform-post-id",   "post_permalink": "https://www.instagram.com/p/example",
  • Network accessline 175
    "post_key": "platform-post-id",   "post_permalink": "https://www.instagram.com/p/example",   "observed_url": "https://www.instagram.com/p/example",
  • Network accessline 176
    "post_permalink": "https://www.instagram.com/p/example",
  • Network accessline 177
    "observed_url": "https://www.instagram.com/p/example",
  • Network accessline 183
    {       "platform_comment_id": "visible-stable-id",       "comment_permalink": "https://www.instagram.com/p/example/c/id",
  • Network accessline 184
    "platform_comment_id": "visible-stable-id",       "comment_permalink": "https://www.instagram.com/p/example/c/id",       "observed_parent_post_permalink": "https://www.instagram.com/p/example",
  • Network accessline 185
    "comment_permalink": "https://www.instagram.com/p/example/c/id",
  • Network accessline 186
    "observed_parent_post_permalink": "https://www.instagram.com/p/example",
  • Network accessline 276
    "plan_digest": "sha256-of-fresh-locator-plan",   "preparation_id": "sha256-of-preparation-core",   "observed_url": "https://www.instagram.com/p/example",
  • Network accessline 277
    "preparation_id": "sha256-of-preparation-core",   "observed_url": "https://www.instagram.com/p/example",   "observed_at": "2026-08-28T12:00:15+00:00",
  • Network accessline 278
    "observed_url": "https://www.instagram.com/p/example",
  • Network accessline 339
    "comment_fingerprint": "fingerprint-id",   "reply_hash": "sha256-from-action",   "observed_url": "https://www.instagram.com/p/example",
  • Network accessline 340
    "reply_hash": "sha256-from-action",   "observed_url": "https://www.instagram.com/p/example",   "observed_at": "2026-08-28T12:00:30+00:00",
  • Network accessline 341
    "observed_url": "https://www.instagram.com/p/example",

social-post/references/chrome-comment-validation.md

  • Dangerous shell operationline 65
    closed inventory 固定涵蓋所有 `scripts/comment_chrome_*.mjs`、`scripts/comment_js_architecture_*.mjs`、`scripts/comment_fixture_browser_e2e.mjs` 與 `scripts/comment_adapter_fixtures/fixture-runtime.js`;新增符合 glob 的模組會自動被發現,但在加入 reviewed exact manifes
  • Network accessline 108
    "comment_fingerprint": "fingerprint-id",   "reply_hash": "sha256-from-action",   "observed_url": "https://www.instagram.com/p/example",
  • Network accessline 109
    "reply_hash": "sha256-from-action",   "observed_url": "https://www.instagram.com/p/example",   "observed_at": "2026-08-28T12:05:00+00:00",
  • Network accessline 110
    "observed_url": "https://www.instagram.com/p/example",

social-post/references/comment-operations.md

  • Network accessline 122
    "account_key": "expected-account",   "post_key": "platform-post-id",   "post_permalink": "https://platform.example/post/id",
  • Network accessline 123
    "post_key": "platform-post-id",   "post_permalink": "https://platform.example/post/id",   "observed_parent_post_permalink": "https://platform.example/post/id",
  • Network accessline 124
    "post_permalink": "https://platform.example/post/id",
  • Network accessline 125
    "observed_parent_post_permalink": "https://platform.example/post/id",

social-post/references/service-architecture.md

  • Access to secretsline 45
    [Credential-related source omitted]

social-post/references/workbench.md

  • Network accessline 12
    Default address: http://127.0.0.1:8766. Python 3.10+ is required; the runtime uses

social-post/references/writing-governance.md

  • Instruction override signalline 109
    are blocked. Any concurrent activation requires rebasing and fresh review. To revert, propose the preserved original/prior text for the same scope and review/activate it normally; never delete evidence or bypass approval by replacing
  • Instruction override signalline 110
    To revert, propose the preserved original/prior text for the same scope and review/activate it normally; never delete evidence or bypass approval by replacing the pointer. Back up the whole private data directory, not just its active pointe
  • Instruction override signalline 111
    review/activate it normally; never delete evidence or bypass approval by replacing

social-post/references/x.md

  • Network accessline 9
    - For You 每次請求結合追蹤帳號的近期貼文,以及 Phoenix/SimClusters 找到的非追蹤帳號貼文,再過濾、排序與重排。它不是一篇貼文固定擁有的「全站流量分數」。[官方架構](https://github.com/xai-org/x-algorithm/blob/3aa0fa336c4a20e4149b6151629b6050897bb8a5/README.md#overview)
  • Network accessline 10
    - Phoenix 預測**該讀者**對各種動作的可能性,包括喜歡、回覆、轉發、引用、分享、點擊、停留、追蹤,以及不感興趣、靜音、封鎖、檢舉。排名器以權重組合這些預測;權重不是實際互動次數的兌換率。不可說「一則回覆抵 N 個讚」或依公開預設權重計算某篇的真實分數。[官方說明](https://github.com/xai-org/x-algorithm/blob/3aa0fa336c4a20e4149b6151629b6050897bb8a5/README.md#scorin
  • Network accessline 11
    - 排序還有作者多樣性、非追蹤內容折減、新作者調整與 VMRanker 重排;可見性、已看過、重複、封鎖/靜音、部分對話分支等過濾也會影響出現機會。來源點擊或單一貼文格式不足以保證觸及。[官方說明](https://github.com/xai-org/x-algorithm/blob/3aa0fa336c4a20e4149b6151629b6050897bb8a5/README.md#filtering)
  • Network accessline 12
    - `home-mixer/params/param.rs` 的數字是公開時的主要預設,線上實驗與設定可變;9 月 18 日更新了可見性標籤的透明資訊。部分防濫用規則與提示詞未公開,因此不能聲稱已掌握完整線上演算法。[設定邊界](https://github.com/xai-org/x-algorithm/blob/3aa0fa336c4a20e4149b6151629b6050897bb8a5/README.md#experiments-and-configuration)
  • Network accessline 24
    - 一般貼文上限通常為 280,Premium 長文可到 25,000;以當前官方說明及實際 composer 計數為準,不硬寫中文、emoji、網址各算幾字。[X 貼文類型](https://help.x.com/en/using-x/types-of-posts)

social-post/scripts/build_rule_registry.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_adapter_fixtures/facebook.html

  • Network accessline 8
    data-account-key="fixture-account"       data-post-key="fixture-facebook-post"       data-post-permalink="https://fixture.invalid/facebook/posts/fixture-facebook-post"
  • Network accessline 9
    data-post-key="fixture-facebook-post"       data-post-permalink="https://fixture.invalid/facebook/posts/fixture-facebook-post"       data-observed-at="2026-08-28T10:00:00+08:00"
  • Network accessline 10
    data-post-permalink="https://fixture.invalid/facebook/posts/fixture-facebook-post"
  • Network accessline 25
    data-fixture-node-id="facebook-comment-node-001"              data-author-key="viewer-facebook"              data-parent-post-permalink="https://www.facebook.com/fixture/posts/fixture-facebook-post"
  • Network accessline 26
    data-author-key="viewer-facebook"              data-parent-post-permalink="https://www.facebook.com/fixture/posts/fixture-facebook-post"              data-is-own="false">
  • Network accessline 27
    data-parent-post-permalink="https://www.facebook.com/fixture/posts/fixture-facebook-post"
  • Network accessline 28
    data-is-own="false">       <a data-fb-comment-permalink          href="https://fixture.invalid/facebook/posts/fixture-facebook-post?comment_id=fb-comment-001">2 小時</a>
  • Network accessline 29
    <a data-fb-comment-permalink          href="https://fixture.invalid/facebook/posts/fixture-facebook-post?comment_id=fb-comment-001">2 小時</a>       <strong data-fb-author data-fixture-node-id="facebook-author-node-001">Facebook Fixture Viewe
  • Network accessline 30
    href="https://fixture.invalid/facebook/posts/fixture-facebook-post?comment_id=fb-comment-001">2 小時</a>
  • Network accessline 44
    data-fixture-node-id="facebook-comment-node-decoy"              data-author-key="viewer-facebook-decoy"              data-parent-post-permalink="https://www.facebook.com/fixture/posts/fixture-facebook-post"
  • Network accessline 45
    data-author-key="viewer-facebook-decoy"              data-parent-post-permalink="https://www.facebook.com/fixture/posts/fixture-facebook-post"              data-is-own="false">
  • Network accessline 46
    data-parent-post-permalink="https://www.facebook.com/fixture/posts/fixture-facebook-post"

social-post/scripts/comment_adapter_fixtures/fixture-runtime.js

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_adapter_fixtures/instagram.html

  • Network accessline 8
    data-account-key="fixture-account"       data-post-key="fixture-instagram-post"       data-post-permalink="https://fixture.invalid/instagram/p/fixture-instagram-post"
  • Network accessline 9
    data-post-key="fixture-instagram-post"       data-post-permalink="https://fixture.invalid/instagram/p/fixture-instagram-post"       data-observed-at="2026-08-28T10:00:00+08:00"
  • Network accessline 10
    data-post-permalink="https://fixture.invalid/instagram/p/fixture-instagram-post"
  • Network accessline 26
    data-fixture-node-id="instagram-comment-node-001"           data-author-key="viewer-instagram"           data-parent-post-permalink="https://www.instagram.com/p/fixture-instagram-post"
  • Network accessline 27
    data-author-key="viewer-instagram"           data-parent-post-permalink="https://www.instagram.com/p/fixture-instagram-post"           data-is-own="false">
  • Network accessline 28
    data-parent-post-permalink="https://www.instagram.com/p/fixture-instagram-post"
  • Network accessline 29
    data-is-own="false">         <a data-ig-comment-permalink            href="https://fixture.invalid/instagram/p/fixture-instagram-post/c/ig-comment-001">3 小時</a>
  • Network accessline 30
    <a data-ig-comment-permalink            href="https://fixture.invalid/instagram/p/fixture-instagram-post/c/ig-comment-001">3 小時</a>         <span data-ig-author data-fixture-node-id="instagram-author-node-001">Instagram Fixture Viewer</span
  • Network accessline 31
    href="https://fixture.invalid/instagram/p/fixture-instagram-post/c/ig-comment-001">3 小時</a>
  • Network accessline 45
    data-fixture-node-id="instagram-comment-node-decoy"           data-author-key="viewer-instagram-decoy"           data-parent-post-permalink="https://www.instagram.com/p/fixture-instagram-post"
  • Network accessline 46
    data-author-key="viewer-instagram-decoy"           data-parent-post-permalink="https://www.instagram.com/p/fixture-instagram-post"           data-is-own="false">
  • Network accessline 47
    data-parent-post-permalink="https://www.instagram.com/p/fixture-instagram-post"

social-post/scripts/comment_adapter_fixtures/threads.html

  • Network accessline 8
    data-account-key="fixture-account"       data-post-key="fixture-threads-post"       data-post-permalink="https://fixture.invalid/threads/post/fixture-threads-post"
  • Network accessline 9
    data-post-key="fixture-threads-post"       data-post-permalink="https://fixture.invalid/threads/post/fixture-threads-post"       data-observed-at="2026-08-28T10:00:00+08:00"
  • Network accessline 10
    data-post-permalink="https://fixture.invalid/threads/post/fixture-threads-post"
  • Network accessline 25
    data-fixture-node-id="threads-reply-node-001"              data-author-key="viewer-threads"              data-parent-post-permalink="https://www.threads.com/@fixture/post/fixture-threads-post"
  • Network accessline 26
    data-author-key="viewer-threads"              data-parent-post-permalink="https://www.threads.com/@fixture/post/fixture-threads-post"              data-is-own="false">
  • Network accessline 27
    data-parent-post-permalink="https://www.threads.com/@fixture/post/fixture-threads-post"
  • Network accessline 28
    data-is-own="false">       <a data-threads-comment-permalink          href="https://fixture.invalid/threads/post/fixture-threads-post/reply/threads-reply-001">4 小時</a>
  • Network accessline 29
    <a data-threads-comment-permalink          href="https://fixture.invalid/threads/post/fixture-threads-post/reply/threads-reply-001">4 小時</a>       <span data-threads-author data-fixture-node-id="threads-author-node-001">Threads Fixture View
  • Network accessline 30
    href="https://fixture.invalid/threads/post/fixture-threads-post/reply/threads-reply-001">4 小時</a>
  • Network accessline 44
    data-fixture-node-id="threads-reply-node-decoy"              data-author-key="viewer-threads-decoy"              data-parent-post-permalink="https://www.threads.com/@fixture/post/fixture-threads-post"
  • Network accessline 45
    data-author-key="viewer-threads-decoy"              data-parent-post-permalink="https://www.threads.com/@fixture/post/fixture-threads-post"              data-is-own="false">
  • Network accessline 46
    data-parent-post-permalink="https://www.threads.com/@fixture/post/fixture-threads-post"

social-post/scripts/comment_assistant.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_authorization.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_action_contract.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_cli.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_common.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_contract.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_preflight_contract.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_provenance.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_result_contract.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_scan_completion.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_scan_contract.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 56
    }:             request_id = raw.get("scan_request_id")             request = requests.get(request_id) if isinstance(request_id, str) else None
  • Network accessline 57
    request_id = raw.get("scan_request_id")             request = requests.get(request_id) if isinstance(request_id, str) else None             if request is None:
  • Network accessline 58
    request = requests.get(request_id) if isinstance(request_id, str) else None

social-post/scripts/comment_browser_scan_evidence.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_scan_request.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_send_common.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_send_contract.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_target_cli.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_browser_target_contract.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_canary.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_canary_cli.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_capability_gate.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_capability_gate_calibration.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_capability_mapping_evidence.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_capability_promotion.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_capability_promotion_calibration.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_capability_promotion_contract.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_capability_promotion_fixtures.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_capability_promotion_semantics.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_capability_receipt_support.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_capability_trusted_host_verifier.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_chrome_actuator.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_actuator_fixture_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 202
    } = {}) {   const page = {     url: "http://127.0.0.1:8765/instagram.html",
  • Network accessline 203
    const page = {     url: "http://127.0.0.1:8765/instagram.html",     crossRealmEvaluate,
  • Network accessline 204
    url: "http://127.0.0.1:8765/instagram.html",
  • Network accessline 211
    attributes: {           "data-id": "comment-a", "data-own": "false",           "data-parent-post": "https://www.instagram.com/p/post-a",
  • Network accessline 212
    "data-id": "comment-a", "data-own": "false",           "data-parent-post": "https://www.instagram.com/p/post-a",         },
  • Network accessline 213
    "data-parent-post": "https://www.instagram.com/p/post-a",
  • Network accessline 225
    author: { visible: true, text: "viewer-a" },       body: { visible: true, text: "這一集會反擊嗎?" },       "parent-post": { visible: true, attributes: { href: "https://www.instagram.com/p/post-a" } },
  • Network accessline 226
    body: { visible: true, text: "這一集會反擊嗎?" },       "parent-post": { visible: true, attributes: { href: "https://www.instagram.com/p/post-a" } },       "reply-exhaustion-state": {
  • Network accessline 227
    "parent-post": { visible: true, attributes: { href: "https://www.instagram.com/p/post-a" } },
  • Network accessline 294
    comment_key: "instagram:account-a:post-a:comment-a",     },     post_permalink: "https://www.instagram.com/p/post-a",
  • Network accessline 295
    },     post_permalink: "https://www.instagram.com/p/post-a",     comment_anchor: { platform_comment_id: "comment-a", comment_permalink: null },
  • Network accessline 296
    post_permalink: "https://www.instagram.com/p/post-a",

social-post/scripts/comment_chrome_actuator_guards_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 202
    await mustReject(     () => createCommentChromeActuator().prepareReply(       new FakeTab({ ...fixture().page, url: "https://evil.example/post" }), action, plan, options,
  • Network accessline 203
    () => createCommentChromeActuator().prepareReply(       new FakeTab({ ...fixture().page, url: "https://evil.example/post" }), action, plan, options,     ),
  • Network accessline 204
    new FakeTab({ ...fixture().page, url: "https://evil.example/post" }), action, plan, options,
  • Network accessline 209
    () => createCommentChromeActuator().prepareReply(       fixture().tab, action, plan,       { ...options, receiptObservedUrl: "https://user@www.instagram.com/p/post-a" },
  • Network accessline 210
    fixture().tab, action, plan,       { ...options, receiptObservedUrl: "https://user@www.instagram.com/p/post-a" },     ),
  • Network accessline 211
    { ...options, receiptObservedUrl: "https://user@www.instagram.com/p/post-a" },

social-post/scripts/comment_chrome_actuator_receipts_test.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_actuator_reinspection_test.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_actuator_reply_exhaustion_test.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_actuator_scan_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 197
    snapshotPlan.account.selector = "#mutated-account";     snapshotOptions.testOnly = false;     snapshotOptions.receiptObservedUrl = "https://evil.example/post";
  • Network accessline 198
    snapshotOptions.testOnly = false;     snapshotOptions.receiptObservedUrl = "https://evil.example/post";   };
  • Network accessline 199
    snapshotOptions.receiptObservedUrl = "https://evil.example/post";
  • Network accessline 208
    page.nodes["parent-post"].attributes.href = "https://www.instagram.com/p/other";

social-post/scripts/comment_chrome_actuator_send_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 23
    mutablePlan.submit.selector = ".mutated-submit";     mutableOptions.testOnly = false;     mutableOptions.receiptObservedUrl = "https://evil.example/post";
  • Network accessline 24
    mutableOptions.testOnly = false;     mutableOptions.receiptObservedUrl = "https://evil.example/post";     page.url = approvedLiveUrl;
  • Network accessline 25
    mutableOptions.receiptObservedUrl = "https://evil.example/post";
  • Network accessline 161
    await Promise.resolve();       mutableOptions.testOnly = false;       mutableOptions.receiptObservedUrl = "https://evil.example/post";
  • Network accessline 162
    mutableOptions.testOnly = false;       mutableOptions.receiptObservedUrl = "https://evil.example/post";       page.url = action.post_permalink;
  • Network accessline 163
    mutableOptions.receiptObservedUrl = "https://evil.example/post";
  • Network accessline 251
    {       suffix: "url",       mutate: (page) => { page.url = "https://evil.example/post"; },
  • Network accessline 252
    suffix: "url",       mutate: (page) => { page.url = "https://evil.example/post"; },       error: /testOnly URL mapping is restricted to loopback hosts/,
  • Network accessline 253
    mutate: (page) => { page.url = "https://evil.example/post"; },

social-post/scripts/comment_chrome_actuator_test.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_claim_bridge.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_claim_bridge_test.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_claim_integration_test.mjs

  • Executable scriptline 1
    Executable file
  • Dangerous shell operationline 3
    import { mkdtemp, readFile, rm } from "node:fs/promises";

social-post/scripts/comment_chrome_common.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_facebook_child_reader.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 8
    || fields.some((field) => typeof expected[field] !== "string" || !expected[field])       || !["facebook.com", "www.facebook.com", "m.facebook.com"].includes(expected.host)       || expected.origin !== `https://${expected.host}`
  • Network accessline 9
    || !["facebook.com", "www.facebook.com", "m.facebook.com"].includes(expected.host)       || expected.origin !== `https://${expected.host}`       || !/^\/[A-Za-z0-9.]+\/posts\/[A-Za-z0-9]+$/u.test(expected.postPath)
  • Network accessline 10
    || expected.origin !== `https://${expected.host}`
  • Network accessline 129
    || ["origin", "host", "postPath", "commentId", "account", "parentDisplay"]         .some((field) => typeof expected[field] !== "string" || !expected[field])       || expected.origin !== `https://${expected.host}`
  • Network accessline 130
    .some((field) => typeof expected[field] !== "string" || !expected[field])       || expected.origin !== `https://${expected.host}`       || !["facebook.com", "www.facebook.com", "m.facebook.com"].includes(expected.host)
  • Network accessline 131
    || expected.origin !== `https://${expected.host}`

social-post/scripts/comment_chrome_facebook_child_reader_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 6
    const expected = Object.freeze({   origin: "https://www.facebook.com", host: "www.facebook.com",
  • Network accessline 7
    origin: "https://www.facebook.com", host: "www.facebook.com",
  • Dangerous shell operationline 119
    const crossRealm = runInNewContext(`(${readFacebookNativeChildRow.toString()})(article, expected)`,
  • Network accessline 160
    ["duplicate tracking", `${nativePath}&__tn__=R&__tn__=R`],     ["conflicting tracking", `${nativePath}&__cft__[0]=first&__cft__[0]=second`],     ["HTTP", `http://www.facebook.com${nativePath}`],
  • Network accessline 161
    ["conflicting tracking", `${nativePath}&__cft__[0]=first&__cft__[0]=second`],     ["HTTP", `http://www.facebook.com${nativePath}`],     ["wrong host", `https://evil.example${nativePath}`],
  • Network accessline 162
    ["HTTP", `http://www.facebook.com${nativePath}`],
  • Network accessline 163
    ["wrong host", `https://evil.example${nativePath}`],
  • Network accessline 164
    ["credentials", `https://user@www.facebook.com${nativePath}`],
  • Network accessline 165
    ["port", `https://www.facebook.com:8443${nativePath}`],
  • Network accessline 279
    ...[       { host: "evil.example" }, { host: "www.facebook.com:8443" },       { origin: "http://www.facebook.com" }, { origin: "https://www.facebook.com/" },
  • Network accessline 280
    { host: "evil.example" }, { host: "www.facebook.com:8443" },       { origin: "http://www.facebook.com" }, { origin: "https://www.facebook.com/" },       { origin: "https://facebook.com" }, { postPath: "/example.owner/posts/invalid/key" },
  • Network accessline 281
    { origin: "http://www.facebook.com" }, { origin: "https://www.facebook.com/" },
  • Network accessline 282
    { origin: "https://facebook.com" }, { postPath: "/example.owner/posts/invalid/key" },
  • Dangerous shell operationline 313
    const raw = runInNewContext(`(${callback.toString()})(element, input)`, { element: this.nodes[0], input, URL });

social-post/scripts/comment_chrome_facebook_reader.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_facebook_reader_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    const target = Object.freeze({   platform: "facebook", account_key: "example.owner", post_key: "pfbidExample123",   post_permalink: "https://www.facebook.com/example.owner/posts/pfbidExample123",
  • Network accessline 10
    platform: "facebook", account_key: "example.owner", post_key: "pfbidExample123",   post_permalink: "https://www.facebook.com/example.owner/posts/pfbidExample123",   platform_comment_id: "123", comment_permalink:
  • Network accessline 11
    post_permalink: "https://www.facebook.com/example.owner/posts/pfbidExample123",
  • Network accessline 12
    platform_comment_id: "123", comment_permalink:     "https://www.facebook.com/example.owner/posts/pfbidExample123?comment_id=123", });
  • Network accessline 13
    "https://www.facebook.com/example.owner/posts/pfbidExample123?comment_id=123",
  • Dangerous shell operationline 115
    const crossRealm = runInNewContext(`(${readFacebookNativeRow.toString()})(article, expected)`,
  • Network accessline 148
    (f) => { f.anchor.attrs.href = `${native.postPath}?comment_id=123&reply_id=456`; },     (f) => { f.anchor.attrs.href = `${native.postPath}?unrelated=123`; },     (f) => { f.anchor.attrs.href = `https://evil.example${native.postPath}?comment
  • Network accessline 149
    (f) => { f.anchor.attrs.href = `${native.postPath}?unrelated=123`; },     (f) => { f.anchor.attrs.href = `https://evil.example${native.postPath}?comment_id=123`; },   ]) {
  • Network accessline 150
    (f) => { f.anchor.attrs.href = `https://evil.example${native.postPath}?comment_id=123`; },
  • Network accessline 171
    { platform: "instagram" }, { account_key: "bad/name" }, { platform_comment_id: "abc" },     { post_key: "OtherPost" }, { post_permalink: `${target.post_permalink}?extra=1` },     { post_permalink: "https://www.facebook.com/story.php?story_f
  • Network accessline 172
    { post_key: "OtherPost" }, { post_permalink: `${target.post_permalink}?extra=1` },     { post_permalink: "https://www.facebook.com/story.php?story_fbid=123&id=456" },     { comment_permalink: `${target.comment_permalink}&comment_id=123` },
  • Network accessline 173
    { post_permalink: "https://www.facebook.com/story.php?story_fbid=123&id=456" },
  • Network accessline 199
    parserCalls += 1;     const result = callback(this.nodes[0], argument);     if (this.fixture.driftAfterRead) this.fixture.url = "https://www.facebook.com/other.owner/posts/other?comment_id=123";
  • Network accessline 200
    const result = callback(this.nodes[0], argument);     if (this.fixture.driftAfterRead) this.fixture.url = "https://www.facebook.com/other.owner/posts/other?comment_id=123";     return result;
  • Network accessline 201
    if (this.fixture.driftAfterRead) this.fixture.url = "https://www.facebook.com/other.owner/posts/other?comment_id=123";
  • Network accessline 214
    fixture.probes += 1;     return {       goto: async (url) => { assert.equal(url, "https://www.facebook.com/me/"); },
  • Network accessline 215
    return {       goto: async (url) => { assert.equal(url, "https://www.facebook.com/me/"); },       url: async () => {
  • Network accessline 216
    goto: async (url) => { assert.equal(url, "https://www.facebook.com/me/"); },
  • Network accessline 217
    url: async () => {         if (fixture.driftAfterProbe === fixture.probes) fixture.url = "https://www.facebook.com/other.owner/posts/other?comment_id=123";         return "https://www.facebook.com/example.owner";
  • Network accessline 218
    if (fixture.driftAfterProbe === fixture.probes) fixture.url = "https://www.facebook.com/other.owner/posts/other?comment_id=123";
  • Network accessline 219
    return "https://www.facebook.com/example.owner";
  • Network accessline 239
    assert.equal(good.fixture.closed, 2);   for (const options of [     { url: "https://www.facebook.com/other.owner/posts/other?comment_id=123" },
  • Network accessline 240
    for (const options of [     { url: "https://www.facebook.com/other.owner/posts/other?comment_id=123" },     { driftAfterRead: true }, { driftAfterProbe: 2 },
  • Network accessline 241
    { url: "https://www.facebook.com/other.owner/posts/other?comment_id=123" },

social-post/scripts/comment_chrome_facebook_surface.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 23
    const probe = await browser.tabs.new();   try {     await probe.goto("https://www.facebook.com/me/");
  • Network accessline 24
    try {     await probe.goto("https://www.facebook.com/me/");     let current;
  • Network accessline 25
    await probe.goto("https://www.facebook.com/me/");

social-post/scripts/comment_chrome_fixture_contract_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 85
    const results = platforms.map((platform, index) => ({     platform,     page_url: `http://127.0.0.1:8765/${platform}.html`,
  • Network accessline 86
    platform,     page_url: `http://127.0.0.1:8765/${platform}.html`,     scanned_comment_count: 2,
  • Network accessline 87
    page_url: `http://127.0.0.1:8765/${platform}.html`,
  • Network accessline 212
    ["request coverage missing", (value) => { value.request_log = value.request_log.filter((row) => row.path !== "/threads.html"); }],     ["unreviewed request success", (value) => { value.request_log.push({ method: "GET", path: "/unknown", sta
  • Network accessline 213
    ["unreviewed request success", (value) => { value.request_log.push({ method: "GET", path: "/unknown", status: 200 }); }],     ["remote result URL", (value) => { value.results[0].page_url = "https://www.facebook.com/fixture"; }],   ]) {
  • Network accessline 214
    ["remote result URL", (value) => { value.results[0].page_url = "https://www.facebook.com/fixture"; }],
  • Network accessline 221
    return {     platform,     page_url: `http://127.0.0.1:8765/${platform}.html`,
  • Network accessline 222
    platform,     page_url: `http://127.0.0.1:8765/${platform}.html`,     scan: { test_only: true },
  • Network accessline 223
    page_url: `http://127.0.0.1:8765/${platform}.html`,
  • Network accessline 321
    assert.equal(Object.isFrozen(platforms), true);   assert.deepEqual(platforms, ["facebook", "instagram", "threads"]);   assert.equal(requireLoopbackBaseUrl("http://localhost:8765/"), "http://localhost:8765");
  • Network accessline 322
    assert.deepEqual(platforms, ["facebook", "instagram", "threads"]);   assert.equal(requireLoopbackBaseUrl("http://localhost:8765/"), "http://localhost:8765");   assert.throws(() => requireLoopbackBaseUrl("https://127.0.0.1:8765"), /plain loo
  • Network accessline 323
    assert.equal(requireLoopbackBaseUrl("http://localhost:8765/"), "http://localhost:8765");
  • Network accessline 324
    assert.throws(() => requireLoopbackBaseUrl("https://127.0.0.1:8765"), /plain loopback/);
  • Network accessline 325
    assert.throws(() => requireLoopbackBaseUrl("http://example.com"), /plain loopback/);
  • Network accessline 326
    assert.throws(() => requireLoopbackBaseUrl("http://user:pass@localhost:8765"), /plain loopback/);
  • Network accessline 327
    assert.throws(() => requireLoopbackBaseUrl("http://localhost:8765/?mode=1"), /plain loopback/);
  • Network accessline 328
    assert.throws(() => requireLoopbackBaseUrl("http://localhost:8765/#fragment"), /plain loopback/);
  • Network accessline 334
    assert.throws(() => validateExactFixtureBatch([clean[1], clean[0], clean[2]]), /exact fixed/);   assert.throws(() => validateExactFixtureBatch([     { ...clean[0], page_url: "https://www.facebook.com/fixture" }, clean[1], clean[2],
  • Network accessline 335
    assert.throws(() => validateExactFixtureBatch([     { ...clean[0], page_url: "https://www.facebook.com/fixture" }, clean[1], clean[2],   ]), /plain loopback/);
  • Network accessline 336
    { ...clean[0], page_url: "https://www.facebook.com/fixture" }, clean[1], clean[2],

social-post/scripts/comment_chrome_fixture_evidence_testonly.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 384
    let pathname = null;     try {       const parsed = new URL(request.url || "", "http://127.0.0.1");
  • Network accessline 385
    try {       const parsed = new URL(request.url || "", "http://127.0.0.1");       pathname = parsed.pathname;
  • Network accessline 386
    const parsed = new URL(request.url || "", "http://127.0.0.1");
  • Network accessline 403
    status = 400;     }     requests.push(Object.freeze({ method, path: pathname, status }));
  • Network accessline 404
    }     requests.push(Object.freeze({ method, path: pathname, status }));     if (!response.writableEnded) {
  • Network accessline 405
    requests.push(Object.freeze({ method, path: pathname, status }));
  • Network accessline 420
    }   return Object.freeze({     baseUrl: `http://127.0.0.1:${address.port}`,
  • Network accessline 421
    return Object.freeze({     baseUrl: `http://127.0.0.1:${address.port}`,     requests,
  • Network accessline 422
    baseUrl: `http://127.0.0.1:${address.port}`,     requests,     routes,
  • Network accessline 431
    export function requireCanonicalServerCoverage(serverEvidence) {   const successful = new Set(     serverEvidence.requests.filter((row) => row.status === 200).map((row) => row.path),
  • Network accessline 432
    const successful = new Set(     serverEvidence.requests.filter((row) => row.status === 200).map((row) => row.path),   );
  • Network accessline 433
    serverEvidence.requests.filter((row) => row.status === 200).map((row) => row.path),
  • Network accessline 437
    }   assert.equal(     serverEvidence.requests.some((row) => row.status === 200 && !serverEvidence.routes.has(row.path)),
  • Network accessline 438
    assert.equal(     serverEvidence.requests.some((row) => row.status === 200 && !serverEvidence.routes.has(row.path)),     false,
  • Network accessline 439
    serverEvidence.requests.some((row) => row.status === 200 && !serverEvidence.routes.has(row.path)),

social-post/scripts/comment_chrome_fixture_receipt_testonly.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_host_authority.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_host_authority_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 29
    facebook: {     platform: "facebook", account_key: "creator", post_key: "fb-post",     post_permalink: "https://www.facebook.com/example/posts/123",
  • Network accessline 30
    platform: "facebook", account_key: "creator", post_key: "fb-post",     post_permalink: "https://www.facebook.com/example/posts/123",   },
  • Network accessline 31
    post_permalink: "https://www.facebook.com/example/posts/123",
  • Network accessline 33
    instagram: {     platform: "instagram", account_key: "creator", post_key: "ig-post",     post_permalink: "https://www.instagram.com/reel/ABC123",
  • Network accessline 34
    platform: "instagram", account_key: "creator", post_key: "ig-post",     post_permalink: "https://www.instagram.com/reel/ABC123",   },
  • Network accessline 35
    post_permalink: "https://www.instagram.com/reel/ABC123",
  • Network accessline 37
    threads: {     platform: "threads", account_key: "creator", post_key: "th-post",     post_permalink: "https://www.threads.com/@example/post/ABC123",
  • Network accessline 38
    platform: "threads", account_key: "creator", post_key: "th-post",     post_permalink: "https://www.threads.com/@example/post/ABC123",   },
  • Network accessline 39
    post_permalink: "https://www.threads.com/@example/post/ABC123",
  • Network accessline 117
    [     "wrong host",     { ...TARGETS.instagram, post_permalink: "https://evil.example/reel/ABC123" },
  • Network accessline 118
    "wrong host",     { ...TARGETS.instagram, post_permalink: "https://evil.example/reel/ABC123" },     /trusted HTTPS host/u,
  • Network accessline 119
    { ...TARGETS.instagram, post_permalink: "https://evil.example/reel/ABC123" },
  • Network accessline 122
    [     "unsupported IG path",     { ...TARGETS.instagram, post_permalink: "https://www.instagram.com/example" },
  • Network accessline 123
    "unsupported IG path",     { ...TARGETS.instagram, post_permalink: "https://www.instagram.com/example" },     /supported post permalink/u,
  • Network accessline 124
    { ...TARGETS.instagram, post_permalink: "https://www.instagram.com/example" },
  • Network accessline 127
    [     "HTTP",     { ...TARGETS.threads, post_permalink: "http://www.threads.com/@example/post/ABC123" },
  • Network accessline 128
    "HTTP",     { ...TARGETS.threads, post_permalink: "http://www.threads.com/@example/post/ABC123" },     /trusted HTTPS host/u,
  • Network accessline 129
    { ...TARGETS.threads, post_permalink: "http://www.threads.com/@example/post/ABC123" },
  • Network accessline 148
    for (const kind of ["p", "reel", "reels", "tv"]) {   const post_permalink = `https://www.instagram.com/${kind}/ABC123/`;
  • Network accessline 149
    const post_permalink = `https://www.instagram.com/${kind}/ABC123/`;
  • Network accessline 156
    ); } assert.equal(sameInstagramPostUrl("https://www.instagram.com/p/OTHER", TARGETS.instagram.post_permalink), false);
  • Network accessline 157
    } assert.equal(sameInstagramPostUrl("https://www.instagram.com/p/OTHER", TARGETS.instagram.post_permalink), false); assert.equal(sameInstagramPostUrl("https://instagram.com/p/ABC123", TARGETS.instagram.post_permalink), false);
  • Network accessline 158
    assert.equal(sameInstagramPostUrl("https://www.instagram.com/p/OTHER", TARGETS.instagram.post_permalink), false);
  • Network accessline 159
    assert.equal(sameInstagramPostUrl("https://instagram.com/p/ABC123", TARGETS.instagram.post_permalink), false);
  • Network accessline 160
    assert.equal(sameInstagramPostUrl("https://www.instagram.com/p/ABC123?igsh=other", TARGETS.instagram.post_permalink), false);
  • Network accessline 161
    for (const path of ["/p/p/ABC123", "/p/ABC123/c/123", "/p/ABC123/../OTHER", "/p/ABC123%2FOTHER"]) {   assert.throws(() => instagramUrlIdentity(`https://www.instagram.com${path}`)); }
  • Network accessline 162
    assert.throws(() => instagramUrlIdentity(`https://www.instagram.com${path}`));
  • Network accessline 164
    for (const query of ["comment_id=123", "replyId=123", "x=1&x=1", "x=1&X=2"]) {   assert.throws(() => sameInstagramPostUrl(     `https://www.instagram.com/p/ABC123?${query}`, `https://www.instagram.com/reels/ABC123?${query}`,
  • Network accessline 165
    assert.throws(() => sameInstagramPostUrl(     `https://www.instagram.com/p/ABC123?${query}`, `https://www.instagram.com/reels/ABC123?${query}`,   ));
  • Network accessline 166
    `https://www.instagram.com/p/ABC123?${query}`, `https://www.instagram.com/reels/ABC123?${query}`,
  • Network accessline 238
    assert.equal(isTrustedChromeHostAttestation(stableObservation), false, "pure document diagnostics never mint host authority"); for (const [mutate, pattern] of [   [(f) => { f.urls[1] = "https://www.facebook.com/example/posts/OTHER"; }, /URL
  • Network accessline 239
    for (const [mutate, pattern] of [   [(f) => { f.urls[1] = "https://www.facebook.com/example/posts/OTHER"; }, /URL changed/u],   [(f) => { f.snapshot = "iframe [anonymous]"; }, /main-frame-only/u],
  • Network accessline 240
    [(f) => { f.urls[1] = "https://www.facebook.com/example/posts/OTHER"; }, /URL changed/u],
  • Network accessline 241
    [(f) => { f.snapshot = "iframe [anonymous]"; }, /main-frame-only/u],   [(f) => { delete f.view.performance; }, /no readonly performance time origin/u],   [(f) => { f.view.location.origin = "https://another.example"; }, /document origin diff
  • Network accessline 242
    [(f) => { delete f.view.performance; }, /no readonly performance time origin/u],   [(f) => { f.view.location.origin = "https://another.example"; }, /document origin differs/u],   [(f) => { f.element.isConnected = false; }, /connected top-le
  • Network accessline 243
    [(f) => { f.view.location.origin = "https://another.example"; }, /document origin differs/u],

social-post/scripts/comment_chrome_instagram_reader.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_instagram_selection.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_instagram_selection_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 141
    ["wrong native mention", { nativePrefix: "@another_reader " }, /form or draft changed/u],   ["selection timeout after native prefix", { selectionThrows: true }, /ambiguous source selection/u],   ["target URL drift", { onSelect: (value) => {
  • Network accessline 142
    ["selection timeout after native prefix", { selectionThrows: true }, /ambiguous source selection/u],   ["target URL drift", { onSelect: (value) => { value.url = "https://www.instagram.com/p/abc/c/456"; } }, /differs from expected URL/u],   
  • Network accessline 143
    ["target URL drift", { onSelect: (value) => { value.url = "https://www.instagram.com/p/abc/c/456"; } }, /differs from expected URL/u],
  • Dangerous shell operationline 222
    const api = runInNewContext(`${orchestration}\n({ prepareLiveCanaryReply, submitLiveReplyAndFinish, commitLiveReinspection })`, environment);

social-post/scripts/comment_chrome_instagram_surface.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_live_bridge_test.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_live_common.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_live_surface.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_live_surface_candidate_cases_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 183
    await assert.rejects(inspectNative(changingTabId), /Instagram/u);   const changingUrl = nativeInstagramFixture({ afterNativeRead: (read, fixture) => {     if (read === 3) fixture.url = "https://www.instagram.com/p/abc/c/999";
  • Network accessline 184
    const changingUrl = nativeInstagramFixture({ afterNativeRead: (read, fixture) => {     if (read === 3) fixture.url = "https://www.instagram.com/p/abc/c/999";   } });
  • Network accessline 185
    if (read === 3) fixture.url = "https://www.instagram.com/p/abc/c/999";

social-post/scripts/comment_chrome_live_surface_fixture_testonly.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 17
    }; } export const instagram = action("instagram", "https://www.instagram.com/p/abc",
  • Network accessline 18
    } export const instagram = action("instagram", "https://www.instagram.com/p/abc",   "https://www.instagram.com/p/abc/c/123", "123");
  • Network accessline 19
    export const instagram = action("instagram", "https://www.instagram.com/p/abc",
  • Network accessline 20
    "https://www.instagram.com/p/abc/c/123", "123");
  • Dangerous shell operationline 181
    const value = runInNewContext(`(${callback.toString()})(...args)`, {
  • Network accessline 181
    const value = runInNewContext(`(${callback.toString()})(...args)`, {         args, document: this.document,         location: { origin: "https://www.instagram.com" },
  • Network accessline 182
    args, document: this.document,         location: { origin: "https://www.instagram.com" },       });
  • Network accessline 183
    location: { origin: "https://www.instagram.com" },

social-post/scripts/comment_chrome_live_surface_observation_cases_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 18
    assert.deepEqual(observed, {     comment: {       platform_comment_id: "123", comment_permalink: "https://www.instagram.com/p/abc/c/123",
  • Network accessline 19
    comment: {       platform_comment_id: "123", comment_permalink: "https://www.instagram.com/p/abc/c/123",       observed_parent_post_permalink: "https://www.instagram.com/p/abc",
  • Network accessline 20
    platform_comment_id: "123", comment_permalink: "https://www.instagram.com/p/abc/c/123",
  • Network accessline 21
    observed_parent_post_permalink: "https://www.instagram.com/p/abc",
  • Network accessline 30
    const aliasedParent = nativeInstagramFixture();   const fromAlias = await readLiveTargetComment(aliasedParent.tab, {     ...nativeTarget(aliasedParent), post_permalink: "https://www.instagram.com/reels/abc/",
  • Network accessline 31
    const fromAlias = await readLiveTargetComment(aliasedParent.tab, {     ...nativeTarget(aliasedParent), post_permalink: "https://www.instagram.com/reels/abc/",   });
  • Network accessline 32
    ...nativeTarget(aliasedParent), post_permalink: "https://www.instagram.com/reels/abc/",
  • Network accessline 33
    });   assert.equal(fromAlias.comment.observed_parent_post_permalink, "https://www.instagram.com/p/abc");   assert.deepEqual(fromAlias.documentBinding, expectedUiBinding(aliasedParent));
  • Network accessline 34
    assert.equal(fromAlias.comment.observed_parent_post_permalink, "https://www.instagram.com/p/abc");
  • Network accessline 50
    { platform: "facebook" }, { account_key: "another_account" }, { account_key: "invalid/account" },     { post_key: "other" }, { platform_comment_id: "999" },     { post_permalink: "https://www.instagram.com/p/other" },
  • Network accessline 51
    { post_key: "other" }, { platform_comment_id: "999" },     { post_permalink: "https://www.instagram.com/p/other" },     { comment_permalink: "https://www.instagram.com/p/abc/c/999" },
  • Network accessline 52
    { post_permalink: "https://www.instagram.com/p/other" },
  • Network accessline 53
    { comment_permalink: "https://www.instagram.com/p/abc/c/999" },
  • Network accessline 54
    { comment_permalink: "https://instagram.com/p/abc/c/123" },
  • Network accessline 55
    { comment_permalink: "https://www.instagram.com/p/abc/c/123?extra=1" },
  • Network accessline 80
    assert.equal(fixture.crossRealmNativeReads, 5, "three private preflight reads and two positive reads stay cross-realm");   assert.equal(positive.verifiedNewReply, true);   assert.equal(positive.replyPermalink, "https://www.instagram.com/p/a
  • Network accessline 81
    assert.equal(positive.verifiedNewReply, true);   assert.equal(positive.replyPermalink, "https://www.instagram.com/p/abc/c/123/r/502/");   assert.equal(positive.positive_only, true);
  • Network accessline 82
    assert.equal(positive.replyPermalink, "https://www.instagram.com/p/abc/c/123/r/502/");

social-post/scripts/comment_chrome_live_surface_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 10
    const threads = action("threads", "https://www.threads.com/@example/post/abc",
  • Network accessline 11
    "https://www.threads.com/@reader/post/c1", "c1");
  • Network accessline 12
    const facebook = action("facebook", "https://www.facebook.com/example/posts/abc",
  • Network accessline 13
    "https://www.facebook.com/example/posts/abc?comment_id=123", "123");
  • Network accessline 16
    assert.equal(liveReplyUrl(instagram), instagram.comment_anchor.comment_permalink); for (const kind of ["p", "reel", "reels", "tv"]) {   const aliased = { ...instagram, post_permalink: `https://www.instagram.com/${kind}/abc/` };
  • Network accessline 17
    for (const kind of ["p", "reel", "reels", "tv"]) {   const aliased = { ...instagram, post_permalink: `https://www.instagram.com/${kind}/abc/` };   assert.equal(liveReplyUrl(aliased), instagram.comment_anchor.comment_permalink);
  • Network accessline 18
    const aliased = { ...instagram, post_permalink: `https://www.instagram.com/${kind}/abc/` };
  • Network accessline 20
    } for (const url of [   "https://www.instagram.com/p/wrong/c/123", "https://www.instagram.com/p/abc/c/other",
  • Network accessline 21
    for (const url of [   "https://www.instagram.com/p/wrong/c/123", "https://www.instagram.com/p/abc/c/other",   "https://www.instagram.com/p/abc/c/123/c/other", "https://www.instagram.com/p/abc/c/123%2Fother",
  • Network accessline 22
    "https://www.instagram.com/p/wrong/c/123", "https://www.instagram.com/p/abc/c/other",
  • Network accessline 23
    "https://www.instagram.com/p/abc/c/123/c/other", "https://www.instagram.com/p/abc/c/123%2Fother",
  • Network accessline 24
    "https://www.instagram.com/p/abc/c/123?comment_id=other", "https://www.instagram.com/p/abc/c/123?x=1&x=1",
  • Network accessline 25
    "https://www.instagram.com/p/abc/c/123?x=1", "https://instagram.com/p/abc/c/123",
  • Network accessline 26
    "https://user@www.instagram.com/p/abc/c/123", "https://www.instagram.com:444/p/abc/c/123",
  • Network accessline 27
    "https://www.instagram.com/p/abc/c/other/../123", "https://www.instagram.com/p/abc",
  • Network accessline 33
    assert.equal(liveReplyUrl({ ...facebook, comment_anchor: { platform_comment_id: "123" } }), facebook.comment_anchor.comment_permalink); for (const url of [   "https://evil.example/@reader/post/c1", "http://www.threads.com/@reader/post/c1",
  • Network accessline 34
    for (const url of [   "https://evil.example/@reader/post/c1", "http://www.threads.com/@reader/post/c1",   "https://www.threads.com:444/@reader/post/c1", "https://user@www.threads.com/@reader/post/c1",
  • Network accessline 35
    "https://evil.example/@reader/post/c1", "http://www.threads.com/@reader/post/c1",
  • Network accessline 36
    "https://www.threads.com:444/@reader/post/c1", "https://user@www.threads.com/@reader/post/c1",
  • Network accessline 37
    "https://www.threads.com/@reader/post/other", "https://www.threads.com/@reader/post/c1?fake=1",
  • Network accessline 38
    "https://www.threads.com/@reader", "https://threads.net/@reader/post/c1",

social-post/scripts/comment_chrome_node_frame_lifecycle_snapshot_testonly.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_node_frame_lifecycle_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 26
    run_id: `${platform}-lifecycle-run`,     target_anchor: `${platform}-identity-1`,     parent_anchor: `https://fixture.invalid/${platform}/post`,
  • Network accessline 27
    target_anchor: `${platform}-identity-1`,     parent_anchor: `https://fixture.invalid/${platform}/post`,     reply_text: LIFECYCLE_REPLY,
  • Network accessline 28
    parent_anchor: `https://fixture.invalid/${platform}/post`,
  • Network accessline 294
    parent.sample.page.nodes[parent.sample.first.key].attributes[     parent.sample.plan.parentPost.attribute   ] = "https://fixture.invalid/instagram/other-post";
  • Network accessline 295
    parent.sample.plan.parentPost.attribute   ] = "https://fixture.invalid/instagram/other-post";   await assert.rejects(
  • Network accessline 296
    ] = "https://fixture.invalid/instagram/other-post";

social-post/scripts/comment_chrome_node_frame_lifecycle_testonly.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_node_frame_mapping.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_node_frame_mapping_fixture_testonly.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 70
    attributes: {       [plan.commentId.attribute]: identity,       [plan.parentPost.attribute]: `https://fixture.invalid/${platform}/post`,
  • Network accessline 71
    [plan.commentId.attribute]: identity,       [plan.parentPost.attribute]: `https://fixture.invalid/${platform}/post`,       [plan.nodeFrameMapping.nodeIdAttribute]: `${key}-node`,
  • Network accessline 72
    [plan.parentPost.attribute]: `https://fixture.invalid/${platform}/post`,

social-post/scripts/comment_chrome_node_frame_mapping_test.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_node_frame_mapping_testonly.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_node_identity.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_reply_exhaustion.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_runtime_authority.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_runtime_document.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_runtime_reconnect_test.mjs

  • Executable scriptline 1
    Executable file
  • Dangerous shell operationline 46
    const api = runInNewContext(`${executableSource}\n({ getSourceOwnedChromeBrowser, recoverSourceOwnedChromeBrowser })`, {
  • Dangerous shell operationline 89
    for (const listing of [[], [{ id: "anonymous-tab" }], runInNewContext("[]")]) {
  • Dangerous shell operationline 171
    const foreignError = runInNewContext("new Error(message)", { message: `Browser is not available: ${id}` });

social-post/scripts/comment_chrome_scan.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_scan_adapters.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_scan_adapters_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 115
    [plan.commentId.attribute]: id,       [plan.author.attribute]: "viewer-account",       [plan.parentPost.attribute]: "https://www.instagram.com/p/trusted-post",
  • Network accessline 116
    [plan.author.attribute]: "viewer-account",       [plan.parentPost.attribute]: "https://www.instagram.com/p/trusted-post",       [plan.isOwn.attribute]: "false",
  • Network accessline 117
    [plan.parentPost.attribute]: "https://www.instagram.com/p/trusted-post",
  • Network accessline 161
    function fixtureFor(plan, options = {}) {   const postUrl = "https://www.instagram.com/p/trusted-post";
  • Network accessline 162
    const postUrl = "https://www.instagram.com/p/trusted-post";
  • Network accessline 163
    const page = {     url: "http://127.0.0.1:8765/instagram.html",     selectors: {},
  • Network accessline 164
    url: "http://127.0.0.1:8765/instagram.html",
  • Network accessline 290
    return {     platform: "facebook", account_key: "ACCOUNT_A", post_key: "POST_A",     post_permalink: `https://www.facebook.com/${path}${query ? `?${query}` : ""}`,
  • Network accessline 291
    platform: "facebook", account_key: "ACCOUNT_A", post_key: "POST_A",     post_permalink: `https://www.facebook.com/${path}${query ? `?${query}` : ""}`,   };
  • Network accessline 292
    post_permalink: `https://www.facebook.com/${path}${query ? `?${query}` : ""}`,
  • Network accessline 300
    `${indent}- article "${author}的留言":`,     `${indent}  - link "${author}":`,     `${indent}    - /url: https://www.facebook.com/${author}`,
  • Network accessline 301
    `${indent}  - link "${author}":`,     `${indent}    - /url: https://www.facebook.com/${author}`,     `${indent}  - link "1分鐘":`,
  • Network accessline 302
    `${indent}    - /url: https://www.facebook.com/${author}`,
  • Network accessline 334
    for (const path of ["story.php", "permalink.php"]) {     const target = facebookSnapshotTarget(path);     const base = `https://www.facebook.com/${path}`;
  • Network accessline 335
    const target = facebookSnapshotTarget(path);     const base = `https://www.facebook.com/${path}`;     const originalRoot = target.post_permalink;
  • Network accessline 336
    const base = `https://www.facebook.com/${path}`;
  • Network accessline 396
    const mapped = `${originalRoot}&comment_id=COMMENT_A`;     const foreign = `${base}?story_fbid=POST_B&id=ACCOUNT_A&comment_id=COMMENT_B`;     assertFacebookSnapshotRejects(target, [`https://www.facebook.com/UNMAPPED_A`], 1);
  • Network accessline 397
    const foreign = `${base}?story_fbid=POST_B&id=ACCOUNT_A&comment_id=COMMENT_B`;     assertFacebookSnapshotRejects(target, [`https://www.facebook.com/UNMAPPED_A`], 1);     assertFacebookSnapshotRejects(target, [mapped, foreign], 2, `${path}: 
  • Network accessline 398
    assertFacebookSnapshotRejects(target, [`https://www.facebook.com/UNMAPPED_A`], 1);
  • Network accessline 430
    () => parseFacebookSnapshot(         facebookSnapshot(target, 2, [facebookSnapshotArticle(           "https://www.facebook.com/UNMAPPED_A", { nested },
  • Network accessline 431
    facebookSnapshot(target, 2, [facebookSnapshotArticle(           "https://www.facebook.com/UNMAPPED_A", { nested },         )]), target,
  • Network accessline 432
    "https://www.facebook.com/UNMAPPED_A", { nested },

social-post/scripts/comment_chrome_scan_fixture_testonly.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_send.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_send_support.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_target_tab_reuse_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 16
    const observeSource = between("async function observeLiveTargetComment(", "export function createCommentChromeActuator("); const recoverySource = between("function liveRecoveryRequest(", "export function isPythonLedgerClaimSubmit("); const 
  • Network accessline 17
    const recoverySource = between("function liveRecoveryRequest(", "export function isPythonLedgerClaimSubmit("); const targetUrl = "https://www.facebook.com/story.php?story_fbid=POST_A&id=ACCOUNT_A&comment_id=COMMENT_A"; const otherUrl = targ
  • Network accessline 18
    const targetUrl = "https://www.facebook.com/story.php?story_fbid=POST_A&id=ACCOUNT_A&comment_id=COMMENT_A";
  • Dangerous shell operationline 101
    const api = runInNewContext(`${runtimeSource}\n${helperSource}\n${observeSource}\n({ withSourceOwnedTargetIntakeTab, observeLiveTargetComment })`, current.environment, { timeout: 1000 });
  • Network accessline 181
    for (const url of [otherUrl, targetUrl.replace("www.facebook.com", "m.facebook.com"),     targetUrl.replace("story_fbid=POST_A&id=ACCOUNT_A", "id=ACCOUNT_A&story_fbid=POST_A"),     `${targetUrl}&extra=1`, `${targetUrl}#reply`, "https://user
  • Network accessline 182
    targetUrl.replace("story_fbid=POST_A&id=ACCOUNT_A", "id=ACCOUNT_A&story_fbid=POST_A"),     `${targetUrl}&extra=1`, `${targetUrl}#reply`, "https://user@www.facebook.com/", "https://www.facebook.com:8443/"]) {     const current = fixture({ li
  • Network accessline 183
    `${targetUrl}&extra=1`, `${targetUrl}#reply`, "https://user@www.facebook.com/", "https://www.facebook.com:8443/"]) {
  • Network accessline 249
    async function testCallerCannotProvideTabOrBrowserAuthority() {   const raw = { platform: "facebook", account_key: "ACCOUNT_A", post_key: "POST_A",     post_permalink: "https://www.facebook.com/story.php?story_fbid=POST_A&id=ACCOUNT_A",
  • Network accessline 250
    const raw = { platform: "facebook", account_key: "ACCOUNT_A", post_key: "POST_A",     post_permalink: "https://www.facebook.com/story.php?story_fbid=POST_A&id=ACCOUNT_A",     session_id: "anonymous-session", ttl_minutes: 5, platform_comment
  • Network accessline 251
    post_permalink: "https://www.facebook.com/story.php?story_fbid=POST_A&id=ACCOUNT_A",
  • Network accessline 296
    function recoveryFixture({ fresh = false, reads = ["positive"], ...options } = {}) {   const current = fixture({ cua: true,     targetUrl: "https://www.threads.com/@example.reader/post/Comment456", ...options });
  • Network accessline 297
    const current = fixture({ cua: true,     targetUrl: "https://www.threads.com/@example.reader/post/Comment456", ...options });   const state = { observations: 0, waits: 0, rotations: 0, commits: [], writes: [], reads: [...reads] };
  • Network accessline 298
    targetUrl: "https://www.threads.com/@example.reader/post/Comment456", ...options });
  • Dangerous shell operationline 317
    const api = runInNewContext(`${runtimeSource}\n${helperSource}\n${recoverySource}\n({ recoverLiveApprovedReply, reconcileLiveUncertainReply })`, {

social-post/scripts/comment_chrome_textarea_identity_test.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_threads_canary_reader_cases_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 80
    ["wrong target", (f) => { f.focus.anchor.attrs.href = "/@example.reader/post/OtherComment"; }],     ["native target query", (f) => { f.focus.anchor.attrs.href += "?tracking=1"; }],     ["foreign target host", (f) => { f.focus.anchor.attrs.h
  • Network accessline 81
    ["native target query", (f) => { f.focus.anchor.attrs.href += "?tracking=1"; }],     ["foreign target host", (f) => { f.focus.anchor.attrs.href = `https://foreign.example${expected.targetPath}`; }],     ["hidden target anchor", (f) => { f.f
  • Network accessline 82
    ["foreign target host", (f) => { f.focus.anchor.attrs.href = `https://foreign.example${expected.targetPath}`; }],

social-post/scripts/comment_chrome_threads_canary_surface.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_threads_canary_surface_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 54
    assert.equal(preexisting.clicks, 0);   const drift = sourceFixture({ onEvaluate: (name, fixture) => {     if (name === "readThreadsNativeColumn") fixture.url = "https://www.threads.com/@another.reader/post/OtherComment";
  • Network accessline 55
    const drift = sourceFixture({ onEvaluate: (name, fixture) => {     if (name === "readThreadsNativeColumn") fixture.url = "https://www.threads.com/@another.reader/post/OtherComment";   } });
  • Network accessline 56
    if (name === "readThreadsNativeColumn") fixture.url = "https://www.threads.com/@another.reader/post/OtherComment";
  • Network accessline 87
    async function testFinalBoundSurfaceDriftRejections() {   for (const [name, change, message] of [     ["URL drift", (f) => { f.url = "https://www.threads.com/@another.reader/post/OtherComment"; }, /target URL changed/u],
  • Network accessline 88
    for (const [name, change, message] of [     ["URL drift", (f) => { f.url = "https://www.threads.com/@another.reader/post/OtherComment"; }, /target URL changed/u],     ["account drift", (f) => { f.account.attrs.href = "/@another.owner"; }, /
  • Network accessline 89
    ["URL drift", (f) => { f.url = "https://www.threads.com/@another.reader/post/OtherComment"; }, /target URL changed/u],
  • Network accessline 150
    ["wrong whole reply body", (f) => f.childFocus.content.replaceChildren("Unapproved reply text"), /approved text and immediate parent/u],     ["child URL drift", (f) => { f.onEvaluate = (callback, state) => {       if (state.scene === "child
  • Network accessline 151
    ["child URL drift", (f) => { f.onEvaluate = (callback, state) => {       if (state.scene === "child" && callback === "readThreadsNativeColumn") state.url = "https://www.threads.com/@another.owner/post/WrongURL";     }; }, /URL changed/u],
  • Network accessline 152
    if (state.scene === "child" && callback === "readThreadsNativeColumn") state.url = "https://www.threads.com/@another.owner/post/WrongURL";
  • Network accessline 171
    finalDrift.onEvaluate = (callback, state) => {     if (callback === "discoverThreadsOwnChildLinks" && ++state.discoveryReads === 2) {       state.url = "https://www.threads.com/@another.owner/post/WrongURL";
  • Network accessline 172
    if (callback === "discoverThreadsOwnChildLinks" && ++state.discoveryReads === 2) {       state.url = "https://www.threads.com/@another.owner/post/WrongURL";     }
  • Network accessline 173
    state.url = "https://www.threads.com/@another.owner/post/WrongURL";
  • Network accessline 266
    ["wrong full body", (t) => t.parent.childFocus.content.replaceChildren("Not the approved reply"), /approved text and immediate parent/u],     ["child URL drift", (t) => { t.onChildEvaluate = (name, state) => {       if (name === "readThread
  • Network accessline 267
    ["child URL drift", (t) => { t.onChildEvaluate = (name, state) => {       if (name === "readThreadsNativeColumn") state.url = "https://www.threads.com/@another.owner/post/WrongURL";     }; }, /URL changed/u],
  • Network accessline 268
    if (name === "readThreadsNativeColumn") state.url = "https://www.threads.com/@another.owner/post/WrongURL";
  • Network accessline 278
    }; }, /extensionInstanceId changed/u],     ["parent URL drift while child inspected", (t) => { t.onChildEvaluate = (name) => {       if (name === "readThreadsNativeColumn") t.parent.url = "https://www.threads.com/@another.owner/post/WrongUR
  • Network accessline 279
    ["parent URL drift while child inspected", (t) => { t.onChildEvaluate = (name) => {       if (name === "readThreadsNativeColumn") t.parent.url = "https://www.threads.com/@another.owner/post/WrongURL";     }; }, /URL differs|URL changed/u],
  • Network accessline 280
    if (name === "readThreadsNativeColumn") t.parent.url = "https://www.threads.com/@another.owner/post/WrongURL";
  • Network accessline 284
    }; }, /verified parent/u],     ["final parent URL drift", (t) => { t.parent.onEvaluate = (name, state) => {       if (name === "discoverThreadsOwnChildLinks" && ++state.discoveryReads === 2) state.url = "https://www.threads.com/@another.own
  • Network accessline 285
    ["final parent URL drift", (t) => { t.parent.onEvaluate = (name, state) => {       if (name === "discoverThreadsOwnChildLinks" && ++state.discoveryReads === 2) state.url = "https://www.threads.com/@another.owner/post/WrongURL";     }; }, /U
  • Network accessline 286
    if (name === "discoverThreadsOwnChildLinks" && ++state.discoveryReads === 2) state.url = "https://www.threads.com/@another.owner/post/WrongURL";

social-post/scripts/comment_chrome_threads_dom_fixtures_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 8
    account: "example.owner", author: "example.reader", host: "www.threads.com",   postId: "Root123", commentId: "Comment456",   postUrl: "https://www.threads.com/@example.owner/post/Root123",
  • Network accessline 9
    postId: "Root123", commentId: "Comment456",   postUrl: "https://www.threads.com/@example.owner/post/Root123",   commentUrl: "https://www.threads.com/@example.reader/post/Comment456",
  • Network accessline 10
    postUrl: "https://www.threads.com/@example.owner/post/Root123",
  • Network accessline 11
    commentUrl: "https://www.threads.com/@example.reader/post/Comment456",
  • Dangerous shell operationline 164
    return runInNewContext(`(${callback.toString()})(root, expected)`, { root: fixture.root, expected: input, URL });
  • Network accessline 236
    const fixture = sourceFixture();   const childPath = `/@${expected.account}/post/OwnReply789`;   const childUrl = `https://${expected.host}${childPath}`;
  • Network accessline 237
    const childPath = `/@${expected.account}/post/OwnReply789`;   const childUrl = `https://${expected.host}${childPath}`;   fixture.zero.focus.reply.append("1");
  • Network accessline 238
    const childUrl = `https://${expected.host}${childPath}`;

social-post/scripts/comment_chrome_threads_icon_identity_test.mjs

  • Executable scriptline 1
    Executable file
  • Dangerous shell operationline 104
    const value = runInNewContext(`(${callback.toString()})(element, input)`, {

social-post/scripts/comment_chrome_threads_modal_reader.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_threads_reader.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_threads_reader_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 8
    const target = Object.freeze({   platform: "threads", account_key: "example.owner", post_key: "Root123",   post_permalink: "https://www.threads.com/@example.owner/post/Root123",
  • Network accessline 9
    platform: "threads", account_key: "example.owner", post_key: "Root123",   post_permalink: "https://www.threads.com/@example.owner/post/Root123",   platform_comment_id: "Comment456",
  • Network accessline 10
    post_permalink: "https://www.threads.com/@example.owner/post/Root123",
  • Network accessline 11
    platform_comment_id: "Comment456",   comment_permalink: "https://www.threads.com/@example.reader/post/Comment456", });
  • Network accessline 12
    comment_permalink: "https://www.threads.com/@example.reader/post/Comment456",
  • Dangerous shell operationline 158
    const crossRealm = runInNewContext(`(${readThreadsNativeColumn.toString()})(root, expected)`,
  • Network accessline 207
    ["query on native target", (f) => { f.focus.anchor.attrs.href += "?tracking=1"; }],     ["query on native parent", (f) => { f.parent.anchor.attrs.href += "?tracking=1"; }],     ["external native target", (f) => { f.focus.anchor.attrs.href =
  • Network accessline 208
    ["query on native parent", (f) => { f.parent.anchor.attrs.href += "?tracking=1"; }],     ["external native target", (f) => { f.focus.anchor.attrs.href = `https://evil.example${native.targetPath}`; }],     ["missing target time", (f) => { f.
  • Network accessline 209
    ["external native target", (f) => { f.focus.anchor.attrs.href = `https://evil.example${native.targetPath}`; }],
  • Network accessline 248
    post_key: native.commentId, post_permalink: native.commentUrl,     platform_comment_id: "OwnReply789",     comment_permalink: "https://www.threads.com/@example.owner/post/OwnReply789",
  • Network accessline 249
    platform_comment_id: "OwnReply789",     comment_permalink: "https://www.threads.com/@example.owner/post/OwnReply789",   });
  • Network accessline 250
    comment_permalink: "https://www.threads.com/@example.owner/post/OwnReply789",
  • Network accessline 281
    if (this.nodes[0] === this.fixture.account) {       this.fixture.accountChecks += 1;       if (this.fixture.driftAfterAccountCheck === this.fixture.accountChecks) this.fixture.url = "https://www.threads.com/@another.reader/post/OtherComment
  • Network accessline 282
    this.fixture.accountChecks += 1;       if (this.fixture.driftAfterAccountCheck === this.fixture.accountChecks) this.fixture.url = "https://www.threads.com/@another.reader/post/OtherComment";     }
  • Network accessline 283
    if (this.fixture.driftAfterAccountCheck === this.fixture.accountChecks) this.fixture.url = "https://www.threads.com/@another.reader/post/OtherComment";
  • Network accessline 296
    parserCalls += 1;     const result = callback(this.nodes[0], argument);     if (this.fixture.driftAfterRead) this.fixture.url = "https://www.threads.com/@another.reader/post/OtherComment";
  • Network accessline 297
    const result = callback(this.nodes[0], argument);     if (this.fixture.driftAfterRead) this.fixture.url = "https://www.threads.com/@another.reader/post/OtherComment";     return result;
  • Network accessline 298
    if (this.fixture.driftAfterRead) this.fixture.url = "https://www.threads.com/@another.reader/post/OtherComment";
  • Network accessline 330
    assert.equal(good.fixture.accountChecks, 2, "active account is checked before and after the DOM read");   for (const options of [     { url: "https://www.threads.com/@another.reader/post/OtherComment" },
  • Network accessline 331
    for (const options of [     { url: "https://www.threads.com/@another.reader/post/OtherComment" },     { driftAfterRead: true }, { driftAfterAccountCheck: 2 },
  • Network accessline 332
    { url: "https://www.threads.com/@another.reader/post/OtherComment" },

social-post/scripts/comment_chrome_threads_result_reader.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_chrome_threads_surface.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_cli_support.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_cua_dispatch_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 22
    function isolatedCase(options = {}) {   const events = [];   const targetUrl = "https://www.threads.com/@example.reader/post/Comment456";
  • Network accessline 23
    const events = [];   const targetUrl = "https://www.threads.com/@example.reader/post/Comment456";   const action = { action_id: "test-action", intent_id: "test-intent", session_id: "test-session",
  • Network accessline 24
    const targetUrl = "https://www.threads.com/@example.reader/post/Comment456";
  • Network accessline 96
    if (state.clicks !== 1 || state.clickThrows) fail("native result remains unknown");       return { verifiedNewReply: true, observedUrl: targetUrl, exactOwnCount: 1, ownReplyCount: 1,         totalReplies: 1, replyPermalink: "https://www.thr
  • Network accessline 97
    return { verifiedNewReply: true, observedUrl: targetUrl, exactOwnCount: 1, ownReplyCount: 1,         totalReplies: 1, replyPermalink: "https://www.threads.com/@example.owner/post/OwnReply789" };     },
  • Network accessline 98
    totalReplies: 1, replyPermalink: "https://www.threads.com/@example.owner/post/OwnReply789" };
  • Dangerous shell operationline 132
    const api = runInNewContext(`${orchestration}\n({ prepareLiveCanaryReply, submitLiveReplyAndFinish${selectedApi} })`, environment);
  • Network accessline 140
    ["missing transport", { cua: false }, /supported source-bound submit transport/u],   ["unsupported CUA platform", { platform: "facebook" }, /only for native Threads\/Instagram/u],   ["wrong CUA target", { url: "https://www.threads.com/@anot
  • Network accessline 141
    ["unsupported CUA platform", { platform: "facebook" }, /only for native Threads\/Instagram/u],   ["wrong CUA target", { url: "https://www.threads.com/@another.reader/post/Other456" }, /target URL changed/u], ]) {
  • Network accessline 142
    ["wrong CUA target", { url: "https://www.threads.com/@another.reader/post/Other456" }, /target URL changed/u],
  • Network accessline 174
    for (const [name, options] of [   ["postclaim draft drift", { onClaim: (state) => { state.text = "Changed by someone else"; } }],   ["postclaim target drift", { onClaim: (state) => { state.url = "https://www.threads.com/@another.reader/post
  • Network accessline 175
    ["postclaim draft drift", { onClaim: (state) => { state.text = "Changed by someone else"; } }],   ["postclaim target drift", { onClaim: (state) => { state.url = "https://www.threads.com/@another.reader/post/Other456"; } }],   ["final lease 
  • Network accessline 176
    ["postclaim target drift", { onClaim: (state) => { state.url = "https://www.threads.com/@another.reader/post/Other456"; } }],
  • Network accessline 177
    ["final lease draft drift", { onLease: (state, events) => { if (events.includes("claim")) state.text = "Changed during lease I/O"; } }],   ["final lease target drift", { onLease: (state, events) => { if (events.includes("claim")) state.url 
  • Network accessline 178
    ["final lease target drift", { onLease: (state, events) => { if (events.includes("claim")) state.url = "https://www.threads.com/@another.reader/post/Other456"; } }],
  • Network accessline 320
    if (read === "unknown") throw new Error("native nested parent not verified");       return { verifiedNewReply: true, exactOwnCount: 1, ownReplyCount: read === "invalid-count" ? 0 : 1,         totalReplies: 1, observedUrl: "https://www.threa
  • Network accessline 321
    return { verifiedNewReply: true, exactOwnCount: 1, ownReplyCount: read === "invalid-count" ? 0 : 1,         totalReplies: 1, observedUrl: "https://www.threads.com/@example.reader/post/Comment456" };     },
  • Network accessline 322
    totalReplies: 1, observedUrl: "https://www.threads.com/@example.reader/post/Comment456" };
  • Dangerous shell operationline 342
    const api = runInNewContext(`${recoverySource}\n({ recoverLiveApprovedReply, reconcileLiveUncertainReply })`, environment);

social-post/scripts/comment_cua_runtime.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 218
    const FACEBOOK_ME_URL = "https://www.facebook.com/me/";
  • Network accessline 231
    if (value === FACEBOOK_ME_URL) return value;   const profile = `https://www.facebook.com/${account}`;
  • Network accessline 232
    const profile = `https://www.facebook.com/${account}`;
  • Network accessline 233
    if (value === profile || value === `${profile}/`       || (/^[0-9]+$/u.test(account)         && value === `https://www.facebook.com/profile.php?id=${account}`)) return value;
  • Network accessline 234
    || (/^[0-9]+$/u.test(account)         && value === `https://www.facebook.com/profile.php?id=${account}`)) return value;   fail("Facebook /me profile differs from the approved account");
  • Network accessline 235
    && value === `https://www.facebook.com/profile.php?id=${account}`)) return value;

social-post/scripts/comment_cua_runtime_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 7
    const cases = []; const freshModule = () => testedRuntime; const target = "https://www.threads.com/@example/post/Example1";
  • Network accessline 8
    const freshModule = () => testedRuntime; const target = "https://www.threads.com/@example/post/Example1"; const facebook = "https://www.facebook.com/example/posts/example1?comment_id=123";
  • Network accessline 9
    const target = "https://www.threads.com/@example/post/Example1";
  • Network accessline 10
    const facebook = "https://www.facebook.com/example/posts/example1?comment_id=123";
  • Network accessline 11
    const instagram = "https://www.instagram.com/p/Example1/c/123/r/456/";
  • Network accessline 158
    for (const invalid of [   undefined, "about:blank", "http://www.threads.com/@example/post/Example1",
  • Network accessline 159
    undefined, "about:blank", "http://www.threads.com/@example/post/Example1",
  • Network accessline 160
    "https://example.com/@example/post/Example1", "https://www.facebook.com/me",
  • Network accessline 161
    "https://www.facebook.com/", "https://www.instagram.com/example/",
  • Network accessline 162
    "https://www.threads.com/@example/post/Example1#other",
  • Network accessline 163
    "https://username@www.threads.com/@example/post/Example1",
  • Network accessline 164
    "https://www.threads.com:444/@example/post/Example1",
  • Network accessline 165
    "https://www.threads.com/@example/post/../post/Example1",
  • Network accessline 166
    "https://www.threads.com/@example/post/Example1?a=1&a=2",
  • Network accessline 227
    const facebookMe = "https://www.facebook.com/me/";
  • Network accessline 228
    const approvedProfile = "https://www.facebook.com/example.owner/";
  • Network accessline 304
    for (const [account, redirect] of [   ["example.owner", "https://www.facebook.com/example.owner"],
  • Network accessline 305
    ["example.owner", "https://www.facebook.com/example.owner"],
  • Network accessline 306
    ["123456789", "https://www.facebook.com/profile.php?id=123456789"],
  • Network accessline 307
    ["123456789", "https://www.facebook.com/123456789/"],
  • Network accessline 318
    for (const redirect of [   "https://www.facebook.com/another.owner/",
  • Network accessline 319
    "https://www.facebook.com/another.owner/",
  • Network accessline 320
    "https://www.facebook.com/example.owner/?tracking=1",
  • Network accessline 321
    "https://www.facebook.com/example.owner/#bio",
  • Network accessline 322
    "https://www.facebook.com/example.owner//",
  • Network accessline 323
    "https://m.facebook.com/example.owner/",
  • Network accessline 324
    "https://www.facebook.com.evil.test/example.owner/",
  • Network accessline 325
    "https://www.facebook.com:443/example.owner/",
  • Network accessline 326
    "https://www.facebook.com/%65xample.owner/",
  • Network accessline 327
    "https://www.facebook.com/login/",
  • Network accessline 328
    "https://www.facebook.com/checkpoint/",
  • Network accessline 329
    "https://www.facebook.com/profile.php?id=123456789",
  • Network accessline 358
    for (const account of [undefined, "", " example.owner", "../example.owner", "example.owner?x=1", "https://www.facebook.com/example.owner", "me", "login", "checkpoint", {}, () => {}]) {
  • Network accessline 415
    entry.url = entry.url.endsWith("/") ? approvedProfile.slice(0, -1) : approvedProfile;     };     if (defect === "wrong-profile-after-read") fixture.hooks.count = () => { fixture.browser.tabs.find((row) => row.id === "probe-example").url = "
  • Network accessline 416
    };     if (defect === "wrong-profile-after-read") fixture.hooks.count = () => { fixture.browser.tabs.find((row) => row.id === "probe-example").url = "https://www.facebook.com/another.owner/"; };     await assert.rejects(fixture.module.verif
  • Network accessline 417
    if (defect === "wrong-profile-after-read") fixture.hooks.count = () => { fixture.browser.tabs.find((row) => row.id === "probe-example").url = "https://www.facebook.com/another.owner/"; };

social-post/scripts/comment_domain.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_fixture_browser_e2e.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 402
    decoyId: "fb-comment-decoy",     viewer: "viewer-facebook", body: "這個測試太精彩了🔥", reply: "謝謝你來看這個測試!",     receiptUrl: "https://www.facebook.com/fixture/posts/fixture-facebook-post",
  • Network accessline 403
    viewer: "viewer-facebook", body: "這個測試太精彩了🔥", reply: "謝謝你來看這個測試!",     receiptUrl: "https://www.facebook.com/fixture/posts/fixture-facebook-post",     target: "[data-fb-comment-id]", idAttribute: "data-fb-comment-id",
  • Network accessline 404
    receiptUrl: "https://www.facebook.com/fixture/posts/fixture-facebook-post",
  • Network accessline 413
    decoyId: "ig-comment-decoy",     viewer: "viewer-instagram", body: "女主角下一集會反擊嗎?", reply: "下一集就會揭曉。",     receiptUrl: "https://www.instagram.com/p/fixture-instagram-post",
  • Network accessline 414
    viewer: "viewer-instagram", body: "女主角下一集會反擊嗎?", reply: "下一集就會揭曉。",     receiptUrl: "https://www.instagram.com/p/fixture-instagram-post",     target: "[data-ig-comment-id]", idAttribute: "data-ig-comment-id",
  • Network accessline 415
    receiptUrl: "https://www.instagram.com/p/fixture-instagram-post",
  • Network accessline 424
    decoyId: "threads-reply-decoy",     viewer: "viewer-threads", body: "有下一集記得通知我!", reply: "有更新我會公開發出來!",     receiptUrl: "https://www.threads.com/@fixture/post/fixture-threads-post",
  • Network accessline 425
    viewer: "viewer-threads", body: "有下一集記得通知我!", reply: "有更新我會公開發出來!",     receiptUrl: "https://www.threads.com/@fixture/post/fixture-threads-post",     target: "[data-threads-reply-id]", idAttribute: "data-threads-reply-id",
  • Network accessline 426
    receiptUrl: "https://www.threads.com/@fixture/post/fixture-threads-post",
  • Network accessline 658
    for (const candidatePlatform of FIXTURE_PLATFORM_ORDER) {     const candidate = values(       candidatePlatform, "http://127.0.0.1:8765", `adapter-contract-${candidatePlatform}`,
  • Network accessline 659
    const candidate = values(       candidatePlatform, "http://127.0.0.1:8765", `adapter-contract-${candidatePlatform}`,     );
  • Network accessline 660
    candidatePlatform, "http://127.0.0.1:8765", `adapter-contract-${candidatePlatform}`,
  • Network accessline 670
    }   const platform = "instagram";   const setup = values(platform, "http://127.0.0.1:8765", "readiness-test");
  • Network accessline 671
    const platform = "instagram";   const setup = values(platform, "http://127.0.0.1:8765", "readiness-test");   const valid = readinessFake(platform, setup);
  • Network accessline 672
    const setup = values(platform, "http://127.0.0.1:8765", "readiness-test");
  • Network accessline 700
    );   const remoteRedirect = readinessFake(platform, setup, {     observedUrl: "https://www.instagram.com/p/untrusted",
  • Network accessline 701
    const remoteRedirect = readinessFake(platform, setup, {     observedUrl: "https://www.instagram.com/p/untrusted",   });
  • Network accessline 702
    observedUrl: "https://www.instagram.com/p/untrusted",
  • Network accessline 754
    async function runFixtureBrowserE2E(tab, platform, {   baseUrl = "http://127.0.0.1:8765", navigate = true, runNonce = "manual",
  • Network accessline 755
    baseUrl = "http://127.0.0.1:8765", navigate = true, runNonce = "manual",

social-post/scripts/comment_fixture_promotion_envelope.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_identity.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_js_architecture_contract.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_js_architecture_core.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_js_architecture_gate.mjs

  • Executable scriptline 1
    #!/usr/bin/env node

social-post/scripts/comment_js_architecture_loaders.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_js_architecture_receipt.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_js_architecture_selftest.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/comment_meta_snapshot_parser.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 33
    const value = requiredString(raw, `${platform} snapshot URL`);   const origin = {     facebook: "https://www.facebook.com",
  • Network accessline 34
    const origin = {     facebook: "https://www.facebook.com",     instagram: "https://www.instagram.com",
  • Network accessline 35
    facebook: "https://www.facebook.com",
  • Network accessline 36
    instagram: "https://www.instagram.com",
  • Network accessline 37
    threads: "https://www.threads.com",
  • Network accessline 154
    const isOwn = ownByProfileUrl("facebook", target.account_key, authorLinkMatch?.[1]);     const nestedOwnReply = /\n\s+- article /u.test(item.block)       && item.block.includes(`https://www.facebook.com/${target.account_key}`);
  • Network accessline 155
    const nestedOwnReply = /\n\s+- article /u.test(item.block)       && item.block.includes(`https://www.facebook.com/${target.account_key}`);     const candidate = {
  • Network accessline 156
    && item.block.includes(`https://www.facebook.com/${target.account_key}`);

social-post/scripts/comment_policy.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_reply_context_validation.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_reply_validation.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_scan_provenance.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_self_test.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_state.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_store.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_test_authorization.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_test_browser_adapter.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 433
    def check_live_origin_is_rejected() -> None:     try:         require_fixture_url("https://www.facebook.com/real-account/posts/1")
  • Network accessline 434
    try:         require_fixture_url("https://www.facebook.com/real-account/posts/1")     except ValueError:
  • Network accessline 435
    require_fixture_url("https://www.facebook.com/real-account/posts/1")

social-post/scripts/comment_test_browser_contract.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_test_browser_contract_scan.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Access to secretsline 121
    [Credential-related source omitted]
  • Network accessline 182
    payload["comments"][0]["observed_at"] = now_iso(-10)             elif case == "post":                 payload["observed_url"] = "https://www.facebook.com/test/posts/other-post"
  • Network accessline 183
    elif case == "post":                 payload["observed_url"] = "https://www.facebook.com/test/posts/other-post"             elif case == "missing-expansion":
  • Network accessline 184
    payload["observed_url"] = "https://www.facebook.com/test/posts/other-post"
  • Network accessline 402
    author = second.get("author_key") or second.get("author_display") or "fixture_author"         second["comment_permalink"] = (             f"https://www.threads.com/@{author}/post/{second['platform_comment_id']}"
  • Network accessline 403
    second["comment_permalink"] = (             f"https://www.threads.com/@{author}/post/{second['platform_comment_id']}"         )
  • Network accessline 404
    f"https://www.threads.com/@{author}/post/{second['platform_comment_id']}"

social-post/scripts/comment_test_browser_contract_send.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 110
    raise AssertionError("invalid preflight mutated the ledger")         wrong_post = preflight_for(action, adapter)         wrong_post["observed_url"] = "https://www.facebook.com/test/posts/other-post"
  • Network accessline 111
    wrong_post = preflight_for(action, adapter)         wrong_post["observed_url"] = "https://www.facebook.com/test/posts/other-post"         rebind_preparation(wrong_post)
  • Network accessline 112
    wrong_post["observed_url"] = "https://www.facebook.com/test/posts/other-post"
  • Network accessline 118
    )         for label, bad_url in (             ("credentials", "https://user@www.facebook.com/test/posts/post-facebook"),
  • Network accessline 119
    for label, bad_url in (             ("credentials", "https://user@www.facebook.com/test/posts/post-facebook"),             ("non-default port", "https://www.facebook.com:444/test/posts/post-facebook"),
  • Network accessline 120
    ("credentials", "https://user@www.facebook.com/test/posts/post-facebook"),
  • Network accessline 121
    ("non-default port", "https://www.facebook.com:444/test/posts/post-facebook"),
  • Network accessline 122
    ("alternate host", "https://m.facebook.com/test/posts/post-facebook"),

social-post/scripts/comment_test_browser_contract_support.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 24
    PLATFORM_URLS = {     "facebook": "https://www.facebook.com/test/posts/post-facebook",
  • Network accessline 25
    "facebook": "https://www.facebook.com/test/posts/post-facebook",
  • Network accessline 26
    "instagram": "https://www.instagram.com/p/post-instagram",
  • Network accessline 27
    "threads": "https://www.threads.com/@test/post/post-threads",
  • Network accessline 139
    author = comment.get("author_key") or comment.get("author_display") or "fixture_author"         comment_permalink = (             f"https://www.threads.com/@{author}/post/{comment['platform_comment_id']}"
  • Network accessline 140
    comment_permalink = (             f"https://www.threads.com/@{author}/post/{comment['platform_comment_id']}"         )
  • Network accessline 141
    f"https://www.threads.com/@{author}/post/{comment['platform_comment_id']}"
  • Access to secretsline 232
    [Credential-related source omitted]

social-post/scripts/comment_test_browser_policy_gate.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_test_browser_receipt_provenance.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Access to secretsline 71
    [Credential-related source omitted]

social-post/scripts/comment_test_browser_recovery.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_test_browser_recovery_action.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 299
    ("raw_fingerprint", "f" * 64),             ("post_key", "changed-post"),             ("post_permalink", "https://www.threads.com/@test/post/changed-post"),
  • Network accessline 300
    ("post_key", "changed-post"),             ("post_permalink", "https://www.threads.com/@test/post/changed-post"),             ("observed_parent_post_permalink", "https://www.threads.com/@test/post/wrong-parent"),
  • Network accessline 301
    ("post_permalink", "https://www.threads.com/@test/post/changed-post"),
  • Network accessline 302
    ("observed_parent_post_permalink", "https://www.threads.com/@test/post/wrong-parent"),
  • Network accessline 303
    ("comment_permalink", "https://www.threads.com/@other/post/changed-comment"),

social-post/scripts/comment_test_browser_regressions.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 24
    PLATFORM_URLS = {     "facebook": "https://www.facebook.com/test/posts/post-facebook",
  • Network accessline 25
    "facebook": "https://www.facebook.com/test/posts/post-facebook",
  • Network accessline 26
    "instagram": "https://www.instagram.com/p/post-instagram",
  • Network accessline 27
    "threads": "https://www.threads.com/@test/post/post-threads",
  • Network accessline 28
    } WRONG_COMMENT_URLS = {     "facebook": "https://www.facebook.com/test/posts/other-post?comment_id=foreign",
  • Network accessline 29
    WRONG_COMMENT_URLS = {     "facebook": "https://www.facebook.com/test/posts/other-post?comment_id=foreign",     "instagram": "https://www.instagram.com/p/other-post/c/foreign",
  • Network accessline 30
    "facebook": "https://www.facebook.com/test/posts/other-post?comment_id=foreign",
  • Network accessline 31
    "instagram": "https://www.instagram.com/p/other-post/c/foreign",
  • Network accessline 32
    "threads": "https://www.threads.com/@test/post/other-post?reply=foreign",
  • Network accessline 63
    author = comment.get("author_key") or comment.get("author_display") or "fixture_author"         comment_permalink = (             f"https://www.threads.com/@{author}/post/{comment['platform_comment_id']}"
  • Network accessline 64
    comment_permalink = (             f"https://www.threads.com/@{author}/post/{comment['platform_comment_id']}"         )
  • Network accessline 65
    f"https://www.threads.com/@{author}/post/{comment['platform_comment_id']}"

social-post/scripts/comment_test_browser_send_urls.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 97
    anchor = self.comment["comment_permalink"]         cases = (             "https://www.threads.com/@other/post/arbitrary-reply",
  • Network accessline 98
    cases = (             "https://www.threads.com/@other/post/arbitrary-reply",             "https://www.threads.com/@test/post/other-parent",
  • Network accessline 99
    "https://www.threads.com/@other/post/arbitrary-reply",
  • Network accessline 100
    "https://www.threads.com/@test/post/other-parent",
  • Network accessline 102
    anchor.replace("www.threads.com", "evil.example"),             anchor.replace("https://", "http://"),             anchor.replace("https://", "https://user@"),
  • Network accessline 103
    anchor.replace("https://", "http://"),             anchor.replace("https://", "https://user@"),             anchor.replace("www.threads.com", "www.threads.com:444"),
  • Network accessline 104
    anchor.replace("https://", "https://user@"),
  • Network accessline 114
    def test_exact_reply_requires_stored_original_parent(self) -> None:         for stage in self.stages:             for parent in (None, "https://www.threads.com/@other/post/wrong-parent"):
  • Network accessline 115
    for stage in self.stages:             for parent in (None, "https://www.threads.com/@other/post/wrong-parent"):                 comment = dict(self.comment, observed_parent_post_permalink=parent)
  • Network accessline 116
    for parent in (None, "https://www.threads.com/@other/post/wrong-parent"):
  • Network accessline 121
    def test_receipt_cannot_supply_a_new_reply_anchor(self) -> None:         forged = "https://www.threads.com/@external/post/not-in-ledger"
  • Network accessline 122
    forged = "https://www.threads.com/@external/post/not-in-ledger"
  • Network accessline 203
    anchor.replace("www.instagram.com", "instagram.com"),             anchor.replace("www.instagram.com", "evil.example"),             anchor.replace("https://", "http://"), anchor.replace("https://", "https://user@"),
  • Network accessline 204
    anchor.replace("www.instagram.com", "evil.example"),             anchor.replace("https://", "http://"), anchor.replace("https://", "https://user@"),             anchor.replace("www.instagram.com", "www.instagram.com:444"),
  • Network accessline 205
    anchor.replace("https://", "http://"), anchor.replace("https://", "https://user@"),

social-post/scripts/comment_test_browser_target.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 49
    return {             "platform": "threads", "account_key": "creator_test", "post_key": "Root_Test-1",             "post_permalink": "https://www.threads.com/@root_creator/post/Root_Test-1/",
  • Network accessline 50
    "platform": "threads", "account_key": "creator_test", "post_key": "Root_Test-1",             "post_permalink": "https://www.threads.com/@root_creator/post/Root_Test-1/",             "target": {"platform_comment_id": "Reply_Test-2",
  • Network accessline 51
    "post_permalink": "https://www.threads.com/@root_creator/post/Root_Test-1/",
  • Network accessline 52
    "target": {"platform_comment_id": "Reply_Test-2",                        "comment_permalink": "https://www.threads.com/@viewer_test/post/Reply_Test-2/"},         }
  • Network accessline 53
    "comment_permalink": "https://www.threads.com/@viewer_test/post/Reply_Test-2/"},
  • Network accessline 55
    return {         "platform": "instagram", "account_key": "creator-test", "post_key": "ExampleShortcode",         "post_permalink": "https://www.instagram.com/reels/ExampleShortcode/",
  • Network accessline 56
    "platform": "instagram", "account_key": "creator-test", "post_key": "ExampleShortcode",         "post_permalink": "https://www.instagram.com/reels/ExampleShortcode/",         "target": {"platform_comment_id": "123456789",
  • Network accessline 57
    "post_permalink": "https://www.instagram.com/reels/ExampleShortcode/",
  • Network accessline 58
    "target": {"platform_comment_id": "123456789",                    "comment_permalink": "https://www.instagram.com/p/ExampleShortcode/c/123456789/"},     }
  • Network accessline 59
    "comment_permalink": "https://www.instagram.com/p/ExampleShortcode/c/123456789/"},
  • Network accessline 133
    ("test_only", True), ("observation_scope", "whole_post"),         ("account_verified", False), ("post_verified", False), ("target_verified", "true"),         ("observed_url", "https://www.instagram.com/p/ExampleShortcode/c/987654321"),
  • Network accessline 134
    ("account_verified", False), ("post_verified", False), ("target_verified", "true"),         ("observed_url", "https://www.instagram.com/p/ExampleShortcode/c/987654321"),         ("session_id", "other-session"), ("whole_post_complete", True)
  • Network accessline 135
    ("observed_url", "https://www.instagram.com/p/ExampleShortcode/c/987654321"),
  • Network accessline 149
    _reject(lambda: normalize_browser_target_observation(bad, POLICY, request), "evidence " + key)     for key, value in (("schema_version", True), ("kind", "physical_document_epoch"), ("tab_id", ""),                        ("observed_url", "ht
  • Network accessline 150
    for key, value in (("schema_version", True), ("kind", "physical_document_epoch"), ("tab_id", ""),                        ("observed_url", "https://www.instagram.com/p/Other/c/123456789"),                        ("target_digest", "0" * 64)):
  • Network accessline 151
    ("observed_url", "https://www.instagram.com/p/Other/c/123456789"),
  • Network accessline 223
    target.replace("www.threads.com", "evil.example"),                 target.replace("www.threads.com", "www.threads.com:444"),                 target.replace("https://", "http://"), target.replace("https://", "https://user@")):
  • Network accessline 224
    target.replace("www.threads.com", "www.threads.com:444"),                 target.replace("https://", "http://"), target.replace("https://", "https://user@")):         invalid_scopes.append({**scope, "target": {**scope["target"], "comment_pe
  • Network accessline 225
    target.replace("https://", "http://"), target.replace("https://", "https://user@")):
  • Network accessline 239
    def _threads_observation_rejections(request: dict, receipt: dict) -> None:     cases = (         ("observed_parent_post_permalink", "https://www.threads.com/@root_creator/post/OtherRoot"),
  • Network accessline 240
    cases = (         ("observed_parent_post_permalink", "https://www.threads.com/@root_creator/post/OtherRoot"),         ("observed_parent_post_permalink", request["target"]["comment_permalink"]),
  • Network accessline 241
    ("observed_parent_post_permalink", "https://www.threads.com/@root_creator/post/OtherRoot"),
  • Network accessline 245
    ("observed_parent_post_permalink", request["post_permalink"].replace("www.threads.com", "www.threads.net")),         ("platform_comment_id", "OtherReply"),         ("comment_permalink", "https://www.threads.com/@viewer_test/post/OtherReply"
  • Network accessline 246
    ("platform_comment_id", "OtherReply"),         ("comment_permalink", "https://www.threads.com/@viewer_test/post/OtherReply"),     )
  • Network accessline 247
    ("comment_permalink", "https://www.threads.com/@viewer_test/post/OtherReply"),

social-post/scripts/comment_test_canary.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_test_cli.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Access to secretsline 19
    [Credential-related source omitted]

social-post/scripts/comment_test_fixture_promotion_envelope.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_test_mapping_evidence.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/comment_test_state.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 48
    permalink = "https://example.com/post/permalink?comment=stable"

social-post/scripts/comment_test_support.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 26
    "account_key": "creator-test",         "post_key": post_key or f"post-{suffix}",         "post_permalink": f"https://example.com/post/{suffix}",
  • Network accessline 27
    "post_key": post_key or f"post-{suffix}",         "post_permalink": f"https://example.com/post/{suffix}",         "platform_comment_id": f"comment-{suffix}" if strong else None,
  • Network accessline 28
    "post_permalink": f"https://example.com/post/{suffix}",

social-post/scripts/comment_test_trusted_host_verifier.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 72
    if self.verification_error:             raise RuntimeError("isolated verification failure")         self.requests.append(copy.deepcopy(request))
  • Network accessline 73
    raise RuntimeError("isolated verification failure")         self.requests.append(copy.deepcopy(request))         if self.replay_first and self.first_response is not None:
  • Network accessline 74
    self.requests.append(copy.deepcopy(request))

social-post/scripts/log_outcome.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/self_test.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/social_cohorts.py

  • Executable scriptline 1
    Executable file

social-post/scripts/social_data.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/social_data_feature_matrix_test.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Access to secretsline 456
    [Credential-related source omitted]

social-post/scripts/social_governance.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/social_governance_store.py

  • Executable scriptline 1
    Executable file

social-post/scripts/social_governance_test.py

  • Executable scriptline 1
    Executable file
  • Network accessline 5
    import copy import hashlib import http.client
  • Network accessline 6
    import hashlib import http.client import json
  • Network accessline 7
    import http.client
  • Network accessline 169
    self.assertFalse(check(text)["delivery_ready"])         variants = [text.rsplit("\n\n", 1)[0], text + "\n\n多一段", text + "。",                     text.replace("測試", "測試!"), text + " https://example.org", text + "\U0001f600",
  • Network accessline 170
    variants = [text.rsplit("\n\n", 1)[0], text + "\n\n多一段", text + "。",                     text.replace("測試", "測試!"), text + " https://example.org", text + "\U0001f600",                     text.replace("花兩天", "1. 花兩天"), text.replace("完成測試", 
  • Network accessline 171
    text.replace("測試", "測試!"), text + " https://example.org", text + "\U0001f600",
  • Network accessline 257
    thread = threading.Thread(target=server.serve_forever, daemon=True)         thread.start()         connection = http.client.HTTPConnection("127.0.0.1", server.server_port, timeout=5)
  • Network accessline 258
    thread.start()         connection = http.client.HTTPConnection("127.0.0.1", server.server_port, timeout=5)         headers = {"Content-Type": "application/json", "Origin": server.origin,
  • Network accessline 259
    connection = http.client.HTTPConnection("127.0.0.1", server.server_port, timeout=5)

social-post/scripts/social_learning.py

  • Executable scriptline 1
    Executable file

social-post/scripts/social_post_analysis.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/social_primitives.py

  • Executable scriptline 1
    Executable file

social-post/scripts/social_reference_migration.py

  • Executable scriptline 1
    Executable file

social-post/scripts/social_snapshot.py

  • Executable scriptline 1
    Executable file

social-post/scripts/social_snapshot_test.py

  • Executable scriptline 1
    Executable file

social-post/scripts/social_store.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/social_test_schema_time_validation.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/social_validation.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/social_writing_contract.py

  • Executable scriptline 1
    Executable file

social-post/scripts/split_case_archive.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/split_formula_archive.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/split_rule_archive.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/sync_public.py

  • Executable scriptline 1
    #!/usr/bin/env python3

social-post/scripts/workbench.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 49
    self.csrf = secrets.token_urlsafe(32)         super().__init__(("127.0.0.1", port), WorkbenchHandler)         self.origin = "http://127.0.0.1:" + str(self.server_port)
  • Network accessline 51
    self.origin = "http://127.0.0.1:" + str(self.server_port)

social-post/scripts/workbench_architecture_test.mjs

  • Executable scriptline 1
    Executable file
  • Network accessline 55
    [{ ...modules, "api.js": "import './app.js';" + modules["api.js"] }, "cycle"],   [{ ...modules, "ui.js": "import './editor.js';" + modules["ui.js"] }, "layer"],   [{ ...modules, "app.js": "import 'https://invalid.example/remote.js';" + modu
  • Network accessline 56
    [{ ...modules, "ui.js": "import './editor.js';" + modules["ui.js"] }, "layer"],   [{ ...modules, "app.js": "import 'https://invalid.example/remote.js';" + modules["app.js"] }, "external_or_dynamic_loader"],   [{ ...modules, "app.js": "impor
  • Network accessline 57
    [{ ...modules, "app.js": "import 'https://invalid.example/remote.js';" + modules["app.js"] }, "external_or_dynamic_loader"],

social-post/scripts/workbench_browser_test.mjs

  • Executable scriptline 1
    Executable file

social-post/scripts/workbench_contract.py

  • Executable scriptline 1
    Executable file

social-post/scripts/workbench_formulas.py

  • Executable scriptline 1
    Executable file

social-post/scripts/workbench_service.py

  • Executable scriptline 1
    Executable file

social-post/scripts/workbench_store.py

  • Executable scriptline 1
    Executable file

social-post/scripts/workbench_test.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 6
    import copy import http.client
  • Network accessline 7
    import http.client
  • Network accessline 269
    base["Content-Type"] = "application/json"         base.update(headers or {})         connection = http.client.HTTPConnection("127.0.0.1", self.server.server_port, timeout=3)
  • Network accessline 270
    base.update(headers or {})         connection = http.client.HTTPConnection("127.0.0.1", self.server.server_port, timeout=3)         try:
  • Network accessline 271
    connection = http.client.HTTPConnection("127.0.0.1", self.server.server_port, timeout=3)
  • Network accessline 306
    def test_wrong_origin_host_and_fetch_metadata_denied(self):         for headers in ({"Origin": "https://attacker.invalid"}, {"Host": "attacker.invalid"},                         {"Sec-Fetch-Site": "cross-site"}, {"Sec-Fetch-Site": "same-sit
  • Network accessline 307
    for headers in ({"Origin": "https://attacker.invalid"}, {"Host": "attacker.invalid"},                         {"Sec-Fetch-Site": "cross-site"}, {"Sec-Fetch-Site": "same-site"}):             with self.subTest(headers=headers):

social-post/workbench/api.js

  • Executable scriptline 1
    Executable file
  • Network accessline 14
    const timer = setTimeout(() => controller.abort(), 15000);   try {     const response = await fetch(path, {
  • Network accessline 15
    try {     const response = await fetch(path, {       method: body === undefined ? "GET" : "POST",
  • Network accessline 16
    const response = await fetch(path, {

social-post/workbench/app.js

  • Executable scriptline 1
    Executable file

social-post/workbench/editor.js

  • Executable scriptline 1
    Executable file

social-post/workbench/favicon.svg

  • Network accessline 1
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">

social-post/workbench/governance.js

  • Executable scriptline 1
    Executable file

social-post/workbench/package.json

  • Executable scriptline 1
    Executable file

social-post/workbench/ui.js

  • Executable scriptline 1
    Executable file

How the signals fit together

Facts from a static read of the files at the pinned commit. They describe what the code does, not why.

Some files could not be read; the facts below still hold.

Declared and executed: 3 facts
Signal confidence: 497 facts

and 447 more

Only the first 500 facts are listed.

Works with

Agent compatibility, from the files in this repository
AgentStatusEvidenceInstall to
Claude CodeCompatibleStandard SKILL.md chatgpt-socialpost/SKILL.md.claude/skills/<skill-name>/
CodexCompatibleStandard SKILL.md chatgpt-socialpost/SKILL.md.agents/skills/<skill-name>/
CursorCompatibleStandard SKILL.md chatgpt-socialpost/SKILL.md.cursor/skills/<skill-name>/
Gemini CLICompatibleStandard SKILL.md chatgpt-socialpost/SKILL.md.gemini/skills/<skill-name>/
GitHub CopilotCompatibleStandard SKILL.md chatgpt-socialpost/SKILL.md.github/skills/<skill-name>/
OpenCodeCompatibleStandard SKILL.md chatgpt-socialpost/SKILL.md.opencode/skills/<skill-name>/
  • Native The repository ships a manifest, folder or frontmatter field for this agent.
  • Compatible A standard SKILL.md that this agent can read.
  • Unknown No evidence either way.

Derived automatically from paths, manifests and frontmatter. Not tested on each agent.