更新
This commit is contained in:
parent
b50fabd890
commit
d1297dd13b
@ -5,6 +5,7 @@
|
|||||||
// @description 【Christmas Town Helper@2.3.3】修改而来,增加了PDA支持、国内可用的物品价值查询、简单的汉化,希望为国内TC玩家带来更好的体验
|
// @description 【Christmas Town Helper@2.3.3】修改而来,增加了PDA支持、国内可用的物品价值查询、简单的汉化,希望为国内TC玩家带来更好的体验
|
||||||
// @author Hardy [2131687] WOOHOO[2687093]
|
// @author Hardy [2131687] WOOHOO[2687093]
|
||||||
// @match https://www.torn.com/christmas_town.php*
|
// @match https://www.torn.com/christmas_town.php*
|
||||||
|
// @grant GM_setClipboard
|
||||||
// @grant GM_addStyle
|
// @grant GM_addStyle
|
||||||
// @grant unsafeWindow
|
// @grant unsafeWindow
|
||||||
// @grant GM_getValue
|
// @grant GM_getValue
|
||||||
@ -19,12 +20,12 @@
|
|||||||
if (window.xmas_torn_helper_flag) return;
|
if (window.xmas_torn_helper_flag) return;
|
||||||
window.xmas_torn_helper_flag = true;
|
window.xmas_torn_helper_flag = true;
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 兼容手机
|
* 兼容手机
|
||||||
*/
|
*/
|
||||||
const wh_fake_GM = {};
|
const wh_fake_GM = {};
|
||||||
try {
|
try {
|
||||||
wh_fake_GM.isRunningUserscriptEngine = !!GM_xmlhttpRequest;
|
wh_fake_GM.isRunningUserscriptEngine = !!GM_setClipboard;
|
||||||
} catch {
|
} catch {
|
||||||
wh_fake_GM.isRunningUserscriptEngine = false;
|
wh_fake_GM.isRunningUserscriptEngine = false;
|
||||||
window.GM_getValue = (k) => {
|
window.GM_getValue = (k) => {
|
||||||
@ -74,8 +75,12 @@
|
|||||||
};
|
};
|
||||||
window.unsafeWindow = window;
|
window.unsafeWindow = window;
|
||||||
}
|
}
|
||||||
|
let GM_getValue = window.GM_getValue;
|
||||||
|
let GM_setValue = window.GM_setValue;
|
||||||
|
let GM_addStyle = window.GM_addStyle;
|
||||||
|
let GM_xmlhttpRequest = window.GM_xmlhttpRequest;
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 原始脚本
|
* 原始脚本
|
||||||
*/
|
*/
|
||||||
let version = "2.3.3";
|
let version = "2.3.3";
|
||||||
@ -612,7 +617,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
document.querySelector(".hardyCTBox2").innerHTML = '<div class="hardyCTHeader">Christmas Town Helper(圣诞小镇助手)</div><div class="hardyCTTableBox"><div class="hardyCTbuttonBox" style="margin-top: 8px;"><input type="checkbox" class="hardyCTHelperCheckbox" id="santa_helper" value="yes"' + isChecked('santa_helper', 1) + '><label for="santa_helper">高亮圣诞老人</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="npc_helper" value="yes"' + isChecked('npc_helper', 1) + '><label for="npc_helper">高亮其他 NPCs</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="typocalypsehelper" value="yes"' + isChecked("typocalypsehelper", 1) + '><label for="typocalypsehelper">Typoclypse Helper</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="item_helper" value="yes"' + isChecked('item_helper', 1) + '><label for="item_helper">高亮宝箱和物品</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="christmas_wreath_helper" value="yes"' + isChecked('christmas_wreath_helper', 1) + '><label for="christmas_wreath_helper">Christmas Wreath Helper</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="snowball_shooter_helper" value="yes"' + isChecked('snowball_shooter_helper', 1) + '><label for="snowball_shooter_helper">Snowball Shooter Helper</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="santa_clawz_helper" value="yes"' + isChecked('santa_clawz_helper', 1) + '><label for="santa_clawz_helper">Santa Clawz Helper</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="word_fixer_helper" value="yes"' + isChecked('word_fixer_helper', 1) + '><label for="word_fixer_helper">Word Fixer Helper</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="hangman_helper" value="yes"' + isChecked('hangman_helper', 1) + '><label for="hangman_helper">Hangman Helper</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="accessibility_helper" value="yes"' + isChecked('accessibility_helper', 1) + '><label for="accessibility_helper">Accessibility (淡化高亮效果并取消闪烁 Dims the highlighter and removes the blinking, for users facing discomfort due to bright color of highlighter)</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="sound_notif_helper" value="yes"' + isChecked('sound_notif_helper', 1) + '><label for="sound_notif_helper">找到物品时声音提醒</label><br><a href="#/" class="ctRecordLink" style="display:inline;">返回</a><button id="hardyctHelperSave">保存</button><button id="hardyctHelperdelete">删除已找到</button></div><div class="hardyCTtextBox"></div><br><hr><br><div class="hardyCTTable" style="overflow-x:auto;"></div></div>';
|
document.querySelector(".hardyCTBox2").innerHTML = '<div class="hardyCTHeader">Christmas Town Helper(圣诞小镇助手)</div><div class="hardyCTTableBox"><div class="hardyCTbuttonBox" style="margin-top: 8px;"><input type="checkbox" class="hardyCTHelperCheckbox" id="santa_helper" value="yes"' + isChecked('santa_helper', 1) + '><label for="santa_helper">高亮圣诞老人</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="npc_helper" value="yes"' + isChecked('npc_helper', 1) + '><label for="npc_helper">高亮其他 NPCs</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="typocalypsehelper" value="yes"' + isChecked("typocalypsehelper", 1) + '><label for="typocalypsehelper">打字游戏助手(Typoclypse)</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="item_helper" value="yes"' + isChecked('item_helper', 1) + '><label for="item_helper">高亮宝箱和物品</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="christmas_wreath_helper" value="yes"' + isChecked('christmas_wreath_helper', 1) + '><label for="christmas_wreath_helper">花环游戏助手(Christmas Wreath)</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="snowball_shooter_helper" value="yes"' + isChecked('snowball_shooter_helper', 1) + '><label for="snowball_shooter_helper">雪球射手助手(Snowball Shooter)</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="santa_clawz_helper" value="yes"' + isChecked('santa_clawz_helper', 1) + '><label for="santa_clawz_helper">圣诞爪爪(Santa Clawz)</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="word_fixer_helper" value="yes"' + isChecked('word_fixer_helper', 1) + '><label for="word_fixer_helper">填字游戏(Word Fixer Helper)</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="hangman_helper" value="yes"' + isChecked('hangman_helper', 1) + '><label for="hangman_helper">倒吊人(Hangman Helper)</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="accessibility_helper" value="yes"' + isChecked('accessibility_helper', 1) + '><label for="accessibility_helper">Accessibility (淡化高亮效果并取消闪烁 Dims the highlighter and removes the blinking, for users facing discomfort due to bright color of highlighter)</label><br><input type="checkbox" class="hardyCTHelperCheckbox" id="sound_notif_helper" value="yes"' + isChecked('sound_notif_helper', 1) + '><label for="sound_notif_helper">找到物品时声音提醒</label><br><a href="#/" class="ctRecordLink" style="display:inline;">返回</a><button id="hardyctHelperSave">保存</button><button id="hardyctHelperdelete">删除已找到</button></div><div class="hardyCTtextBox"></div><br><hr><br><div class="hardyCTTable" style="overflow-x:auto;"></div></div>';
|
||||||
let itemData = localStorage.getItem("ctHelperItemInfo");
|
let itemData = localStorage.getItem("ctHelperItemInfo");
|
||||||
var marketValueData;
|
var marketValueData;
|
||||||
if (typeof itemData == "undefined" || itemData === null) {
|
if (typeof itemData == "undefined" || itemData === null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user