移除 ccu game 汉化 (官方已内置)

This commit is contained in:
xkeyC 2023-11-16 21:05:39 +08:00
parent 154fc2515b
commit 79635be514
8 changed files with 91 additions and 113 deletions

View File

@ -104,7 +104,6 @@ function getLocalizationResource(localizationResource, key) {
async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
url = "https://ch.citizenwiki.cn/json-files/locales/" + fileName;
const box = await getLocalStorage();
if (cacheKey && cacheKey !== "") {
const localVersion = await getLocalData(`${cacheKey}_version`);
const data = await getLocalData(cacheKey);
@ -124,14 +123,6 @@ async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
return data;
}
function getLocalStorage() {
return new Promise((resolve) => {
chrome.storage.local;
resolve();
});
}
function getLocalData(key) {
return new Promise((resolve) => {
chrome.storage.local.get([key], (result) => {

View File

@ -29,7 +29,7 @@ function LocalizationWatchUpdate() {
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) {
setTimeout(function () {
allTranslate().then(_ => {

View File

@ -25,8 +25,7 @@
"https://robertsspaceindustries.com/*",
"https://*.robertsspaceindustries.com/*",
"https://www.erkul.games/*",
"https://uexcorp.space/*",
"https://ccugame.app/*"
"https://uexcorp.space/*"
],
"js": [
"core.js",
@ -35,8 +34,7 @@
},
{
"matches": [
"https://www.erkul.games/*",
"https://ccugame.app/*"
"https://www.erkul.games/*"
],
"js": [
"thirdparty/jquery.min.js"

View File

@ -90,7 +90,7 @@
<div class="card">
<a href="https://ccugame.app" target="_blank">
<img src="https://ccugame.app/assets/images/logo/logo.png">
<h3>CCUGame</h3>
<h3>CCUGame(官方汉化)</h3>
<p>资产管理和舰队规划,一定要理性消费.jpg</p>
</a>
</div>

View File

@ -104,7 +104,6 @@ function getLocalizationResource(localizationResource, key) {
async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
url = "https://ch.citizenwiki.cn/json-files/locales/" + fileName;
const box = await getLocalStorage();
if (cacheKey && cacheKey !== "") {
const localVersion = await getLocalData(`${cacheKey}_version`);
const data = await getLocalData(cacheKey);
@ -124,14 +123,6 @@ async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
return data;
}
function getLocalStorage() {
return new Promise((resolve) => {
chrome.storage.local;
resolve();
});
}
function getLocalData(key) {
return new Promise((resolve) => {
chrome.storage.local.get([key], (result) => {

View File

@ -29,7 +29,7 @@ function LocalizationWatchUpdate() {
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) {
setTimeout(function () {
allTranslate().then(_ => {

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "星际公民盒子浏览器拓展",
"version": "0.0.5",
"version": "0.0.6",
"description": "为星际公民网站及工具站提供汉化",
"author": "xkeyC",
"icons": {
@ -26,8 +26,7 @@
"https://robertsspaceindustries.com/*",
"https://*.robertsspaceindustries.com/*",
"https://www.erkul.games/*",
"https://uexcorp.space/*",
"https://ccugame.app/*"
"https://uexcorp.space/*"
],
"js": [
"core.js",
@ -36,8 +35,7 @@
},
{
"matches": [
"https://www.erkul.games/*",
"https://ccugame.app/*"
"https://www.erkul.games/*"
],
"js": [
"thirdparty/jquery.min.js"

View File

@ -90,7 +90,7 @@
<div class="card">
<a href="https://ccugame.app" target="_blank">
<img src="https://ccugame.app/assets/images/logo/logo.png">
<h3>CCUGame</h3>
<h3>CCUGame(官方汉化)</h3>
<p>资产管理和舰队规划,一定要理性消费.jpg</p>
</a>
</div>