Giter Club home page Giter Club logo

test-chrome-ext's Introduction

Sample code to communicate between the web page and the native application using Chrome Native Messaging

In order for this example to work you must first install the native messaging host from the host directory.

To install the host:

On Windows: Run install_host.bat script in the host directory. This script installs the native messaging host for the current user, by creating a registry key HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.google.chrome.example.echo and setting its default value to the full path to host\com.google.chrome.example.echo-win.json . If you want to install the native messaging host for all users, change HKCU to HKLM. Note that you need to have python installed.

On Mac and Linux: Run install_host.sh script in the host directory: host/install_host.sh By default the host is installed only for the user who runs the script, but if you run it with admin privileges (i.e. 'sudo host/install_host.sh'), then the host will be installed for all users. You can later use host/uninstall_host.sh to uninstall the host.

The host application is adapted to Python 3.8.

Adaptation

The web page is located in the web directory. Upload it to your web hosting (running on localhost or from local drive will not work!), then update ext/manifest.json.

test-chrome-ext's People

Contributors

vmayorow avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.