diff options
author | Haoran S. Diao <0@hairydiode.xyz> | 2019-02-11 21:38:44 -0500 |
---|---|---|
committer | Haoran S. Diao <0@hairydiode.xyz> | 2019-02-11 21:38:44 -0500 |
commit | 733508b6cd14de72bf703f02a9d9e2cd11b32280 (patch) | |
tree | f24590288b1e24696af679cb231361a72cd3ad75 | |
parent | 8b1dd7706a7cb2c9186005af0a93081793547dba (diff) |
Fixed false positive for one of the zdic find and replaces
-rw-r--r-- | manifest.json | 2 | ||||
-rw-r--r-- | zdic.js | 2 | ||||
-rw-r--r-- | 去英-0.6-fx.xpi | bin | 0 -> 8700 bytes | |||
-rw-r--r-- | 去英.zip | bin | 4325 -> 4328 bytes |
4 files changed, 2 insertions, 2 deletions
diff --git a/manifest.json b/manifest.json index 474d419..868812d 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "去英", - "version": "0.5", + "version": "0.6", "browser_specific_settings": { "gecko": { "id": "deanglicize@hairydiode.xyz", @@ -3,5 +3,5 @@ for(i=0; i < tabpages.length; i++){ e = tabpages[i]; e.innerHTML = e.innerHTML.replace(/English.*[a-z].*/gi,"「去英」"); e.innerHTML = e.innerHTML.replace(/\[.*[a-z].*\]/gi,"「去英」"); - e.innerHTML = e.innerHTML.replace(/\<span.*\>.*[a-z].*\<\/span\>/gi,"「去英」"); + e.innerHTML = e.innerHTML.replace(/\<span.*\>[a-z].*?[a-z]\<\/span\>/gi,"「去英」"); } diff --git a/去英-0.6-fx.xpi b/去英-0.6-fx.xpi Binary files differBinary files differnew file mode 100644 index 0000000..fd10b6a --- /dev/null +++ b/去英-0.6-fx.xpi |