Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ety001 opened this issue Jun 17, 2023 · 3 comments · Fixed by #376
Closed

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

ety001 opened this issue Jun 17, 2023 · 3 comments · Fixed by #376

Comments

@ety001
Copy link

ety001 commented Jun 17, 2023

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

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

@gengxuelei
Copy link

+1

@mouyong
Copy link

mouyong commented Jun 11, 2024

#325

同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants