mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/StarCitizenBoxBrowserEx.git
synced 2024-12-22 19:33:43 +08:00
移除 ccu game 汉化 (官方已内置)
This commit is contained in:
parent
154fc2515b
commit
79635be514
@ -104,7 +104,6 @@ function getLocalizationResource(localizationResource, key) {
|
|||||||
|
|
||||||
async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
|
async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
|
||||||
url = "https://ch.citizenwiki.cn/json-files/locales/" + fileName;
|
url = "https://ch.citizenwiki.cn/json-files/locales/" + fileName;
|
||||||
const box = await getLocalStorage();
|
|
||||||
if (cacheKey && cacheKey !== "") {
|
if (cacheKey && cacheKey !== "") {
|
||||||
const localVersion = await getLocalData(`${cacheKey}_version`);
|
const localVersion = await getLocalData(`${cacheKey}_version`);
|
||||||
const data = await getLocalData(cacheKey);
|
const data = await getLocalData(cacheKey);
|
||||||
@ -124,14 +123,6 @@ async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getLocalStorage() {
|
|
||||||
return new Promise((resolve) => {
|
|
||||||
chrome.storage.local;
|
|
||||||
resolve();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function getLocalData(key) {
|
function getLocalData(key) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
chrome.storage.local.get([key], (result) => {
|
chrome.storage.local.get([key], (result) => {
|
||||||
|
@ -29,7 +29,7 @@ function LocalizationWatchUpdate() {
|
|||||||
SCLocalizationEnableSplitMode = true;
|
SCLocalizationEnableSplitMode = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.location.hostname.includes("www.erkul.games") || window.location.hostname.includes("ccugame.app")) {
|
if (window.location.hostname.includes("www.erkul.games")) {
|
||||||
document.body.addEventListener("click", function (event) {
|
document.body.addEventListener("click", function (event) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
allTranslate().then(_ => {
|
allTranslate().then(_ => {
|
||||||
|
@ -25,8 +25,7 @@
|
|||||||
"https://robertsspaceindustries.com/*",
|
"https://robertsspaceindustries.com/*",
|
||||||
"https://*.robertsspaceindustries.com/*",
|
"https://*.robertsspaceindustries.com/*",
|
||||||
"https://www.erkul.games/*",
|
"https://www.erkul.games/*",
|
||||||
"https://uexcorp.space/*",
|
"https://uexcorp.space/*"
|
||||||
"https://ccugame.app/*"
|
|
||||||
],
|
],
|
||||||
"js": [
|
"js": [
|
||||||
"core.js",
|
"core.js",
|
||||||
@ -35,8 +34,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matches": [
|
"matches": [
|
||||||
"https://www.erkul.games/*",
|
"https://www.erkul.games/*"
|
||||||
"https://ccugame.app/*"
|
|
||||||
],
|
],
|
||||||
"js": [
|
"js": [
|
||||||
"thirdparty/jquery.min.js"
|
"thirdparty/jquery.min.js"
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<a href="https://ccugame.app" target="_blank">
|
<a href="https://ccugame.app" target="_blank">
|
||||||
<img src="https://ccugame.app/assets/images/logo/logo.png">
|
<img src="https://ccugame.app/assets/images/logo/logo.png">
|
||||||
<h3>CCUGame</h3>
|
<h3>CCUGame(官方汉化)</h3>
|
||||||
<p>资产管理和舰队规划,一定要理性消费.jpg</p>
|
<p>资产管理和舰队规划,一定要理性消费.jpg</p>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -104,7 +104,6 @@ function getLocalizationResource(localizationResource, key) {
|
|||||||
|
|
||||||
async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
|
async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
|
||||||
url = "https://ch.citizenwiki.cn/json-files/locales/" + fileName;
|
url = "https://ch.citizenwiki.cn/json-files/locales/" + fileName;
|
||||||
const box = await getLocalStorage();
|
|
||||||
if (cacheKey && cacheKey !== "") {
|
if (cacheKey && cacheKey !== "") {
|
||||||
const localVersion = await getLocalData(`${cacheKey}_version`);
|
const localVersion = await getLocalData(`${cacheKey}_version`);
|
||||||
const data = await getLocalData(cacheKey);
|
const data = await getLocalData(cacheKey);
|
||||||
@ -124,14 +123,6 @@ async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getLocalStorage() {
|
|
||||||
return new Promise((resolve) => {
|
|
||||||
chrome.storage.local;
|
|
||||||
resolve();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function getLocalData(key) {
|
function getLocalData(key) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
chrome.storage.local.get([key], (result) => {
|
chrome.storage.local.get([key], (result) => {
|
||||||
|
@ -29,7 +29,7 @@ function LocalizationWatchUpdate() {
|
|||||||
SCLocalizationEnableSplitMode = true;
|
SCLocalizationEnableSplitMode = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.location.hostname.includes("www.erkul.games") || window.location.hostname.includes("ccugame.app")) {
|
if (window.location.hostname.includes("www.erkul.games")) {
|
||||||
document.body.addEventListener("click", function (event) {
|
document.body.addEventListener("click", function (event) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
allTranslate().then(_ => {
|
allTranslate().then(_ => {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "星际公民盒子浏览器拓展",
|
"name": "星际公民盒子浏览器拓展",
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"description": "为星际公民网站及工具站提供汉化",
|
"description": "为星际公民网站及工具站提供汉化",
|
||||||
"author": "xkeyC",
|
"author": "xkeyC",
|
||||||
"icons": {
|
"icons": {
|
||||||
@ -26,8 +26,7 @@
|
|||||||
"https://robertsspaceindustries.com/*",
|
"https://robertsspaceindustries.com/*",
|
||||||
"https://*.robertsspaceindustries.com/*",
|
"https://*.robertsspaceindustries.com/*",
|
||||||
"https://www.erkul.games/*",
|
"https://www.erkul.games/*",
|
||||||
"https://uexcorp.space/*",
|
"https://uexcorp.space/*"
|
||||||
"https://ccugame.app/*"
|
|
||||||
],
|
],
|
||||||
"js": [
|
"js": [
|
||||||
"core.js",
|
"core.js",
|
||||||
@ -36,8 +35,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matches": [
|
"matches": [
|
||||||
"https://www.erkul.games/*",
|
"https://www.erkul.games/*"
|
||||||
"https://ccugame.app/*"
|
|
||||||
],
|
],
|
||||||
"js": [
|
"js": [
|
||||||
"thirdparty/jquery.min.js"
|
"thirdparty/jquery.min.js"
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<a href="https://ccugame.app" target="_blank">
|
<a href="https://ccugame.app" target="_blank">
|
||||||
<img src="https://ccugame.app/assets/images/logo/logo.png">
|
<img src="https://ccugame.app/assets/images/logo/logo.png">
|
||||||
<h3>CCUGame</h3>
|
<h3>CCUGame(官方汉化)</h3>
|
||||||
<p>资产管理和舰队规划,一定要理性消费.jpg</p>
|
<p>资产管理和舰队规划,一定要理性消费.jpg</p>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user