Repository navigation
tel:/sms: links open smshub.dev/handle - #199
Merged
Merged
Conversation
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); |
Contributor
ThreatCrush Security Scan1 finding(s) in the 3 file(s) this pull request changes. LOW: 1
54 pre-existing finding(s) elsewhere in the repository — **HIGH**: 2 | **MEDIUM**: 31 | **LOW**: 21Not introduced by this pull request.
…and 34 more; the full set is in the SARIF artifact. Snippets are redacted; ThreatCrush never prints matched credential material. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phone links did nothing on desktops with no OS dialer. New content script
phone-links.js(all frames, document_start) forwardstel:/sms:/smsto:/callto:clicks tohttps://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 likew3bs-links.js.Left alone:
data-tron-nativelinks and anything on smshub.dev (which getsdata-tron-phone-links=smshubso it hides its registerProtocolHandler button).Tests:
phone-links.test.js(vm-loaded content script), 13/13 with w3bs.test.js.🤖 Generated with Claude Code