Console says “chrome” is undefined in “chrome.offscreen.createObject” in content.js file
I am trying to make a Chrome extension which calls an offscreen file from content.js to play an audio file. However, running it in Chrome, the console window throws this error:
Sending message successfully from background.js to content.js but code in content.js not running
I am trying to write my first Chrome extension and I require the background.js file to listen for reloads on the Netflix website and run a script that interacts with the DOM in content.js.
Disable Dragging of YouTube Transcripts with a Chrome Extension
How can I develop a Chrome extension(javascript) to stop the dragging of YouTube transcripts with the mouse? I want to prevent users from moving the transcript box while allowing other interactions. Could someone point me to the relevant APIs or provide some sample code to achieve this?
Chrome Extension Manifest 3 GIF not showing
I am developing an extension for Google Chrome that is supposed to show a GIF in overlay at the end of a timer.
Chrome Extension that Interacts With Two Tabs
I’m trying to write a Chrome Extension that does these basic tasks:
Chrome extension: injected value disappears after content script runs
I am writing a chrome extension where I am trying to let the content script know what the tab ID is by setting a window
property (because I use it a few times later). I am doing this using executeScript()
in the following manner in my background.js
:
Chrome extension: injected value disappears after content script runs
I am writing a chrome extension where I am trying to let the content script know what the tab ID is by setting a window
property (because I use it a few times later). I am doing this using executeScript()
in the following manner in my background.js
:
Unable to document.write after stop()
I’m writing a Chrome extension, which creates a new tab then inject a script to overwrite the whole HTML of it. (a bit of the background can refer to another post: Chrome extension service worker inject script to new about:blank tab). Here is the script:
textarea value getting vanished after clicking apply button
So, I am Trying to overwrite the cover letter field using javascript but when I hit apply button it gets reset to the value I typed manually and not retaining the value i set using javascript in console
In which sequence my JS code will be interpreted
Below is the code snippet of background.js (background_server) file of chrome extension