Taimanin Screen

対魔忍のゲーム画面以外を疎放的に非表示にするスクリプト。

Version vom 28.11.2022. Aktuellste Version

// ==UserScript==
// @name        Taimanin Screen
// @description 対魔忍のゲーム画面以外を疎放的に非表示にするスクリプト。
// @author      Sakura_Kocho
// @namespace   https://twitter.com/Sakura_Kocho
// @version     1.0
// @match       https://pc-play.games.dmm.com/play/taimanin_rpg/
// @match       https://pc-play.games.dmm.co.jp/play/taimanin_rpgx/
// @icon        https://pbs.twimg.com/profile_images/1471673794754654208/e4U53d02_400x400.png
// ==/UserScript==

var css = function(){/*
	html {
    overflow: hidden;
  }
  #game_frame {
    margin-top: -35px !important;
    width: 1280px !important;
    height: 755px !important;
  }
  .HiddenTaimanin {
    display: none;
  }
*/}.toString().match(/\n([\s\S]*)\n/)[1];

var style = document.createElement("style");
style.innerHTML = css;
document.head.appendChild(style);

var game = document.querySelector('iframe[id="game_frame"]');
document.documentElement.appendChild(game);

for (var i = 0 ; i < document.getElementsByTagName("*").length ; i++){
  if (document.getElementsByTagName("*")[i].tagName != "HTML" & document.getElementsByTagName("*")[i].tagName != "IFRAME") {
    document.getElementsByTagName("*")[i].classList.add("HiddenTaimanin");
  }
}