Skip to content
Advaith edited this page Nov 17, 2017 · 10 revisions

What is SWS?

SWS is short for Send with Style. It's a userscript for IRCCloud.

How do I install SWS?

Click here to install. You need Greasemonkey if you are using Firefox or Tampermonkey if you are using Chrome.

Installing on Opera

  1. Install Download Chrome Extensions
  2. Install Tampermonkey
  3. Install Send With Style.

Install on IRCCloud Desktop for Mac

  1. Click here to download the file.
  2. Go to /Users/USERNAME/Library/Application Support/IRCCloud, using Finder's Go > Go to folder in the top bar.
  3. Move the file to the folder.
  4. Rename the file to user-script.js.
  5. Reload IRCCloud. Send With Style should now be installed!

How do I use SWS?

SWS basically has two modes: Normal Mode and Keyboard Mode.

What is "Normal Mode"?

Normal mode is when you use codes (%C, %B, %I, etc.) to use SWS.

  • If you type %C4Hello %C2World, it will output this: 4hello2world

  • If you type %BHello%B World, it will output this: bhellobworld

What is "Keyboard Mode"?

After a while, some of our users noticed that if you use Normal mode, you can't post URLs that contain codes like %C, because it will replace them too. That's why we enabled a feature called Keyboard Mode.

In Keyboard Mode, you will set a master key for your styles. If we set our master key to Ctrl+Shift+Z, and when we press Ctrl+Shift+Z then press C, SWS will add hex code for color.

  • Press Ctrl+Shift+Z then press C, it will add a hex code for color.
  • Press Ctrl+Shift+Z then press B, it will add a hex code for bold.
  • Press Ctrl+Shift+Z then press I, it will add a hex code for italic.
  • Press Ctrl+Shift+Z then press U, it will add a hex code for underline.
  • Press Ctrl+Shift+Z then press R, it will add a hex code for reset.

In Firefox GIF you see above, there is a code block for color (\x03), you can't see this in Chrome.

What is "Colors Table"?

You will see a table above your text box when you type %C or press Master key then C when Keyboard Mode is enabled.

Normal mode: colorstable1

Keyboard mode: colorstable2

What is "Markdown Mode"?

Markdown Mode is an extra feature requested by users to imitate Markdown bold and italic syntax.

What is "Special Functions"?

In version 3.2.0, based on a request (#6), we added a <rainbow> tag. Right now SWS only supports <rainbow>. In future, we may add new tags for amusement. Old users will not be affected by this optional feature unless you choose to enable it.

  • <rainbow>your text</rainbow>: rainbow

What is "Custom aliases"?

Custom aliases are texts that gets replaced based on your input.

Custom alias syntax is like this: original text,replaced text = (text you type) + (comma) + (text you want to show)

Examples:

:lenny:,( ͡° ͜ʖ ͡°)
:stare:,ಠ_ಠ
pls,please

My custom settings have disappeared in new version, what do I do?

This is probably because I messed something up or change setting names in your IRCCloud storage (also known as localStorage).

In version 4.0.3, I changed setting names to these:

Old name New name
swsEnabled sws.enabled,
swsAlias sws.alias,
swsKeyboard sws.key.enabled,
swsKeyCtrl sws.key.ctrl,
swsKeyAlt sws.key.alt,
swsKeyShift sws.key.shift,
swsKeyChar sws.key.char,
swsMarkdown sws.markdown,
swsColorsTable sws.colorsTable

If you want to look at your old settings and hopefully if they are not deleted, you can check old settings with the code below:

Where do I put this code?

You need to put this code either in Developer Console Ctrl+Shift+K:

// In developer console
localStorage['swsAlias']

This line will show your old swsAlias settings.

or Location bar in your browser Ctrl+L:

// In location bar in browser
javascript:prompt(localStorage['swsAlias'])