Discussions » Creation Requests

Instagram desktop: notifications don’t open posts anymore — script to restore “open post from notification”

§
Posted: 15-09-2025

TL;DR
On Instagram desktop, clicking notifications (replies, likes, mentions) no longer opens the original post.
Looking for a userscript that restores a working link/button from notifications → post.
Even a partial fix (e.g., for “X replied to your comment…”) would be hugely useful.

Why this matters
Desktop users currently can’t locate where replies/mentions happened without manual searching. This restores basic navigation parity without needing the mobile app.

Site: instagram.com
Category: Feature / Fix

Summary
Since ~July/Aug 2025, clicking notifications on Instagram desktop (e.g., “X replied to your comment” / “X liked your comment”) does nothing. There’s no way to jump from a notification to the originating post/comment. Requesting a userscript that restores a working link/button.

Current behavior
- Notifications panel shows items (replies, mentions, likes).
- Clicking any item does nothing (no navigation, can’t open in new tab).
- The DOM no longer includes a post link.
- This affects Firefox/Chrome/Edge (and extensions) equally.

Desired behavior
- Add a small button/link next to each notification row:
- If the backend payload includes a post ID/shortcode → “Open post” takes me to `/p//`.
- If the exact post can’t be resolved → optional fallback:
- “Hunt” that opens the relevant profile(s) and a few recent posts, or
- “Copy snippet” so I can Ctrl+F on the post, or
- “Copy permalink” if available in payload.

Nice-to-haves (any subset is fine)
- “Open post” for:
- replies to my comment,
- likes on my comment,
- mentions in comments.
- “Copy comment text” or “Copy notification text”.
- Small/neutral styling so it blends with IG UI.

Constraints / Notes
- Instagram’s GraphQL/activity responses sometimes include `media.shortcode` for an item; when present, that’s sufficient to build `/p//`.
- For some like/mention items, the payload may omit the shortcode → heuristics are OK (best-effort), but a clear fallback link/button is fine.
- SPA routing: please handle when the user opens/closes the notifications drawer without a full page reload.

Environment
- Affected on Firefox (Windows), also seen on Chrome/Edge. Same behavior across browsers.

Possible implementation (suggestion only)
- Intercept `fetch`/XHR for GraphQL/activity endpoints, parse JSON, collect `{actor.username, media.shortcode}` pairs into a cache.
- Map visible notification rows to cache entries (prefer @-mentioned username in the row; fallback to actor).
- Inject a small “Open post” button that navigates to `/p//` when resolvable.
- Provide a fallback button (“Copy snippet” / “Hunt profile”) when not resolvable.

Acceptance
At least one common notification type (“X replied to your comment…”) shows a working “Open post” link that lands on the correct `/p//` for me.

Post reply

Sign in to post a reply.

长期地址
遇到问题?请前往 GitHub 提 Issues。