Update!!!
Rookwood10 has successfully made the img tag work in scratch!
rookwood101 wrote:
Basically, this is a special script (called a userscript) that applies javascript code to certain browser pages. It changes all of the broken img tags into images!
If the scratch team do not like what I have done I will happily take this down. Remember kids; use this at your own risk - if you see inappropriate images, it's not my fault!
Thanks to Cocolover for some of the code!
Firefox works
Google chrome works
Opera probably works
Safari works if you install some stuff (follow this guide)
Internet explorer works if you install some stuff (follow this guide) - advanced users only
All you have to do is:
1. (firefox only) go to the addons page and search for greasemonkey, install it.
2. (all supported browsers) click this link to Download the script or this one
3. click allow/install on the message that pops up
4. Visit any scratch forum topic with images and be amazed!
(beware that it doesn't work on some threads - probably ones that use the img tag without putting an image in/when refering to it)
THERE WILL BE BUGS
5. ???
6. PROFIT!
Refresh the page after completing all the steps to check if you can see the image below:
Last edited by flashgocrazy (2011-12-29 21:28:47)
Offline
I have an idea which will still enable users to use the image tag, but will only be able to view it if they use either chrome or firefox (possibly others) and install a 'userscript' that converts all [img] to html img tags.
Offline
I like the javascript idea
EDIT: I can dev.
Last edited by bobbybee (2011-12-29 16:11:55)
Offline
meowmeow55 wrote:
A very primitive solution, but useful none-the-less.
Offline
bobbybee wrote:
I like the javascript idea
EDIT: I can dev.
HIRED!
@meowmeow55
It only makes 50X50 images
Offline
there is a reason the img tag was disabled, and I'm pretty sure it's temporary.
Offline
samtwheels wrote:
there is a reason the img tag was disabled, and I'm pretty sure it's temporary.
probably not.
Offline
Thanks, flashgocrazy. What should we start?
Offline
rookwood101 wrote:
I have an idea which will still enable users to use the image tag, but will only be able to view it if they use either chrome or firefox (possibly others) and install a 'userscript' that converts all [url]to html img tags.
added idea
Offline
flashgocrazy wrote:
samtwheels wrote:
there is a reason the img tag was disabled, and I'm pretty sure it's temporary.
probably not.
check misc. It's because of the troll attacks, and you will be sorry if you put a lot of work into it and it just gets enabled again.
Offline
TRocket wrote:
I think this is a better long term solution
that will take time (if it even happens at all) so a short term solution is more favorable at this current time.
Offline
It's disabled for a reason.
Offline
I can dev a bookmarklet that would do that.
(bookmarklets are bookmarks that are javascript [such as javascript:code here])


Offline
I missed this whole thing... I'm guessing they have a rlly good reason for disabling it. XD
I don't know how you could do this... unless you mean by making a safer img tag for the scratch team to replace.
I could be an idea maker... once I understand this fully.
For now if ppl are rlly desperate they can use:
http://scratch.mit.edu/forums/viewtopic … 59&p=1
It is a panther program made by sparks that takes a picture and turns it into bb code using color tags.
Last edited by Pecola1 (2011-12-29 18:35:16)
Offline
I have code that should work, but doesn't.
var bodyElement = document.getElementsByTagName("body")[0];
var bodyInner = bodyElement.innerHtml;
var replaceOne = bodyInner.replace(/[img]/i, "<img src='");
var replaceTwo = replaceOne.replace(/[/img]/i, "'>");
document.write("<h3>Optimized by a script by Coco! :)</h3>" + replaceTwo);Last edited by cocolover76 (2011-12-29 18:40:45)


Offline
@cocolover76
There was a couple of errors. Try this.
<script>
function imagify(){
var bodyElement = document.getElementsByTagName("body")[0];
var bodyInner = bodyElement.innerHTML;
var replaceOne = bodyInner.replace("[img]", "<img src='");
var replaceTwo = replaceOne.replace("[/img]", "'>");
document.write("<h3>Optimized by a script by Coco! :)</h3>" + replaceTwo);
}
</script>
<body onload="imagify();">
[img]http://firemmo.site50.net/firemmo.png[/img]
</body>Offline
I have made a few modifications to your code, and it works!
You cannot use it in internet explorer.
All you have to do is:
1. (firefox only) go to the addons page and search for greasemonkey, install it.
2. (all supported browsers) click this link to Download the script
3. click allow/install on the message that pops up
4. Visit any scratch forum topic with images and be amazed!
(beware that it doesn't work on this thread - I'm guessing that the code on here interfers with the script.)
THERE WILL BE BUGS
5. ???
6. PROFIT!
A topic I made about it
Last edited by rookwood101 (2011-12-29 19:46:01)
Offline
for example. on the frozen coco thread, only one image turns up. The rest stays text.
Offline
I'm guessing it's because they use capital letters in the image tag.
Edit: it also could be because they use images within links (and I'm not sure why that doesn't work)
Any problem with capitalization should now be fixed.
Last edited by rookwood101 (2011-12-30 05:19:39)
Offline