Greasy Fork

来自缓存

Greasy Fork is available in English.

gbf 弹窗定位补全

try to take over the world!

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         gbf 弹窗定位补全
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the world!
// @author       You
// @match        http://game.granbluefantasy.jp/
// @grant        none
// ==/UserScript==
/* jshint esversion: 6 */
(function() {
    'use strict';

    // Your code here...
    if (document.body.className !== "jssdk") {return;}
    const style = document.createElement("style");
    style.innerHTML = `
.element-1 {
display: flex;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

.element-2 {
overflow-x: hidden;
}
`;

    const element1 = document.createElement("div");
    element1.className = "element-1";

    const element2 = document.createElement("div");
    element2.className = "element-2";

    document.querySelector("head").appendChild(style);
    document.body.appendChild(element1);
    element1.appendChild(element2);
    element2.appendChild(document.querySelector("#mobage-game-container"));

})();