Repository navigation
w3bs://chovy.hacker opens chovy.hacker itself when Pit is on - #160
Merged
Merged
Conversation
With Pit on, Moshpit names resolve in this browser, so there is no reason to land on the pit.world gateway. While pitEnabled, session declarativeNetRequest rules send a search for w3bs://<name>, or the hop to w3bs.org/browse it redirects to, straight to https://<name>/; the tab watcher does the same for prefetched searches. Pit off is unchanged. Chromium cannot keep w3bs:// in the address bar: that needs a scheme handler in the engine itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
||
| /** https://chovy.hacker/path for w3bs://chovy.hacker/path (a dotted authority is a site); else null. */ | ||
| export function w3bsSiteUrl(input) { | ||
| const m = /^w3bs:\/\/([a-z0-9-]+(?:\.[a-z0-9-]+)+)(\/\S*)?$/i.exec(String(input ?? '').trim()); |
Contributor
ThreatCrush Security Scan49 finding(s) HIGH/CRITICAL: 2 | MEDIUM: 26 | LOW: 21
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.
With Moshpit (Pit) on, typing
w3bs://chovy.hackerlanded on the pit.world gateway (chovy.hacker.pit.world), but Moshpit names resolve in the browser, so it should openhttps://chovy.hacker/.While
pitEnabledis set, session declarativeNetRequest rules (PIT_DIRECT_RULES, kept in step with the toggle throughstorage.onChanged) send a search forw3bs://<name>, or the hop tow3bs.org/browsethat the search redirects to, straight tohttps://<name>/. The tab watcher does the same for searches served from prefetch. Resource URIs and paths still go through the resolver. Pit off is unchanged.Real Chromium with the extension loaded:
pit.world/search?q=w3bs%3A%2F%2Fchovy.hacker→https://chovy.hacker/pit.world/search…→w3bs.org/browse…→https://chovy.hacker.pit.world/vitest: 163 pass, with new tests that apply
PIT_DIRECT_RULESitself.Keeping
w3bs://in the address bar is not possible here: it needs a scheme handler in the Chromium engine itself.🤖 Generated with Claude Code