1
4 Comments

Chrome extension <-> website

Hi all ;)

Chrome extension is making me crazy ... I'm not able to communicate between my website to the Chrome extension. I want to display the Chrome extension version currently installed on my website anyone have an example of that?

:Pray

on November 24, 2020
  1. 2

    Hey, join https://www.indiehackers.com/group/browser-extension-makers for an actually relevant group that will answer your questions ;)

    There are several way to do this, all of them require extension modification and some will require site modification.

    Probably easiest is to use chrome.tabs.executeScript when seeing your website load. A commonly used alternative I prefer is to have an addon inject on your site and have your background talk to the site directly with postMessage api. There is also a native api for sending messages to a site via externally_connectable manifest declaration. I don't use that as it's an api available only in chrome.

    1. 1

      Thank you so much

  2. 2

    Chrome Extensions are not installed on websites and are installed in your browser. That being said chrome://extensions will show you all your installed extensions and their current version number!

    1. 1

      Thanks, my post was not clear, I want to check the version of the chrome extension from my website. My website is https://app.outofinbox.com/ and on that website, I want to check if the user has the last chrome extension https://chrome.google.com/webstore/detail/out-of-inbox/pcffhmjbmgndnlajcicniebenphchnad?hl=en. So I want to send a message to my extension and that my extension reply by my version is 1.0.2 ;)