Deploying to gh-pages from @ fishjar/kiss-translator@e1dfa35c6c 🚀

This commit is contained in:
fishjar
2025-07-22 16:41:16 +00:00
parent 86169089ca
commit 5441473be4
10 changed files with 2047 additions and 1786 deletions

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
@@ -16,7 +16,7 @@
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
document.addEventListener('DOMContentLoaded', function () {
// (() => {
// var shadow = document.querySelector("#shadow1");
// var root = shadow.attachShadow({ mode: "open" });
@@ -54,8 +54,8 @@
// }, 1000);
setTimeout(function () {
var el = document.querySelector("h2>p>span");
el.innerText = "hello world";
var el = document.querySelector('h2>p>span');
el.innerText = 'hello world';
}, 1000);
});
</script>
@@ -105,28 +105,26 @@
<br />
<div id="content">
<p>You need to enable JavaScript to run <span>this app.</span></p>
The <span>embargo</span> has just lifted to confirm that AmpereOne is
coming to Google Cloud with the C3A instances.
The <span>embargo</span> has just lifted to confirm that AmpereOne is coming to
Google Cloud with the C3A instances.
<br />
But these upcoming instances for now are only in private preview form.
<br />
<br />
Needless to say I also haven't had any AmpereOne access to check out the
performance and power efficiency of these new Arm server processors from
Ampere Computing.
performance and power efficiency of these new Arm server processors from Ampere
Computing.
<br />
</div>
<h2>
<p>
<span
>React is a JavaScript library for building user interfaces.</span
>
<span>React is a JavaScript library for building user interfaces.</span>
</p>
</h2>
<hr />
<input id="input1" style="width: 80%;" />
<input id="input1" style="width: 80%" />
<hr />
<textarea id="textarea1" style="width: 80%;">test</textarea>
<textarea id="textarea1" style="width: 80%">test</textarea>
<hr />
<div id="addtitle"></div>
<h2>Shadow 1</h2>
@@ -166,15 +164,47 @@
<br />
<br />
<h2>
React Server Components (or RSC) is a new application architecture
designed by the React team.
React Server Components (or RSC) is a new application architecture designed by the
React team.
</h2>
<iframe
id="iframe1"
width="800px"
height="600px"
src="http://localhost:3000/index.html"
></iframe>
src="http://localhost:3000/index.html"></iframe>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h2>Weve first shared our research on RSC in an introductory talk and an RFC.</h2>
<br />
<br />
<br />
@@ -208,52 +238,10 @@
<br />
<br />
<h2>
Weve first shared our research on RSC in an introductory talk and an
RFC.
To recap them, we are introducing a new kind of component—Server Components—that
run ahead of time and are excluded from your JavaScript bundle.
</h2>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h2>
To recap them, we are introducing a new kind of component—Server
Components—that run ahead of time and are excluded from your JavaScript
bundle.
</h2>
<iframe
id="iframe2"
width="800px"
height="600px"
src="https://react.dev/"
></iframe>
<iframe id="iframe2" width="800px" height="600px" src="https://react.dev/"></iframe>
<br />
<br />
<br />
@@ -288,15 +276,14 @@
<br />
<div class="cont cont1">
<h2>
Server Components can run during the build, letting you read from the
filesystem or fetch static content.
Server Components can run during the build, letting you read from the filesystem
or fetch static content.
</h2>
<ul>
<li>
They can also run on the server, letting you access your data layer
without having to build an API. You can pass data by props from
Server Components to the interactive Client Components in the
browser.
They can also run on the server, letting you access your data layer without
having to build an API. You can pass data by props from Server Components to
the interactive Client Components in the browser.
</li>
<li>以声明式编写 UI可以让你的代码更加可靠且方便调试。</li>
</ul>
@@ -315,14 +302,14 @@
<br />
<div class="cont cont2">
<h2>
Since our last update, we have merged the React Server Components RFC
to ratify the proposal.
Since our last update, we have merged the React Server Components RFC to ratify
the proposal.
</h2>
<ul>
<li>
RSC combines the simple “request/response” mental model of
server-centric Multi-Page Apps with the seamless interactivity of
client-centric Single-Page Apps, giving you the best of both worlds.
RSC combines the simple “request/response” mental model of server-centric
Multi-Page Apps with the seamless interactivity of client-centric Single-Page
Apps, giving you the best of both worlds.
</li>
<li>
React 使创建交互式 UI

File diff suppressed because one or more lines are too long

View File

