Coder Social home page Coder Social logo

Comments (12)

avwo avatar avwo commented on April 30, 2024

根据响应的content-type,你看下请求有没有匹配到规则,还有weinre的id有没有弄错

from whistle.

stevieyu avatar stevieyu commented on April 30, 2024

如果没设weinre id的话不是默认全部只要是html都注入的吗?

from whistle.

avwo avatar avwo commented on April 30, 2024

默认是anonymous

from whistle.

stevieyu avatar stevieyu commented on April 30, 2024

anonymous 的话 html 类型貌似并不会注入weinre

from whistle.

avwo avatar avwo commented on April 30, 2024

看下响应头有没有content-type: text/html,如果没有是不会自动注入weinre的脚本

from whistle.

stevieyu avatar stevieyu commented on April 30, 2024

image
访问开源**,这个的头是有 content-type: text/html
image
weiner 却只是这样 network 一片空白

from whistle.

avwo avatar avwo commented on April 30, 2024

应该是规则没有匹配上,如果匹配上url会加粗,你怎么设置规则的。

这边试了下可以的,你试试这个:

www.oschina.net weinre://

from whistle.

stevieyu avatar stevieyu commented on April 30, 2024

啥规则都没写,我的想法是不写规则,作用于全部属于 html 的页面,加了规则的是可以

from whistle.

avwo avatar avwo commented on April 30, 2024

如果要所有html生效可以用正则匹配:

/./ weinre://

whistle不仅仅做weinre这个事情,还有很多功能,还是需要用户自己配置具体需要哪些功能

from whistle.

stevieyu avatar stevieyu commented on April 30, 2024

谢谢,可以了,主要是不想每个网址都配一遍,

from whistle.

avwo avatar avwo commented on April 30, 2024

前面不加协议,whistle会认为是在配置host(whistle的host可以带端口)

weinre:// http://192.168.199.82 http://192.168.199.82:1111 https://192.168.199.82 https://192.168.199.82:1111

from whistle.

stevieyu avatar stevieyu commented on April 30, 2024

谢谢您的盛情解答,我用 /192.168.199.82/ weinre:// 解决了

from whistle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.