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
social-post/SKILL.md
Week of Oct 26, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
c22737a33d6c → c22737a33d6c
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
Individual skills in this repository
- socialpost
chatgpt-socialpost - social-post
social-post
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 tokensAlways available to the agent
SKILL.md
976 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- 來源與校準
- 產稿流程
- 發布與學習邊界
Files
SKILL.mdcore3,323 bytesagents/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 GitHubsocial-post
When your agent uses it
依使用者真實貼文與成效寫 Facebook/Instagram/YouTube/Threads/X 文案,包含 ChatGPT Chat 的「寫文」「Mode C」「用我的格式/口氣」「黑底白字」;本機工作台、規劃、確認後發布、留言回覆及成效學習。使用者說「發文」「文案」「Social Post 介面」「回覆留言」「查流量」「把數據訓練進去」「比較貼文」「優化 pattern」時使用。
What it loads into context
Frontmatter
124 tokensAlways available to the agent
SKILL.md
5,183 tokensWhen the skill is activated
Reference documents
40,145 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Session 啟動
- 路由
- Source of truth
- 流量與演算法單一歸檔中樞
- P3 Log Outcome
- P4 Optimize Patterns
- 實際發佈與留言安全閘
- 平台規則
- 維護
Scripts executed separately
scripts/build_rule_registry.pyscripts/comment_adapter_fixtures/fixture-runtime.jsscripts/comment_assistant.pyscripts/comment_authorization.pyscripts/comment_browser_action_contract.pyscripts/comment_browser_cli.pyscripts/comment_browser_common.pyscripts/comment_browser_contract.pyscripts/comment_browser_preflight_contract.pyscripts/comment_browser_provenance.pyscripts/comment_browser_result_contract.pyscripts/comment_browser_scan_completion.pyscripts/comment_browser_scan_contract.pyscripts/comment_browser_scan_evidence.pyscripts/comment_browser_scan_request.pyscripts/comment_browser_send_common.pyscripts/comment_browser_send_contract.pyscripts/comment_browser_target_cli.pyscripts/comment_browser_target_contract.pyscripts/comment_canary.pyscripts/comment_canary_cli.pyscripts/comment_capability_gate.pyscripts/comment_capability_gate_calibration.pyscripts/comment_capability_mapping_evidence.pyscripts/comment_capability_promotion.pyscripts/comment_capability_promotion_calibration.pyscripts/comment_capability_promotion_contract.pyscripts/comment_capability_promotion_fixtures.pyscripts/comment_capability_promotion_semantics.pyscripts/comment_capability_receipt_support.pyscripts/comment_capability_trusted_host_verifier.pyscripts/comment_chrome_actuator.mjsscripts/comment_chrome_actuator_fixture_test.mjsscripts/comment_chrome_actuator_guards_test.mjsscripts/comment_chrome_actuator_receipts_test.mjsscripts/comment_chrome_actuator_reinspection_test.mjsscripts/comment_chrome_actuator_reply_exhaustion_test.mjsscripts/comment_chrome_actuator_scan_test.mjsscripts/comment_chrome_actuator_send_test.mjsscripts/comment_chrome_actuator_test.mjsscripts/comment_chrome_claim_bridge.mjsscripts/comment_chrome_claim_bridge_test.mjsscripts/comment_chrome_claim_integration_test.mjsscripts/comment_chrome_common.mjsscripts/comment_chrome_facebook_child_reader.mjsscripts/comment_chrome_facebook_child_reader_test.mjsscripts/comment_chrome_facebook_reader.mjsscripts/comment_chrome_facebook_reader_test.mjsscripts/comment_chrome_facebook_surface.mjsscripts/comment_chrome_fixture_contract_test.mjsscripts/comment_chrome_fixture_evidence_testonly.mjsscripts/comment_chrome_fixture_receipt_testonly.mjsscripts/comment_chrome_host_authority.mjsscripts/comment_chrome_host_authority_test.mjsscripts/comment_chrome_instagram_reader.mjsscripts/comment_chrome_instagram_selection.mjsscripts/comment_chrome_instagram_selection_test.mjsscripts/comment_chrome_instagram_surface.mjsscripts/comment_chrome_live_bridge_test.mjsscripts/comment_chrome_live_common.mjsscripts/comment_chrome_live_surface.mjsscripts/comment_chrome_live_surface_candidate_cases_test.mjsscripts/comment_chrome_live_surface_fixture_testonly.mjsscripts/comment_chrome_live_surface_observation_cases_test.mjsscripts/comment_chrome_live_surface_test.mjsscripts/comment_chrome_node_frame_lifecycle_snapshot_testonly.mjsscripts/comment_chrome_node_frame_lifecycle_test.mjsscripts/comment_chrome_node_frame_lifecycle_testonly.mjsscripts/comment_chrome_node_frame_mapping.mjsscripts/comment_chrome_node_frame_mapping_fixture_testonly.mjsscripts/comment_chrome_node_frame_mapping_test.mjsscripts/comment_chrome_node_frame_mapping_testonly.mjsscripts/comment_chrome_node_identity.mjsscripts/comment_chrome_reply_exhaustion.mjsscripts/comment_chrome_runtime_authority.mjsscripts/comment_chrome_runtime_document.mjsscripts/comment_chrome_runtime_reconnect_test.mjsscripts/comment_chrome_scan.mjsscripts/comment_chrome_scan_adapters.mjsscripts/comment_chrome_scan_adapters_test.mjsscripts/comment_chrome_scan_fixture_testonly.mjsscripts/comment_chrome_send.mjsscripts/comment_chrome_send_support.mjsscripts/comment_chrome_target_tab_reuse_test.mjsscripts/comment_chrome_textarea_identity_test.mjsscripts/comment_chrome_threads_canary_reader_cases_test.mjsscripts/comment_chrome_threads_canary_surface.mjsscripts/comment_chrome_threads_canary_surface_test.mjsscripts/comment_chrome_threads_dom_fixtures_test.mjsscripts/comment_chrome_threads_icon_identity_test.mjsscripts/comment_chrome_threads_modal_reader.mjsscripts/comment_chrome_threads_reader.mjsscripts/comment_chrome_threads_reader_test.mjsscripts/comment_chrome_threads_result_reader.mjsscripts/comment_chrome_threads_surface.mjsscripts/comment_cli_support.pyscripts/comment_cua_dispatch_test.mjsscripts/comment_cua_runtime.mjsscripts/comment_cua_runtime_test.mjsscripts/comment_domain.pyscripts/comment_fixture_browser_e2e.mjsscripts/comment_fixture_promotion_envelope.pyscripts/comment_identity.pyscripts/comment_js_architecture_contract.mjsscripts/comment_js_architecture_core.mjsscripts/comment_js_architecture_gate.mjsscripts/comment_js_architecture_loaders.mjsscripts/comment_js_architecture_receipt.mjsscripts/comment_js_architecture_selftest.mjsscripts/comment_meta_snapshot_parser.mjsscripts/comment_policy.pyscripts/comment_reply_context_validation.pyscripts/comment_reply_validation.pyscripts/comment_scan_provenance.pyscripts/comment_self_test.pyscripts/comment_state.pyscripts/comment_store.pyscripts/comment_test_authorization.pyscripts/comment_test_browser_adapter.pyscripts/comment_test_browser_contract.pyscripts/comment_test_browser_contract_scan.pyscripts/comment_test_browser_contract_send.pyscripts/comment_test_browser_contract_support.pyscripts/comment_test_browser_policy_gate.pyscripts/comment_test_browser_receipt_provenance.pyscripts/comment_test_browser_recovery.pyscripts/comment_test_browser_recovery_action.pyscripts/comment_test_browser_regressions.pyscripts/comment_test_browser_send_urls.pyscripts/comment_test_browser_target.pyscripts/comment_test_canary.pyscripts/comment_test_cli.pyscripts/comment_test_fixture_promotion_envelope.pyscripts/comment_test_mapping_evidence.pyscripts/comment_test_state.pyscripts/comment_test_support.pyscripts/comment_test_trusted_host_verifier.pyscripts/log_outcome.pyscripts/self_test.pyscripts/social_cohorts.pyscripts/social_data.pyscripts/social_data_feature_matrix_test.pyscripts/social_governance.pyscripts/social_governance_store.pyscripts/social_governance_test.pyscripts/social_learning.pyscripts/social_post_analysis.pyscripts/social_primitives.pyscripts/social_reference_migration.pyscripts/social_snapshot.pyscripts/social_snapshot_test.pyscripts/social_store.pyscripts/social_test_schema_time_validation.pyscripts/social_validation.pyscripts/social_writing_contract.pyscripts/split_case_archive.pyscripts/split_formula_archive.pyscripts/split_rule_archive.pyscripts/sync_public.pyscripts/workbench.pyscripts/workbench_architecture_test.mjsscripts/workbench_browser_test.mjsscripts/workbench_contract.pyscripts/workbench_formulas.pyscripts/workbench_service.pyscripts/workbench_store.pyscripts/workbench_test.pyworkbench/api.jsworkbench/app.jsworkbench/editor.jsworkbench/governance.jsworkbench/package.jsonworkbench/ui.js
Files
.social-post-managed.jsonasset9,106 bytesSKILL.mdcore18,761 bytesSKILL.mdcore18,761 bytesSKILL.mdcore18,761 bytesSKILL.mdcore18,761 bytesSKILL.mdcore18,761 bytesSKILL.mdcore18,761 bytesagents/openai.yamlasset255 bytescomment-capabilities.jsonasset4,817 bytescontent_plan.example.mddoc2,370 bytescurrent_brief.mddoc1,156 bytesdata/rule_registry.jsonasset2,067 bytesreferences/case_studies.mddoc413 bytesreferences/cases/case-01.mddoc417 bytesreferences/cases/manifest.jsonasset249 bytesreferences/chrome-comment-adapter.mddoc38,410 bytesreferences/chrome-comment-runtime.mddoc7,669 bytesreferences/chrome-comment-validation.mddoc18,532 bytesreferences/comment-operations.mddoc29,429 bytesreferences/comment-policy.jsonasset1,055 bytesreferences/correction-bundle.example.jsonasset311 bytesreferences/evaluation.mddoc1,334 bytesreferences/facebook.mddoc1,189 bytesreferences/formulas.mddoc552 bytesreferences/formulas/F01.mddoc153 bytesreferences/formulas/F02.mddoc145 bytesreferences/formulas/F03.mddoc162 bytesreferences/formulas/F04.mddoc170 bytesreferences/formulas/F05.mddoc176 bytesreferences/formulas/manifest.jsonasset523 bytesreferences/generate_and_publish.mddoc5,664 bytesreferences/instagram.mddoc1,130 bytesreferences/learn_style.mddoc805 bytesreferences/outcome-bundle.example.jsonasset858 bytesreferences/outcome-workflow.mddoc9,642 bytesreferences/phase0_plan.mddoc2,575 bytesreferences/rules.mddoc964 bytesreferences/rules/R01.mddoc206 bytesreferences/rules/R02.mddoc202 bytesreferences/rules/R03.mddoc168 bytesreferences/rules/R04.mddoc221 bytesreferences/rules/R05.mddoc191 bytesreferences/rules/R06.mddoc159 bytesreferences/rules/R07.mddoc214 bytesreferences/rules/R08.mddoc191 bytesreferences/rules/manifest.jsonasset1,603 bytesreferences/rules/metadata.jsonasset537 bytesreferences/service-architecture.mddoc3,499 bytesreferences/threads.mddoc936 bytesreferences/workbench.mddoc4,851 bytesreferences/writing-governance.mddoc7,427 bytesreferences/x.mddoc4,358 bytesreferences/youtube.mddoc812 bytesscripts/build_rule_registry.pyruns3,377 bytesscripts/comment_adapter_fixtures/facebook.htmlasset3,347 bytesscripts/comment_adapter_fixtures/fixture-runtime.jsruns6,644 bytesscripts/comment_adapter_fixtures/instagram.htmlasset3,286 bytesscripts/comment_adapter_fixtures/threads.htmlasset3,346 bytesscripts/comment_assistant.pyruns19,558 bytesscripts/comment_authorization.pyruns9,430 bytesscripts/comment_browser_action_contract.pyruns8,827 bytesscripts/comment_browser_cli.pyruns25,563 bytesscripts/comment_browser_common.pyruns10,170 bytesscripts/comment_browser_contract.pyruns1,756 bytesscripts/comment_browser_preflight_contract.pyruns11,634 bytesscripts/comment_browser_provenance.pyruns12,144 bytesscripts/comment_browser_result_contract.pyruns9,340 bytesscripts/comment_browser_scan_completion.pyruns6,714 bytesscripts/comment_browser_scan_contract.pyruns7,322 bytesscripts/comment_browser_scan_evidence.pyruns6,100 bytesscripts/comment_browser_scan_request.pyruns7,280 bytesscripts/comment_browser_send_common.pyruns4,189 bytesscripts/comment_browser_send_contract.pyruns1,552 bytesscripts/comment_browser_target_cli.pyruns6,088 bytesscripts/comment_browser_target_contract.pyruns12,712 bytesscripts/comment_canary.pyruns13,370 bytesscripts/comment_canary_cli.pyruns3,428 bytesscripts/comment_capability_gate.pyruns22,647 bytesscripts/comment_capability_gate_calibration.pyruns9,432 bytesscripts/comment_capability_mapping_evidence.pyruns13,770 bytesscripts/comment_capability_promotion.pyruns5,863 bytesscripts/comment_capability_promotion_calibration.pyruns14,555 bytesscripts/comment_capability_promotion_contract.pyruns17,484 bytesscripts/comment_capability_promotion_fixtures.pyruns15,513 bytesscripts/comment_capability_promotion_semantics.pyruns17,381 bytesscripts/comment_capability_receipt_support.pyruns10,686 bytesscripts/comment_capability_trusted_host_verifier.pyruns10,330 bytesscripts/comment_chrome_actuator.mjsruns203 bytesscripts/comment_chrome_actuator_fixture_test.mjsruns14,747 bytesscripts/comment_chrome_actuator_guards_test.mjsruns12,549 bytesscripts/comment_chrome_actuator_receipts_test.mjsruns6,195 bytesscripts/comment_chrome_actuator_reinspection_test.mjsruns5,656 bytesscripts/comment_chrome_actuator_reply_exhaustion_test.mjsruns8,576 bytesscripts/comment_chrome_actuator_scan_test.mjsruns13,188 bytesscripts/comment_chrome_actuator_send_test.mjsruns17,168 bytesscripts/comment_chrome_actuator_test.mjsruns5,371 bytesscripts/comment_chrome_claim_bridge.mjsruns86,046 bytesscripts/comment_chrome_claim_bridge_test.mjsruns19,433 bytesscripts/comment_chrome_claim_integration_test.mjsruns9,719 bytesscripts/comment_chrome_common.mjsruns12,366 bytesscripts/comment_chrome_facebook_child_reader.mjsruns14,037 bytesscripts/comment_chrome_facebook_child_reader_test.mjsruns23,574 bytesscripts/comment_chrome_facebook_reader.mjsruns9,131 bytesscripts/comment_chrome_facebook_reader_test.mjsruns14,818 bytesscripts/comment_chrome_facebook_surface.mjsruns6,133 bytesscripts/comment_chrome_fixture_contract_test.mjsruns16,847 bytesscripts/comment_chrome_fixture_evidence_testonly.mjsruns19,344 bytesscripts/comment_chrome_fixture_receipt_testonly.mjsruns15,109 bytesscripts/comment_chrome_host_authority.mjsruns9,670 bytesscripts/comment_chrome_host_authority_test.mjsruns16,520 bytesscripts/comment_chrome_instagram_reader.mjsruns10,590 bytesscripts/comment_chrome_instagram_selection.mjsruns8,819 bytesscripts/comment_chrome_instagram_selection_test.mjsruns19,522 bytesscripts/comment_chrome_instagram_surface.mjsruns12,401 bytesscripts/comment_chrome_live_bridge_test.mjsruns4,030 bytesscripts/comment_chrome_live_common.mjsruns3,025 bytesscripts/comment_chrome_live_surface.mjsruns3,672 bytesscripts/comment_chrome_live_surface_candidate_cases_test.mjsruns12,937 bytesscripts/comment_chrome_live_surface_fixture_testonly.mjsruns14,529 bytesscripts/comment_chrome_live_surface_observation_cases_test.mjsruns9,860 bytesscripts/comment_chrome_live_surface_test.mjsruns3,807 bytesscripts/comment_chrome_node_frame_lifecycle_snapshot_testonly.mjsruns20,479 bytesscripts/comment_chrome_node_frame_lifecycle_test.mjsruns14,615 bytesscripts/comment_chrome_node_frame_lifecycle_testonly.mjsruns12,437 bytesscripts/comment_chrome_node_frame_mapping.mjsruns1,372 bytesscripts/comment_chrome_node_frame_mapping_fixture_testonly.mjsruns6,576 bytesscripts/comment_chrome_node_frame_mapping_test.mjsruns5,135 bytesscripts/comment_chrome_node_frame_mapping_testonly.mjsruns12,416 bytesscripts/comment_chrome_node_identity.mjsruns12,083 bytesscripts/comment_chrome_reply_exhaustion.mjsruns14,126 bytesscripts/comment_chrome_runtime_authority.mjsruns17,887 bytesscripts/comment_chrome_runtime_document.mjsruns4,546 bytesscripts/comment_chrome_runtime_reconnect_test.mjsruns15,948 bytesscripts/comment_chrome_scan.mjsruns14,341 bytesscripts/comment_chrome_scan_adapters.mjsruns9,349 bytesscripts/comment_chrome_scan_adapters_test.mjsruns29,472 bytesscripts/comment_chrome_scan_fixture_testonly.mjsruns20,518 bytesscripts/comment_chrome_send.mjsruns14,942 bytesscripts/comment_chrome_send_support.mjsruns11,292 bytesscripts/comment_chrome_target_tab_reuse_test.mjsruns28,534 bytesscripts/comment_chrome_textarea_identity_test.mjsruns5,403 bytesscripts/comment_chrome_threads_canary_reader_cases_test.mjsruns20,771 bytesscripts/comment_chrome_threads_canary_surface.mjsruns15,613 bytesscripts/comment_chrome_threads_canary_surface_test.mjsruns19,551 bytesscripts/comment_chrome_threads_dom_fixtures_test.mjsruns15,865 bytesscripts/comment_chrome_threads_icon_identity_test.mjsruns13,758 bytesscripts/comment_chrome_threads_modal_reader.mjsruns6,182 bytesscripts/comment_chrome_threads_reader.mjsruns14,862 bytesscripts/comment_chrome_threads_reader_test.mjsruns21,304 bytesscripts/comment_chrome_threads_result_reader.mjsruns7,214 bytesscripts/comment_chrome_threads_surface.mjsruns7,561 bytesscripts/comment_cli_support.pyruns4,930 bytesscripts/comment_cua_dispatch_test.mjsruns23,598 bytesscripts/comment_cua_runtime.mjsruns14,185 bytesscripts/comment_cua_runtime_test.mjsruns20,115 bytesscripts/comment_domain.pyruns18,173 bytesscripts/comment_fixture_browser_e2e.mjsruns38,518 bytesscripts/comment_fixture_promotion_envelope.pyruns14,595 bytesscripts/comment_identity.pyruns11,258 bytesscripts/comment_js_architecture_contract.mjsruns27,384 bytesscripts/comment_js_architecture_core.mjsruns29,083 bytesscripts/comment_js_architecture_gate.mjsruns9,137 bytesscripts/comment_js_architecture_loaders.mjsruns1,526 bytesscripts/comment_js_architecture_receipt.mjsruns4,784 bytesscripts/comment_js_architecture_selftest.mjsruns27,238 bytesscripts/comment_meta_snapshot_parser.mjsruns17,684 bytesscripts/comment_policy.pyruns8,002 bytesscripts/comment_reply_context_validation.pyruns3,452 bytesscripts/comment_reply_validation.pyruns9,889 bytesscripts/comment_scan_provenance.pyruns27,838 bytesscripts/comment_self_test.pyruns15,100 bytesscripts/comment_state.pyruns1,122 bytesscripts/comment_store.pyruns3,357 bytesscripts/comment_test_authorization.pyruns6,778 bytesscripts/comment_test_browser_adapter.pyruns20,537 bytesscripts/comment_test_browser_contract.pyruns738 bytesscripts/comment_test_browser_contract_scan.pyruns24,310 bytesscripts/comment_test_browser_contract_send.pyruns21,913 bytesscripts/comment_test_browser_contract_support.pyruns18,977 bytesscripts/comment_test_browser_policy_gate.pyruns6,989 bytesscripts/comment_test_browser_receipt_provenance.pyruns21,754 bytesscripts/comment_test_browser_recovery.pyruns18,063 bytesscripts/comment_test_browser_recovery_action.pyruns18,167 bytesscripts/comment_test_browser_regressions.pyruns12,230 bytesscripts/comment_test_browser_send_urls.pyruns14,076 bytesscripts/comment_test_browser_target.pyruns18,170 bytesscripts/comment_test_canary.pyruns23,421 bytesscripts/comment_test_cli.pyruns8,901 bytesscripts/comment_test_fixture_promotion_envelope.pyruns5,652 bytesscripts/comment_test_mapping_evidence.pyruns9,728 bytesscripts/comment_test_state.pyruns10,998 bytesscripts/comment_test_support.pyruns7,272 bytesscripts/comment_test_trusted_host_verifier.pyruns12,401 bytesscripts/log_outcome.pyruns7,136 bytesscripts/self_test.pyruns22,433 bytesscripts/social_cohorts.pyruns3,501 bytesscripts/social_data.pyruns45,924 bytesscripts/social_data_feature_matrix_test.pyruns25,976 bytesscripts/social_governance.pyruns4,291 bytesscripts/social_governance_store.pyruns3,722 bytesscripts/social_governance_test.pyruns16,635 bytesscripts/social_learning.pyruns11,599 bytesscripts/social_post_analysis.pyruns10,144 bytesscripts/social_primitives.pyruns598 bytesscripts/social_reference_migration.pyruns3,610 bytesscripts/social_snapshot.pyruns3,313 bytesscripts/social_snapshot_test.pyruns6,764 bytesscripts/social_store.pyruns3,663 bytesscripts/social_test_schema_time_validation.pyruns17,364 bytesscripts/social_validation.pyruns30,819 bytesscripts/social_writing_contract.pyruns11,515 bytesscripts/split_case_archive.pyruns4,214 bytesscripts/split_formula_archive.pyruns3,224 bytesscripts/split_rule_archive.pyruns5,024 bytesscripts/sync_public.pyruns11,062 bytesscripts/workbench.pyruns8,939 bytesscripts/workbench_architecture_test.mjsruns3,635 bytesscripts/workbench_browser_test.mjsruns17,506 bytesscripts/workbench_contract.pyruns8,697 bytesscripts/workbench_formulas.pyruns1,861 bytesscripts/workbench_service.pyruns10,321 bytesscripts/workbench_store.pyruns4,533 bytesscripts/workbench_test.pyruns19,904 bytesstyle_profile.example.mddoc4,556 bytesvoice_quick.mddoc1,820 bytesworkbench/api.jsruns2,232 bytesworkbench/app.jsruns17,970 bytesworkbench/editor.jsruns5,943 bytesworkbench/favicon.svgasset232 bytesworkbench/governance.jsruns4,462 bytesworkbench/index.htmlasset1,791 bytesworkbench/layout.cssasset9,810 bytesworkbench/package.jsonruns194 bytesworkbench/styles.cssasset9,500 bytesworkbench/ui.jsruns7,383 bytes
Read SKILL.md
# Social Post
把內容生成、實際發布與成效學習分開。依意圖只讀必要資料,不把整個案例庫一次塞進 context。
P5 執行前核對 `references/chrome-comment-adapter.md` 的當前狀態。CUA Threads 單則已完成真實送出與唯讀對帳;CUA IG 候選已接入但尚無新 runtime 送出實證;FB 送出與三平台批次仍未完成,泛用 production 關閉。target-only 不代表整篇/回覆串已掃完,semantic UI continuity 不代表實體 document epoch 或持久 node identity。單則實證不升級整體 capability,fixture 或候選程式存在也不能代替真實操作證據。
## Session 啟動
P0–P4 先讀 [references/writing-governance.md](references/writing-governance.md),核對 `scripts/social_governance.py status`。既有 voice、F 公式、規則正文以私人版本契約鎖定;禁止 P1/P4 或新爆款案例直接覆寫。新分析只能建立同平台/媒體 scope 的候選,經使用者審核精確 diff/digest,另行啟用後才變成正式有效版本。當輪要求改一篇草稿不是永久規則更新授權。
P2 必須讀 `context` 輸出的完整有效 F 與 voice,按固定段落功能、順序、標點與 CTA 寫,交付前核對同 revision 的 `check-draft` 並完成語義/事實 QA。F06 必須分清 F06a/F06b。結構 PASS 不等於模仿成功;未核對、契約漂移或 F 結構不符不得聲稱正式文案已完成。
P2 預設讀 `voice_quick.md`;只有 P1 重新學語氣、使用者明確要求深度仿寫,或 quick card 無法裁決時,才完整讀 `style_profile.md` 或使用者明確指定的 voice Skill。ChatGPT Chat 若沒有本機檔案/shell,依 `references/generate_and_publish.md` 的降階流程;只讀到公開範本或 GitHub repo,不代表已載入使用者的私人 voice。安全與使用者明示 > voice quick/明確指定的 voice Skill > 公式。
View the complete source on GitHubSkills 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
- #881 on Oct 14
- #879 on Oct 16
- #858 on Oct 17
- #847 on Oct 18
- #912 on Oct 21
- #884 since Oct 22
46 earlier periods
- #756 on Aug 2
- #760 on Aug 7
- #773 on Aug 9
- #808 on Aug 10
- #805 on Aug 11
- #800 on Aug 12
- #801 on Aug 13
- #786 on Aug 14
- #757 on Aug 15
- #780 on Aug 16
- #810 on Aug 18
- #804 on Aug 19
- #805 on Aug 21
- #757 on Aug 22
- #804 on Aug 23
- #818 on Aug 24
- #811 on Aug 26
- #816 on Aug 27
- #855 on Aug 28
- #780 on Aug 29
- #788 on Aug 30
- #828 on Aug 31
- #849 on Sep 1
- #829 on Sep 3
- #796 on Sep 4
- #772 on Sep 5
- #803 on Sep 6
- #820 on Sep 7
- #842 on Sep 8
- #822 on Sep 9
- #829 on Sep 10
- #803 on Sep 12
- #799 on Sep 13
- #832 on Sep 14
- #825 on Sep 18
- #818 on Sep 24
- #855 on Sep 28
- #805 on Oct 1
- #800 on Oct 2
- #782 on Oct 3
- #811 on Oct 4
- #826 on Oct 5
- #846 on Oct 7
- #890 on Oct 8
- #836 from Oct 10 to Oct 11
- #859 on Oct 12
Before you install
Network or broad shellAutomated 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:1Analysis incomplete: Referenced executable target unavailable; not analyzedsocial-post/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedsocial-post/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedsocial-post/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedsocial-post/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzed
- No broad tool permissions
- 17 dangerous shell commandsin 12 files: social-post/scripts/comment_chrome_runtime_reconnect_test.mjs:46 social-post/scripts/comment_chrome_facebook_child_reader_test.mjs:119 social-post/scripts/comment_chrome_target_tab_reuse_test.mjs:101 and 9 more
- 558 network referencesin 55 files: social-post/scripts/comment_chrome_host_authority_test.mjs:29 social-post/scripts/comment_cua_runtime_test.mjs:7 social-post/scripts/comment_test_browser_target.py:49 and 52 more
- No hidden or obfuscated text
- 3 instruction override signalsin 1 file: social-post/references/writing-governance.md:109
- 173 executable scriptsin 173 files: social-post/scripts/build_rule_registry.py:1 social-post/scripts/comment_adapter_fixtures/fixture-runtime.js:1 social-post/scripts/comment_assistant.py:1 and 170 more
- 6 references to secretsin 6 files: social-post/references/service-architecture.md:45 social-post/scripts/comment_test_browser_contract_scan.py:121 social-post/scripts/comment_test_browser_contract_support.py:232 and 3 more
- No requests to vote in Hot
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
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
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
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
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
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
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
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
- Contacts www.facebook.com, which SKILL.md, the README and the plugin manifest do not mentionsocial-post/scripts/comment_chrome_facebook_surface.mjs:25High confidence
- Contacts www.instagram.com, which SKILL.md, the README and the plugin manifest do not mentionsocial-post/scripts/comment_chrome_live_surface_fixture_testonly.mjs:19High confidence
- Contacts www.facebook.com, which SKILL.md, the README and the plugin manifest do not mentionsocial-post/scripts/comment_cua_runtime.mjs:218High confidence
Signal confidence: 497 facts
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:174Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:175Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:176Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:177Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:183Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:184Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:185Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:186Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:276Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:277Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:278Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:339Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:340Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-adapter.md:341Low confidence
- Dangerous shell operation in prose of documentationsocial-post/references/chrome-comment-validation.md:65Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-validation.md:108Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-validation.md:109Low confidence
- Network access in code of documentationsocial-post/references/chrome-comment-validation.md:110Low confidence
- Network access in code of documentationsocial-post/references/comment-operations.md:122Low confidence
- Network access in code of documentationsocial-post/references/comment-operations.md:123Low confidence
- Network access in code of documentationsocial-post/references/comment-operations.md:124Low confidence
- Network access in code of documentationsocial-post/references/comment-operations.md:125Low confidence
- Access to secrets in prose of documentation: reads a credential storesocial-post/references/service-architecture.md:45Low confidence
- Network access in prose of documentationsocial-post/references/workbench.md:12Low confidence
- Instruction override signal in prose of documentationsocial-post/references/writing-governance.md:109Low confidence
- Instruction override signal in prose of documentationsocial-post/references/writing-governance.md:110Low confidence
- Instruction override signal in prose of documentationsocial-post/references/writing-governance.md:111Low confidence
- Network access in prose of documentationsocial-post/references/x.md:9Low confidence
- Network access in prose of documentationsocial-post/references/x.md:10Low confidence
- Network access in prose of documentationsocial-post/references/x.md:11Low confidence
- Network access in prose of documentationsocial-post/references/x.md:12Low confidence
- Network access in prose of documentationsocial-post/references/x.md:24Low confidence
- Executable script in code of a file that runssocial-post/scripts/build_rule_registry.py:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_adapter_fixtures/fixture-runtime.js:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_assistant.py:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_authorization.py:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_browser_action_contract.py:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_browser_cli.py:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_browser_common.py:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_browser_contract.py:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_browser_preflight_contract.py:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_browser_provenance.py:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_browser_result_contract.py:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_browser_scan_completion.py:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_browser_scan_contract.py:1High confidence
- Network access in code of a file that runssocial-post/scripts/comment_browser_scan_contract.py:56High confidence
- Network access in code of a file that runssocial-post/scripts/comment_browser_scan_contract.py:57High confidence
- Network access in code of a file that runssocial-post/scripts/comment_browser_scan_contract.py:58High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_browser_scan_evidence.py:1High confidence
- Executable script in code of a file that runssocial-post/scripts/comment_browser_scan_request.py:1High confidence
and 447 more
Only the first 500 facts are listed.
Works with
| Agent | Status | Evidence | Install to |
|---|---|---|---|
| Claude Code | Compatible | Standard SKILL.md chatgpt-socialpost/SKILL.md | .claude/skills/<skill-name>/ |
| Codex | Compatible | Standard SKILL.md chatgpt-socialpost/SKILL.md | .agents/skills/<skill-name>/ |
| Cursor | Compatible | Standard SKILL.md chatgpt-socialpost/SKILL.md | .cursor/skills/<skill-name>/ |
| Gemini CLI | Compatible | Standard SKILL.md chatgpt-socialpost/SKILL.md | .gemini/skills/<skill-name>/ |
| GitHub Copilot | Compatible | Standard SKILL.md chatgpt-socialpost/SKILL.md | .github/skills/<skill-name>/ |
| OpenCode | Compatible | Standard 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.