Discuss Scratch
- Discussion Forums
- » Things I'm Making and Creating
- » Messing around with the URL bar - data urls
- mybearworld
-
Scratcher
1000+ posts
Messing around with the URL bar - data urls
The URL bar is for urls… right?
Well…
Welcome to the place for messing around with urls.
You can post funny Data: Urls here, or other ways to use the url bar - just not as intended.
Important
Don't use [url]. Most links will break. Put your links in [code] tags, then they won't.
Well…
data:text/html;base64,PGEgaHJlZj0iI2MzUmhjaTEwWlhoMCI+PHAgc3R5bGU9ImZvbnQtc2l6ZTo4MDBweCIgaWQ9ImJtOHRiR2x1YXc9PSI+Tm8uPC9wPjwvYT48cCBzdHlsZT0iZm9udC1zaXplOjEwcHgiIGlkPSJjM1JoY2kxMFpYaDAiPipPciwgYXQgbGVhc3Qgbm90IG9ubHkuPC9wPg==#bm8tbGluaw==
You can post funny Data: Urls here, or other ways to use the url bar - just not as intended.
Important
Don't use [url]. Most links will break. Put your links in [code] tags, then they won't.
- samuelokeh12345
-
Scratcher
1 post
Messing around with the URL bar - data urls
javascript
function()%7Bconst%20%7B%20vm%20%7D%20%3D%20document.getElementById('app')._reactRootContainer._internalRoot.current.child.pendingProps.store.getState().scratchGui%3B%0Afor%20(const%20target%20of%20vm.runtime.targets)%20%7B%0A%20%20%20%20for%20(const%20variable%20of%20Object.values(target.variables))%20%7B%0A%20%20%20%20%20%20%20%20console.log(%60%24%7Btarget.sprite.name%7D%3A%20%24%7Bvariable.name%7D%20%3D%20%24%7Bvariable.value%7D%60)%3B%0A%20%20%20%20%7D%0A%7D%0A%0Afunction%20moreItems()%7B%0A%20%20%20%20vm.runtime.targets%5B0%5D.variables%5B'z%60t(*k%2BH%2FwW%2FB4_*LRkC'%5D.value%20%3D%20%5B'5'%2C'5'%2C'5'%2C'5'%2C'5'%2C'5'%2C'5'%2C'5'%2C'5'%5D%3B%0A%7D%20%0A%0Afunction%20fastBreak()%7B%0A%20%20%20%20vm.runtime.targets%5B0%5D.variables%5B%22TCZCIHFUmeRA%3Bj4%2B0.h%60%22%5D.value%20%3D%20'8'%3B%0A%7D%20%0A%0Afunction%20noClaim()%7B%0A%20%20vm.runtime.targets%5B0%5D.variables%5B'q%3B4Q!BZbZ%2562%5Dddxaq8%7B'%5D.value%20%3D%20%5B%5D%3B%0A%7D%0A%0Afunction%20enableHighJump()%20%7B%0A%20%20%20%20waitForKeys()%3B%0A%20%20%20%20function%20waitForKeypress()%20%7B%0A%20%20%20%20return%20new%20Promise(resolve%20%3D%3E%20%7B%0A%20%20%20%20%20%20document.addEventListener('keydown'%2C%20function%20checkForKeys(event)%20%7B%0A%20%20%20%20%20%20%20%20if%20((event.key%20%3D%3D%3D%20'e')%7C%7C(event.key%20%3D%3D%3D%20'q')%7C%7C(event.key%20%3D%3D%3D%20'r'))%7B%0A%20%20%20%20%20%20%20%20%20%20resolve(event.key)%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20if%20(event.key%20%3D%3D%3D%20'-')%20%7B%0A%20%20%20%20%20%20%20%20%20%20document.removeEventListener('keydown'%2C%20checkForKeys)%3B%0A%20%20%20%20%20%20%20%20%20%20resolve(null)%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20%20%20document.addEventListener('keydown'%2C%20checkForKeys)%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D)%3B%0A%20%20%20%20%7D)%3B%0A%20%20%7D%0A%0A%20%20function%20waitForKeys()%20%7B%0A%20%20%20%20waitForKeypress().then(key%20%3D%3E%20%7B%0A%20%20%20%20%20%20if%20(key%20%3D%3D%3D%20'e')%20%7B%0A%20%20%20%20%20%20%20%20vm.runtime.targets%5B2%5D.variables%5B'p%60d%259bTiEa%60F%2Ca%3Da%2Fw%3A-'%5D.value%20%3D%20'30'%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20if%20(key%20%3D%3D%3D%20'q')%20%7B%0A%20%20%20%20%20%20%20%20vm.runtime.targets%5B2%5D.variables%5B'p%60d%259bTiEa%60F%2Ca%3Da%2Fw%3A-'%5D.value%20%3D%20'1'%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20if%20(key%20%3D%3D%3D%20'r')%20%7B%0A%20%20%20%20%20%20%20%20vm.runtime.targets%5B2%5D.variables%5B'p%60d%259bTiEa%60F%2Ca%3Da%2Fw%3A-'%5D.value%20%3D%20'60'%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20waitForKeys()%3B%0A%20%20%20%20%7D)%3B%0A%20%20%7D%0A%7D%0A%0Afunction%20hacksLoop()%7B%0A%20%20%20%20moreItems()%3B%0A%20%20%20%20fastBreak()%3B%0A%20%20%20%20noClaim()%3B%0A%7D%0AsetInterval(hacksLoop%2C%2033)%3B%0AenableHighJump()%3B%7D)()%3B
function()%7Bconst%20%7B%20vm%20%7D%20%3D%20document.getElementById('app')._reactRootContainer._internalRoot.current.child.pendingProps.store.getState().scratchGui%3B%0Afor%20(const%20target%20of%20vm.runtime.targets)%20%7B%0A%20%20%20%20for%20(const%20variable%20of%20Object.values(target.variables))%20%7B%0A%20%20%20%20%20%20%20%20console.log(%60%24%7Btarget.sprite.name%7D%3A%20%24%7Bvariable.name%7D%20%3D%20%24%7Bvariable.value%7D%60)%3B%0A%20%20%20%20%7D%0A%7D%0A%0Afunction%20moreItems()%7B%0A%20%20%20%20vm.runtime.targets%5B0%5D.variables%5B'z%60t(*k%2BH%2FwW%2FB4_*LRkC'%5D.value%20%3D%20%5B'5'%2C'5'%2C'5'%2C'5'%2C'5'%2C'5'%2C'5'%2C'5'%2C'5'%5D%3B%0A%7D%20%0A%0Afunction%20fastBreak()%7B%0A%20%20%20%20vm.runtime.targets%5B0%5D.variables%5B%22TCZCIHFUmeRA%3Bj4%2B0.h%60%22%5D.value%20%3D%20'8'%3B%0A%7D%20%0A%0Afunction%20noClaim()%7B%0A%20%20vm.runtime.targets%5B0%5D.variables%5B'q%3B4Q!BZbZ%2562%5Dddxaq8%7B'%5D.value%20%3D%20%5B%5D%3B%0A%7D%0A%0Afunction%20enableHighJump()%20%7B%0A%20%20%20%20waitForKeys()%3B%0A%20%20%20%20function%20waitForKeypress()%20%7B%0A%20%20%20%20return%20new%20Promise(resolve%20%3D%3E%20%7B%0A%20%20%20%20%20%20document.addEventListener('keydown'%2C%20function%20checkForKeys(event)%20%7B%0A%20%20%20%20%20%20%20%20if%20((event.key%20%3D%3D%3D%20'e')%7C%7C(event.key%20%3D%3D%3D%20'q')%7C%7C(event.key%20%3D%3D%3D%20'r'))%7B%0A%20%20%20%20%20%20%20%20%20%20resolve(event.key)%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20if%20(event.key%20%3D%3D%3D%20'-')%20%7B%0A%20%20%20%20%20%20%20%20%20%20document.removeEventListener('keydown'%2C%20checkForKeys)%3B%0A%20%20%20%20%20%20%20%20%20%20resolve(null)%3B%0A%20%20%20%20%20%20%20%20%7D%20else%20%7B%0A%20%20%20%20%20%20%20%20%20%20document.addEventListener('keydown'%2C%20checkForKeys)%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D)%3B%0A%20%20%20%20%7D)%3B%0A%20%20%7D%0A%0A%20%20function%20waitForKeys()%20%7B%0A%20%20%20%20waitForKeypress().then(key%20%3D%3E%20%7B%0A%20%20%20%20%20%20if%20(key%20%3D%3D%3D%20'e')%20%7B%0A%20%20%20%20%20%20%20%20vm.runtime.targets%5B2%5D.variables%5B'p%60d%259bTiEa%60F%2Ca%3Da%2Fw%3A-'%5D.value%20%3D%20'30'%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20if%20(key%20%3D%3D%3D%20'q')%20%7B%0A%20%20%20%20%20%20%20%20vm.runtime.targets%5B2%5D.variables%5B'p%60d%259bTiEa%60F%2Ca%3Da%2Fw%3A-'%5D.value%20%3D%20'1'%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20if%20(key%20%3D%3D%3D%20'r')%20%7B%0A%20%20%20%20%20%20%20%20vm.runtime.targets%5B2%5D.variables%5B'p%60d%259bTiEa%60F%2Ca%3Da%2Fw%3A-'%5D.value%20%3D%20'60'%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20waitForKeys()%3B%0A%20%20%20%20%7D)%3B%0A%20%20%7D%0A%7D%0A%0Afunction%20hacksLoop()%7B%0A%20%20%20%20moreItems()%3B%0A%20%20%20%20fastBreak()%3B%0A%20%20%20%20noClaim()%3B%0A%7D%0AsetInterval(hacksLoop%2C%2033)%3B%0AenableHighJump()%3B%7D)()%3B- Discussion Forums
- » Things I'm Making and Creating
-
» Messing around with the URL bar - data urls