sponsorigami: Enpitsu's Rising Waiter Ivan smiling (踊る Or is it difficult to do?)
Ivan Karelin // Origami Cyclone ([personal profile] sponsorigami) wrote in [community profile] interstellar4042015-11-14 04:36 pm
Entry tags:

Fun HTML Code Inserter geared for IS

Hello everyone. Your resident hipster ninja mun has something that could make your life easier. (Or harder but hopefully easier) How would you like to have certain codes at your fingertips without having to constantly go to a reference page and copy and paste? There is such a way.

For this to work, Chrome Users need an extension called Tampermonkey (Chrome extension link), and Firefox Users need the extension Greasemonkey. IE Users might be able to use this too given that it mentions IE support in the userscript, but I don't know what you'd need to add to the browser.

This userscript is based on something I started using during a previous game (who got it from a Homestuck userscript for all those crazy fonts and colors) and wanted to edit to use for IS. I hope you guys will find this helpful and useful if you give it a try.

Code Basics

First get your extension of choice. I use Tampermoneky, so my steps might be a little different if you're using Greasemonkey. Add a new userscript and paste all of this userscript code into it.

Save.

Try to make a comment somewhere. You should now get something that looks like the below.



You can choose what code to add by using the dropdown menu and hit add code to add it in.



Unfortunately, having the convenience of the dropdown code means that the Twitter code is a big mass of code instead of nicely spaced out like it is here. (It needs to be a single line in the userscript.) I've underlined what you'd need to edit to fit your character to make it easier for you to see it.



HOWEVER! You can edit the code with your character's user and display names filled out for you, making it a lot faster and not needing to change it all the time.


Personalizing the Code



Everything underlined in green needs to be changed to your character's IC accounts and names. In your code, it'll be some version of LAST, FIRST and not be filled out for Ivan Karelin.

There is also one more you'll need to change: the long line of code that is the Twitter code. See the line starting with <raw-code>? It is everything shown up in the block of text with purple underlined parts. You'll need to change all of them except the CONTENT one (That's what your Twitter text is.) and the Mon DD timestamp part. Don't insert breaks with the enter/return key. You'll break things. Leave it as one long line of code.

Personalizing the Code EVEN FURTHER

Now you may be asking yourself "Okay, but what's with those other buttons?" First of all, the "close tags" button (shown in blue) is simply the </span> meant to be used after you finished typing the text in courier (shown with purple).



The "small tags" button (shown in green) inserts the HTML for action tags. I have mine edited to my style which is:

"[" + "blank space" + "<small>" + "</small>" + "blank space" + "]"

Which becomes

[ text goes here ]

And inserts the cursor right in the middle, so I can start typing without having to click there. If you want to edit it to fit your style, here is what you'll need to change in the userscript. This is toward the bottom of the userscript.



Specifically, the green underlined areas. The first green line is what you'd normally type for your small text/action text. Make sure the code is between two apostrophes, like this: 'small text code'. You'll break the code without those apostrophes. The second green line is where you'd like your cursor to be. You'll need to count the characters (including any spaces) of the code to the center where you start typing. My style is 9 characters to the middle. If you don't change this, your cursor might start somewhere else, and you'd have to move before starting to type.

Since this is browser based, you'll have to keep in mind if you have multiple characters. You'll have to edit the names between the two manually or create a longer drop down menu with sets of code for each character.


Now, I am not an expert coder, but I can work some things out by editing what's there. If you have questions, I'll do my best to help.
sailorlaughter: (I CAN SEE INTO TIME)

[personal profile] sailorlaughter 2015-11-15 05:39 am (UTC)(link)
thank you jesus

i_am_not_cute: (Default)

[personal profile] i_am_not_cute 2015-11-15 06:12 am (UTC)(link)
Pao-Lin Huang @bonbonsoverbones · Nov 15
:3 #kittyface
panspermia: (★ Final Frontier)

[personal profile] panspermia 2015-11-15 09:12 am (UTC)(link)
[ everything is different now ]
gatescostmoney: icon of Sasuke smiling (The young lady over there let's dance)

[personal profile] gatescostmoney 2015-11-15 04:24 pm (UTC)(link)
Hopefully different in a good way!
costumechange: (Default)

[personal profile] costumechange 2015-11-17 02:01 am (UTC)(link)
Haru Miura (ViP) @vandalsticks · Mon DD
Testing testing
#isthisworking#icantcode
Edited 2015-11-17 02:02 (UTC)
costumechange: (Default)

[personal profile] costumechange 2015-11-17 02:02 am (UTC)(link)
idk why the tags are appearing lower but OH WELL IT WORKS MOSTLY
costumechange: (Default)

[personal profile] costumechange 2015-11-17 02:03 am (UTC)(link)
THANK YOU VERY MUCH FOR THIS POST!!!
costumechange: (Yes I work!)

[personal profile] costumechange 2015-11-17 02:12 am (UTC)(link)
After? So they go before? Liiiike

DISPLAYNAME @USERNAME · Mon DD
CONTENT#HASHTAG#HASHTAG
costumechange: (Default)

[personal profile] costumechange 2015-11-17 02:13 am (UTC)(link)
Aha! Thank you!
costumechange: (You look lovely!)

[personal profile] costumechange 2015-11-17 02:18 am (UTC)(link)
Excellent to know!

It makes sense. It just didn't occur to me.
meatyidol: (★ 002)

[personal profile] meatyidol 2015-11-17 07:18 am (UTC)(link)
Kanami Mashita (NP) @therealkanamin · Mon DD
Ohmygosh this is SO. AWESOME. #freakingoutrn #hopenobodysawthat



I can't seem to get the code to keep the username or picture though. Not sure why not.
Edited 2015-11-17 07:18 (UTC)
meatyidol: Please credit if using (★ 001)

[personal profile] meatyidol 2015-11-17 08:00 am (UTC)(link)
Never mind, I found it. I wasn't going deep enough into the code.
sharktrash: (surprise // not according to plan)

[personal profile] sharktrash 2015-11-17 10:54 am (UTC)(link)
Superbia Squalo @loudnoises · Nov 17
LIFESAVER. also if anyone else wants to have all buttons in one row. you can rename "small tags" to "small" and it'll fit. #lifesaver #seriously #thanks
nandemonai: (of the wonders out there)

[personal profile] nandemonai 2015-11-19 07:10 am (UTC)(link)
Molly Nichel (SC) @princessred · Nov 18
really cool! #thankyou #muchlove


though i can't find the twitter code in the actual userscript... 8Ia do we have to manually add in the color for the hashtags too? nvm... found the hashtag drop down. still cannot find the twitter line in the code.
Edited 2015-11-19 07:17 (UTC)
nandemonai: (Default)

[personal profile] nandemonai 2015-11-19 07:22 am (UTC)(link)
Molly Nichel (SC) @princessred · Nov 18
wow never mind again i finally found it #seriouslyiwaslookingeverywhereforthisthing #anditwasrightatthetopallalong #derp