2014-06-07 15:07:14 +00:00
|
|
|
---
|
2013-10-14 02:36:58 +00:00
|
|
|
title: Weinre
|
2015-11-24 05:09:17 +00:00
|
|
|
category: JavaScript libraries
|
2020-07-03 12:47:47 +00:00
|
|
|
tags: [Archived]
|
|
|
|
intro: |
|
|
|
|
[weinre](https://www.npmjs.com/package/weinre) is a remote Web inspector. Note that it has been deprecated since 2016.
|
2023-03-14 01:52:21 +00:00
|
|
|
archived: Weinre has been deprecated since 2016.
|
2013-10-14 02:36:58 +00:00
|
|
|
---
|
|
|
|
|
2020-07-03 12:47:47 +00:00
|
|
|
### Usage
|
2013-10-14 02:36:58 +00:00
|
|
|
|
2020-07-03 12:47:47 +00:00
|
|
|
#### Install:
|
2013-08-24 07:43:10 +00:00
|
|
|
|
2020-07-03 12:47:47 +00:00
|
|
|
```
|
|
|
|
$ npm install -g weinre
|
|
|
|
```
|
2013-08-24 07:43:10 +00:00
|
|
|
|
2020-07-03 12:47:47 +00:00
|
|
|
#### Start the server:
|
2013-08-24 07:43:10 +00:00
|
|
|
|
2020-07-03 12:47:47 +00:00
|
|
|
```
|
|
|
|
$ weinre --boundHost 0.0.0.0
|
|
|
|
$ open http://localhost:8080
|
|
|
|
```
|
|
|
|
|
|
|
|
### HTML to inject
|
|
|
|
|
|
|
|
<!--prettier-ignore -->
|
|
|
|
```html
|
|
|
|
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.async=1;js.src='http://'+location.hostname+':8080/target/target-script-min.js#anonymous';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','weinre');</script>
|
|
|
|
```
|
|
|
|
|
|
|
|
### References
|
|
|
|
|
|
|
|
- [Weinre](http://people.apache.org/~pmuellr/weinre/)
|
2013-08-24 07:43:10 +00:00
|
|
|
|