longhaiqwe/oh-my-x
About
Adds missing features to X (Twitter) on the web: layout options, spam reply filter, data badges, writing tools, quick actions. 给 X 网页端补上常用但缺失的功能:页面布局、垃圾回复过滤、数据标注、创作辅助、快捷互动。
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
Original
oh-my-x
Adds the missing everyday features to X (Twitter) on the web.
Page layout, spam reply filtering, data badges, writing tools, and quick actions. Each one has its own on/off switch.
Download the latest release · Install · Features · Privacy policy · 中文
English and Simplified Chinese interface · Chrome / Edge (Manifest V3) · Settings and data stay on your device · AI features are optional and use your own service
[!NOTE] This README has no screenshots yet. If you use oh-my-x with the English interface, screenshots are welcome: save them in
docs/images/en/with the same file names as the Chinese ones indocs/images/, and open a pull request. README.md shows where each image goes.
Why
Several common tasks on X's web app take a detour, for example:
- Replies under posts and articles are mixed with emoji-stuffed promo and adult spam accounts;
- To reply under a long article, you scroll several screens to reach the reply box;
- To quote one of your older posts or articles, you open another tab to find the link;
- Your Following list does not show who doesn't follow you back, so you check profiles one by one.
oh-my-x is built on X Focus by @star_flow_ai, with features requested by the author and friends on X. Turn off anything you don't need in the settings.
Features at a glance
The settings popup has five feature tabs and one Settings tab. The names below match the popup:
| Module | Features |
|---|---|
| 01 Layout & Reading | Timeline width, hide the right sidebar and Post button, navigation buttons and labels, article outline, open search on Latest, search filter bar, Ask Grok, AI search operators |
| 02 Content Filter | Spam reply filter (9 rules + spam words), account exceptions, block log, keyword filter |
| 03 Insights | Original Content Rewards, account activity, audience insights, viral radar, ratio badges, follower counts, bookmark counts |
| 04 Create & Publish | Quote my posts, image grid and ordering, mention by name, save selection to drafts, AI quote drafts, schedule overview |
| 05 Engage & Lists | Keyboard shortcuts and bottom bar, jump to replies, like when replying, media download, non-follower marker, Favorites, X Lists |
| Settings | AI service configuration |
Install
Option 1: Download the release package (recommended, no development setup)
- Download
oh-my-x-chrome-mv3.zipfrom the Releases page - Unzip it to get the
chrome-mv3folder. Keep it in a fixed place and don't move it later - Open
chrome://extensions(Edge works the same way) and turn on Developer mode at the top right - Click Load unpacked and select the
chrome-mv3folder
Update: unzip the new version, overwrite the files in your existing chrome-mv3 folder, then click the reload button on the oh-my-x card in chrome://extensions.
[!WARNING] If you move the folder, or click Remove and load it again, Chrome treats it as a new extension and clears your settings, word lists, and block log.
Option 2: Build from source
Requires Node.js 24 (includes npm).
git clone https://github.com/longhaiqwe/oh-my-x.git
cd oh-my-x
npm install
npm run build
Then turn on Developer mode in chrome://extensions, click Load unpacked, and select oh-my-x/build/chrome-mv3/.
Option 3: Chrome Web Store
Features in detail
01 Layout & Reading
Timeline width
Set the width of the main timeline column between 600 and 800 pixels.
Hide right sidebar, hide Post button
Two switches; on means hidden. The right sidebar includes search, Who to follow, and Trends. With the Post button hidden, press N to post; search is still available from Explore on the left. On a small screen, hiding both gives the timeline more room.
Navigation buttons and labels
Hide any of these 10 buttons: Explore, Notifications, Chat, Grok, Premium, History, Articles, Profile, More, and X Money. Items that X moves into the More menu are hidden there too. Navigation labels can be shown never, on hover, or always.
Premium preserves X's native entry, whose label may vary by language, and removes duplicate entries added by the extension. The extension only attempts to add an entry when the native entry is absent and an icon is available from the page.
Two more buttons, Radar and Inspiration (the top posts list in Creator Studio), are not in X's navigation. The extension adds them; both are off by default. Radar requires Premium+. When on, they appear above Profile, and clicking them does not reload the page. In a short window the navigation grows by these two items, and you scroll the left column to reach the account button at the bottom.
Article outline
On long posts, article pages, and the article editor, builds an outline from level 1 and 2 headings in a side panel. Click a heading to jump to it. It recognizes Markdown headings (#, ##), Chinese numbering such as 「一、」 and 「第一章」, number prefixes such as "1." and "(1)", and paragraphs that are entirely bold.
Rewind
Enable recording under Layout → Reading → Rewind to save visible posts from Home’s For you and Following timelines. Recording is off by default. A post counts as seen when the visible height reaches half the post or 40% of the viewport, whichever is smaller. Ads, detail pages, profiles and filtered hidden posts are excluded.
- Open Rewind from X navigation, extension settings, or
Alt+Shift+R. On narrow screens, use the More menu. - Search post text, authors and quotes; filter images, videos, quotes and reposts. Posts are deduplicated and ordered by the first time they were seen.
- Open originals in a new tab without refreshing Home. Pausing keeps saved posts readable. Clearing removes only the current account’s history and image-text index.
- Optional local image-text recognition uses no AI service or API key. First use requests media/language-data permissions and downloads language data. Turning it off stops recognition and image-text search.
- Extension-local IndexedDB isolates accounts, with up to 3,000 posts and approximately 20 MB per account. The oldest records are removed when either limit is reached. Media URLs are saved, not offline media copies. X Pro is excluded from capture.
Search tolerates spaces next to CJK text (for example, AI 工具 matches AI工具), and the selected type filter survives page reloads. OCR includes post images, video posters and link thumbnails; it selects Chinese, English, Japanese or Korean data from the browser language and skips unavailable individual images.
Open search on Latest
X opens search on the Top tab, sorted by engagement, which mixes in posts from months ago. With this switch on, a new search (new search terms, or arriving from another page) opens on the Latest tab, sorted by post time. Hashtag pages work the same way. If you switch a search back to Top, that search stays on Top.
Search filter bar
Adds a row of filters below the tabs on search results and hashtag pages, so you don't need to remember search operators:
| Filter | Options | Operator written into the search |
|---|---|---|
| Time | Past 24 hours / 7 days / 30 days | within_time:24h / 7d / 30d |
| Likes | 10+ / 100+ / 1000+ likes | min_faves:10 and so on |
| Media | Images / Videos / Images or videos | filter:images / filter:videos / filter:media |
| Original posts only | On / off | -filter:replies |
| Articles only | On / off | url:"x.com/i/article" |
| People you follow | On / off | URL parameter pf=on |
Each choice rewrites the search and runs it again; you can see and keep editing it in the search box. Operators of the same kind that you type yourself (such as min_faves:500) show in the matching dropdown. The filter bar is not shown on the People and Lists tabs.
There is no language filter: X marks article posts as having no language, so lang:zh also drops Chinese articles. You can still add lang: in the search box yourself; the filter bar keeps it as is.
Ask Grok
After you type in the search box, the dropdown shows Ask Grok below Search for "…". Click it to open Grok with that text filled in. X asks for confirmation, and Grok gets the question only after you click Send.
Sub-setting Enter asks Grok (off by default): pressing Enter in the search box opens Grok instead of searching. To search, click Search for "…" in the dropdown. If you pick a dropdown item with the arrow keys, Enter works as X normally does.
AI search operators
The dropdown also has Turn into search operators with AI. It uses the model you set up in Settings → AI service to turn plain words into X search operators, then searches with X. The example given to the model: on 2026-10-23, "上周关于 Claude、点赞过千的中文帖" (Chinese posts about Claude from last week with over 1,000 likes) becomes Claude lang:zh min_faves:1000 since:2026-10-16. Actual results depend on your model. Results are X's own post list, so you can switch to Latest, like, and reply.
Set up the AI service first. If it is not set up or not authorized, the item shows the error and Open AI service settings. When you click the item, the text in the search box is sent to your AI service.
02 Content Filter
Spam reply filter
Scores replies on post pages by rules. Replies that reach the hide threshold (55 by default, adjustable from 20 to 150) are hidden. Only replies in post conversations are scored; Home and other timelines are not.
9 detection rules, each with its own switch:
| Rule | What it checks | Default score |
|---|---|---|
| Promo display name | The display name contains a word from the spam word list | +40 |
| Emoji ratio | Emoji make up more than half of the reply | +20 |
| Too short | Under 2 words (under 8 characters for Chinese, Japanese, and Korean) | +10 |
| Random username | The username looks like a random mix of letters and digits (up to +25 when the pattern is strong) | +10 |
| Spam words | The reply contains words from the spam word list (adds up for several words, up to 65) | +35 |
| Emoji only | Nothing is left after removing emoji | +40 |
| Decorated display name | The display name contains 2 or more emoji | +15 |
| Repeated characters | The same character repeats 4 or more times in a row | +20 |
| Mention referral | The reply points to another account with a prefix such as "visit @", "go to @", or "👉@", or ends with an @mention followed by a few random characters or emoji | +20 |
- Spam words: +35 for the first matched word and +15 for each additional different word, up to 65. Managed separately from muted words. New installs with an English interface start with an English list (phrases such as "check my bio", "dm me", "onlyfans"); Add default words and Reset to default use the current interface language.
- Word picker: the word picker button next to More at the top right of a reply lets you pick words from the display name and reply text and add them to the list.
- Debug mode: shows the score and matched rules under each reply, to help tune the threshold and word list.
Account exceptions
Set an allowlist and a blocklist by @handle. Replies from allowlisted authors are never hidden; all replies from blocklisted authors are hidden. The list button next to More at the top right of a reply adds the author to a list directly.
Block log
Keeps the latest 50 hidden replies on your device, with the matched rules and score, and counts each day's blocks by category. The Filter tab shows today's total and the latest few records; click All records for details.
AI reply check progress
Reply checks support streaming: each complete score updates its reply as soon as it arrives, without waiting for the whole batch. The header shows a loading indicator and “AI checking · 3/20”: completed replies on this page / completed plus pending replies. The total can change as more replies enter the queue.
Completed scores are cached individually and remain available after a timeout or disconnection. Retrying checks only unfinished replies. Batches still contain up to 20 replies so the model can compare them. The first data must arrive within 25 seconds; subsequent inactivity is limited to 15 seconds, with a 90-second overall deadline. Incremental display requires OpenAI-compatible streaming support. Services that ignore the streaming parameter and return ordinary JSON still display results as a batch.
When an AI reply check fails
The post header distinguishes timeouts, excessive input length, rate limits, authentication failures, network failures, and expired extension connections. Click the error to see an explanation, recovery guidance, and the original diagnostic, with an action to retry, open AI settings, or refresh the page.
Extension context invalidated means an old page has lost its connection to the extension, commonly after an update or reload. Refresh the current X page to reconnect. It is not an AI context length error. AI requests track first-data, inactivity, and overall deadlines separately; excessive input length is reported only when the service explicitly identifies a context limit.
Keyword filter
Posts in your timeline that contain muted words can be collapsed into a one-line notice (click to expand, and collapse again), or hidden. New installs with an English interface start with "hot take", "unpopular opinion", "controversial take", and "spicy take".
03 Insights
Original Content Rewards
Shows progress toward the creator rewards program in the popup using Verified Home Timeline impressions over the last 90 days and the 500K target. Once active, the card shows total paid, the next payout date reported by X, and recent payout changes. The history dashboard opens to payouts and offers a separate impression history view.
Payout changes are stored locally per X account. The first observed total is the baseline. Subsequent records show the difference between observed totals and when the extension recorded it. A change may cover multiple payouts.
The progress card shows daily impressions, verified impressions from X Analytics, and Counted toward rewards. Click a bar in the 7-day chart to select a date. The verified-impression tooltip shows its share of all impressions. The Counted tooltip shows its share of all impressions and of verified impressions. Net progress is the difference between consecutive rolling 90-day totals recorded after 02:30 UTC. It includes expired impressions and platform corrections, so it is not new qualifying impressions.
Open View history dashboard to browse calendar weeks, calendar months, the last 90 days, or custom dates. The default view shows the current Monday–Sunday week. Today and future dates keep their cells with blank values; totals only cover completed statistical days. Periods of up to 31 days use a calendar with a date and the selected daily metric in each cell; unfinished dates are disabled. The 90-day chart supports daily and weekly grouping. Complete periods can be compared with the previous complete period. Missing dates remain missing. Incomplete totals sum recorded days only and display their coverage. Reward totals take visual priority over impression totals. Calendar bar lengths and high-value fills show relative daily amounts, with peak days marked. The compact dashboard keeps daily records and data notes collapsed. Use Export image in the header to add an optional signature and save the current calendar or chart as a local PNG. Nothing is published.
The analytics cache retains 120 daily records. Opening or refreshing the dashboard requests 90 days of history; coverage depends on what X returns. Reward history only includes locally recorded snapshots and cannot be reconstructed from the current total. Reporting days follow UTC (08:00 to 08:00 the next day in Beijing time).
The screenshot below shows the earlier card; the history dashboard entry now appears at the bottom.
Account activity
Open a profile page, then click Scan last 7 days under Insights → Account activity in the extension popup to count that account's posts and replies for each of the last 7 days, to see whether it mostly posts or mostly replies. X limits how often its API can be called; scanning too often in a short time shows a message to try again later.
Audience insights
Enable Insights → Dashboards → Audience insights (off by default). An entry appears below the native tabs on Followers, Verified followers and Following pages.
- Background sync: when enabled, the extension syncs the signed-in account’s followers, verified followers and following while Chrome is running and the X session is active. Each list keeps its own progress and reads about one page per minute. Another pass starts 24 hours after completion. Open Local records and settings to view the accumulated sample. For your followers, the extension checks missing follower counts in batches of up to 50 saved accounts. The distribution updates as counts arrive. Unavailable counts are shown as unknown.
- Follower composition: six exclusive follower-count bins, three overlapping cumulative thresholds, account search and pagination. Percentages use entries with known follower counts and do not describe the entire audience.
- Following analysis: follower-count and follower/following-ratio sorting; filters for 10K+ followers, accounts under 90 days old, and fewer than 100 followers. Follows me / Does not follow me / Unknown filters are available only for your own following list and use explicit relationship fields.
- Local records: separated by signed-in account, target account and list kind. Settings can view, export or confirm deletion even when capture is disabled and no X tab is open. CSV exports include all filtered results, not just the current page.
Limits: 3 targets per signed-in account, 20K ordinary or verified followers, or 10K following per list, and 100K entries or about 30 MiB of record content globally. At capacity, previously saved records are kept. For other accounts, records are collected when the matching X tab loads. For older Followers or Following records, start a new record to continue collecting. If sign-in identity cannot be confirmed, entries remain only in current-page memory and are cleared on navigation.
Viral radar
Sorts posts into normal, rising, and viral by views per hour (views ÷ hours since posting; the default cutoffs are 1,000 and 10,000 views per hour), adds a badge in the timeline, and can highlight posts with a border, background, or both.
Ratio badges
Under posts on profile pages, adds a badge to views, replies, reposts, and likes showing each number relative to the author's follower count, rated Poor, Fair, Good, Great, or Top.
Follower counts
Shows follower counts next to post authors and in user lists such as Following, Followers, and search (for example "125K followers"). Hover to see the exact follower and following counts. Choose All (default; post authors and user lists), Lists only, or Off.
Bookmark counts
Shows the bookmark count next to a post's Bookmark button. Turn it off under Insights → Page badges; numbers already shown are removed right away.
04 Create & Publish
Voice replies
Click the microphone in the media toolbar of an inline reply or reply dialog. Record up to 30 seconds and listen to the preview. Choose “Add to reply” to hand the recording to X as a video attachment with a still image, then use X’s Reply button to publish. Anyone who can view the reply can listen with X’s player.
Quote my posts
Adds a button to the post, quote, and reply editors. Search your own posts and articles and click a result to insert its link into the draft, without opening another tab.
XChat also has a quote-my-posts icon beside the message input. Press / in an empty message to open the same picker. Selecting a post inserts its link at the cursor while keeping the surrounding text; send it using the chat's usual controls. Press Esc to close the picker.
- Post text, article titles, dates, and links are stored per account in the extension's local IndexedDB (a database built into the browser).
- When you open X while signed in, older posts sync in batches (up to 20 pages per batch, 2.5 seconds between pages; progress is saved, so closing the page resumes next time), then new posts are checked about every 30 minutes. Tabs share one sync lock, and sync can be paused and resumed.
- Turn off Sync while X is open under Create → Quote my posts. Cached posts stay searchable, and you can still sync manually.
- X's API does not always return the full history; the local copy may keep deleted posts or earlier versions of edited posts. It never posts anything automatically.
Lists in posts
Select text in a post, quote, or reply editor to use bullet and numbered lists alongside X’s native bold and italic buttons. The bottom toolbar has the same controls. Applying a list preserves the selection and restores the native toolbar; click again to remove it without selecting the text again. Applied lists show a selected button state.
- Bullets use
•and numbered lists use1.,2.text prefixes. Actual line breaks define items; visual wrapping does not. Blank lines and indentation are preserved. With no text selected, these controls handle the current line. - Bullet and numbered lists can be converted into each other. Clicking removes a list when all selected lines have it; mixed selections have the list filled in.
- Only list prefixes are changed. Existing bold, italic, and links are preserved.
Block quotes, underline, and strikethrough controls are not provided for ordinary posts: character-based approximations cannot guarantee consistent fonts and lines, and local styling is not saved with the post.
Image grid and ordering
Reorder 2 to 20 attached images; X still determines how many images your account can upload. Up to 4 images keep the two-column layout. Larger sets start in Overview and can switch to a two-column Large view. Images remain uncropped and numbered in posting order. Drag an image to its new position and release to update the order in X’s editor without uploading again.
Overview uses 5 columns, or 4 on narrow screens. In Large view, hold near the top or bottom edge to scroll while dragging.
Select an image number to move it directly to the start or end. Both views share the same order.
A single click on an image opens X's Edit media as before. Press Esc while dragging to cancel.
It changes the image order that X's editor keeps; post requests are not intercepted or modified. If X's data can't be read, X's layout is kept, and a failed drag shows a message.
With a video or GIF, X's layout is kept. Turn it off under Create → Image grid and ordering.
Mention by name
X's editor only treats English letters, digits, and underscores after @ as a mention, so typing a Chinese name after @ lists no accounts. With this feature on, in the post, quote, and reply editors, type a non-English name after @, such as a Chinese or Japanese name, and accounts with matching names are listed below the cursor, with accounts you follow first. Choose one with the arrow keys or the mouse, then press Enter or Tab, or click: "@name" is replaced with "@username ", which X treats as a mention.
- It uses the user search that X's own editor uses, so the typed name is sent to X. X already lists English names itself; this feature leaves them to X.
- Only display names on X are matched. Simplified and Traditional Chinese are searched separately: a name written in Traditional characters is not found by a Simplified search, and an English name is not found by searching a Chinese translation of it.
- With an input method such as pinyin, the search runs after you pick the characters. Esc closes the list and keeps the post editor open. Turn it off under Create → Mention by name.
Save selection to drafts
Select text on any web page, right-click, and choose "Save to X drafts". The selected text is saved to your X drafts, followed by a blank line and the page link. When it is saved, a ✓ shows on the extension icon for 3 seconds. Find it later under Drafts at the top right of X's post editor.
- It uses the X account signed in to this browser and the request X's website uses to save drafts. No X tab needs to be open.
- If saving fails (not signed in to X, or the request changed), an X post page opens next to the current tab with the text filled in. Close the editor and choose Save to keep it in your drafts.
- Only http and https page links are added, and not when the selected text already contains the link.
- The selected text on the current page is read once, when you click the menu item. Turn it off under Create → Save selection to drafts; the menu item is removed.
AI quote drafts
In post, quote, and reply editors, click the AI draft button. It appears to the right of Everyone, or above the input in reply dialogs and inline reply boxes without an audience selector. The extension reads the original post and uses your model to write two drafts. Inline replies use the post on the current detail page as their source. Pick one to put in the editor, then edit it yourself. Drafts are written in the interface language: English with the English interface, Chinese with the Chinese interface.
- Works with OpenAI-compatible APIs. Under Settings → AI service, enter the base URL, API key, and default model, then click Authorize and test connection. The extension asks for access to that service address only; if you decline, no request is sent. Quote drafts and reply checks share this service, with independent model overrides; leave an override empty to follow the default. Existing connection settings migrate automatically.
- Defaults to Summary - detailed and Summary - short. Follow-up - detailed and Follow-up - short are also available. Both detailed types retain the original prompts and default style with no added length limits; short-form requirements apply only to short options. The user message starts with an explicit summary and draft-writing task description so intent routers can distinguish it from sentence-by-sentence translation. Short summaries extract one main conclusion or concrete fact in 1–2 conversational sentences, aiming for 30 words or fewer, with optional light wit. Length and relevance are prompt instructions; review before posting.
- Under Model and style → Manage styles, add, copy, edit, or delete custom styles. Each has its own name, reference type, writing requirements, and samples. Click Save style after editing. Separate samples with a line containing only
---; up to 5 are used for expression, not copied facts or experiences. Explicit custom tone, structure, and length requirements override the reference type defaults. - Each draft can use any built-in or custom style. Selections save automatically for future generations. Deleting a selected custom style restores the corresponding draft default. Built-in styles remain available and can be copied to customize. The former Short reply selection maps to Summary - short.
- Previous descriptions and samples remain under Shared preferences for built-in styles and apply only to built-in options. Custom styles use their own requirements and samples. Extra instructions still apply to both drafts in a generation.
- Generating sends the original post, author info, article title, writing style, and extra instructions to your service; the connection test sends only a short test message. Summary generation waits for the complete result without an extension-imposed deadline. Canceling or closing the panel stops the request, but the provider may already have processed and billed it. The browser's background lifecycle, network, or provider can still interrupt the request. Connection tests and original-post retrieval retain a 25-second timeout. Remote services must use HTTPS; HTTP works only for localhost and 127.0.0.1 on this computer (for example a local proxy or Ollama).
Schedule overview
In the schedule dialog and drafts, lists every scheduled post with its time, how long until it goes out, and the gap to the previous one. Gaps are colored by under 2 hours, 2 to 8 hours, 8 to 24 hours, and over 24 hours; gaps under 2 hours are flagged as too close.
There is also a schedule panel below the search box in the right sidebar. It lists upcoming scheduled posts by day, with each post's time and opening text, the gap between neighboring posts, and gaps across days on the date line. The refresh button reads the schedule from X again without opening drafts; it also reloads after you create, edit, or delete a scheduled post. The panel can be collapsed, or turned off under Create → Schedule overview → Sidebar panel.
05 Engage & Lists
Notification cards
When card mode is selected, entering Notifications shows a loading placeholder before the cards, instead of briefly showing the original list while local state loads. You can switch to the original list during loading. If state loading fails or exceeds three seconds, the original list is restored.
The Notifications page keeps X's All / Priority / Mentions tabs and adds User cards / Original list. The view mode is saved locally, restored directly after reloads, navigation, or re-enabling the feature, and synchronized across open X tabs. The two filter preferences are retained independently. Expand a user card to see loaded replies, mentions, likes, reposts, and follows. Typography, theme, and accent color follow X. Turn it off under Engage → Notification cards.
Cards with replies or mentions use an accent edge, an icon, and a bold type label. They preview the latest unviewed reply, or the latest reply when all have been viewed. Likes, reposts, and follows use neutral styling. Cards keep recent-activity order, with no oversized first card and a single column on narrow screens. Badges count unviewed notifications within the current type filter and always use the theme accent color. Type labels show no counts. A new like does not mark an old reply as new.
- User cards provide independent Replies only and Unviewed only checkboxes. Both filters are unchecked on first use and restore the last selection afterward. Checking Replies only shows only replies and mentions, including card details and badges; clearing it restores all types. With both checked, only users with unviewed replies or mentions appear: a new like does not surface an old reply. Opening a card shows only the selected types but marks all interactions loaded for that user at click time viewed, including hidden likes, reposts, and follows. Switching filters does not restore their badges; other users and notifications arriving after the click are unaffected. Each filter is saved separately in browser local storage, restored after reloads, navigation, account changes, and notification category changes, and synchronized across open X tabs. Filters are hidden in Original list.
- Only notifications already loaded in the current tab are grouped, with up to 500 entries held in page memory. Switching accounts or notification categories clears this batch. To load older records, switch to the original list, scroll, then return to cards.
- Badges track local unviewed notifications, not X's official unread count. First use establishes a time baseline without marking historical records new. Opening a card marks all interactions loaded for that user at click time viewed, regardless of the type filter; grouped notices keep separate viewing records for each user.
- While this feature is enabled, opening a notification in Original list also saves its viewed state. Its card badge updates when switching views or returning from the post. Opening a grouped notice marks all identifiable participants in that notice viewed, regardless of card filters; opening a new-post alert also hides it from cards. Clicking an avatar, profile link, or action button such as Like does not mark the whole notice viewed. Clicks that older versions did not record cannot be recovered; reopen those notifications or use Mark all as read.
- Likes and reposts store viewing state per user, target post, and interaction type. Added participants, updated group timestamps, and revised summaries do not mark previously viewed participants as unviewed again. Matching prefers the post URL, then its text excerpt; timestamps remain the fallback when both are absent. Different posts with identical excerpts cannot be reliably distinguished. Legacy receipts migrate when their original notification still matches; changed, unmatched legacy records need to be viewed once again. Concurrent responses and cross-tab updates merge read receipts instead of replacing newer state.
- A grouped notice counts as one notification. Only identifiable users and available summaries are shown; missing posts or participants are not inferred. Mark all as read beside Recent activity applies to loaded activity in the current filter, excluding new-post alerts and notifications arriving during the operation. With Replies only selected, it marks replies and mentions only. Entering notifications or returning to its browser tab activates the current native notification tab to refresh; cards update as X supplies the native results. Only the latest alert from accounts with post notifications enabled is cached, and it is displayed only while unviewed. Opening it hides it and saves its timestamp per account. Returning, disabling Unviewed only, or loading older notifications cannot restore it; only a newer unviewed alert appears again. It appears above Recent activity with time and viewing status beside the heading and up to seven avatars on one line below, followed by +N for additional identified users. The summary is vertically centered beside the avatars (below them on narrow screens), with the action on its own row, without a fixed count, separately from user activity. Clicking the alert directly activates the native notification and opens its posts timeline without switching view modes. Avatars in alerts, user cards, and details open profiles independently and reuse X’s profile hover cards while the native source remains loaded. Recycled alerts prompt a refresh and remain unviewed; profile links still work. Viewed alerts stay hidden independently of Unviewed only; system notices remain under Other notifications.
- Baselines and per-user viewing receipts are stored by signed-in account in
browser.storage.local, for up to 20 accounts and 2000 receipts per account. Notification text and avatar URLs remain in page memory. This feature makes no additional notification API requests.
Keyboard shortcuts and bottom bar
On a post page, use number keys: 1 reply, 2 quote, 3 like, 4 bookmark. A bar with these four buttons also appears at the bottom of the page and can be turned off separately.
Jump to replies
Shows a button at the bottom right of articles and long posts. Click it to jump to the replies and reply box; once there, it changes to Back to post, and another click returns to the text. If it covers content, drag it somewhere else; the position is remembered.
Like when replying
After you reply to someone's post, likes that post. It waits a random 0.3 to 0.7 seconds first, and skips posts you already liked and your own posts.
Media download
Adds image downloads, MP4 downloads, and Export GIF to a post's share menu, using X's menu style and language. Download GIF (MP4) saves an MP4 file. To get a .gif file, choose Export GIF; conversion runs in a new extension tab where you can preview the result, select Copy GIF for X and paste into an X composer, or select Save GIF. If X already provides Download video for your own video, no duplicate MP4 option is added.
- Conversion runs on your device without uploading media. It supports GIF posts and short videos, using the first GIF or, if none exists, the first video.
- Output uses 10 frames per second, up to 480 pixels on the longest edge and 256 colors, looping without audio. Small images are not enlarged.
- Sources are limited to 60 seconds and 50 MiB; output is limited to 64 MiB. Oversized media shows an error suggesting MP4 download instead of truncating it.
- Keep the export tab open while converting. You can cancel or retry.
- Copy supports GIFs up to 15 MiB. Pasting into X requires oh-my-x to be enabled. The extension only handles GIFs copied by this feature, restores the full animation as a file attachment, and never publishes automatically. No clipboard-read permission is requested; compatibility with other applications is not guaranteed.
Non-follower marker
On Following pages, marks accounts whose Following button is present but whose Follows you indicator is absent. This older feature uses rendered page indicators and does not verify who owns the list. Use Following analysis for explicit relationship data.
Favorites
- Adds Favorites above Home in the left navigation. Search saved bloggers by name or username, then click a name to open their profile.
- Click Save beside the display name on a profile or hover card to save it; click Saved again to remove it.
- Drag the handle beside a blogger to reorder favorites; changes are saved automatically. You can also focus the handle and use the up/down arrow keys. Reordering search results keeps all other saved bloggers.
- Search by display name in the panel using the same X user lookup as Mention by Name. Results show avatars, names, and usernames; click a result or select it with the arrow keys and press Enter to save. Direct entry of an
@usernameor X / Twitter profile link still works; usernames entered without @ also offer an explicit Save by username option. Use the remove button beside a blogger to remove them. - Favorites stay in this browser, separate from X follows and Lists. Turning off Engage → Favorites keeps saved bloggers.
X Lists
- Adds a My Lists entry to the left navigation that opens all your Lists. Put it Above Home or In Lists; the change applies right away.
- Profiles and profile hover cards show "+ List" and Save beside the display name, with matching compact, softly filled text buttons that size to their labels and close the gap when either feature is disabled. Buttons, navigation entries, and List panels use the font of X’s native text. The Lists and saved-blogger navigation panels have no separate close button; click outside, click the entry again, or press Esc to close. Click + List to choose a List. The Chinese UI labels this button “加列表”.
- Sync your account's existing Lists in the settings, or add one by link or ID.
Settings popup and full settings page
Click the oh-my-x icon in the browser toolbar to open the settings popup (400 pixels wide). It has 6 tabs (modules are defined in shared/feature-registry.ts):
| Tab (module) | Features |
|---|---|
| Layout (Layout & Reading) | Timeline width, right sidebar, Post button, navigation buttons and labels, article outline, open search on Latest, search filter bar, Ask Grok, AI search operators |
| Filter (Content Filter) | Spam reply filter (blocked today, hide threshold, debug mode, 9 detection rules, spam words), keyword filter and muted words, account exceptions (allowlist / blocklist), block log |
| Insights (Insights) | Dashboards: Original Content Rewards, account activity, audience insights; page badges: viral radar, ratio badges, follower counts, bookmark counts |
| Create (Create & Publish) | Quote my posts, image grid and ordering, mention by name, save selection to drafts, AI quote drafts, schedule overview |
| Engage (Engage & Lists) | Keyboard shortcuts and bottom bar, jump to replies, like when replying, media download, non-follower marker, Favorites, X Lists |
| Settings | AI service configuration |
The Filter tab has two levels: the first shows each feature's switch and status; click Settings, Manage muted words, Manage lists, or All records at the bottom right of a card to open the second level, and use the back button at the top left to return.
Language: the globe button at the top of the popup (at the top of the sidebar on the full settings page) switches between Browser default, 中文, and English. Browser default uses Chinese when the browser language starts with zh and English otherwise. Extension UI already shown on an open X page switches language after you reload that page.
Full settings page: the Full settings button at the top right of the popup opens the settings in a new tab, at the module the popup was showing. You can also open it from Extension options in the extension's details at chrome://extensions. It has the same content as the popup and shares the same settings, with more room for word lists, account lists, and AI service settings. #layout, #filter, #insight, #create, #engage, and #settings at the end of the address open the six modules.
Privacy
- Stored locally: settings, word lists, the block log, and your AI API key are stored in
browser.storage.local; the post library is stored in the extension's local IndexedDB. The extension does not encrypt the API key; masking in the settings only hides it on screen. - Requests to X: post sync, Lists, user metrics, creator rewards, and interaction helpers use your existing signed-in session to talk to X. The developer does not receive this data and collects no telemetry.
- Optional AI requests: generation, connection tests, AI search, and reply checks within the scope you enable send the relevant content only to a service address you authorized; that provider's data and billing terms apply. AI requests carry no browser cookies.
- Permissions:
storage,cookies,alarms,downloads,scripting,contextMenus,activeTab(these two support Save selection to drafts: after you click the menu item, the selected text on the current page is read once), andoffscreen(to run local image text recognition in an offscreen document); default host access is limited to X domains,abs.twimg.com, andvideo.twimg.com(to load media for GIF export). Your AI host is granted on demand through optional permissions. Image text recognition separately requests image and language-data hosts when enabled. These grants can be managed in Chrome's extension settings. - Where scripts run: page scripts are injected only on
twitter.com,mobile.twitter.com,x.com, andpro.x.com.
See the privacy policy.
Feedback
- Report problems or request features with an Issue or a pull request. You are also welcome to modify the source yourself.
- Screenshots of the English interface for this README are welcome; see the note at the top.
- X user group (Chinese-speaking): join here. English feedback is easiest through GitHub Issues.
- Author: @longhaiqwe123
Thanks
- X Focus by @star_flow_ai: oh-my-x is built on it.
- Friends on X who suggested features.
Development
npm install
npm run dev # development mode (HMR)
npm run build # production build
npm test # unit, DOM, and integration tests
npm run typecheck # type-check TypeScript and Vue scripts and templates
npm run check # type check + all tests + production build
npm run zip # build + ZIP package
npm run clean # remove build output
GitHub Actions runs npm ci and npm run check on push, pull request, and manual runs, and keeps the Chrome extension build for 7 days.
Releasing: change version in package.json and commit, then push a tag with the same version (for example git tag v2.0.0 && git push origin v2.0.0). release.yml checks that the tag matches the version, runs npm run check, and publishes oh-my-x-chrome-mv3.zip to the Releases page. CI uses Node.js 24; locally, use Node.js 24.15 or a later 24.x.
Chrome Web Store submission: use the signed-in native Chrome window by default. Follow the submission workflow (Chinese), and compare against the version actually published in the store. A GitHub release does not establish store publication.
Interface text lives in shared/i18n/zh-CN.ts and shared/i18n/en.ts; see the "界面语言" section of AGENT.md for the rules.
Tech stack
| Area | Choice |
|---|---|
| Extension framework | WXT + Vite |
| UI | Vue 3 + reka-ui |
| Styles | Tailwind CSS 4 |
| Types | TypeScript |
| Tests | Vitest + jsdom |
Project structure
oh-my-x/
├── entrypoints/
│ ├── content.ts # Content script injected into x.com (isolated world)
│ ├── interceptor.content.ts # MAIN world data interceptor (scheduled posts API)
│ ├── background.ts # Service worker (default word list sync, post library, Lists and media requests, creator rewards, AI requests)
│ ├── popup/ # Settings popup (Vue 3 SPA, 5 module tabs)
│ └── options/ # Full settings page (opens in a new tab, reuses the popup's module pages)
├── content-scripts/ # DOM work and feature implementations
│ ├── features/ # Page features (viral radar, article outline, Lists, quick actions, AI drafts, and more)
│ ├── spam/ # Spam reply scanning and rule checks
│ ├── options/ # Per-feature options (timeline, navigation, editor, ratio badges, and more)
│ └── utilities/ # Helpers and storage wrapper
├── shared/ # Logic shared across contexts (feature list, rule engine, AI prompts, i18n, data types)
├── docs/images/ # README images
├── test/ # Vitest suites (unit, integration, and sample tests)
└── storage-keys.ts # All storage keys + defaults
License
MIT
Explore related projects
Loading…