FeHelper icon indicating copy to clipboard operation
FeHelper copied to clipboard

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

Open ety001 opened this issue 2 years ago • 3 comments

问题:在访问 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>

ety001 avatar Jun 17 '23 14:06 ety001

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

dffxd-suntra avatar Sep 17 '23 01:09 dffxd-suntra

+1

gengxuelei avatar May 10 '24 03:05 gengxuelei

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

同样的问题

mouyong avatar Jun 11 '24 05:06 mouyong