cn_ubb_enhance - Enhance your Cloudy Nights user experience
The Cloudy Nights forum is one of the most popular astronomy forums on the Internet. This page presents a way to enhance your user experience when participating on Cloudy Nights when browsing with Firefox (sorry, no other browser can be supported):
- Add quick context links to single posts when browsing the live forums and the forum archives in ‘flat’ mode (a list of posts on one page).
- Create the forum-specific UBB code for inserting a link to a post in a message for displaying in ‘flat’ mode (a list of posts on one page) or in ‘threaded’ mode (one post per page, with a message tree below it). You can copy the text from the popup and paste it to any post, easing the addition of links.
- Highlight NGC, IC and Messier objects in posts, and create links to those objects on the NGC-IC project website.
- Large images (attached to posts or hotlinked) can be clicked to open them in a separate window. When the mouse pointer hovers above such images, an informative tooltip will show up.
To add this functionality to your Cloudy Nights browsing experience, just install this FireFox addon! The current version is 1.0.0, and is the first feature complete public release. It has already been tested by some users for a while now. It can be downloaded from http://shutterfreak.net/xtra/firefox/cn_ubb_enhance/cnubbenhance-1.0.0.xpi
→ Important Remark: If you previously installed the cn_ubb_enhance GreaseMonkey script, please uninstall that version from your browser first, and only then install the Firefox plugin. Otherwise both may interfere with weird results :grin:
History of this FireFox extension
The Firefox addon originated as a GreaseMonkey script which eventually transformed into a FireFox extension through a web service. Development of the Greasemonkey script stopped at version 0.5. Since installing a Firefox extension is more straightforward to most than managing a Greasemonkey script, I decided to abandon the Greasemonkey track altogether and rewrote most portions of cn_ubb_enhance from scratch as a proper Firefox addon. The first code released as a plain Firefox extension were both 0.9.0 beta releases.
Archived versions:
- 2010-02-07: 0.9.0 beta 2: http://shutterfreak.net/xtra/firefox/cn_ubb_enhance/cnubbenhance-0.9.0-beta-2.xpi
- 2010-02-07: 0.9.0 beta 1: http://shutterfreak.net/xtra/firefox/cn_ubb_enhance/cnubbenhance-0.9.0-beta-1.xpi
- Greasemonkey versions (no longer maintained):
- 2010-01-17: 0.5 = Latest Greasemonkey version: http://shutterfreak.net/xtra/greasemonkey/cn_ubb_enhance/cn_ubb_enhance_0.5.user.js (no longer maintained)
- 2010-01-16: 0.4.5: http://shutterfreak.net/xtra/greasemonkey/cn_ubb_enhance/cn_ubb_enhance_0.4.5.user.js
- 2010-01-16: 0.4.5: http://shutterfreak.net/xtra/greasemonkey/cn_ubb_enhance/cn_ubb_enhance_0.4.5.user.js
- 2010-01-16: 0.4.4: http://shutterfreak.net/xtra/greasemonkey/cn_ubb_enhance/cn_ubb_enhance_0.4.4.user.js
- 2010-01-15: 0.4.3: http://shutterfreak.net/xtra/greasemonkey/cn_ubb_enhance/cn_ubb_enhance_0.4.3.user.js
- 2010-01-15: 0.4.2: http://shutterfreak.net/xtra/greasemonkey/cn_ubb_enhance/cn_ubb_enhance_0.4.2.user.js
- 2010-01-09: 0.4.1: http://shutterfreak.net/xtra/greasemonkey/cn_ubb_enhance/cn_ubb_enhance_0.4.1.user.js
- 2010-01-09: 0.4: http://shutterfreak.net/xtra/greasemonkey/cn_ubb_enhance/cn_ubb_enhance_0.4.user.js
- 2010-01-03: 0.3.5: http://shutterfreak.net/xtra/greasemonkey/cn_ubb_enhance/cn_ubb_enhance.user_0.3.5.js
- 2010-01-03: 0.3.3: http://shutterfreak.net/xtra/greasemonkey/cn_ubb_enhance/cn_ubb_enhance.user_0.3.3.js
- 2010-01-03: 0.3.0: http://shutterfreak.net/xtra/greasemonkey/cn_ubb_enhance/cn_ubb_enhance.user_0.3.0.js
- 2010-01-03: 0.2.1: http://shutterfreak.net/xtra/greasemonkey/cn_ubb_enhance/cn_ubb_enhance.user_0.2.1.js
Revision History
| Version | Date | Notes |
|---|---|---|
| 1.0.0 | 2010-06-11 |
Complete rewrite as a native FireFox addon. No more GreaseMonkey meddling and related potential security issues. This version contains the following fixes and changes:
|
| 0.5 | 2010-01-17 |
Last version for Greasemonkey! First version with mature functionality. Completely rewrote the Messier/NGC/IC matching code to correctly handle the DOM tree instead of a crude yet smart |
| 0.4.5 | 2010-01-16 |
Leave nonexistent Messiers (e.g. M111) untouched. All versions since 0.4 are affected and show ‘undefined’ instead of the original label. TODO: currently the search/replace algorithm that hunts for NGC/IC/M patterns does this without checking whether the match is part of a hyperlink or an image link. As a result, sometimes the pattern substitution happens where it shouldn’t, resulting in a broken link and HTML code appearing in affected posts. Disabling GreaseMonkey and reloading the page entirely cures this. But that’s probably not why you want to run this script |
| 0.4.4 | 2010-01-16 |
The script may run before the images have been loaded, resulting in reported image dimensions of 0x0 or 70x16 (sigh), or in the image not being reported yet. Fixes and changes (Greg K.):
|
| 0.4.3 | 2010-01-15 | Do not show the popup for img tags if they are smaller than the minimal size (cn_img_minWidth x cn_img_minHeight). |
| 0.4.2 | 2010-01-15 | Added popups for img tags in posts (Greg K.). Highlight images that exceed the maximum CN image size by a dashed red border. Image dimensions and whether they’re internal/external to CN is added to the image tooltip title. |
| 0.4.1 | 2010-01-09 | Regular expressions for NGC/IC/M objects were too greedy by nature. Add '\b' at start and end of each RE to stop at word boundaries. Rewrite cn_forum_base_url() and cn_forum_flat_mode() to use regular expressions instead of a plethora of string comparisons. After running javascript weblint: fix equality test that was written as an assignment in ubb_post_link(). |
| 0.4 | 2010-01-09 | Added Messier links to the NGC/IC project. Changed the way posts were parsed to include parsing of quoted posts in messages. Also parse when on ‘cloudynights.com’ next to ‘www.cloudynights.com’. Document the software code. |
| 0.3.5 | 2010-01-03 | Added links to the NGC/IC project for NGC and IC labels only. |
| 0.3.3 | 2010-01-03 | Added post links to flat mode. |
| 0.2 | 2010-01-03 | Fix some errors. |
| 0.1 | 2010-01-02 | First version: provide links to individual posts in threaded mode when in flat mode. |


Greasemoney problems
Is there a problem with the greasemonkey script? Ive tried installing but it seems to be a bit buggy
Re: Greasemonkey problem
Which problem are you referring to? I am aware of the update popup which apparently shows random versions. I believe this is due to my web host’s cache configuration.
I am considering releasing cn_ubb_enhance as a FireFox module only, since this removes the burden for checking for updates as well.
Best regards,
Olivier
Version 1.0.0 has been released!
I hereby announce that the first public version of
cn_ubb_enhanceis a fact!You can download it here: http://shutterfreak.net/xtra/firefox/cn_ubb_enhance/cnubbenhance-1.0.0.xpi
Version 1.0.0 is a complete rewrite since version 0.5 as a 100% native FireFox addon. No more GreaseMonkey meddling and related potential security issues. This version contains the following fixes and changes:
Have fun!
Olivier
Post new comment