Poki 游戏全屏/Poki game full screen

Maximize the poki game window

// ==UserScript==
// @name         Poki 游戏全屏/Poki game full screen
// @namespace    https://poki.com/
// @version      1.1
// @author       sunjxf
// @description  Maximize the poki game window
// @match        https://poki.com/en/g/*
// @match        https://poki.com/zh/g/*
// @grant        window.close
// @noframes
// @license      MIT
// ==/UserScript==

(function(){
    'use strict';
var element = document.querySelector('#game-player');

function makeElementFullScreen(element) {
  element.style.position = 'fixed';
  element.style.top = '0';
  element.style.left = '0';
  element.style.width = '100vw';
  element.style.height = '100vh';
  element.style.margin = '0';
  element.style.padding = '0';
  element.style.zIndex = 3;
}

makeElementFullScreen(element);

document.querySelector('.J91n1ymJasoch_FZq89b').style.display = 'none'; ;


// 选择所有匹配的元素
var ads = document.querySelectorAll('.yqRHsCZfzhtS8CI82MRw');
// 遍历每个元素
ads.forEach(function(ad) {
    ad.style.display = 'none';
});



})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址