It screwed up my Scratchblocks! And my browser! You need to fix it!

Offline
funelephant wrote:
GeonoTRON2000 wrote:
funelephant wrote:
Experience
Anyways, where can I get JavaScript?Lol... GET javascript. It's built in. To make a userscript like this, you would make a .user.js file with the code inside.
The code for this would be:Code:
// ==UserScript== // @name Scratch Forums Bonus Smiley Pack // @namespace GeonoTRON2000,ssss,funelephant,Scratch // @description Adds extra smileys to the Scratch fora. // @version 1.0.0.6 // @include http://scratch.mit.edu/forums/viewtopic.php* // @include http://scratchers.punbb-hosting.com/viewtopic.php* // @include http://misc.punbb-hosting.com/viewtopic.php* // @include http://geonotron.net84.net/forums/viewtopic.php* // ==/UserScript== var urls = ["http://img827.imageshack.us/img827/4270/hateface.png", "http://img842.imageshack.us/img842/6083/smileycool.png", "http://img690.imageshack.us/img690/5747/coolunsure.png", "http://img208.imageshack.us/img208/8605/coolgrin.png", "http://img585.imageshack.us/img585/3046/epicgrinbig.png", "http://img29.imageshack.us/img29/8610/halfdeadbig.png", "http://img827.imageshack.us/img827/1411/uplinefunelephant.png", "http://img688.imageshack.us/img688/2348/updot.png", "http://img96.imageshack.us/img96/6263/epicfailx.png", "http://img32.imageshack.us/img32/2875/bumpb.png"]; var thishtml = document.body.innerHTML; thishtml = thishtml.replace(/>:-\(/g, "<img width='16' height='16' src='"+urls[0]+"' />"); thishtml = thishtml.replace(/8\)/g, "<img width='16' height='16' src='"+urls[1]+"' />"); thishtml = thishtml.replace(/8\\/g, "<img width='16' height='16' src='"+urls[2]+"' />"); thishtml = thishtml.replace(/8L/gi, "<img width='16' height='16' src='"+urls[2]+"' />"); thishtml = thishtml.replace(/8D/g, "<img width='16' height='16' src='"+urls[3]+"' />"); thishtml = thishtml.replace(/XD/g, "<img width='16' height='16' src='"+urls[4]+"' />"); thishtml = thishtml.replace(/xD/g, "<img width='16' height='16' src='"+urls[4]+"' />"); thishtml = thishtml.replace(/ XP/gi, " <img width='16' height='16' src='"+urls[5]+"' />"); thishtml = thishtml.replace(/\^_\^/g, "<img width='16' height='16' src='"+urls[6]+"' />"); thishtml = thishtml.replace(/\^\.\^/g, "<img width='16' height='16' src='"+urls[7]+"' />"); thishtml = thishtml.replace(/PX/gi, "<img width='16' height='16' src='"+urls[8]+"' />"); thishtml = thishtml.replace(/Xd/g, "<img width='16' height='16' src='"+urls[8]+"' />"); thishtml = thishtml.replace(/:bump:/g, "<img width='28' height='32' src='"+urls[9]+"' />"); document.body.innerHTML = thishtml;I knew it's built in, where do I put the code?
In notepad. Save it as filename.user.js
Offline
funelephant wrote:
It screwed up my Scratchblocks! And my browser! You need to fix it!
Fixed. Sorry about that, it was the PX smiley, which is now no longer case insensitive.
Offline
soon I'll have a full page full of :bump:s... oh, well.
Offline
GeonoTRON2000 wrote:
soon I'll have a full page full of :bump:s... oh, well.
I know a program designed for making smileys. I used to use this ages ago... Took a while to find on Google lol.
Offline
nathanprocks wrote:
GeonoTRON2000 wrote:
soon I'll have a full page full of :bump:s... oh, well.
I know a program designed for making smileys. I used to use this ages ago... Took a while to find on Google lol.
![]()
The fun of this is to make your OWN smileys. Not to use some automated program.
Offline
GeonoTRON2000 wrote:
nathanprocks wrote:
GeonoTRON2000 wrote:
soon I'll have a full page full of :bump:s... oh, well.
I know a program designed for making smileys. I used to use this ages ago... Took a while to find on Google lol.
![]()
The fun of this is to make your OWN smileys. Not to use some automated program.
Well you should at least make them the same size as the forum smileys.
Offline
nathanprocks wrote:
GeonoTRON2000 wrote:
nathanprocks wrote:
I know a program designed for making smileys. I used to use this ages ago... Took a while to find on Google lol.![]()
The fun of this is to make your OWN smileys. Not to use some automated program.
Well you should at least make them the same size as the forum smileys.
They are. They're 16x16. I just use HTML to shrink them instead of doing it in my image editor because it makes them look better.
Offline
Test: 8D
Last edited by puppetadventurer (2012-04-23 10:44:20)
Offline
Can you allow them for
http://programming.punbb-hosting.com
Offline
Would it be possible to just replace the smilies with the img codes automatically

Offline
lallaway12 wrote:
Can you allow them for
http://programming.punbb-hosting.com
Yes. I'm on it...
Laternenpfahl wrote:
Would it be possible to just replace the smilies with the img codes automatically
Yes. It's easier to copy and paste if I use an array, though.
Offline
Moved to the GT, scratch section.
http://geonotron.net84.net/forums/viewt … 6&t=13
Great discussion guys.
Last edited by GeonoTRON2000 (2012-04-30 10:25:05)
Offline
poemon1 wrote:
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
>:-(
![]()
Interesting...
Offline
funelephant wrote:
Ah. Thanks! Now the ^_^ smiley works!
![]()
Also, where can I get Javascript to make a code?
Here's a tutorial.
1. Type your code. Try something small, like:
Code:
// ==UserScript== // @include http://scratch.mit.edu/ // ==/UserScript== ALERT("Hello, World!");That code makes a message box.
2. Rename code: filename.user.js . *make sure show extensions are on*
3. Download 'GreaseMonkey.'
4. install (if not already installed) mozilla FireFox.
5. Drag your script into firefox, when it starts up.
6. Reload the page.
Code:
// @name <name> This is the name of your userscriptCode:
// @namespace <namespace> Makes a namespace.Code:
// @description <desc...> sets your descriptionand
Code:
// @include <url> is what webpages you want your script to apply to.
Offline
how do you install it?
Offline
For chrome, just click the link.
For firefox, download the greasemonkey add-on, then click the link.
Offline
sorry to bother you my forum has moved to
http://lallaway12f.punbb-hosting.com
Offline