zxlie / FeHelper

😍FeHelper--Web前端助手(Awesome!Chrome & Firefox & MS-Edge Extension, All in one Toolbox!)
https://www.baidufe.com/fehelper
MIT License
5.07k stars 1.24k forks source link

Body 中的 <script>标记中的json数据被解析出来了 #285

Open ety001 opened 1 year ago

ety001 commented 1 year ago

问题:在访问 kraken.com 交易所网站的时候,FH 扩展会自动解析 body 中, 包裹在 <script id="__NEXT_DATA__" type="application/json"> 中的 json 数据。

期望:不要解析 <script> 标记中的 json 数据,或者可以控制在黑名单里的网站不自动解析。

问题页面的 html 代码:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
  </head>
  <body>
    <div id="__next"></div>
    <script id="__NEXT_DATA__" type="application/json">
      {
        "props": {
        },
        "page": "/sign-in",
        "query": {},
        "buildId": "accounts-JkEOiIeYIWmRBytvTY3CN",
        "assetPrefix": "/accounts",
        "isFallback": false,
        "gsp": true,
        "scriptLoader": []
      }
    </script>
  </body>
</html>
dffxd-suntra commented 1 year ago

确实,每一次仅next网站都会出问题

gengxuelei commented 4 months ago

+1

mouyong commented 3 months ago

https://github.com/zxlie/FeHelper/issues/325

同样的问题