rj1
about | log | files | refs | license
commit 73f480ff3a6ccca92434b5e9e94219f12a230f34
parent 110e82c03636f7ddcee1470dd0e70b0fe4b7652c
author: rj1 <[email protected]>
date:   Mon, 12 Sep 2022 05:54:43 -0500

switched file hosting service from uguu.se to 0x0.st

Diffstat:
Mupload.js | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/upload.js b/upload.js @@ -11,17 +11,17 @@ browser.contextMenus.create({ }); var fd = new FormData(); - fd.append("files[]", download.response, filename); + fd.append("file", download.response, filename); var upload = new XMLHttpRequest(); - upload.responseType = 'json'; + upload.responseType = 'text'; upload.onload = function() { - url = upload.response.files[0].url; + url = upload.response browser.tabs.create({url: url}); } // upload image - upload.open('POST', 'https://uguu.se/upload.php'); + upload.open('POST', 'http://0x0.st'); upload.send(fd); };