- Run the
.reg
replacing the path oflc_manifest.json
- Put
mainfest.json
andcs_local_component.js
in the same folder - Make a Chrome extension out of that folder
- Configure
lc_manifest.json
with the right path to the local component - Replace
%EXTENSION_ID%
with the real id of the Chrome extension inlc_manifest.json
Last active
August 29, 2015 14:16
-
-
Save qwe2/de5d46e3d0b84228b8ca to your computer and use it in GitHub Desktop.
CloudSharper local component starter for Chrome on Windows
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Google\Chrome\NativeMessagingHosts\com.cloudsharper.local_component] | |
@="C:\\Path\\to\\lc_manifest.json" |
This file contains 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
chrome.webNavigation.onBeforeNavigate.addListener(function(details) { | |
var port = chrome.runtime.connectNative('com.cloudsharper.local_component'); | |
}, { | |
url: [{ | |
urlMatches: 'cloudsharper\.com\/(work|create)' | |
}], | |
}); |
This file contains 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
{ | |
"name": "com.cloudsharper.local_component", | |
"description": "CloudSharper Local Component", | |
"path": "path/to/CloudSharper.Console.exe", | |
"type": "stdio", | |
"allowed_origins": [ | |
"chrome-extension://%EXTENSION_ID%/" | |
] | |
} |
This file contains 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
{ | |
"manifest_version": 2, | |
"name": "CloudSharper local component starter", | |
"description": "This extension starts the CloudSharper local component", | |
"version": "0.1", | |
"permissions": [ | |
"nativeMessaging", | |
"webNavigation", | |
"*://*/*" | |
], | |
"background": { | |
"scripts": ["cs_local_component.js"], | |
"persistent": false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment