Is it possible to automatically open chrome full screen? - google-chrome

I want to set a homepage to a specific URL, and have it fullscreen, without requiring any help from the user.
Is this possible? I know i can set the default homepage to this specific URL, so thats easy. But automatically full screen?

You can't, but here are some alternatives. They might or might not work depending on your ultimate goal.
If you are launching the browser, start it with the --start-maximized flag.
If you control the web page at that URL, you can use the fullscreen API.

Related

Avoid cookies pop up window inside iframe?

I have an iframe that displays live prices of stock market. My problem is that when i load my page, this iframe shows a pop up window for cookies policy.
Is there anyway to avoid this window completely (or select "accept" in background) so that this iframe will directly show stock prices?
I found some information about sandbox option but could not go deeper with that
My website is the following and the iframe is on the down-left
https://grbusinessforum.com/
("Αποδέχομαι" is the button of "Accept cookies")
Thanks
Sandboxing the iframe can prevent all JS from running inside it, but that would probably break the page in other ways.
There's nothing you can do from outside the frame.
You'd need to change the page inside the frame instead. You could add a query string to the URL that it uses to disable the tracking cookies by default, or use postMessage to send a message into the frame that code there uses to remove the cookie prompt.
Of course, this will need the cooperation of the people who control the site you are displaying in the frame … but if they are happy for you to show their content on your page that shouldn't be too much of a problem, should it?

chrome.desktopCapture.chooseDesktopMedia Can't capture self window

I've written an application(webrtc screen sharing), everything is ok with chrome.desktopCapture.chooseDesktopMedia if you pick another window to share but if you pick chrome window(self) to share it gives you just empty stream.
No error just nothing. Is this a known bug? Or any solution this? Is there any way to disband chrome window from windows list at least?
Edit: hardware acceleration enabling/disabling doesn't solve the problem.
You can't disable a single application to be listed in the windows list. You can disable the whole option. This would mean you won't be able to share any application.
You can customize this when calling chrome.desktopCapture.chooseDesktopMedia, sending the set of desktop media sources you will allow to select when sharing:
"screen", "window", "tab", or "audio"
Check this link for more details.
If you could provide some code on how are you using Chrome API to share the screen that would be great to be able to provide more details on how you can solve your issue.

Google Chrome Extension Top Sites Images

So using the Google Chrome Top Sites api has values for the url and the title, but when you load the default google chrome page it also has an image of those sites, is there any way to get that sort of image for an extension? If not how does google get that image and how can you get an image of the the user's top viewed website?
Since that it isn't possible to get a screenshot of a page without loading it inside a tab, Chrome is simply getting those screenshots while you're browsing your favourite sites. You can tell this easily because sometimes sites and images do not coincide (e.g. sometimes my facebook.com top site has the image of my profile page, but links to the home).
Then, if you want your screenshots of the Top Sites, you'll have to start without screenshots, and create them while the user browses the web by using the chrome.tabs API to check when a tab loads one of the Top Sites (listening to the event onUpdated), and get a screenshot of that tab using captureVisibleTab.
NOTES: make sure that you've requested the permission for "<all_urls>" in your manifest, which is required for captureVisibleTab to work. Additionally, you may find this question and its answer helpful.
It's unfortunately not possible*. Chrome stores those thumbnails internally in URIs not accessible from an extension.
There is an existing feature request: https://code.google.com/p/chromium/issues/detail?id=11854
If you look at the comments, one of the main use cases is to access site thumbnails to replicate the New Tab page.
Do star the feature request above to raise its priority if you want this functionality implemented.
* By that I mean that it's not possilbe to access Chrome's own internal store of thumbnails.
Furthermore, as Marco suggested the way to replicate that would be tab capture, but you can't do it "in the background" for privacy reasons - a user must make an explicit gesture (e.g. click the extension's button, press a shortcut, etc.) to perform capture.
Marco's answer is valid now, captureVisibleTab should be accessible upon events. But yes, as of now Chrome forces you to have very broad permissions and maintaining your own thumbnail store.

Allow Camera in webpage with dalekjs

I have got a webpage where people are able to chat together and see each other through a webcam. Now for some reason i cannot set this option in chrome to always allow the camera.
Is there a way to let dalekjs do that work for me? Or any suggestion on how to pre-set this in chrome? Thanks in advance!
I do not know if there is a flag for enabling the camera access, or on the other hand, disabling the dialog that asks for permission; but if there is one, you can apply it using your Dalekfile like described in this pull request: https://github.com/dalekjs/dalek-browser-chrome/pull/8

Create a chrome extension which modifies a web page?

every time I go to a particular web page I hit F12 delete a node and uncheck a few absolute position boxes on two others. I would like to know how to do this with a chrome extension.
I have not made a chrome extension before so I thorough guide to making one would also be appreciated
I recommend you to read this guide first as Google suggests.
http://developer.chrome.com/extensions/getstarted.html
Also, I think in order to implement what you want to do, you'll need to use page action.
So, take a look at this page about page action.
http://developer.chrome.com/extensions/pageAction.html