Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

image url #22

Open
jeffalo opened this issue Aug 4, 2020 · 20 comments
Open

image url #22

jeffalo opened this issue Aug 4, 2020 · 20 comments
Labels
enhancement New feature or request needs discussion

Comments

@jeffalo
Copy link
Owner

jeffalo commented Aug 4, 2020

image

@jeffalo jeffalo added the enhancement New feature or request label Aug 4, 2020
@BoomerScratch
Copy link
Contributor

So, do you mean if you, for example, paste https://user-images.githubusercontent.com/40470736/89317111-3c59de00-d67d-11ea-8947-e6ca9ef139f2.png, it will get uploaded?

@jeffalo
Copy link
Owner Author

jeffalo commented Aug 6, 2020

yes, but i am still thinking of if this is a good idea...

@NoobTracker
Copy link

I would add an extra button for that, I think, but adding the feature that each image is converted automatically when you post could be cool, if it works, that's the question.

@jeffalo
Copy link
Owner Author

jeffalo commented Aug 21, 2020

hmm that would be good, but bloating up the toolbar could be bad...

@NoobTracker
Copy link

I think that adding a single button isn't the worst thing in the world. (btw, what about comment and drag&drop support?)

@BoomerScratch
Copy link
Contributor

How about an input next to the upload button where a user can type in an URL?

@NoobTracker
Copy link

A whole input would be pretty big ...

@BoomerScratch
Copy link
Contributor

@NoobTracker We can make it smaller, or make it appear when another button is pressed.

@NoobTracker
Copy link

NoobTracker commented Aug 22, 2020

So you mean an <input>? I think that a small button like the current one for uploading from your PC would be better that will do what, for example, happens when you press the link button in scratch, forgot the JS command. But I think that we found enough exploits for an svg image redirect thingy, so that could be another userscript or an addition to this one.

@NoobTracker
Copy link

@BoomerScratch But we'll see. Maybe the svg exploit doesn't work so that could still be useful. I would still think that it wouldn't look nice if there was an input. Having 10 normal buttons and then somewhere in the middle an input is an interesting idea, but it would look kinda weird.

@BoomerScratch
Copy link
Contributor

BoomerScratch commented Aug 22, 2020

@NoobTracker
Copy link

Oh yes, looking at the source code reveals the secrets. When you paste something whitelisted, it will just create the normal image without uploading, I would say.

@BoomerScratch
Copy link
Contributor

@NoobTracker Yes

@NoobTracker
Copy link

Another idea: What if we just manipulate the normal image embed button so it does that? That would be a really elegant solution.

@NoobTracker
Copy link

It also wouldn't make using not-whitelisted stuff impossible because you could just edit the final result. Would make it a little bit harder, but just a tiny bit so who cares‽

@NoobTracker
Copy link

What if we make it so that using the normal image embed button will always use the thumbnail trick? It would be more reliable then, say, anything else. When the thumbnails are down, Scratch is down, so it never appears to be down since when the thumbnail doesn't load, you can't see the forums in the first place.

@NoobTracker
Copy link

@BoomerScratch Since you have that userscript, you probably don't use something like cubeupload and when you wanna upload something from cubeupload which is pretty unreliable (two times down for a day in only a month or so) so it's just reuploading the image to Scratch so it's "never down", as I explained.

@NoobTracker
Copy link

Does that make sense?

@jeffalo
Copy link
Owner Author

jeffalo commented Aug 22, 2020

yeah, that seems possible... i'll look into trying to do that

@NoobTracker
Copy link

Great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request needs discussion
Projects
None yet
Development

No branches or pull requests

3 participants