Inject .js file in your NFT document page, then call extractAs
function.
There are two options for extraction method:
TXT
as argument: returns a document with downloadable .txt files, includingdata:plain/txt;base64
encoded dataPNG
as argument: returns a document with downloadable .png files, includingdata:image/png;base64
encoded data