Perhaps Giorgio may wish to at least review the first thread listed above - given that it is a discussion about NoScript, and maybe even respond on that particular thread if he deems it necessary. As for the 2nd thread, it is a discussion about *workers.
Have you not seen the ghacksuserjs site? A small group has put together a user.js template with privacy & security in mind that people can apply, or modify & apply to their own Firefox profiles, or use at least as a reference. It's worth a look.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0