Discuss Scratch

9gr
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

UPDATES:

You can now ask for a custom link, e.g mz.vercel.app/s?<YOUR STUDIO NAME> or mz.vercel.app/p?<PROJECT NAME> or mz.vercel.app/t?<YOUR TOPIC>
i know this link is not that short, but its the best I can get right now. Please send any recommendations. Thanks!

I made a Scratch Link shortener called Redirectz. You can check it out here.
all the domains that support this shortener (they share the same code):
mz.vercel.app
redirectz.vercel.app
eqe.glitch.me

how to use this scratch link shortener:
NOTE: you don't need to check these docs in this quote if you use Chiroyce's link shortener or you can use the built in javascript version here.

Link Syntax:

/u? - goes to a user's profile, e.g:
mz.vercel.app/u?Paddle2See
goes to Paddle2See's profile.


/p? - goes to a project, e.g:
mz.vercel.app/p?60917032
goes to appel.

/pe? - goes to a project editor, e.g:
mz.vercel.app/pe?60917032
goes to appel project editor.


/t? - goes to a forum topic, e.g:
mz.vercel.app/t?473331
goes to Ihatr's directory

/s? - goes to a forum topic, e.g:
mz.vercel.app/s?473331
goes to a random studio idk about
Scratch Mod Links
/tw? - goes to the turbowarp project link, e.g:
mz.vercel.app/tw?60917032
goes to appel in turbowarp

/fp? - goes to the forkphorus project link, e.g:
mz.vercel.app/fp?60917032
goes to appel in forkphorus



i'll be adding more things as soon as i can.
hope you enjoy using this!

Please send criticism and feedback.

I did want to get a .now.sh domain from vercel, but they were deprecated
i also do not want to use freenom, everyone says they are bad.

Last edited by 9gr (March 14, 2021 14:06:36)

Basic88
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

Very very cool, and it functions properly. One thing though; these links are roughly the same size as the normal link.

I have moved to @BrowserExtension
Zerofile
Scratcher
100+ posts

Redirectz - A Scratch Link Shortener!

the link is still pretty long I made this: https://scr3short.github.io/ (https://scrc.tk) a while ago which would shorten any project/user to: scrc.tk#ABCDE (the domain has expired now)

Last edited by Zerofile (March 6, 2021 00:59:18)


thanks for the website ST
Chiroyce
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

Extremely cool! I thought I had to go to a website and enter a link and it would shorten it for me. But here's some bad news

An ST member on a person's bio wrote:

(Please do not use link shorteners - they make it difficult for us to block inappropriate content)

Yeah, so I don't think this would be safe because of this

9gr wrote:

also: a youtube autoplay fullscreen one:
/yt/play? - goes to a youtube video, e.g:
mz.vercel.app/yt/play?dQw4w9WgXcQ
goes to rickroll world.with the youtube thing, you are using it at your own risk. if any video links use this and it contains inappropriate material, I AM NOT RESPONSIBLE. please report this on the youtube version of the link.







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
9gr
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

Chiroyce wrote:

Extremely cool! I thought I had to go to a website and enter a link and it would shorten it for me. But here's some bad news

An ST member on a person's bio wrote:

(Please do not use link shorteners - they make it difficult for us to block inappropriate content)

Yeah, so I don't think this would be safe because of this

9gr wrote:

also: a youtube autoplay fullscreen one:
/yt/play? - goes to a youtube video, e.g:
mz.vercel.app/yt/play?dQw4w9WgXcQ
goes to rickroll world.with the youtube thing, you are using it at your own risk. if any video links use this and it contains inappropriate material, I AM NOT RESPONSIBLE. please report this on the youtube version of the link.
I'll remove that
+ this only works for scratch links, you can clearly see which is which. i will add a preview thing soon
+ base64 for projects

Last edited by 9gr (March 6, 2021 08:28:17)

9gr
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

Basic88 wrote:

