Taimanin Screen

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

Від 28.11.2022. Дивіться остання версія.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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");
  }
}