mirror of
https://github.com/snobu/destreamer.git
synced 2026-02-23 14:58:25 +00:00
Compare commits
3 Commits
d9137cc690
...
7c16da6505
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c16da6505 | ||
|
|
52d5b227e2 | ||
|
|
a62f8ef777 |
11
README.md
11
README.md
@@ -66,19 +66,16 @@ const browser: puppeteer.Browser = await puppeteer.launch({
|
||||
});
|
||||
```
|
||||
|
||||
Navigate to `chrome://version` in the browser you want to plug in and copy executable path from there. Use double backslash for Windows.
|
||||
|
||||
Now, change `executablePath` to reflect the path to your browser and profile (i.e. to use Microsoft Edge on Windows):
|
||||
```typescript
|
||||
executablePath: 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe',
|
||||
```
|
||||
In Linux for Chromium,
|
||||
```typescript
|
||||
executablePath: '/usr/bin/chromium-browser',
|
||||
```
|
||||
Depending on your distro, it may also be `/usr/bin/chromium`. You will have to change it appropriately for Google Chrome.
|
||||
|
||||
Note that for Mac the path may look a little different but no other changes are necessary.
|
||||
You can add `userDataDir` right after `executablePath` with the path to your browser profile (also shown in `chrome://version`) if you want that loaded as well.
|
||||
|
||||
You need to rebuild (`npm run build`) every time you change this configuration.
|
||||
Remember to rebuild (`npm run build`) every time you change this configuration.
|
||||
|
||||
## How to build
|
||||
|
||||
|
||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -994,9 +994,9 @@
|
||||
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
|
||||
},
|
||||
"color-string": {
|
||||
"version": "1.5.4",
|
||||
"resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.4.tgz",
|
||||
"integrity": "sha512-57yF5yt8Xa3czSEW1jfQDE79Idk0+AkN/4KWad6tbdxUmAs3MvjxlWSWD4deYytcRfoZ9nhKyFl1kj5tBvidbw==",
|
||||
"version": "1.5.5",
|
||||
"resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.5.tgz",
|
||||
"integrity": "sha512-jgIoum0OfQfq9Whcfc2z/VhCNcmQjWbey6qBX0vqt7YICflUmBCh9E9CiQD5GSJ+Uehixm3NUwHVhqUAWRivZg==",
|
||||
"requires": {
|
||||
"color-name": "^1.0.0",
|
||||
"simple-swizzle": "^0.2.2"
|
||||
|
||||
Reference in New Issue
Block a user