您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes Epitaph's GUI more user-friendly.
// ==UserScript== // @name Epitaph Enhancements // @namespace com.wangnianyi2001.userscript // @license MIT // @version 1.0.0 // @author Nianyi Wang // @match https://mkremins.github.io/epitaph/ // @grant none // @description Makes Epitaph's GUI more user-friendly. // ==/UserScript== (function() { 'use strict'; const s = document.createElement('style'); s.innerText = ` * { flex-wrap: nowrap; } html, body, #app, .app { height: 100%; max-height: 100%; position: relative; } .app { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; } body { margin: 0; padding: 0; } .top-bar { position: relative; } .civs { flex: 1; display: flex; flex-direction: row; position: relative; padding-inline: 1em; max-width: 100%; overflow-x: auto; } .civ { display: flex; flex-direction: column-reverse; align-items: flex-start; position: relative; min-width: 280px; height: 100%; max-height: 100%; overflow-y: auto; margin: 0; transition-property: opacity; transition-duration: 30s; } .events { display: flex; flex-direction: column-reverse; } .civ .profile { position: sticky; bottom: 0px; width: 100%; height: 2em; margin-bottom: 0; background-color: #222; } .civ.extinct { opacity: 0 !important; } `; document.body.append(s); const el = new Map(); setInterval(function() { for(const e of document.getElementsByClassName('extinct')) { if(el.has(e)) continue; el.set(e, 30000); } for(let [e, t] of el.entries()) { if(t <= 0) continue; el.set(e, t -= 1000); if(t <= 0) e.style.display = 'none'; } }, 1000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址