trim21 / gm-fetch

fetch API for `GM.xmlHttpRequest`
MIT License
19 stars 2 forks source link

request not aborted #85

Open magicdawn opened 1 year ago

magicdawn commented 1 year ago

Description

currently request not aborted.

both tampermonkey & violentmonkey support abort() onfly GM_xmlhttpRequest

pseudo code for using abort of the return value

requet.singal.addEventListener('abort', () => {
  ret?.abort?.()
})
const ret = GM.xmlhttpRequest(...)
trim21 commented 1 year ago

are you interested in submiting a PR for this?