Taimanin Screen

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

Version vom 28.11.2022. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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 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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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