DM Hover Peek (X + Facebook/Messenger) By DomfoRat icon

DM Hover Peek (X + Facebook/Messenger) By DomfoRat

by leclercjweb

v1.0.2 Updated Jan 27, 2026 65.71KiB
CWS
4
Users
โ˜… 0.00
0 reviews
#146647
of 208.7K
communication
#2742 of 4.4K

Description

DM Hover Peek (X + Facebook/Messenger) ๐Ÿ’ฌ๐Ÿ‘€ โ€” hover previews for DMs DM Hover Peek adds a floating tooltip that follows your cursor and displays text from the conversation item youโ€™re hovering. Itโ€™s a โ€œpeekโ€ layer that helps you read whatโ€™s already on the page without opening the thread. โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” โœ… What this extension does (exactly what the code implements) โ€ขCreates a tooltip element in the page (id: dmpeek-tooltip) โ€ขCreates a small on-screen badge (id: dmpeek-badge) in the bottom-right (enabled in this build) โ€ขShows the tooltip on pointer hover over a matching conversation item / thread link โ€ขUpdates tooltip position on pointer move so it follows your cursor โ€ขHides the tooltip when the pointer leaves the active element โ€ขDisplays text extracted from the hovered element (ARIA attributes / visible text) โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ–ฅ๏ธ Tooltip UI details (from the injected CSS) โ€ขFixed position, very high z-index (2147483647) โ€ขMax width: 640px โ€ขMax height: 380px โ€ขScrollable when content exceeds the height (overflow:auto) โ€ขPadding: 10px 12px โ€ขRounded corners: 12px โ€ขBackground: rgba(15,15,15,.92) with blur (backdrop-filter: blur(10px)) โ€ขText: white, 12px system-ui, pre-wrapped (white-space: pre-wrap) โ€ขShadow: 0 12px 40px rgba(0,0,0,.35) โ€ขPointer-events: none (the tooltip itself will not capture clicks) โ€ขHidden by default (display:none) and toggled on hover โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐ŸŒ Supported websites (where the extension is allowed to run) โ€ขx.com โ€ขtwitter.com โ€ขwww.facebook.com โ€ขwww.messenger.com โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿฆ X (Twitter) behavior The X script runs ONLY if BOTH conditions are true: โ€ขHostname is x.com or twitter.com โ€ขPath starts with /messages or /i/chat How it detects what youโ€™re hovering: โ€ขIt walks up the DOM from the hovered target (up to 12 parents) to find a โ€œcandidateโ€ element โ€ขCandidate #1: data-testid starts with dm-conversation-item- โ€ขCandidate #2: aria-description contains โ€œ, @โ€ (comma + space + at-sign), matching the inbox pattern What text it shows (priority order): โ€ขaria-description (first choice) โ€ขaria-label (fallback) โ€ขinnerText (fallback) Message extraction on X (when aria-description is present): โ€ขThe code attempts to extract the โ€œMESSAGEโ€ part from a pattern like: Name, @handle, MESSAGE, timeโ€ฆ โ€ขIt searches for common โ€œtimeโ€ tokens to decide where the message ends, including: min, h, j, sem, mois, hier, aujourd'hui, now, today, yesterday โ€ขIf extraction succeeds, the tooltip shows the extracted MESSAGE โ€ขIf extraction fails, it shows the full aria-description (trimmed) Result: depending on what X exposes in aria-description / aria-label, the tooltip may show a clean message snippet or a longer accessibility string. โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ’™ Facebook / Messenger behavior The Facebook/Messenger script runs when: โ€ขHostname is www.facebook.com OR www.messenger.com Where it triggers: โ€ขIt looks for hovered links (a[role="link"]) that match message thread URL patterns โ€ขFacebook patterns include: /messages/e2ee/t/ /messages/t/ (and variations using href^= and href*=) โ€ขMessenger patterns include: /t/ (and variations using href^= and href*=) What text it shows (priority order): โ€ขVisible link text (innerText) โ€ขaria-label (fallback) โ€ขhref (fallback) Result: depending on what Facebook/Messenger renders inside the link, the tooltip may show a name, snippet, or other text available in the link. โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ”’ Privacy & โ€œdata safetyโ€ (only what the shipped files show) โ€ขNo analytics SDK is present in these scripts โ€ขNo chrome.storage usage is present (no chrome.storage / browser.storage calls) โ€ขNo network calls are present in the content scripts (no fetch/XHR/WebSocket usage) โ€ขNo background/service worker is included in the provided manifest โ€ขThe extensionโ€™s logic is limited to: reading text/attributes from hovered elements rendering a tooltip + badge inside the page Important clarification: โ€ขX/Facebook/Messenger themselves may load message previews dynamically โ€ขThis extension does not โ€œpullโ€ extra content from servers โ€ขIt only displays what it can read from elements already present in the page at the moment you hover โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ” Permissions (from manifest.json) This extension requests access only to these host patterns: โ€ขhttps://x.com/ * โ€ขhttps://twitter.com/ * โ€ขhttps://www.facebook.com/ * โ€ขhttps://www.messenger.com/ * It does not request access to all websites. โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿงญ How to use (what the code supports) โ€ขOpen your inbox on X (Messages) or Facebook/Messenger โ€ขMove your mouse over a conversation item (X) or a thread link (Facebook/Messenger) โ€ขA tooltip appears near your cursor and follows it while you stay hovered โ€ขMove away and it disappears โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” โš ๏ธ Limitations (directly implied by how the code works) โ€ขHover-based: it relies on pointer events (pointerover/pointermove/pointerout) โ€ขX-only on DM pages: it does not run on other x.com pages (by design) โ€ขFacebook/Messenger: it only triggers on links that match the message thread URL patterns โ€ขIf the site changes its DOM, aria strings, or URL patterns, the hover target may stop matching until the selectors are updated โ€ขThe tooltip can only show text that exists in the DOM/attributes at hover time (no hidden โ€œextraโ€ messages) โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿงฉ Transparency: identifiers created by the extension โ€ขTooltip element id: dmpeek-tooltip โ€ขBadge element id: dmpeek-badge โ€ขBadge text on X: โ€œDMpeek ON (X)โ€ โ€ขBadge text on Facebook/Messenger: โ€œDMpeek ON (FB)โ€ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” โ“ FAQ (kept strictly factual) Q: Does it send my messages to a server? A: The shipped content scripts contain no network calls and only render a tooltip in-page. Q: Does it store my messages? A: The shipped scripts contain no storage calls (no chrome.storage usage). Q: Does it run everywhere? A: No. The manifest limits it to x.com, twitter.com, facebook.com, and messenger.com. The X script also checks the path and exits unless you are on /messages or /i/chat. Q: Why might the tooltip show different text than expected? A: On X it prioritizes aria-description and may show the extracted message snippet or the full aria-description if extraction fails. On Facebook/Messenger it prioritizes the linkโ€™s innerText, then aria-label, then href. Q: Can it reveal content that isnโ€™t visible on the page? A: It reads from DOM text/ARIA attributes. If the platform doesnโ€™t provide preview text in those fields, there is nothing extra to display. โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿ“Œ Disclaimer โ€ขNot affiliated with X/Twitter or Meta/Facebook/Messenger. โ€ขThis extension does not click buttons, send messages, or automate actions. It only displays a hover tooltip based on page text/attributes.
DM Hover Peek (X + Facebook/Messenger) By DomfoRat screenshot 1

Reviews

Loading reviews...

Details

Version 1.0.2
Updated Jan 27, 2026
Size 65.71KiB
First Seen Mar 27, 2026

More by leclercjweb

Popular in communication

Popular Extensions