FF14纯净模拟

不用求解器,自己编辑调试

目前為 2023-04-03 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         FF14纯净模拟
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  不用求解器,自己编辑调试
// @author       waflare
// @match        https://yyyy.games/crafter/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=yyyy.games
// @grant        GM_addStyle
// @license      GPL
// ==/UserScript==
function main() {
    'use strict';
    const currentRoute = window.location.hash.slice(1);
    console.log(currentRoute)
    if (currentRoute === '/solver') {
      location.href = 'https://yyyy.games/crafter/#/simulator'
      return
    }
    if (currentRoute !== '/simulator') {
        return
    }
    const buttons = document.querySelectorAll('button');
    for (let i = 0; i < buttons.length; i++) {
        if (buttons[i].textContent === '求解') {
            buttons[i].remove();
        }
    }
    let css = `
    .recipe-search-control>.span6 {
      width: 100% !important;
    }
    .bonus-stats {
      margin-left: 0px !important;
    }
    .ad, .helps-bottom {
      display: none !important;
    }
    .simulator-status>.span6 {
      width: 100% !important;
    }
    [ui-view]>.ng-scope {
      display: flex;
      flex-flow: row wrap;
    }
    [ui-view]>.ng-scope>.row-fluid {
      width: calc(50% - 20px) !important;
      margin: 10px;
      box-sizing: border-content;
    }
    [ui-view]>.ng-scope>.row-fluid:last-child {
      width: 100% !important;
      box-sizing: border-content;
      margin-left: 0px !important;
    }
    `
    GM_addStyle(css)
}
window.addEventListener('hashchange', main)
window.addEventListener('load', main)