How to Use A Content Script with a Popup In Your Chrome Extension

A Workaround for Manifest Version 3

Matt Croak Code
Level Up Coding
Published in
6 min readFeb 16, 2023

--

Photo by Rubaitul Azad on Unsplash

I was working on a Chrome extension that included a popup and a content script; making use of action.onClicked. The behavior I was expecting was the user clicking the icon in the extensions bar. Then the click event would open the popup, trigger the content script and allow the user to access…

--

--