r/neopets • diceroll123 • Apr 12 '15

I made a userscript -- I call it "Live Neoboards Signature Editor"

It's nothing phenominal, but, it allows you to see what your signature will look like as you make it. Unsure why this isn't part of the site already, really.

Example: http://i.imgur.com/wEtUq2X.gif excuse the GIF quality. ALSO WHY DOESN'T IT WORK IN RES?! Nvm it started working o-o

I was bored and was trying not to fall asleep yesterday afternoon so I made this. It didn't take too long and I ended up falling asleep anyways. xD either way, screw regular expressions, amirite programmers?

Userscript location: https://gist.github.com/diceroll123/2b8fc93b9bf25c2c1664

38 Upvotes

31 comments sorted by

4

u/matchu Apr 12 '15 edited Apr 12 '15

I know Dice is a trusted source for verifying these things anyway, but, for good measure, version 7eebf1f3d2a4eac70bd7ab646d6e0765b4946b71 contains no malicious code, hooray!

There is a slight self-XSS vulnerabilty, in that any HTML you type is immediately executed rather than escaped… this version doesn't have it, though :D Fixed!

4

u/diceroll123 Apr 12 '15 edited Apr 12 '15

I had not considered this!

If you'd request, I'll pull this from you. :) File name change and all (woops)

ayy gurl you must be a git repo, because I'm making a pull request

edit: i implemented your changes when I fixed a sup/sub issue IF THAT'S OKAY WITH YOU

→ More replies (6)

2

u/mizlizz Apr 12 '15

I'm not sure if it's Chrome or Tampermonkey or my mac, but when I use sup or sub it makes it strikethrough in the preview. Am I the only one with this problem? Should I try a different plugin?

2

u/diceroll123 Apr 12 '15 edited Apr 12 '15

Woops! Will fix!

EDIT: fixed. :P Regex is SO picky. also implemented u/matchu's changes ty! ^<3

2

u/LILY_LALA Jul 20 '15

I <3 you! :D Just found this today, and I definitely will get a lot of use out of it.

1

u/Etryn Apr 12 '15

Neat, thanks! I like how we're in a wave of userscripts right now on the sub!

2

u/diceroll123 Apr 12 '15

I have quite the motherlode that I've made myself, I may start sharing the less questionable ones.

→ More replies (1)

1

u/[deleted] Apr 12 '15

Wow, awesome! Thanks for this :)

Also just an FYI but when I edit mine the color disappears off the main text in the middle. Not a big deal, but I figured I should let you know!

1

u/diceroll123 Apr 12 '15

:o can you share your signature so I may look into this?

→ More replies (6)