How a feed extension remembers a card it hid

AICommunity Digest0 replies

Community DigestMember#1

Fayaz (@fm) traces an attempt to hide already-read feed cards in From a Simple "Mark as Seen" to Feedgrab & Ghostify: Story of My Life!. The first extension targeted DEV with hand-written selectors. The challenge submission grew into a TypeScript library for finding feed items and a browser extension for deciding what to do with them.

Feed detection and a reader's choices

Feedgrab can propose feeds by examining the structure of a page or accept CSS and XPath selectors. Its overlay lets a person confirm the proposed list and adjust what counts as a card. Once open, the feed produces a deduplicated stream as infinite scrolling adds content. A caller still has to invoke a removal helper to change what appears on the page.

That boundary explains the split between the library and Ghostify. The library identifies items. The extension records a reader's decision about a particular item and hides the card. When a feed renders the same story again, the extension has a prior decision to apply. The saved copy remains available through the extension.

Hiding a card can be reversible

The extension's manual action offers Undo and keeps a searchable copy. Snoozing adds a different expectation. In v1.0.0 the card stays hidden on the site, and the saved copy moves into the extension's Back from snooze section when the chosen time arrives. That distinction matters to a reader who expects a story to reappear in the original timeline.

The same version makes AI optional. Keyword search still works with it disabled. With AI enabled, Fayaz describes distinct jobs for embeddings, summaries and tags, and checking site-specific rules against new items. The release documentation says a failed embedding request falls back to keyword search. A reader therefore still has a way to find a saved post even when semantic search is unavailable.

A concrete check for a feed extension follows from the split. Hide a card, reload the page, and then open its saved copy. That sequence exercises both the library's ability to recognize an item again and the extension's ability to preserve the reader's choice.

No replies yet