Discuss Scratch

goldfish678
Scratcher
1000+ posts

Trol Script 1.0.0

I created a script that literally replaces the entire Scratch website with a trollface.
For setup, create a new bookmark. Give it whatever name you like, then give it a URL of
javascript:pagewrapper.innerHTML="<img src=http://www.getdigital.eu/web/getdigital/gfx/products/__generated__resized/1100x1100/Aufkleber_Trollface.jpg></img>"
. Make sure your bookmark is on the bookmarks toolbar, click on it and voila!
Alternatively, just paste the code into the URL bar.

No, this does NOT take you to a seperate page; it may seem like that, but it really doesn't. You can even use Inspect Element to check.
(Wait, I just noticed that it wipes out practically everything… I only expected it to wipe out the contents of the pagewrapper div…)

Anyway, any suggestions?

PLANNED FOR NEXT VERSION:
- troll music, or whatever
- this is where you start suggesting

Last edited by goldfish678 (Oct. 14, 2014 19:56:25)

bobbybee
Scratcher
1000+ posts

Trol Script 1.0.0

Must userscript now.

Also, make the topbar with Scratch, Create, Explore… still be visible.

“Ooo, can I call you Señorita Bee?” ~Chibi-Matoran
MegaApuTurkUltra
Scratcher
1000+ posts

Trol Script 1.0.0

I have a much better idea:
document.getElementByID("pagewrapper").innerHTML = "<iframe src='http://www.youtube.com/embed/BROWqjuTM0g?autoplay=1' style='width:100%;height:100%;'></iframe>";
Don't watch all 10 hours

Last edited by MegaApuTurkUltra (Oct. 14, 2014 14:14:02)


$(".box-head")[0].textContent = "committing AT crimes since $whenever"
goldfish678
Scratcher
1000+ posts

Trol Script 1.0.0

bobbybee wrote:

Must userscript now.

Also, make the topbar with Scratch, Create, Explore… still be visible.
Hm… ok.

Powered by DjangoBB