You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A function to trigger a download using chrome.downloads API.
184
+
*
185
+
* @param {Object} options - The options for the download operation.
186
+
* @param {string} options.url - The URL to download.
187
+
* @param {string} [options.body] - Post body.
188
+
* @param {{name: string, value: string}[]} [options.headers] - Extra HTTP headers to send with the request if the URL uses the HTTP[s] protocol. Each header is represented as a dictionary containing the keys name and either value or binaryValue, restricted to those allowed by XMLHttpRequest.
189
+
* @param {'GET'|'POST'} [options.method] - The HTTP method to use for the download.
190
+
* @param {string} [options.filename] - A file path relative to the Downloads directory to contain the downloaded file, possibly containing subdirectories.
191
+
* @param {string} [options.saveAs] - Use a file-chooser to allow the user to select a filename regardless of whether filename is set or already exists.
192
+
* @param {'uniquify'|'overwrite'|'prompt'} [options.conflictAction] - The action to take if filename already exists.
193
+
* @return {Promise<number>} - A promise that resolves to the ID of the created download.
Copy file name to clipboardExpand all lines: working_note.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
## 01/07/2024 - ?
4
4
5
+
-[ ] hotfix - use chrome.downloads instead of library
6
+
5
7
-[x] get fb profile pic <https://www.facebook.com/profile/pic.php?cuid={}&square_px=1000> -> dont know now cuid was generated
6
8
7
9
-[x] find fb account using phone or email <https://www.facebook.com/login/web/?email={phone_or_email}> -> too hard, fb not always show user's avatar/name
0 commit comments