google-chrome-app

Is there an API for the chrome://webrtc-internals/ variables in javascript?

为君一笑 提交于 2019-11-28 20:48:51
I want to get access to some of the logged variables in the chrome://webrtc-internals/ , but I didn't find anything on google - not even a description of the graphs I can see. I am particularly interested in packetsLost , googCurrentDelayMs and googNacksSent . why I want to access the webrtc-internals I am writing a google chrome application that shares a video stream (p2p). It uses peerjs to share the stream with other peers, which in turn uses googles webrtc implementation underneath. To make my application perfect I would need to know when a big delay occurs. Since I can see the delay

Run chrome in fullscreen mode on Windows

随声附和 提交于 2019-11-28 16:42:22
I want to configure my computer to launch Google Chrome Windows start up. It should start in full screen mode and open some web page. I tried to run Chrome with the following command line: chrome.exe --start-fullscreen --app=https://google.com However Chrome opens in windowed mode, not in full screen mode. Is there any way to run chrome in full screen mode? Update 11-May-16 There have been many updates to chrome since I posted this and have had to alter the script alot to keep it working as I needed. Couple of issues with newer versions of chrome: built in pinch to zoom Chrome restore error

Difference between Chrome Apps and Extensions

时间秒杀一切 提交于 2019-11-28 16:16:57
问题 What is the difference between Chrome Apps and Extensions? What can you do with apps that you can't do with extensions or vice versa? 回答1: Quoting from https://developer.chrome.com/webstore/apps_vs_extensions: We’ve already had the concept of “web apps” in the browser for a few years, as something more rich and interactive than a website, but less cumbersome and monolithic than a desktop application. Examples include games, photo editors, and video players; all of these categories are viable

Can a chrome application launch local program?

断了今生、忘了曾经 提交于 2019-11-28 14:44:25
I now that chrome applications can deliver an experience close to that of native applications, but I could not find a way yet to run a local command from a chrome application. Is there any API for this that could used after the user has given permission? How can this be done? Thanks It is in principle possible via Native Messaging . You can have a native app specifically designed to talk to your Chrome app, but the downside is that the native component cannot be bundled with the app in the Web Store. You'll have to use a separate installer. Note that the above documentation is for extensions,

Update object stored in chrome extension's local storage

非 Y 不嫁゛ 提交于 2019-11-28 14:41:20
I'm developing a chrome extension and I will store objects sent by server. For example, I will receive: command = {id:"1", type: "A", size: "B", priority: "C"} If I had a database, I would insert it as a line in table commands . Using chrome.storage, I'm storing an array of these object in key commands . But, when I receive a new command by server, I have to get from local storage, update the array and then set again. I'm worried about cases when I receive another command while I'm getting and setting or while I delete a stored command. I'm thinking about semaphores, but I don't know if it's a

Activate chrome app from web page?

大憨熊 提交于 2019-11-28 10:30:13
问题 I am building a packaged chrome app (It is needed as I want to access chrome.socket). I have a website from which I would like to call my app (if installed or ask the user to install it) by clicking a link. Is this possible ? Not able to find any easy way for this workflow. 回答1: The url_handlers might be the best way to achieve this. You can also use the externally_connectable manifest property to declare that your website can connect to your app, then call chrome.runtime.sendMessage or

Unable to trigger chrome.browserAction.onClicked.addListener with google chrome extensions

故事扮演 提交于 2019-11-28 10:03:41
I'm a bit stuck here and was wondering if anyone can point out where I might be wrong. I am simply trying to make the body color change to red on click of the app icon. manifest.json { "name": "Bagde", "description": "", "version": "1", "manifest_version": 2, "background": { "scripts": [ "background.js" ] }, "browser_action": { "default_title": "Test", "default_popup": "popup.html" } } popup.html <html> <head> <script src="popup.js"></script> </head> <body> <p>Some Content ..</p> </body> </html> popup.js document.addEventListener("DOMContentLoaded", function () { //Get Reference to Functions

Error using Firebase from Chrome App

此生再无相见时 提交于 2019-11-28 08:29:32
问题 I am attempting to use Firebase from within a Chrome App (not an extension) and have not been able to work around the following error: Refused to load the script 'https://{my firebase id}.firebaseio.com/.lp?start=t&ser=81980096&cb=15&v=5' because it violates the following Content Security Policy directive: "default-src 'self' chrome-extension-resource:". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback. my manifest.json file looks like this: { "manifest

Disabling inspect element, right click and F12 in google chrome

放肆的年华 提交于 2019-11-28 07:46:52
Is there a way to disable inspect element, right click and F12 in google chrome? This is definitely not possible to do from a web page. Even if you disable right click and disable the default behaviors for F12 , Ctrl+Shift+I , and Ctrl+Shift+J , there is no way to stop a user from opening Dev Tools on a different page and navigating to your page with Dev Tools already open. Also, you can access Dev Tools by going to Menu > Tools > Developer tools , which cannot be prevented by any website. 来源: https://stackoverflow.com/questions/20659943/disabling-inspect-element-right-click-and-f12-in-google

Is it possible to remove “Inspect Element”?

我的梦境 提交于 2019-11-28 07:01:45
Is it possible to remove or disable "Inspect Element" context menu in Chrome App via Javascript? I have searched through several forums but there are no definite answer. It is possible to prevent the user from opening the context menu by right clicking like this (javascript): document.addEventListener('contextmenu', function(e) { e.preventDefault(); }); By listening to the contextmenu event and preventing the default behavior which is "showing the menu", the menu won't be shown. But the user will still be able to inspect code through the console (by pressing F12 in Chrome for example).