add logos & rules
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"app_name": {
|
"app_name": {
|
||||||
"message": "KISS Translator (by Gabe)"
|
"message": "KISS Translator"
|
||||||
},
|
},
|
||||||
"app_description": {
|
"app_description": {
|
||||||
"message": "A minimalist bilingual translation Extension & Greasemonkey Script"
|
"message": "A minimalist bilingual translation Extension & Greasemonkey Script"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"app_name": {
|
"app_name": {
|
||||||
"message": "简约翻译 (by Gabe)"
|
"message": "简约翻译"
|
||||||
},
|
},
|
||||||
"app_description": {
|
"app_description": {
|
||||||
"message": "一个简约的双语网页翻译扩展 & 油猴脚本"
|
"message": "一个简约的双语网页翻译扩展 & 油猴脚本"
|
||||||
BIN
public/images/logo128.png
Normal file
BIN
public/images/logo128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
BIN
public/images/logo16.png
Normal file
BIN
public/images/logo16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 469 B |
BIN
public/images/logo32.png
Normal file
BIN
public/images/logo32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 898 B |
BIN
public/images/logo48.png
Normal file
BIN
public/images/logo48.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
@@ -3,7 +3,7 @@
|
|||||||
"name": "__MSG_app_name__",
|
"name": "__MSG_app_name__",
|
||||||
"description": "__MSG_app_description__",
|
"description": "__MSG_app_description__",
|
||||||
"version": "1.4.0",
|
"version": "1.4.0",
|
||||||
"default_locale": "zh",
|
"default_locale": "zh-CN",
|
||||||
"author": "Gabe<yugang2002@gmail.com>",
|
"author": "Gabe<yugang2002@gmail.com>",
|
||||||
"homepage_url": "https://github.com/fishjar/kiss-translator",
|
"homepage_url": "https://github.com/fishjar/kiss-translator",
|
||||||
"background": {
|
"background": {
|
||||||
@@ -17,11 +17,14 @@
|
|||||||
],
|
],
|
||||||
"permissions": ["<all_urls>", "storage"],
|
"permissions": ["<all_urls>", "storage"],
|
||||||
"icons": {
|
"icons": {
|
||||||
"192": "images/logo192.png"
|
"16": "icon16.png",
|
||||||
|
"32": "icon32.png",
|
||||||
|
"48": "icon48.png",
|
||||||
|
"128": "icon128.png"
|
||||||
},
|
},
|
||||||
"browser_action": {
|
"browser_action": {
|
||||||
"default_icon": {
|
"default_icon": {
|
||||||
"192": "images/logo192.png"
|
"128": "icon128.png"
|
||||||
},
|
},
|
||||||
"default_title": "__MSG_app_name__",
|
"default_title": "__MSG_app_name__",
|
||||||
"default_popup": "popup.html"
|
"default_popup": "popup.html"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"name": "__MSG_app_name__",
|
"name": "__MSG_app_name__",
|
||||||
"description": "__MSG_app_description__",
|
"description": "__MSG_app_description__",
|
||||||
"version": "1.4.0",
|
"version": "1.4.0",
|
||||||
"default_locale": "zh",
|
"default_locale": "zh-CN",
|
||||||
"author": "Gabe<yugang2002@gmail.com>",
|
"author": "Gabe<yugang2002@gmail.com>",
|
||||||
"homepage_url": "https://github.com/fishjar/kiss-translator",
|
"homepage_url": "https://github.com/fishjar/kiss-translator",
|
||||||
"background": {
|
"background": {
|
||||||
@@ -19,11 +19,14 @@
|
|||||||
"permissions": ["storage"],
|
"permissions": ["storage"],
|
||||||
"host_permissions": ["<all_urls>"],
|
"host_permissions": ["<all_urls>"],
|
||||||
"icons": {
|
"icons": {
|
||||||
"192": "images/logo192.png"
|
"16": "icon16.png",
|
||||||
|
"32": "icon32.png",
|
||||||
|
"48": "icon48.png",
|
||||||
|
"128": "icon128.png"
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
"default_icon": {
|
"default_icon": {
|
||||||
"192": "images/logo192.png"
|
"128": "icon128.png"
|
||||||
},
|
},
|
||||||
"default_title": "__MSG_app_name__",
|
"default_title": "__MSG_app_name__",
|
||||||
"default_popup": "popup.html"
|
"default_popup": "popup.html"
|
||||||
|
|||||||
@@ -7,6 +7,42 @@ export const RULES = [
|
|||||||
pattern: `bearblog.dev, www.theverge.com, www.tampermonkey.net/documentation.php`,
|
pattern: `bearblog.dev, www.theverge.com, www.tampermonkey.net/documentation.php`,
|
||||||
selector: DEFAULT_SELECTOR,
|
selector: DEFAULT_SELECTOR,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
pattern: `https://news.google.com/`,
|
||||||
|
selector: `h4`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: `themessenger.com`,
|
||||||
|
selector: `.leading-tight, .leading-tighter, .my-2 p, .font-body p, article ${DEFAULT_SELECTOR}`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: `www.telegraph.co.uk`,
|
||||||
|
selector: `article ${DEFAULT_SELECTOR}`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: `www.theguardian.com`,
|
||||||
|
selector: `.show-underline, .dcr-hup5wm div, .dcr-7vl6y8 div, .dcr-12evv1c, figcaption, article ${DEFAULT_SELECTOR}, [data-cy="mostviewed-footer"] h4`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: `www.semafor.com`,
|
||||||
|
selector: `${DEFAULT_SELECTOR}, .styles_intro__IYj__, [class*="styles_description"]`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: `www.noemamag.com`,
|
||||||
|
selector: `.splash__title, .single-card__title, .single-card__type, .single-card__topic, .highlighted-content__title, .single-card__author, article ${DEFAULT_SELECTOR}, .quote__text, .wp-caption-text div`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: `restofworld.org`,
|
||||||
|
selector: `${DEFAULT_SELECTOR}, .recirc-story__headline, .recirc-story__dek`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: `www.axios.com`,
|
||||||
|
selector: `.h7, ${DEFAULT_SELECTOR}`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern: `www.newyorker.com`,
|
||||||
|
selector: `.summary-item__hed, .summary-item__dek, .summary-collection-grid__dek, .dqtvfu, .rubric__link, .caption, article ${DEFAULT_SELECTOR}, .HEhan ${DEFAULT_SELECTOR}, .ContributorBioBio-fBolsO`,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
pattern: `https://time.com/`,
|
pattern: `https://time.com/`,
|
||||||
selector: `h1, h3, .summary, .video-title, #article-body ${DEFAULT_SELECTOR}, .image-wrap-container .credit.body-caption, .media-heading`,
|
selector: `h1, h3, .summary, .video-title, #article-body ${DEFAULT_SELECTOR}, .image-wrap-container .credit.body-caption, .media-heading`,
|
||||||
@@ -72,8 +108,8 @@ export const RULES = [
|
|||||||
selector: `h1, .s-prose p, .comment-body .comment-copy`,
|
selector: `h1, .s-prose p, .comment-body .comment-copy`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
pattern: `developer.chrome.com/docs, medium.com, developers.cloudflare.com, react.dev, create-react-app.dev`,
|
pattern: `www.npmjs.com/package/, developer.chrome.com/docs, medium.com, developers.cloudflare.com, react.dev, create-react-app.dev`,
|
||||||
selector: `h1, article ${DEFAULT_SELECTOR}`,
|
selector: `article ${DEFAULT_SELECTOR}`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
pattern: `news.ycombinator.com`,
|
pattern: `news.ycombinator.com`,
|
||||||
|
|||||||
Reference in New Issue
Block a user