@@ -19,6 +19,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -47,6 +48,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -75,6 +77,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -103,6 +106,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": ".t-content>div>ul>li",
@@ -131,6 +135,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "div[data-message-author-role='user'] > div",
@@ -159,6 +164,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": ".post-content, .post-content > span, li > span",
@@ -187,6 +193,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -215,6 +222,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -243,6 +251,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -271,6 +280,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -299,6 +309,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -327,6 +338,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -355,6 +367,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -383,6 +396,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -411,6 +425,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -439,6 +454,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -467,6 +483,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -495,6 +512,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "span.post",
@@ -523,6 +541,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -551,6 +570,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -579,6 +599,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -607,6 +628,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -635,6 +657,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -663,6 +686,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": ".a3s.aiL",
@@ -691,6 +715,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -719,6 +744,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": ".sc-cTsKDU",
@@ -747,6 +773,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": ".toptext, .commtext",
@@ -775,6 +802,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -803,6 +831,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -831,6 +860,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -859,6 +889,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "[data-g-id=\"description\"]",
@@ -887,6 +918,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -915,6 +947,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -943,6 +976,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -971,6 +1005,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": ".tgme_widget_message_text",
@@ -999,6 +1034,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1027,6 +1063,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1055,6 +1092,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1083,6 +1121,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": ".postcontent",
@@ -1111,6 +1150,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": ".text-content",
@@ -1139,6 +1179,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": ".message",
@@ -1167,6 +1208,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1195,6 +1237,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1223,6 +1266,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1251,6 +1295,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1279,6 +1324,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1307,6 +1353,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1335,6 +1382,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1363,6 +1411,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1391,6 +1440,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1419,6 +1469,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1447,6 +1498,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1475,6 +1527,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1503,6 +1556,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1531,6 +1585,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1559,6 +1614,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1587,6 +1643,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1615,6 +1672,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1643,6 +1701,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1671,6 +1730,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": ".content",
@@ -1699,6 +1759,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1727,6 +1788,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1755,6 +1817,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1783,6 +1846,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1811,6 +1875,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1839,6 +1904,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1867,6 +1933,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",
@@ -1895,6 +1962,7 @@
"transTiming": "*",
"transTag": "*",
"transTitle": "*",
"transSelected": "*",
"detectRemote": "*",
"skipLangs": [],
"fixerSelector": "",

File diff suppressed because one or more lines are too long

325
main.js

File diff suppressed because one or more lines are too long

View File

@@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "__MSG_app_name__",
"description": "__MSG_app_description__",
"version": "1.8.11",
"version": "1.9.0",
"default_locale": "en",
"author": "Gabe<yugang2002@gmail.com>",
"homepage_url": "https://github.com/fishjar/kiss-translator",

View File

@@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "__MSG_app_name__",
"description": "__MSG_app_description__",
"version": "1.8.11",
"version": "1.9.0",
"default_locale": "en",
"author": "Gabe<yugang2002@gmail.com>",
"homepage_url": "https://github.com/fishjar/kiss-translator",
@@ -45,12 +45,7 @@
"description": "__MSG_open_options__"
}
},
"permissions": [
"storage",
"contextMenus",
"scripting",
"declarativeNetRequest"
],
"permissions": ["storage", "contextMenus", "scripting", "declarativeNetRequest"],
"host_permissions": ["<all_urls>"],
"icons": {
"16": "images/logo16.png",

78
manifest.thunderbird.json Normal file
View File

@@ -0,0 +1,78 @@
{
"manifest_version": 2,
"name": "__MSG_app_name__",
"description": "__MSG_app_description__",
"version": "1.9.0",
"default_locale": "en",
"author": "Gabe<yugang2002@gmail.com>",
"homepage_url": "https://github.com/fishjar/kiss-translator",
"browser_specific_settings": {
"gecko": {
"id": "yugang2002@gmail.com",
"strict_min_version": "78.0"
}
},
"background": {
"scripts": ["background.js"]
},
"content_scripts": [
{
"js": ["content.js"],
"matches": ["<all_urls>"],
"all_frames": true
}
],
"commands": {
"_execute_browser_action": {
"suggested_key": {
"default": "Alt+K"
}
},
"toggleTranslate": {
"suggested_key": {
"default": "Alt+Q"
},
"description": "__MSG_toggle_translate__"
},
"openTranbox": {
"suggested_key": {
"default": "Alt+S"
},
"description": "__MSG_open_tranbox__"
},
"toggleStyle": {
"suggested_key": {
"default": "Alt+C"
},
"description": "__MSG_toggle_style__"
},
"openOptions": {
"description": "__MSG_open_options__"
}
},
"permissions": [
"<all_urls>",
"storage",
"menus",
"messagesModify",
"scripting",
"declarativeNetRequest"
],
"icons": {
"16": "images/logo16.png",
"32": "images/logo32.png",
"48": "images/logo48.png",
"128": "images/logo128.png"
},
"browser_action": {
"default_icon": {
"128": "images/logo128.png"
},
"default_title": "__MSG_app_name__",
"default_popup": "popup.html"
},
"options_ui": {
"page": "options.html",
"open_in_tab": true
}
}

1208
options.js

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
1.8.11
1.9.0