How do I install a native dependency with a Chrome extension? - javascript

I'm developing a Chrome extension that relies on a Python script in order to work. We contact with it via Native Messaging. We would like to have the Python script installed and the Registry Key created when the extension is installed. How should we go about doing that? Is it possible to do it from the onInstalled event?

Related

window.etherum didn't work in JavaScript file in node.js

what should I install in TERMINAL or Google so I can interact with the browsers, especially with the MetaMask extension?
I tried #metamask/onboarding
and some other things

Could not load file or assembly SQLite.Net, Version=3.1.0.0

I'm working on C# UWP project for Windows 10 Desktop Applications,
all SQLite. Functionality implemented in Windows runtime and windows class library then attach windows runtime references to Win Js project up to working fine. While I'm trying calling those methods create a database, insert records into JavaScript applications getting below error:
System.IO.FileNotFoundException: Could not load file or assembly
'SQLite.Net, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null' or
one of its dependencies. The system cannot find the file specified.
I guess you are using SQLite.Net-PCL. If so, you need to install the SQLite support for UWP. You can find it by Universal Windows Platform section of This Page.
After reinstalling the Vsix file, restart your visual studio and add reference to your RuntimeComponent by add reference->Universal Windows->Extensions->SQLite for Universal Windows Platform.
If the problem still persists, you can try remove the nuget package and add the dll references directly. There are two dlls you need to reference. You can find them under:
C:\Users\<username>\.nuget\packages\SQLite.Net.Core-PCL\3.1.1\lib\portable-win8+net45+wp8+wpa81+MonoAndroid1+MonoTouch1\SQLite.Net.dll
C:\Users\v-xucxia.FAREAST\.nuget\packages\SQLite.Net-PCL\3.1.1\lib\portable-win81+wpa81\SQLite.Net.Platform.WinRT.dll

Ionic/Cordova: How to debug JavaScript codes that require "cordova.js" library in a web-browser

I am developing an app for Androind using Ionic framework.
The app uses Cordova Medila plugin and to use that I need to include:
<script src="cordova.js"></script>
in my html code. This is required to be able to run the code on Android, however there is not a cordova.js in the www directory and Ionic finds it in one of its subfolders when it wants to build for Android.
I need to debug the code and want to run the JavaScript line by line in Chrome, but becuase chrome cannot find cordova.js, it gives error (like "gap_init:2").
I tried to find a copy of cordova.js in a sub-folder of the app that belongs to Android platform and copy it to www\js folder but when tried to run my html code I got strange errors during loading of the html file.
My question is:
Is it possible to debug these applications in Chrome? If it is how? If it is not, are there IDEs or tools that can be used for debug?
Try the link chorme inspect, we used to debug the android apps
https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging?hl=en
cordova.js you cant see in www directory it will automatic added cordova.js when you deploy your code on android device using this command "ionic run android"
Yes, you can debug cordova apps in chrome.
here are the steps
goto cordova project path
add a browser platform using command cordova platform add browser
run browser platform using command cordova run browser
after doing so, your app will run in new window of chrome with all plugins proxy added as required
like this
all the JS's will be added automatically and you will be able to see the code of cordova.js and debug it from sources tab.

html code to install an google chrome extension (.crx)

I've been doing some googling but I can't seem to find the code to install a custom extension just like it would on the Chrome store. I have my own link that links to a .crx file on my Dropbox. How would I be able to install that .crx file through html or JavaScript code?
You will need to upload your extension to the Chrome Web Store. This step is not optional; since January 2014, Google Chrome has not supported installs of extensions from any other location. (This means that you cannot use Dropbox to host your extension. No, there is no way around this. Malware authors have abused every other installation method that was made available.)
Once you have done so, you can direct users to your extension's download page on the Chrome Web Store to install your extension, or use inline installation to prompt them to install it directly from your web site.

Registering a Firebreath .dll from local hard drive in Firefox

How can I register a Firebreath .dll file thats deployed locally on a users hard drive.
In IE, I can use ShellExecute in JavaScript to run a shell command to register the .dll
How can I do the same for an NPAPI browser ?
Thanks !
You can't register a .dll from inside the browser; if IE is letting you call ShellExecute from javascript that frightens me greatly. You certainly can't do that from firefox.
The recommended way to install a FireBreath plugin is using an MSI file (which is built-in if you have WiX 3.5 or later installed when you run the prep script), though alternate methods include wrapping that MSI in an EXE installer, using an XPI/CRX/CAB file (though that doesn't work on Safari and only the CAB file of those three can install for all browsers).
You can't directly register it from the browser.

Categories