Skip to content
Advertisement

Tag: google-chrome-extension

Using a variable in place of an array

I have a number of arrays I’m using for my first Chrome extension. I want to use a different array for my extension depending on what a value is in a specific variable (locationVal), which is a number between 1-4. Here is the function that decides that: The firstList, secondList, etc. are my arrays, which are declared as: The main

open the “closed” shadowRoot of element inserted by other extension in chrome

well google translate extension in chrome, has popup feature, it displays translation of selected word instantly, I wanted to access those translations displayed by popup, but this popup element is shadowRoot(“closed”), so javascript cant access its content, I red an article about that subject and author says: But really there is nothing stopping someone executing the following JavaScript before your

Advertisement