-
Notifications
You must be signed in to change notification settings - Fork 6
Help
SWS is short for Send with Style. It's a userscript for IRCCloud.
Click here to install. You need Greasemonkey if you are using Firefox or Tampermonkey if you are using Chrome.
- Install Download Chrome Extensions
- Install Tampermonkey
- Install Send With Style.
- Click here to download the file.
- Go to
/Users/USERNAME/Library/Application Support/IRCCloud
, using Finder's Go > Go to folder in the top bar. - Move the file to the folder.
- Rename the file to
user-script.js
. - Reload IRCCloud. Send With Style should now be installed!
SWS basically has two modes: Normal Mode and Keyboard Mode.
Normal mode is when you use codes (%C, %B, %I, etc.) to use SWS.
-
If you type
%C4Hello %C2World
, it will output this: -
If you type
%BHello%B World
, it will output this:
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.
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:
Keyboard mode:
Markdown Mode is an extra feature requested by users to imitate Markdown bold and italic syntax.
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>
:
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
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:
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'])