Need to start the extension/app in Fullscreen window
Closed this issue · 5 comments
daddins commented
Hi I am wondering whether you can help me - I want be able to launch the extension in a fullscreen window. I am no developer and have tried to edit the extension but no luck - can you please help a newbie???
I must say I love your work - its great!
eladnava commented
Hi @daddins,
Please use the CTRL + CMD + F to enter full screen mode (ALT + CTRL + F on Windows).
daddins commented
Hi Elad
Is there any way for me to automatically to start the 'app' / 'extension'
in fullscreen?
I've tried "chrome.windows.update(windowId, { state: "fullscreen" })"
which I can't seem to get to work (as I'm no developer! just a dumb project
manager!!!)
Is there anyway I can edit the background.js to start the application in
fullscreen mode using the *Fullscreen API*?
All I can seem to find is full screen toggled by a user keyboard 'click'
is there any way to initiate webkitFullscreenElement
without using a user initiated action?
function toggleFullScreen() {
if (!document.fullscreenElement) {
document.documentElement.requestFullscreen();
} else {
if (document.exitFullscreen) {
document.exitFullscreen();
}
}}
I' tryin yo replicate chrome --start-fullscreen using the app / extension
instead as I am deploying to a chromebook.
Kind Regards
Phillip Daddy
email : phillipdaddy@gmail.com
…On Thu, 4 Jun 2020 at 03:30, Elad Nava ***@***.***> wrote:
Hi @daddins <https://github.com/daddins>,
Please use the CTRL + CMD + F to enter full screen mode (ALT + CTRL + F
on Windows).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#111 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH7MIZXIJYBXK5NFOWKBAFLRU2CCZANCNFSM4NRMVZDA>
.
eladnava commented
Hi @daddins,
If you unzip the generated .crx
and edit js/embed.js
, simply add this code to the top of the file:
// Get current focused window
var currentWindow = chrome.app.window.current();
// Check if currently full screen
if (currentWindow && !currentWindow.isFullscreen()) {
// Enter full screen mode
currentWindow.fullscreen();
}
Then, remove the installed .crx
from chrome://extensions
and load your unpacked, edited extension.
daddins commented
You Are an absolute legend!
Thanks you so much - its exactly the experience I'm looking for - great
job!
Kind Regards
Phillip Daddy
email : phillipdaddy@gmail.com
…On Thu, 4 Jun 2020 at 08:40, Elad Nava ***@***.***> wrote:
Hi @daddins <https://github.com/daddins>,
If you unzip the generated .crx and edit js/embed.js, simply add this
code to the top of the file:
// Get current focused window
var currentWindow = chrome.app.window.current();
// Check if currently full screen
if (currentWindow && !currentWindow.isFullscreen()) {
// Enter full screen mode
currentWindow.fullscreen();
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#111 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH7MIZXGUOYNCW3YMHNGTSLRU3GO5ANCNFSM4NRMVZDA>
.
daddins commented
I want to say thank you again - I've implemented the code and it works like
a charm - you star!
Suggestion for your next https://applicationize.me/ project !
Same idea: turn your web app/page into a PWA!
Kind Regards
Phillip Daddy
email : phillipdaddy@gmail.com
…On Thu, 4 Jun 2020 at 09:16, Phillip Daddy ***@***.***> wrote:
You Are an absolute legend!
Thanks you so much - its exactly the experience I'm looking for - great
job!
Kind Regards
Phillip Daddy
email : ***@***.***
On Thu, 4 Jun 2020 at 08:40, Elad Nava ***@***.***> wrote:
> Hi @daddins <https://github.com/daddins>,
> If you unzip the generated .crx and edit js/embed.js, simply add this
> code to the top of the file:
>
> // Get current focused window
> var currentWindow = chrome.app.window.current();
>
> // Check if currently full screen
> if (currentWindow && !currentWindow.isFullscreen()) {
> // Enter full screen mode
> currentWindow.fullscreen();
> }
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#111 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AH7MIZXGUOYNCW3YMHNGTSLRU3GO5ANCNFSM4NRMVZDA>
> .
>