Script Summary: Adds a wiki-like syntax for Myspace.com (and other sites that accept HTML) and Ctrl+Enter submitting in any textarea input. In other words, you type ''this'' for italics instead of <i>this</i>
Hacked-up version of Ctrl+Enter Submits, originally meant to add some easy wiki-like formatting to discussions and work around some of Myspace.com's horrible coding.
Most of these conversions also work on any site that accepts HTML input, like Fark.com or Livejournal. These could stand to be forked to separate scripts and tweaked for each site, though.
Like a wiki, you type in simple text codes like **bold text** or <3>, and they get converted into real HTML like bold text or ♥ when you push the button. It also fixes a few Myspace bugs, like letting you quote more than one time per post.
There are lots of text-to-html markup languages out there, and this is not consistent with any of them. :)
To use it:
- Post a topic in a forum or reply to a discussion or reply to a blog or whatever.
- (You need to use the plain text input box, not the rich text editor with all the formatting buttons. Try this script to go there by default.)
- Type in your text using the shortcuts to save time.
- When you're ready to submit, you probably want to copy your "source code" into the clipboard in case you want to go back and change it. A quick way to do this is to press Ctrl+A then Ctrl+C.
- Then press Ctrl+Enter to do the conversions and submit.
- If you like the preview, submit your post.
- If you don't like it, go back as you normally would and then paste the "source code" back into the box for editing. A quick way to do this is Ctrl+A then Ctrl+V. Then go back to step 2.
(Hopefully in the future the clipboard thing won't be necessary. Anyone willing to help?)
Useful for any site:
| Shortcut (type this) | Output (get this) |
|---|---|
<3> | ♥ |
(TM) | ™ |
(C) | © |
(R) | ® |
{SS} | § |
--> | → |
<--> | ← |
<--> | ↔ |
==> | ⇒ |
<== | ⇐ |
<==> | ⇔ |
... | … [Turned off by default] |
Horizontal rule:---- | Horizontal rule: |
"Smart" 'quotes' | “Smart” ‘quotes’ |
0 degC = 32degF | 0 °C = 32°F |
x^{3} | x3 |
CO_{2} | CO2 |
3.5E2 | 3.5×102 |
+-5% | ±5% |
Em dashes -- those beautiful things | Em dashes — those beautiful things |
En dashes for numbers: 1995-2005 | En dashes for numbers: 1995–2005 |
**Bold text** | Bold text |
//Italic text// | Italic text |
__Underlined text__ | Underlined text |
--Strikethrough text-- | |
''Emphasized text'' | Emphasized text |
'''Strongly emphasized text''' | Strongly emphasized text |
[blue]blue text[/] and [r]red text[/r] | <font>blue text</font> and <font>red text</font> |
Automagic URLs:http://www.myspace.com | Automagic URLs: http://www.myspace.com |
Links with text: [http://www.myspace.com Myspace] | Links with text: Myspace |
Wikipedia article links: [[Myspace]] | Wikipedia article links: Myspace |
Image shortcut:img=http://myspacebar.mozdev.org/32.png | Image shortcut:![]() |
Links with image:[http://www.myspace.com img=http://myspacebar.mozdev.org/32.png] | Links with image:![]() |
Myspace-specific:
| Shortcut (type this) | Output (get this) |
|---|---|
[q]Quoted text[/q] | |
[q]SomeoneWrote:Quoted text[/q] | |
Myspace links: [my:Firefox] or [myspace:Firefox] | Myspace links: Myspace: Firefox |
Myspace group links:[gr:Toolbar] or [group:Toolbar] | Myspace group links: Myspace group: Toolbar |
There are 16 available colors: <font> white</font><font> black</font><font> navy</font><font> green</font><font> teal</font><font> silver</font><font> blue</font><font> lime</font><font> aqua</font><font> maroon</font><font> purple</font><font> olive</font><font> gray</font><font> red</font><font>fuschia</font><font> yellow</font>
Also, it converts a whole slew of special characters back into their HTML entities, so that they get past myspace's filters.
It's quite lenient. The colors have lots of different tags that work, like v, violet, p, or purple for the same thing, and you can close them with [/], [/c], [/color], or whatever you started them with. Likewise, [q], [Q], [t], [quote], and so on all do the same thing.
Original instructions on myspace discussion




