Is there any way to know when a tab in the browser is covered by a window?

TL;DR: I’m working on a Chrome extension where I need to increase a count only when a tab is visible and not covered by another window. Is there any way to detect this? I’ve tried using the Page …

How to get my button to work using javascript?

I am creating an Google chrome extension and I am trying to get my stop/stop logging button to work within my function named Logger. When the button is pressed it doesn’t react to the function I wrote,…

How to display the computer’s current RAM usage with JavaScript?

I want to make a Chrome extension to monitor CPU and RAM usage, but I can’t find out how to get the current RAM usage of the computer. I searched on Google and didn’t find anything. Eventually, I …

Chrome identity API spotify oauth2 login

I’m trying to implement spotify login in my chrome extension but I get always this error and I’m able to see the auth window only when the browser is loaded for the first time. Unchecked runtime….

Getting cookies in a google chrome extension

I am trying to get a cookie specifically from a domain using this code: The problem is that the alert always says undefined. However, if I change to it works properly. How do I save the value to use later? Update: It appears that if I call alert(ID) from the chrome console after the script runs, it works. How can I set my code to wait until chrome.cookies.get finishes running? Answer Almost all Chrome API calls are asynchronous, so you need to use callbacks to run code in order:

Ensure `click` event is seen by the content script

I’m writing an extension for Chrome that listen and capture the click events made by the user. This is the way I’m capturing the event document.addEventListener(‘click’, async function (e) { }); It …

what is the purpose of chrome-extension inject.js

Hello I have a react project which is working full and functional but when I look into network form console I find an unexpected script called chrome-extension://gppongmhjkpfnbhagpmjfkannfbllamg/js/…

How to pass data from content script to popup.html?

I’m learning how to make chrome extensions. I have a content script that will obtain some data and I want to pass them to the popup.html page to display them on the popup DOM. I’ve read about the …

page_action click does not work while browser_action click works in Chrome Extension?

I want to make a simple browser extension like Font Face Ninja which toggles UI when page_action or browser_action is clicked. The following code using browser_action works – background.js chrome….

Chrome Extension content_script at both document_start and document_end

Good day to everyone, as you can see I’m pretty new at Chrome extensions. Can you run a script from content_scripts before and after the the DOM or page fully loads? Like: “content_scripts”: [ { …