Skip to content

tel:/sms: links open smshub.dev/handle - #199

Merged
ralyodio merged 1 commit into
mainfrom
feat/tel-sms-smshub
Nov 30, 2026
Merged

ralyodio merged 1 commit into
mainfrom
feat/tel-sms-smshub

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Phone links did nothing on desktops with no OS dialer. New content script phone-links.js (all frames, document_start) forwards tel:/sms:/smsto:/callto: clicks to https://smshub.dev/handle?uri=… (profullstack/smshub#173): text from your smshub number, or hand the link to your phone. Middle/modifier click opens a new tab like w3bs-links.js.

Left alone: data-tron-native links and anything on smshub.dev (which gets data-tron-phone-links=smshub so it hides its registerProtocolHandler button).

Tests: phone-links.test.js (vm-loaded content script), 13/13 with w3bs.test.js.

🤖 Generated with Claude Code

Chromium hands phone links to the OS, which on most desktops has no
dialer, so a click did nothing. A content script (same click rules as
w3bs-links.js) now sends tel:, sms:, smsto: and callto: to
https://smshub.dev/handle?uri=..., which texts from the user's smshub
number or offers the phone. Links marked data-tron-native, and every
link on smshub.dev, are left alone; smshub.dev gets
data-tron-phone-links so it hides its register-handler button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
document: { documentElement: { dataset: {} }, addEventListener: (type) => listeners.push(type) },
};
ctx.globalThis = ctx;
vm.runInNewContext(SRC, ctx);
@github-actions

Copy link
Copy Markdown
Contributor

ThreatCrush Security Scan

1 finding(s) in the 3 file(s) this pull request changes.

LOW: 1

Severity Rule Location
LOW js-dynamic-code-execution apps/desktop/extensions/ai-sidebar/phone-links.test.js:15
54 pre-existing finding(s) elsewhere in the repository — **HIGH**: 2 | **MEDIUM**: 31 | **LOW**: 21

Not introduced by this pull request.

Severity Rule Location
HIGH py-ssrf-outbound-request apps/desktop/launcher/tron-tor-helper:309
HIGH py-ssrf-outbound-request apps/desktop/launcher/tron-tor-helper:443
MEDIUM gha-ssh-key-secret .github/workflows/deploy-dev2.yml:39
MEDIUM js-open-redirect apps/desktop/extensions/ai-sidebar/install-helper.js:156
MEDIUM js-unescaped-html-sink apps/desktop/extensions/ai-sidebar/media.js:34
MEDIUM js-unescaped-html-sink apps/desktop/extensions/ai-sidebar/media.js:57
MEDIUM js-unescaped-html-sink apps/desktop/extensions/ai-sidebar/newtab.js:247
MEDIUM js-unescaped-html-sink apps/desktop/extensions/ai-sidebar/newtab.js:276
MEDIUM js-unescaped-html-sink apps/desktop/extensions/ai-sidebar/newtab.js:346
MEDIUM js-unescaped-html-sink apps/desktop/extensions/ai-sidebar/options.js:311
MEDIUM js-unescaped-html-sink apps/desktop/extensions/ai-sidebar/sidepanel.js:81
MEDIUM js-unescaped-html-sink apps/desktop/extensions/ai-sidebar/sidepanel.js:169
MEDIUM redos-nested-quantifier apps/desktop/extensions/ai-sidebar/w3bs.js:17
MEDIUM insecure-randomness-for-secret apps/extensions/public/seal.js:107
MEDIUM js-unescaped-html-sink apps/extensions/public/store.js:77
MEDIUM js-unescaped-html-sink apps/extensions/public/store.js:286
MEDIUM js-unescaped-html-sink apps/extensions/public/store.js:652
MEDIUM js-unescaped-html-sink apps/web/public/app.js:29
MEDIUM js-unescaped-html-sink apps/web/public/dns.js:54
MEDIUM sh-remote-script-execution apps/web/public/install.sh:188

…and 34 more; the full set is in the SARIF artifact.

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit 309f138 into main Nov 30, 2026
10 checks passed
@ralyodio
ralyodio deleted the feat/tel-sms-smshub branch November 30, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants