Build a Test-Gated Manifest V3 Extension for Safe X Tab Automation
说明与用途
逐步指南,安全安装、测试、配置并观察 X Likes Automator 扩展,重点关注权限边界、测试覆盖率和暂停行为。
问题
Automating actions in a social timeline is easy to start and surprisingly hard to bound.
结果
The workflow demonstrates how to safely load, test, configure, and observe a Manifest V3 extension that automates likes on X, highlighting permission boundaries, test coverage, and pause behavior.
工作流
- Clone the exact stable tag v1.1.0
- Run npm test to verify 171 passing tests
- Load the unpacked extension in the browser
- Pin the extension and open an X home timeline tab
- Configure a conservative session: interval 60s, cap 5, disable repost
- Press Iniciar to start the session
- Observe pause when tab is hidden and resume when visible
- Verify popup counter matches visible page
- Press Parar to stop the session
- Inspect extension details and manifest permissions
证据
Automating actions in a social timeline is easy to start and surprisingly hard to bound.
Run the included checks: npm test
The repository deliberately has no bundling step. Loading the source directory makes the reviewed JavaScript, manifest, popup, icons, and tests visible.
The extension separates decisions from DOM operations. lib/policy.js is a pure decision engine that validates settings, classifies the current X surface, chooses the next eligible post, and decides whether to like, scroll, wait, pause, or stop.
The project also keeps an explicit refusal list. It does not click reply, quote, follow, direct message, login, or cookie controls.
- 记录日期: 2026-11-02T01:58:54.906Z