Relative Content

Tag Archive for javascriptgoogle-chrome-extension

Sending message from background.js to all tabs’ content.js (mv3)

I am getting an error with not being able to establish a connection from background to content. I want the background to be able to send a message to every instance of the content page to globally run a function for all tabs. Any help would be greatly appreciated as I have been stuck on this for hours. Thank you!

I can’t use Kuroshiro library in my chrome extension

I’m learning Javascript and I thought I can make a small project but I’m having so many errors I have no idea what is wrong with my code. I’m trying to make a chrome extension that adds furigana to a japanese text, for this I’m using Kuroshiro library.

The value of an input field changes back after being set by JS

I am trying to write a simple Chrome extension that copies some information from one webpage and fills the appropriate input fields on another. The input field’s value is (visibly) set by JavaScript: inputField.value = "some value" in a content script injected into the webpage. Then, when I click on other input fields, its value changes back to its original value (which is not desirable). I am trying to find the cause of this.