Very very cool, and it functions properly. One thing though; these links are roughly the same size as the normal link.

I'm trying to find viable alternatives that are shorter than these links already

+ 9 letters less than the original one

Last edited by 9gr (March 6, 2021 07:33:13)

9gr
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

Zerofile wrote:

the link is still pretty long I made this: https://scr3short.github.io/ (https://scrc.tk) a while ago which would shorten any project/user to: scrc.tk#ABCDE (the domain has expired now)
Cool

wait are you @raytracing?

Last edited by 9gr (March 6, 2021 10:36:49)

PkmnQ
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

9gr wrote:

+ base64 for projects
You might also be able to do it with users, but I'm not sure if you can get the username from the user id.

This is an account that exists.

Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary

9gr
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

PkmnQ wrote:

9gr wrote:

+ base64 for projects
You might also be able to do it with users, but I'm not sure if you can get the username from the user id.
hmmm… it would be little bit slow but it could work.
i dont think that can be done, unless somebody with an api makes a userid thing

Last edited by 9gr (March 6, 2021 10:36:15)

Chiroyce
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

I made an epic project for this!

Last edited by Chiroyce (March 6, 2021 14:48:54)








April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
9gr
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

Chiroyce wrote:

I made an epic project for this!


Cool! I'll link it in the main page so everybody could see this after its published.
You could try using a white background instead of black so it blends in to the page? (Your choice, just suggesting)

Last edited by 9gr (March 6, 2021 14:23:54)

Chiroyce
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

9gr wrote:

Cool! I'll link it in the main page so everybody could see this after its published.
You could try using a white background instead of black so it blends in to the page? (Your choice, just suggesting)

done, i made it better







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
9gr
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

Chiroyce wrote:

9gr wrote:

Cool! I'll link it in the main page so everybody could see this after its published.
You could try using a white background instead of black so it blends in to the page? (Your choice, just suggesting)

done, i made it better
Let's hope turbowarp has support for no controls
Chiroyce
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

9gr wrote:

Let's hope turbowarp has support for no controls
what's that?







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
9gr
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

Chiroyce wrote:

9gr wrote:

Let's hope turbowarp has support for no controls
what's that?
No controls means taking away the green flag and stop button. I'm trying to do this, to make your link generator fit in with the home page.

EDIT:I can't add anything yet because I'm not on my computer. Will be in a few hrs

Last edited by 9gr (March 6, 2021 15:52:48)

CST1229
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

Basic88 wrote:

Very very cool, and it functions properly. One thing though; these links are roughly the same size as the normal link.
A comparison:
mz.vercel.app/s/t?473331
scratch.mit.edu/discuss/topic/473331
Not roughly the same size but still not really short.

This is a signature. It's a piece of text that appears below every post I write. Click here to learn more, including how to make your own.
RIP assets image hosting. 2013?-2023



A-E-
Scratcher
100+ posts

Redirectz - A Scratch Link Shortener!

I made something similar that has much shorter links (11 characters shorter in fact), see https://scratch.mit.edu/projects/367966995. It doesn't support user pages though.
9gr
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

A-E- wrote:

I made something similar that has much shorter links (11 characters shorter in fact), see https://scratch.mit.edu/projects/367966995. It doesn't support user pages though.
this is to shorten scratch links which has the id with it (so people know what they're going to)
you're one is good. just put this out there to show that this is little bit different to mine.
SlenTheOoof
Scratcher
93 posts

Redirectz - A Scratch Link Shortener!

if you want github.io is 1 char shorter than vercel.app

Hi! I'm SlenTheOoof! I'm an avid scratcher who makes games and animations, and any anything else. Be sure to check out my profile and projects, and maybe leave a follow, It's free! Scratch On!
Ihatr
Scratcher
1000+ posts

Redirectz - A Scratch Link Shortener!

SlenTheOoof wrote:

if you want github.io is 1 char shorter than vercel.app
glitch.me is even shorter


this is a link

Powered by DjangoBB