My goal is to save a JSON file that is retrieved on a page after logging in with a POST request. Since there is no available API, I am looking to download the response of a script called during the page load as a JSON file using Greasemonkey.
The page I'm referring to is located at domain.com/map, which triggers domain.com/map/script during its loading:
<script type="text/javascript" charset="utf-8"> function open() {$.ajax{{ url: "/script", type: "POST", dataType: "json",), [...] }); }; function functionname(value){ [...] }; open();
. The response from domain.com/map/script contains the JSON data that I want to save (either locally or preferably using FTP).