Can use Native Messaging to enable click local file than open it directly.

Latest Version

Version
1.0
Update
October 19, 2021
Size
12.93KiB
Developer
Category
Users
43
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English
中文 (简体)
中文 (繁體)
See more
Permissions
NativeMessaging
See more

Click link than open local file directly Extension

This extension allows you to open a local file link \"file://\" directly (not download). You only write the manifest file, reg file and your local program on local computer. You can follow chrome development guides (https://developer.chrome.com/docs/apps/nativeMessaging/).

This program is use json format to send the message to local program. Please use \"message\" to receive the file name and \"host\" to receive the host name.

You can use any program language to write the local program to receive the json format send from the chrome extension.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "__MSG_extension_name__", "version": "1.0", "manifest_version": 3, "description": "__MSG_extension_description__", "background": { "service_worker": "background.js" }, "content_scripts": [ { "matches": ["*://*/*"], "js": ["content.js"] } ], "default_locale": "en", "icons": { "128": "icon-128.png" }, "permissions": [ "nativeMessaging" ]}
Read more