eladnava / applicationize

Converts your favorite web apps into desktop apps with their own dedicated launcher icon.
https://applicationize.me/
Apache License 2.0
495 stars 85 forks source link

Need to start the extension/app in Fullscreen window #111

Closed daddins closed 4 years ago

daddins commented 4 years ago

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 4 years ago

Hi @daddins, Please use the CTRL + CMD + F to enter full screen mode (ALT + CTRL + F on Windows).

daddins commented 4 years ago

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 notifications@github.com 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 https://github.com/eladnava/applicationize/issues/111#issuecomment-638343051, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH7MIZXIJYBXK5NFOWKBAFLRU2CCZANCNFSM4NRMVZDA .

eladnava commented 4 years ago

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 4 years ago

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 notifications@github.com 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 https://github.com/eladnava/applicationize/issues/111#issuecomment-638498322, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH7MIZXGUOYNCW3YMHNGTSLRU3GO5ANCNFSM4NRMVZDA .

daddins commented 4 years ago

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 phillipdaddy@gmail.com 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 : phillipdaddy@gmail.com

On Thu, 4 Jun 2020 at 08:40, Elad Nava notifications@github.com 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 https://github.com/eladnava/applicationize/issues/111#issuecomment-638498322, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH7MIZXGUOYNCW3YMHNGTSLRU3GO5ANCNFSM4NRMVZDA .