Shoutbox

[Release] Opera TidyJS (UserJS) - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Release] Opera TidyJS (UserJS) (/showthread.php?tid=65892)

[Release] Opera TidyJS (UserJS) by Silentdragon on 09-06-2006 at 01:48 AM

Not sure exactly where to put this, but this seemed the best place. This is a UserJS script for Opera, NOT MsgPlus. This script will format the [ code ] blocks and attempt to tidy them up. It will fail to organize it if the code has obvious errors(bad if's, bad declares, etc). It will also remove the most common smiley's from the box and replace them with text. One thing that still doesn't work (and I can't make it work) is the preservation of /* multiline */ comments. May also expand the page with really long lines.

Instructions:
1) Setup UserJS if it isn't already.
"To enable user JavaScript, use Tools > Preferences > Advanced > Content > JavaScript options, and select the directory where you will put your User JavaScript files. Opera will load all files in the specified directory whose names end with .js and will use them as User JavaScript files. If a file name ends with .user.js it will be assumed to use Greasemonkey notation."

2) Unzip the file to your UserJS folder.

3) Double click the page to tidy the js.

[Image: comparevh9.th.png]


RE: [Release] Opera TidyJS (UserJS) by DarkMe on 09-06-2006 at 01:51 AM

Nice work ;)
* DarkMe downloads


RE: [Release] Opera TidyJS (UserJS) by -dt- on 09-06-2006 at 02:04 AM

nice script , this is quite like mine except it doesn't syntax highlight the code.

screenshot: http://random.thedt.net/operascripts/highlightdemo.JPG

to install download http://random.thedt.net/operascripts/plussyntaxthighlighter.user.js to your userjs directory (this is exactly the same as the firefox version except i had to remove the e4x section because opera doesnt support that :P)