From bb39b7388f347335721f1492943fa4262c0b5b61 Mon Sep 17 00:00:00 2001 From: yekira Date: Wed, 29 Mar 2023 01:36:53 +0900 Subject: [PATCH] upppp --- content-script.js | 4 ++-- manifest.json | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/content-script.js b/content-script.js index 6d2ab6a..955fc41 100644 --- a/content-script.js +++ b/content-script.js @@ -4,8 +4,8 @@ function fixNode(node) { if (!parent) { return; } - // 親要素がcssかjsだったら処理しない - if (['style', 'script', 'noscript'].includes(parent.tagName.toLowerCase())) { + // 親要素がtitleかcssかjsだったら処理しない + if (['title','style', 'script', 'noscript'].includes(parent.tagName.toLowerCase())) { return; } // そもそもテキストではない場合は処理しない diff --git a/manifest.json b/manifest.json index 187817f..d553a5a 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, - "name": "Dotter Freeze", - "version": "4.0", + "name": "Dont Stop", + "version": "5.0", "description": "文字に疲れた全ての人に捧げる拡張機能です。Ctrlとドット(.)を同時押ししてテキストのない世界へダイブしよう。", "background": { "service_worker": "background.js" @@ -11,6 +11,10 @@ "matches": [ "" ], + "exclude_matches": [ + "https://github.com/**", + "https://ai.ls/**" + ], "js": [ "content-script.js" ]