Poki Fullscreen Player

Some Poki games are not in fullscreen, so I made this simple fix!

How to Use ✨

  1. Go to the game page on Poki.com
  2. Open the Console (Press F12 → Go to Console)
  3. Copy & paste the following script, then press Enter


            (function() {
                let gameDiv = document.getElementById('game-player');
                if (!gameDiv) {
                    console.log("Game div not found!");
                    return;
                }
            
                // Apply fullscreen styles to the game div
                gameDiv.style.position = 'fixed';
                gameDiv.style.top = '0';
                gameDiv.style.left = '0';
                gameDiv.style.width = '100vw';
                gameDiv.style.height = '100vh';
                gameDiv.style.zIndex = '9999';
                gameDiv.style.backgroundColor = 'black';
            
                console.log("Fullscreen mode activated!");
            
                // Hide scrollbars on the page
                document.body.style.overflow = 'hidden';
                document.documentElement.style.overflow = 'hidden';
            
                // Ask user to enter fullscreen
                let goFullscreen = confirm("Press OK to enter fullscreen mode!");
                if (goFullscreen) {
                    if (document.documentElement.requestFullscreen) {
                        document.documentElement.requestFullscreen();
                    } else if (document.documentElement.mozRequestFullScreen) { 
                        // Firefox
                        document.documentElement.mozRequestFullScreen();
                    } else if (document.documentElement.webkitRequestFullscreen) { 
                        // Chrome, Safari, Edge
                        document.documentElement.webkitRequestFullscreen();
                    } else if (document.documentElement.msRequestFullscreen) { 
                        // IE/Edge
                        document.documentElement.msRequestFullscreen();
                    }
                }
            })();
            

        

🎮 Now enjoy your game in fullscreen!