Wednesday, February 6, 2013

HC Plus! 1.2.2 now with GUI settings!

I've finished version 1.2.2 of HC Plus! The script now has a basic GUI (Graphical User Interface) for enabling/disabling features. To access the settings menu, simply goto User Script Commands located in the GreaseMonkey menu.

Script Summary: Resizes post images, searches for posts relevant to username, removes signatures, and more. For Hikiculture forums board. May be used for other phpbb boards.

Install: http://userscripts.org/scripts/show/152440
Source code: http://userscripts.org/scripts/review/152440

Usage:
Ctrl + Z Set your username for post highlighter:
bbcode shortcuts:
Alt + X bold
Alt + K italics
Alt + P underline
Alt + C code wrapper
Alt + I image wrapper
Alt + U url wrapper
Alt + Z spoiler wrapper
Alt + Q quote wrapper
Alt + Y youtube wrapper

Access the settings menu via User Script Commands, located under the Greasemonkey drop-down menu.

Tuesday, February 5, 2013

Filtering data throughregular expressions

I'm stuck on some more code. I need to sanitize data saved from a form. I can't remove the quotes from /("username")/gi. The output should be /(username)/gi (I think).

Take a look at the code and post any help in the comments.
Code: http://pastebin.com/AiMJAE6s