This commit is contained in:
yekira 2023-03-29 01:36:53 +09:00
parent ae4d423d94
commit bb39b7388f
2 changed files with 8 additions and 4 deletions

View file

@ -4,8 +4,8 @@ function fixNode(node) {
if (!parent) { if (!parent) {
return; return;
} }
// 親要素がcssかjsだったら処理しない // 親要素がtitleかcssかjsだったら処理しない
if (['style', 'script', 'noscript'].includes(parent.tagName.toLowerCase())) { if (['title','style', 'script', 'noscript'].includes(parent.tagName.toLowerCase())) {
return; return;
} }
// そもそもテキストではない場合は処理しない // そもそもテキストではない場合は処理しない

View file

@ -1,7 +1,7 @@
{ {
"manifest_version": 3, "manifest_version": 3,
"name": "Dotter Freeze", "name": "Dont Stop",
"version": "4.0", "version": "5.0",
"description": "文字に疲れた全ての人に捧げる拡張機能です。Ctrlとドット(.)を同時押ししてテキストのない世界へダイブしよう。", "description": "文字に疲れた全ての人に捧げる拡張機能です。Ctrlとドット(.)を同時押ししてテキストのない世界へダイブしよう。",
"background": { "background": {
"service_worker": "background.js" "service_worker": "background.js"
@ -11,6 +11,10 @@
"matches": [ "matches": [
"<all_urls>" "<all_urls>"
], ],
"exclude_matches": [
"https://github.com/**",
"https://ai.ls/**"
],
"js": [ "js": [
"content-script.js" "content-script.js"
] ]