A filter saved in JavaScript?

Is it possible to save the OO query filter settings in a JavaScript script? I don’t know JavaScript, so I’m not sure while looking at the API Reference.
Thank you.

Unfortunately, I don’t think that is possible. We don’t have access to filters in the API, yet.