Fix some json typos from Chrome

This commit is contained in:
Timothyxxx
2024-02-25 03:49:48 +08:00
parent cc1f0e2dff
commit 506c375554
4 changed files with 178 additions and 176 deletions

View File

@@ -20,7 +20,6 @@ from .chrome import (
get_find_unpacked_extension_path,
get_data_delete_automacally,
get_active_tab_html_parse,
get_active_tab_html_parse_accTree,
get_active_tab_url_parse,
get_gotoRecreationPage_and_get_html_content,
get_url_dashPart,

View File

@@ -43,19 +43,20 @@
"chrome"
],
"evaluator": {
"func":"is_expected_url_pattern_match",
"func": "is_expected_url_pattern_match",
"result": {
"type": "active_tab_info",
"selectors":[
"selectors": [
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
],
"goto_prefix": "https://www."
},
"expected":{
"expected": {
"type": "rule",
"rules":{
"expected": ["forms\\?title=&field_component_target_id=431"]
}
"rules": {
"expected": [
"forms\\?title=&field_component_target_id=431"
]
}
}
}

View File

@@ -43,10 +43,10 @@
"chrome"
],
"evaluator": {
"func":"exact_match",
"func": "exact_match",
"result": {
"type": "url_dashPart",
"selectors":[
"selectors": [
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
],
"goto_prefix": "https://www.",
@@ -54,12 +54,11 @@
"needDeleteId": false,
"returnType": "string"
},
"expected":{
"expected": {
"type": "rule",
"rules":{
"rules": {
"expected": "tamiflu.html#side-effects"
}
}
}
}
}

View File

@@ -43,19 +43,22 @@
"chrome"
],
"evaluator": {
"func":"is_expected_url_pattern_match",
"func": "is_expected_url_pattern_match",
"result": {
"type": "active_url_from_accessTree",
"selectors":[
"selectors": [
"application[name=Chromium] entry[name=Address\\ and\\ search\\ bar]"
],
"goto_prefix": "https://www."
},
"expected":{
"expected": {
"type": "rule",
"rules":{
"expected": ["AgeAppropriate:Kids", "search=spider-man%20toys", "S=4"]
}
"rules": {
"expected": [
"AgeAppropriate:Kids",
"search=spider-man%20toys",
"S=4"
]
}
}
}