Poki Fullscreen Button (Always On)

Adds a fullscreen button to poki.com when missing, keeps it alive across SPA navigation and fullscreen toggles without heavy DOM observers.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
jonilul
今日安裝
0
安裝總數
54
評價
0 0 0
版本
1.3.0
建立日期
2025-08-20
更新日期
2025-08-20
尺寸
5.7 KB
授權條款
MIT
腳本執行於

What this script does

Poki sometimes hides or drops the fullscreen control when you exit fullscreen or jump between games (SPA navigation). This script:

  • Adds a native-looking “Fullscreen” button right next to Poki’s “Report a bug” button.
  • Keeps it alive across SPA route changes and fullscreen toggles.
  • Avoids heavy DOM observers. It only watches the tiny control container and uses lightweight URL-change hooks.

Why it’s fast

  • No full-document MutationObserver.
  • Listens for history.pushState / replaceState / popstate to detect game switches.
  • Reacts to fullscreenchange.
  • Tiny 2.5 s safety ping that no-ops when everything is fine.

How it works

  1. Locates the “Report a bug” button by its #reportIcon <use> reference. That’s more stable than random CSS classes.
  2. If Poki hasn’t rendered a fullscreen/minimize button, it injects one with the same structure/classes so it matches the site’s styling.
  3. Observes only the local parent container of the controls. If the site hot-swaps the controls, the button is restored instantly.
  4. If Poki later adds its own fullscreen/minimize control, the script backs off to avoid duplicates.

Features

  • SPA-aware: survives game switches without page reloads.
  • Auto-restore: after exiting fullscreen or UI hot-swaps.
  • Native look: identical markup to Poki’s own button.
  • Zero extra permissions: no network, no storage.

Install & use

  1. Install Tampermonkey (or a compatible userscript manager).
  2. Install this userscript.
  3. Open any game on poki.com. If Poki doesn’t provide a fullscreen button, you’ll see a new one right beside “Report a bug”.

Compatibility

  • Chromium-based browsers and Firefox.
  • Desktop tested. Mobile fullscreen APIs vary and may be restricted by browsers.

Known limitations

  • If Poki radically changes the control bar or removes the #reportIcon reference, detection logic may need an update.
  • The script requests fullscreen on the document element for maximum compatibility. Targeting per-game iframes is intentionally avoided to keep it universal.

Privacy

  • No tracking, no telemetry, no calls to external domains.
  • Runs only on https://poki.com/*.

Changelog

  • 1.3.0 — Release: SPA-aware, local container observer only, native-style button, fallback safety ping.

Credits

  • Built for players who just want a solid fullscreen button that stays put.