Compare commits
4 Commits
fe92d62b40
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 3aff7caf2e | |||
| 7a645494f2 | |||
| e363d79bec | |||
| 91ab1d9e7e |
29
README.md
29
README.md
@@ -17,6 +17,14 @@ I'm so fucking tired of retards recommending libraries that are so easily detect
|
||||
## Installation
|
||||
Install the 4play extension on a **CLEAN** Firefox install. Do **NOT** use your main profile, it will mess up your tabs and containers. Enter credentials in the extension and connect.
|
||||
|
||||
Just go get the extension on the [Firefox store](https://addons.mozilla.org/en-US/firefox/addon/4play/), or run it for development like so:
|
||||
|
||||
```sh
|
||||
npm install --global web-ext
|
||||
cd ext
|
||||
web-ext run # this will launch a new firefox instance
|
||||
```
|
||||
|
||||
Then, start the server:
|
||||
```bash
|
||||
cd server
|
||||
@@ -103,26 +111,9 @@ Gets the browser's user agent string.
|
||||
|
||||
**Returns:** `string` on success, `false` on failure.
|
||||
|
||||
## `fplay.web_response_whitelist(sources)`
|
||||
### `fplay.web_response_whitelist(sources)`
|
||||
|
||||
Outputs the response body for specific data sources. `sources` can is an array that can contain:
|
||||
|
||||
- `main_frame`
|
||||
- `sub_frame`
|
||||
- `stylesheet`
|
||||
- `script`
|
||||
- `image`
|
||||
- `object`
|
||||
- `xmlhttprequest`
|
||||
- `ping`
|
||||
- `font`
|
||||
- `media`
|
||||
- `websocket`
|
||||
- `csp_report`
|
||||
- `imageset`
|
||||
- `web_manifest`
|
||||
- `speculative`
|
||||
- `other`
|
||||
Outputs the raw body of incoming pages for `fplay.event.on("web_response", ...)`. `sources` defines what data sources will be returned: `main_frame`, `sub_frame`, `stylesheet`, `script`, `image`, `object`, `xmlhttprequest`, `ping`, `font`, `media`, `websocket`, `csp_report`, `imageset`, `web_manifest`, `speculative` and `other`
|
||||
|
||||
Default is `main_frame`, `xmlhttprequest`.
|
||||
|
||||
|
||||
@@ -52,12 +52,12 @@ fplay.event.on("browser_connect", async function(ws){
|
||||
|
||||
fplay.event.on("web_request", async function(request){
|
||||
|
||||
console.log(request);
|
||||
//console.log(request);
|
||||
});
|
||||
|
||||
fplay.event.on("web_response", async function(request){
|
||||
|
||||
fplay.event.on("web_response", async function(response){
|
||||
|
||||
console.log(response);
|
||||
});
|
||||
|
||||
fplay.init(port, password, timeout);
|
||||
|
||||
Reference in New Issue
Block a user