Chrome API: Get Window Type

I’m working on a project and run into an issue where I need to distinguish a chrome app window from normal ones. (Specifically I’m using the --app=URL from a bash script) Because of the way things are setup, I have to have run a js script on all windows, but only do something if they are an app window. It seems that the API listed here is what I need to distinguish one window from another, but all I’ve managed to get are errors saying that a function or object is undefined. So how am I suppose to get the window type from the API with something like window.type?

More information:

  • Tried in both Chrome and Chromium (both fully updated)
  • Using Ubuntu 18.04

Access website socket frame information through chrome extension

I need to access socket frame information in my chrome extension. Chrome extension is only for personal purpose. so i dont need to worry about the security regarding the chrome extension published to chrome store.

I don’t know whether its possible to access socket info through chrome?

IS there any possible way to get socket info from the website thought chrome extension, chrome app.

Access website socket frames information through chrome extension

I need to access socket frame information in my chrome extension. Chrome extension is only for personal purpose. so i dont need to worry about the security regarding the chrome extension published to chrome store.

I don’t know whether its possible to access socket info through chrome?

Is there any possible way to get socket information from the website thought chrome extension, chrome app.

Comunicate a Chrome App with a Chrome Extension

I want to display data received from a serial port in a website (display that data in an Chrome app doesn’t satisfy the requeriments).

All i know about Chrome apps, extensions, etc. i learned it between yesterday and today, so i’m pretty new on that.

For what i understand about all this, trough reading the official documentation, is that i need to create both an extension and an app.

So i have to get the serial port data in the app, and then pass it to a extension with a contentScript and with that content script i display the data on the DOM.

The problem i’m facing right now and i’m stuck in is that i can’t figure how to pass data from an app to a extension.

this answer tells me about a method called OnMessageExternal, but i see in the documentation that it is not available for extension.

So if anyone know how to send an message from a Chrome App to a Chrome Extension, please help me, i will be very grateful 馃檪

How to copy and highlight top and bottom text of find word during search on webpage

for example i did search for word ” algorithms ” on a web page – i want to copy up and down words through a extension , on example give below i want to highlight , words “developed” and “find a solution” – please refer image
example image

currently using an multiple search extension script – how can i highlight words up and down of search word. Extension that i am using searches multiple words at the same time – in addition is there any way that i can highlight the top and bottom of search words

Chrome Extension Statistics

I released a chrome extension roughly ten hours ago and many people have downloaded it from what my friends have told me. For some reason, the statistics in the developer dashboard for the extension still say that there were 0 downloads, reviews, and ratings. Did I do something wrong or is Chrome’s analytics really slow? If the latter, when can I expect for the statistics to be updated?

Google Scripts thinks its an extension, trying to do an add-on

I am trying to publish an add-on for sheets privately (just internally to my company) and when I fill out the chrome web store info after selecting “Deploy web add-on”, it pops up witht his error message…

This item is not an app, please remove app section from manifest.

So it thinks it’s an extension, but it’s not. It needs to be an add-on. Any ideas?

how to capture the click event from chrome extension webview URL?

I am using to show the data. I want to capture the click event if some user clicks on a link within the Chrome browser the plug-in.

 

I have tried below way to test the click event but seems that I am not doing properly

 document.querySelector('webview').executeScript({
  // document.getElementById('header-menu').onclick = function() { 
    console.log("Click Event has been captured"); },
  })

Please help how I can I capture the click event.

Enable JavaScript inline Chrome Extensi贸n

Se neg贸 a ejecutar la URL de JavaScript porque viola la siguiente directiva de Pol铆tica de seguridad de contenido: “script-src ‘self’ ‘unsafe-eval'”. Se requiere la palabra clave ‘insegura en l铆nea’, un hash (‘sha256 -…’) o un nonce (‘nonce -…’) para habilitar la ejecuci贸n en l铆nea.

Recientemente Publique una Extensi贸n de Chrome que no funciona como esperaba
https://chrome.google.com/webstore/detail/html5-editor-realtime/ejhdgaigjhelgmijkaccangegeafeeei

Los Scripts Inline no se ejecutan y quiero que lo hagan alguien podr铆a comprobarlo y adjuntar la soluci贸n Gracias…

Send message to content script after page load

I’m trying to iterate over an array of URL’s inside background.js. For each URL, I want it to navigate the current tab, and then send a message to the content_script.js telling it to perform an action.

The problem is it’s sending it immediately and not when the page loads (in fact it sends it before even updating the URL)

background.js:

  chrome.tabs.update(null, {
    url: 'https://www.example.com/' + path
  }, function(tab) {
    chrome.tabs.sendMessage(tab.id, {message: 'update_user'});
  });

content_script.js

chrome.runtime.onMessage.addListener(
  function(request, sender, sendResponse) {
    if (request.message === 'update_user') {
      console.log('loaded');
    }
  }
);