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) {
return;
}
// 親要素がcssかjsだったら処理しない
if (['style', 'script', 'noscript'].includes(parent.tagName.toLowerCase())) {
// 親要素がtitleかcssかjsだったら処理しない
if (['title','style', 'script', 'noscript'].includes(parent.tagName.toLowerCase())) {
return;
}
// そもそもテキストではない場合は処理しない

View file

@ -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": [
"<all_urls>"
],
"exclude_matches": [
"https://github.com/**",
"https://ai.ls/**"
],
"js": [
"content-script.js"
]