您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replace two-letter identifiers with unique single characters in the boss map and panel without altering data-title attributes. Mark blocks with specified styles based on boss names.
Boss Identifier Replacer Script
The Boss Identifier Replacer UserScript enhances the Dead Frontier Profiler (DFP) by replacing two-letter identifiers in the boss map and panel with unique single characters. This improvement boosts readability and allows for better visual distinction between different bosses. Additionally, the script supports custom border styling for specific bosses, enabling users to visually mark blocks based on boss names.
useFullTitleForStyling
, allows users to choose whether to use the full boss block name (including counts) or just the boss name for styling.const enableIdentifierReplacement = true; // Set to false to disable identifier replacement const enableBossStyling = true; // Set to false to disable custom boss block styling const useFullTitleForStyling = false; // Set to true to use the full boss block name (e.g., "4 x Bandits")
bossStyles
object to define styles for specific bosses. For example when useFullTitleForStyling is set to false:const useFullTitleForStyling = false; const bossStyles = { "Bandits": "1px dashed red", "Six-Armed Bandit": "1px dashed yellow", "Wraith": "2px dashed #F54927", "Scarab Knight": "3px dotted #194857",//hex color used instead of color name #194857 "Weak Eldritch Horror": "1px solid blue",// solid, dotted, dashed is just border line style. };
bossStyles
object to define styles for specific bosses. For example when useFullTitleForStyling is set to true:const useFullTitleForStyling = true; const bossStyles = { "2 x Bandits": "1px dashed orange", "4 x Bandits": "1px dashed red", "4 x Six-Armed Bandit": "1px dashed yellow", "Wraith": "2px dashed #F54927", "Scarab Knight": "3px dotted #194857",//hex color used instead of color name #194857 "3 x Weak Eldritch Horror": "1px solid blue",// solid, dotted, dashed is just border line style. };
useFullTitleForStyling
:useFullTitleForStyling
is set to true, the script will use the exact boss block name as it appears on the BossMap (e.g., "4 x Bandits"). This means that styles will be applied based on the full title, including the count.In cases where a boss block contains multiple bosses (e.g., both "Bandits" and "Flaming Titan"), only one style will be applied to the border.
Refer to the image below to see how the boss block names appear based on the useFullTitleForStyling
setting: