Taimanin Screen

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

Verze ze dne 28. 11. 2022. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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