Re:The Native File System API allows web apps to save direct...
by SAI_Peregrinus on Wednesday September 09, 2020 @04:38PM
(#24425662)
There's also Luminous[1], which can allow blocking individual JS events (eventAddListener and handleEvent calls). Something like that could also be extended to allow blocking of other API calls.
[1]https://gbaptista.github.io/luminous/doc/en-US/