› Get Google Chrome
› Vimium · 在 Chrome 里使用 vim 快捷键
Valyrian
V2EX  ›  Chrome

Headless chrome 能否实现获取一个 local variable?

  •  
  •   Valyrian · Jul 27, 2020 · 2662 views
    This topic created in 2292 days ago, the information mentioned may be changed or developed.

    想自动化这套操作:

    1. 在一个网页的 js 中加入 breakpoint
    2. 刷新网页,js 在 breakpoint 暂停
    3. 查看某个 local variable 的值
    2 replies  •  2020-07-27 11:14:12 +08:00
    Blanke
    Blanke
    Jul 27, 2020❤️1
    1
    写 hook 脚本或者自动化处理添加输出代码,然后输出变量啥的
    otakustay
    otakustay
    Jul 27, 2020❤️1
    2
    先用网络 API 把那个 js 的资源拦下来,在对应的函数里面加一行 console.log 打印变量?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5205 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 01:26 · PVG 09:26 · LAX 17:26 · JFK 20:26
    ♥ Do have faith in what you're doing.