So I'm trying to make a web app that basically serves as a URL shortener, where I can use a custom protocol with navigator.registerProtocolHandler (I know that this isn't a very good idea for various reasons, but I just want to try messing around with it). For example, web+yt: redirects me to YouTube, and web+yt:htb redirects me to HowToBasic's channel. This works so far, but the question is if there's a way to query which protocol handlers have been registered? There's also the navigator.unregisterProtocolHandler function to unregister them, but I cannot find anything about a listing function. I could store it into a cookie or localStorage, but if I clear the website data I'd have to guess which ones are registered, which isn't a really good solution. Do you guys know any solutions? Thanks
Is there a way to get all registered protocol handlers in JS?
349 Views Asked by lxhom At
0
There are 0 best solutions below
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in BROWSER
- (in promise) TypeError: NetworkError when attempting to fetch resource
- How could i add a bookmark and tabs function in PySide6?
- Difficulty Accessing HTTP URLs/IP Addresses Due to Browser Redirecting to HTTPS: Seeking Solutions
- Can be their an extension to save pages in as offline in the browser itself?
- Connecting puppeteer to an existing Brave Browser instance using
- How can I modify javascript native fetch function from an extension?
- Update your browser to use...in android webview application
- Why does throwing an error in any browser developer console not get caught by window.addEventListener('error')?
- The javascript and css files cached by chrome do not belong to the same version
- Unlike chrome Unable to create multiple instance of sidepanel while creating extension for edge browser
- Cannot import a class from a WebPacked javascript file
- How do I keep the same time input style in both firefox and chrome
- Use GUI application on Github Codespace
- get cpu / gpu capabilities from client in react / typescript?
- How to close a browser context after multiple test is written in same file
Related Questions in PROTOCOLS
- Python Client-Server Communication with Protocol
- Protocol 43200 after unpacking received data
- Creating a Public Typealias to Combine Multiple Protocols in One Swift Package/Target and Conforming to It in Other Targets
- Automotive: Can we design a secured PDU which is beyond 8 bytes and send it using CAN TP?
- Subtle protocol difference
- What type of communication protocol should I use for a shortlived data stream to an web application
- Firefox - Allowing about: protocol
- How to scan and message devices connected to OpenThread border router from Android app?
- v2gexi protocol Data parshing from pcap file
- "Encountering 'protocol busy' error with node-open-protocol-desoutter in Node.js when performing screwing actions
- Cannot Convert Custom ExpyTableView Type in Swift
- Swift: Singleton class "extends" from protocol
- Use a protocol rather than a struct as an (optional array) extension?
- Is there a way to encapsulate certain properties in a Swift protocol so they aren't visible to users of the protocol?
- Understanding “Finding the Dynamic Type in a Generic Context”
Related Questions in CUSTOM-PROTOCOL
- Acknowledge whether user has a program bound to a certain protocol
- Reopening Word js-addin 'tries to open external app' confirmation dialog
- How to catch the params of the custom protocol in chrome?
- Windows 10 Script to define Custom Protocol into Registry
- JavaScript - encodeURI results in illegal JSON
- How can I invoke Custom Protocol with large amount of data?
- JavaScript - Invoke Custom Protocol
- Invoke program/script from JavaScript using Custom Protocol
- Windows-10 Interface between JavaScript and Batch file executed using a Custom Protocol
- Windows 10 - Custom Protocol fails when invoked from JavaScript while it works via other methods
- Windows 10 JavaScript Invoking a batch file using custom protocol fails
- How to bypass custom schema restrictions when opening a link from the browser?
- Chrome/Firefox:- How To display the prompt that appear if you open Custom Protocol Handler again
- How to add a custom URL scheme programmatically on macOS?
- Not allowed to launch cutom protocol because a user gesture is required
Related Questions in PROTOCOL-HANDLER
- How to handle browser link as windows command line
- How to handle `tel:` protocol in electron app
- How to overriding protocol scheme handler (Windows 10)
- How can I tell from what application a URL my program handles was opened in Windows 10?
- How to register a global protocol handler for electron app?
- Open a .docx document using desktop word
- Office protocol handler works with Office 2019, but not with Office 2016
- Is there a way to detect if the browser has a mailto protocol handler set?
- Why doesn't Firefox wait for WebSocket connection?
- Allow HTTP web application to open custom protocol without being prompted always
- How secure is data passed via Custom Protocol Handler?
- Launch a custom protocol handler using javascript in Chrome without a popup?
- Is there a way to get all registered protocol handlers in JS?
- How to implement intent(?) on windows 10?
- unable to open local pdf file via custom url protocol
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?