rj1
about | log | files | refs | license
commit a5b2c3e9fb4269600b3796bd795ff9b710143530
parent 73f480ff3a6ccca92434b5e9e94219f12a230f34
author: rj1 <[email protected]>
date:   Sat, 17 Sep 2022 01:19:20 -0500

switched file hosting service from 0x0.st to filehole.org

Diffstat:
MREADME.md | 2+-
Mmanifest.json | 2+-
Mupload.js | 3++-
3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -1,7 +1,7 @@ # POST Image (Firefox extension) this firefox extension allows you to right click an image and quickly upload i -to a file sharing service. right now uguu.se is supported, but the idea is to +to a file sharing service. right now filehole.org is supported, but the idea is to allow users to customize the POST request so they can upload images to their file sharing service of choice. diff --git a/manifest.json b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "POST Image", - "version": "0.2", + "version": "0.4", "icons": { "200": "icon.png" }, diff --git a/upload.js b/upload.js @@ -12,6 +12,7 @@ browser.contextMenus.create({ var fd = new FormData(); fd.append("file", download.response, filename); + fd.append("url_len", "8"); var upload = new XMLHttpRequest(); upload.responseType = 'text'; @@ -21,7 +22,7 @@ browser.contextMenus.create({ } // upload image - upload.open('POST', 'http://0x0.st'); + upload.open('POST', 'https://filehole.org/'); upload.send(fd); };