This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Extract Text from Astrocentr Pages | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Extract text content from multiple pages on Astrocentr website | |
// @author Your Name | |
// @match https://www.astrocentr.ru/index.php* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Creates multipart body for files with additional headers | |
* @param formData native FormData | |
* @param headers object: key - field name, value - object with header: value pairs | |
* @returns contentType and body | |
*/ | |
function createMultipartBody( | |
formData: FormData, | |
headers: Record<string, AdditionalHeaders> = {}, |
OlderNewer