Re: [greasemonkey-users] How can I persist data and modified outside greasemonkey?
Thanks Anthony, I finally managed to solve my issue. A Mac usually comes with apache pre-installed, so what I did now is: 1. My perl script modifies one HTML file (instead of several scripts) to contain the data I want to provide to my scripts. 2. My perl script then starts Firefox to open this HTML file (through http://localhost, served by the pre-installed apache) 3. My greasemonkey script, which is now a merge of all my previous scripts, sees that it's running on localhost, pulls out the data from the page and persists it. 4. My greasemonkey script, when called on one of my target sites, retrieves the persisted data. -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to greasemonkey-users+unsubscr...@googlegroups.com. To post to this group, send email to greasemonkey-users@googlegroups.com. Visit this group at https://groups.google.com/group/greasemonkey-users. For more options, visit https://groups.google.com/d/optout.
Re: [greasemonkey-users] How can I persist data and modified outside greasemonkey?
Am Freitag, 16. Februar 2018 18:56:03 UTC+1 schrieb Anthony Lieuallen: > >>- Is there any other advice you could give me for how I could solve >>my requirements? >> >> Easiest way would be for your custom (perl) script to export an HTTP > server, which the script can GM.xhr to, for data passing. > That's not as easy as it sounds, compared to what I could do before. My script would have to start an http server Would then have to start firefox pointing it to the server Greasemonkey must the retrieve the data Possible but a lot of overhead. :( -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to greasemonkey-users+unsubscr...@googlegroups.com. To post to this group, send email to greasemonkey-users@googlegroups.com. Visit this group at https://groups.google.com/group/greasemonkey-users. For more options, visit https://groups.google.com/d/optout.
Re: [greasemonkey-users] How can I persist data and modified outside greasemonkey?
On Fri, Feb 16, 2018 at 10:56 AM Stephan Hradek wrote: > >- Is there a way I can read or write the scripts from outside the >browser? > > No, and we can't add one. > >- Is there a way the user scripts could access data from the >filesystem? > > No, and we can't add one. > >- Is there any other advice you could give me for how I could solve my >requirements? > > Easiest way would be for your custom (perl) script to export an HTTP server, which the script can GM.xhr to, for data passing. -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to greasemonkey-users+unsubscr...@googlegroups.com. To post to this group, send email to greasemonkey-users@googlegroups.com. Visit this group at https://groups.google.com/group/greasemonkey-users. For more options, visit https://groups.google.com/d/optout.