How can I get the URL of the current tab from a Microsoft Edge extension

I’m experimenting with edge extensions , I’m trying to make one that reads the URL of the current tab, removes the string ‘%0A’ and then redirects to the cleaned URL, but I dont know how to read the …

Using buttons to scroll dropdown

I would like to use ‘up’ and ‘down’ buttons to scroll through options. Ultimately, the actual dropdown list will be hidden from the user. This example I have left it visible. I can’t use onclick in …

Chrome extension with SVG icons (chrome.browserAction.setIcon)

I am using scalable SVG icons in my Chrome extension. chrome.browserAction.setIcon({ tabId: tabId, path: ‘../icons/’ + icon + ‘/scalable.svg’ }); I want to switch icons based on some parameters, …

Chrome extension image change not persisting

I’m experimenting around with creating a Chrome extension (Opera actually but I don’t think that matters) that uses two text boxes as input to generate the path to an image to render, but the image …

How to resize chrome extension window in javascript?

I am trying to resize my chrome extensions window but I do not know how to do it. document.write(‘

‘) document.write(‘<...

Is there any equivalent to selenium FindElements By.XPath in chrome extension java script?

I have some experience in Selenium, using some code as below to locate elements using XPath; var btns = driver.FindElements(By.XPath(@”//button[(@type=’submit’)]”)); I recently started to …

Proxy Chrome Storage

I am trying to get my proxy chrome extention to keep on/off after closing using chrome.local.storage. This does not seem to work, can anyone give some examples on how to get this kind of code working? …

Communication between browser extension and windows service

I have a browser extension(For chrome, Firefox, Edge) and now I want to query some info from the extension to the windows service which is running on the same machine. I need to pass some strings from …

How to get element without ID or Class Name using Javascript DOM

I’m developing a chrome extension for manipulating HTML elements. I got a little problem. The element that I want to manipulate is without ID or ClassName, like this: <div style="width: 400px&…

Chrome Extension injecting into current tab page

Hello all I am creating a Chrome Extension and I am having issues with injecting some JS into the page tab that the user is currently on. I have a popup.html/.js files and a button within that: popup….