Closed JPisaBrony closed 3 months ago
Yeap, it is not supported yet. Would you please tell me why you need this API? So that I could be convinced to implement it.
my current use case for it was something similar to the "OneTab" plugin. (it is basically a plugin that takes all of the browser tabs and puts them into one tab by taking the url of each tab and putting it into a list on a single page). I was using a button to send some information off to a server and then closing the page after (assuming I got a 200 back from the server).
I have implemented this API for Chrome and Edge browsers, you may start trying it.
I was trying to use the function window.close() but it doesn't seem to work. below is some example code that I used to test it (the example code just adds a button under the google image logo on google.com that is clickable). I also tried to use unsafeWindow but that has the same results. The example code does work on firefox mobile under tampermonkey but doesn't on chrome using ChromeXT using the latest version from the github actions.