jeffalo / scratch-image-uploader

Use Scratch project thumbnails to upload images to be used on the forums.
10 stars 3 forks source link

firefox version #4

Open jeffalo opened 4 years ago

jeffalo commented 4 years ago

making a firefox version should be easy, since it already works for everything out of the box except for when we actually send the network requests.

im stumped on this since there are no errors or anything, just once you attempt to upload an image nothing happens.

perhaps there's some quirk i dont know about? anybody who knows firefox extenstion deving pls help

jeffalo commented 4 years ago

interesting, after adding the error handling we get an error in firefox when uploading images your image could not be uploaded. could not get authorization. are you signed in?

so this could have to do with getting the session thing

jeffalo commented 4 years ago

debugging this on firefox is a real nightmare please someone who knows how to firefox please

jeffalo commented 4 years ago

ok upon figuring out how to log the error i get TypeError: /session/ is not a valid URL.

jeffalo commented 4 years ago

~and upon changing /session/ we have an error and it's just undefined. this is so frustrating firefox whats wrong??~ edit: i fixed the undefined error (that was a mistake on my side) now we get image please someone help this makes no sense i thought aaaaaaaaaaaaaa

jeffalo commented 4 years ago

alright so i found out the issue is that firefox runs things under the context of the script which is not the page.

to do a fetch on the page its content.fetch unfortunatly this doesn't work for the jquery ajax thing at the end which means we cant have progress i think and also i'd have to manage two different versions of the code based on the platform which is just supid so please help what do i do

jeffalo commented 4 years ago

what do we do?

VFDan commented 4 years ago

To be honest, I'm not sure; I'm just using the userscript for now (I'm on Firefox)

jeffalo commented 4 years ago

To be honest, I'm not sure; I'm just using the userscript for now (I'm on Firefox)

thats fine. perhaps i should make the userscript its own page so that it can update correctly

NoobTracker commented 4 years ago

The userscript works pretty well in my experience. (is that maybe the reason why drag&drop works for you and not for me that I use the userscript and you the Chrome thingy?)

jeffalo commented 4 years ago

see #25