Compare commits

...

4 Commits

Author SHA1 Message Date
3aff7caf2e added extension link 2026-07-01 18:34:06 -04:00
7a645494f2 wording 2026-06-08 02:19:40 -04:00
e363d79bec readme tweak 2026-06-07 01:28:01 -04:00
91ab1d9e7e hello world cleanup 2026-06-06 19:53:27 -04:00
2 changed files with 13 additions and 22 deletions

View File

@@ -17,6 +17,14 @@ I'm so fucking tired of retards recommending libraries that are so easily detect
## Installation ## 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. 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: Then, start the server:
```bash ```bash
cd server cd server
@@ -103,26 +111,9 @@ Gets the browser's user agent string.
**Returns:** `string` on success, `false` on failure. **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: 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`
- `main_frame`
- `sub_frame`
- `stylesheet`
- `script`
- `image`
- `object`
- `xmlhttprequest`
- `ping`
- `font`
- `media`
- `websocket`
- `csp_report`
- `imageset`
- `web_manifest`
- `speculative`
- `other`
Default is `main_frame`, `xmlhttprequest`. Default is `main_frame`, `xmlhttprequest`.

View File

@@ -52,12 +52,12 @@ fplay.event.on("browser_connect", async function(ws){
fplay.event.on("web_request", async function(request){ 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); fplay.init(port, password, timeout);