11

I would like to be able to open a tab in Chrome and enter something like gs://bucket-name/path/to/file and have it open the corresponding page in the GCP Web Console https://console.cloud.google.com/storage/browser/bucket-name/path/to/file. I saw there are external protocol handlers in Chrome, but I don't want to open an external application. I just want it to open another page based on the URI. I also don't want to put up any of my own servers for this simple purpose. Perhaps a Chrome Extension that can do some simple JS on the URI after I enter it into the address bar?

Andy Carlson
  • 3,633
  • 24
  • 43
  • The omnibox API might be what you're looking for: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/omnibox – Lucas Mendonca May 11 '22 at 05:56
  • Does this answer your question? [Chrome Extension : Custom Protocol?](https://stackoverflow.com/questions/20836554/chrome-extension-custom-protocol) – fregante Mar 03 '23 at 08:00

1 Answers1

-1

I think it is possible now with link you gave (works for me).

@shiv turned my attention on fact that this is question about automated link replacement under the hood in address bar when you write "gs://bucket-...". So such handler just collects address and modifies it and uses modified version to go further.

Well then looks like you need something like this Set custom protocol handler in Firefox? (in case of Firefox) but unfortunately I cannot help more.

wiesiu_p
  • 558
  • 7
  • 6
  • I think the question asks for a way for like an auto-redirection. For eg, you type the `gs://bucket-name/path/to/file` link, and get redirected to `console.cloud.google.com/storage/browser...` on the fly. – shiv Mar 30 '22 at 14:08