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" ]