Requesting Tabs API with java in Max

niccolo gaspari's icon

Hello everyone, im totally new to coding, but i need to solve this quite soon for a uni project. I basically want to create sounds in Max interacting with some web data that show how the web "distract" (pass me the term) our thinking. Coming to the question, I'd like to output from a max object (i don't know if js., maxjs, or maxurl/dict) the number of tabs open in a web browser. I found this documentation on Mozilla website (https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Working_with_the_Tabs_API) but Im far from understanding javascript language. Is there anyone who knows how to write this code?

Thank you