zxlie пре 8 година
родитељ
комит
64de23e7db

+ 1 - 1
chrome/manifest.json

@@ -1,6 +1,6 @@
 {
     "name": "WEB前端助手(FeHelper)",
-    "version": "9.5",
+    "version": "9.6",
     "manifest_version": 2,
 
     "default_locale": "zh_CN",

+ 1 - 1
chrome/online.manifest.json

@@ -1,6 +1,6 @@
 {
     "name": "WEB前端助手(FeHelper)",
-    "version": "9.5",
+    "version": "9.6",
     "manifest_version": 2,
 
     "default_locale": "zh_CN",

+ 1 - 1
chrome/static/js/jsonformat/contentscript-jsonformat.js

@@ -52,7 +52,7 @@ baidu.csJsonFormat = (function () {
                 // 如果是pre标签,则看内容是不是和source一样,一样则continue
                 if (tagName === 'pre' && html === source) {
                     continue;
-                } else if (nodes[i].offsetWidth === 0 || nodes[i].offsetHeight === 0 || !html) {
+                } else if ((nodes[i].offsetWidth === 0 || nodes[i].offsetHeight === 0 || !html) && ['script','link'].indexOf(tagName) == -1) {
                     // 如果用户安装迅雷或者其他的插件,也回破坏页面结构,需要兼容一下
                     continue;
                 } else {