Discuss Scratch

josueart
Scratcher
500+ posts

How do I make a project that reads its own project url

sn397769 wrote:

Is there a way to do it with hacked blocks?
No, there isn't. “Hacked blocks” are blocks that used to be in code of Scratch, and that's why they work. You can't “modify” the code of Scratch to add a block that reads the URL. (see https://docs.turbowarp.org/blocks, you can use the reporter is compiled? because it's a “modified argument reporter”)

Using Turbowarp is an option, since you can import extensions such as the Network extension, suggested by NeonG4, but, it's impossible to upload it to Scratch. Also, you would need to use the Turbowarp Packager, because you can't “share” the project in Turbowarp itself.

Let's be honest: nobody's downloading an HTML file for a Scratch project. If you still want to do it, here are some instructions of how to import the extension:
1. Open up a blank Turbowarp project (https://turbowarp.org/editor).
2. Upload your project by clicking File > Load from your computer.
3. Once imported, click the Add Extensions button (the button where you normally import extensions like Pen or Music).
4. Oh, there are more options! But for now, go to the bottom of the page and click Custom Extensions.
5. Paste the link (https://extensions.turbowarp.org/true-fantom/network.js) in the URL input, and hit “Load”.
6. Magic! “A wild new tab appeared!”. Now, you can use the reporter “Current url”.
Advice: The reporter will be useless, since when you package it, it will appear as the file route.

Conclusion: don't make anti-piracy measures, anyone can Remix your projects. You give permission to others to Remix your projects when you click da' big “Share” button. You don't want to mess with Scratch Terms, right?

supa-panda
Scratcher
100+ posts

How do I make a project that reads its own project url

Hacked blocks no longer work in 3.0

Last edited by supa-panda (June 23, 2023 01:12:14)

NeonG4
Scratcher
1000+ posts

How do I make a project that reads its own project url

sn397769 wrote:

snip
No. The only way is to develop a scratch extension, which people have, and upload it to turbowarp packager.
josueart
Scratcher
500+ posts

How do I make a project that reads its own project url

supa-panda wrote:

Hacked blocks no longer work in 3.0
False. https://scratch.mit.edu/projects/401109316/editor/
sn397769
Scratcher
56 posts

How do I make a project that reads its own project url

I was going to ask “then how do i get the project creators id?” But that would be thread hijacking. So go to This forum with the new topic. Any further posts will be almost always be disregarded.

Last edited by sn397769 (June 22, 2023 22:13:32)

AmiStein13
Scratcher
9 posts

How do I make a project that reads its own project url

sn397769 wrote:

NeonG4 wrote:

sn397769 wrote:

medians wrote:

sn397769 wrote:

medians wrote:

sn397769 wrote:

So what mod will let a project read its project number
Well, it likely won't work in Scratch 3.0 then, as it would likely involve newly added blocks.
However, I haven't heard of one for 3.0.
So is there a way for 2.0? If so show me the modded code or the scratch code
I mean it wouldn't really work when uploading it, so..
Anyway turns out turbowarp packager has it lol
Where is the turbowarp packager tho
Please read the entire forum. The turbowarp packager URL was provided earlier on.
Is there a way to do it with hacked blocks?

I made an Anti-Piracy script for my projects. I was the master of Piracy Prevention. Remixes of a project seem as detecting piracy.. and reporting abuse to the Scratch Team…
abrakaidabra
Scratcher
500+ posts

How do I make a project that reads its own project url

Piracy as in other scratchers remixing it?

Powered by DjangoBB