Limiting google chrome fullscreen to window size

Context;
I had the issue of needing to play youtube videos in fullscreen, but still needing access to the my tabs. So I needed a way to limit the view to the sites viewing window.

Question;
Is there a way to limit the fullscreen view of a video to the –window-size of it?
Or a way to intercept a fullscreen request and denying it?
So it is possible on a desktop and mobile limit the fullscreen view

Unable to launch Chrome Desktop App

  1. I’ve created my first Chrome Desktop App from https://developer.chrome.com/apps/first_app
  2. There is instruction to launch the application using parameter line –load-and-launch-app=/path/to/app/ at the bottom section of the above help page.
  3. So I created a Chrome shortcut and added the line “C:Program Files (x86)GoogleChromeApplicationchrome.exe” –load-and-launch-app=/T:/Chrome Projects/Hello World”
  4. But unfortunately, it isn’t working and giving error saying missing manifest though it isn’t Error Screenshot

  5. I can run the app normally if i execute it from chrome browser>Apps section

  6. Also there is no issue if i run the app using ID “C:Program Files (x86)GoogleChromeApplicationchrome.exe” –profile-directory=”Profile 4″ –app-id=geipneggnldmjggcpfhniohfnfnccopo
  7. The App is saved at the folder T:Chrome ProjectsHello World on my system

Any help is much appreciated
Regards,

How to limit Chrome Extension installation on Mac

I’m trying to remove the user’s ability to install extension in Chrome on Mac OS. I found the ExtensionInstallBlacklist policy but can’t figure out how to actually make it start working. Any tips?

And does anyone know of a way to disable the ability to sign into Chrome/change profile/user?

Thanks in advance!

Jared

What is the Chrome extension .pem file for?

When I created my first Google Chrome extension, I followed the labyrinth of instructions to a T and was left with a successfully launched extension. I was also left the new owner of an enigmatic .pem file that I was warned to place in a secure spot and never lose. I conscientiously placed the file in a safe place and possibly made several backups while I was at it. It has been several months now, and while I have launched some more extensions and made quite a few updates, I have, not once, looked back at the .pem file. What is this file that I have been guarding with my life — and would it really be so terrible if I decided to clear out some clutter and delete it?

I have tried to investigate further into what this file is, but for something that is supposedly so crucial, there is very little information out there. The documentation states only:

Do not lose the private key! Keep the .pem file in a secret and secure place; it will be needed to update the extension.

This statement is most definitely untrue, as I have made quite a few updates with nary a glance at the .pem. I also found this question on SO, but the only information provided is that it is needed to:

Update the extension

Again, untrue, and:

Upload a previously packaged extension to the Chrome Web Store (make sure that the file is called key.pem

I am honestly not sure what case that refers to.

I have also managed to glean that the file has something to do with certificates and signing, a topic that I know very little about.

Can someone provide me with a comprehensive explanation of what exactly the .pem is and why, according to everything I’ve come across, I must keep track of it so carefully?

Running Flash in chrome extension popup window

How can I use flash in chrome extension?
I am writing a chrome extension that will extract a flash game and run it in a popup window.
The game can run on normal web page as there will be a prompt to enable flash.
However, in the popup window, there is no prompt to enable flash.
I tried using embed, but it is not working. If directly put the flash src in URL, it will be downloaded.

It seems that after chrome 62, there is no option to always enable flash.
The extension is still working if the google account has using the extension before.
But for new user, the flash is disabled.

Google chrome api javascript detect file open in browser

For google chrome extension i need to be able to detect if user use chrome browse to open .html file.

I tried different method but it seem i do not get an event

"permissions": ["webRequest","browsingData", "fileSystemProvider"],
  "file_system_provider_capabilities": {
       "configurable": true,
       "watchable": true,
       "source": "file"
},

I tried to intercept in webRequest

chrome.webRequest.onBeforeSendHeaders.addListener(function(info){
// info.url does not give me the file.html which opened


)};

I tried with different methods for file event handling but none get fire

    chrome.fileSystemProvider.onOpenFileRequested.addListener(function(file){
    console.log("open file");
});
chrome.fileSystemProvider.onReadFileRequested.addListener(function(file){
    console.log("read file");
});
chrome.fileSystemProvider.onExecuteActionRequested.addListener(function(){
    console.log("execute file");
});

Thanks in advance for any help

Cache auth_tokens / auth_token_renew with chrome.identity.launchWebAuthFlow

I’m using chrome.identity.launchWebAuthFlow method to initiate a OAuth2 token generation from our OAuth2 server.

In the Identity API documentation, it is specified that to authenticate a user, there are two available methods: getAuthToken and launchWebAuthFlow. We use the latter because as specified in the documentation: If your app uses its own server to authenticate users, you will need to use launchWebAuthFlow.

We’re struggling to cache the results. When reading the documentation of getAuthToken, it seems that there is some smart-caching involved. Chrome catches the response and store the access_token and renew_token in the browser (visible here: chrome://identity-internals/). Chrome requests for an access_token to the OAuth server only when the access_token is expired.

However, using launchWebAuthFlow, we’re struggling to use the Chrome Cache, and it calls our OAuth server each time.

Does anyone know how to cache the result using this method of the API?

Thanks.

How to cache auth token with chrome.identity.launchWebAuthFlow?

I’m using chrome.identity.launchWebAuthFlow method to initiate a OAuth2 token generation from our OAuth2 server.

In the Identity API documentation, it is specified that to authenticate a user, there are two available methods: getAuthToken and launchWebAuthFlow. We use the latter because as specified in the documentation:

If your app uses its own server to authenticate users, you will need to use launchWebAuthFlow.

We’re struggling to cache the results. When reading the documentation of getAuthToken, it seems that there is some smart-caching involved.

Chrome catches the response and store the access_token and renew_token in the browser (visible here: chrome://identity-internals/). Chrome requests for an access_token to the OAuth server only when the access_token is expired.

However, using launchWebAuthFlow, we’re struggling to use the Chrome Cache, and it calls our OAuth server each time.

Does anyone know how to cache the result using this method of the API?

What happens if I use chrome.storage.sync, but the user is not logged in Google Chrome?

I read the chrome.storage API docs. I saw that if you are offline and you are trying to use chrome.storage.sync, data will save in local until you had internet again, but I want to know what happens if i try to use chrome.storage.sync and nobody is logged in Google Chrome.

What i read is that the data will be automatically synced with your user account. If there is nobody logged the data will save in local? Will the data save in a guest user (for example)?

What happend if i use chrome.storage.syn but he is not logged in Google Chrome?

first of all i want to apologies for my english.

I read chrome.storage api. I saw that if you are offline and you are trying to use chrome.storage.syn data will save in local until u had internet again but i want to know what happend if i try to use chrome.storage.syn and nobody is logged in Google Chrome. What i read is that the data will be automatically synced wiht your user account. If there is nobody logged the data will save in local? The data will save in a guest user (for example).

Thanks in advance and i hope your eyes have not bled so much.