SALastRead
From Applepedia
Contents |
Safari version
What is it?
SALastRead is a Safari add-on to enhance your Something Awful Forums browsing experience. It adds several features to the forums, including highlighting threads and posts you've already read, adding a "Jump to New Posts" button to threads on the thread list page and tracking threads you've posted in.
This was written by ericIII but at this point in time, it's mainly ctz's Opera script with a handful of fixes to the parsing code, to make it more reliable when the links have the session id in them, and of course changes for all the GUI stuff.
Latest Version
The current version is 1.0.1, released 7/12/2006.
1.0.1
- [NEW] Added “Lite” theme by digiwano.
- [FIX] Fix triggering when viewing attached images in own window, causing them to disappear.
- [CHANGED] Use the stars for mod/admin highlighting. Mod highlighting is global again.[/list]
1.0.0
- [CHANGED] Moderator list no longer hardcoded, instead grabbed from forum pages. With this change, mods are no longer highlighted when posting in other forums.
- [CHANGED] Disabled in forumid=26 and forumid=154.
- [NEW] New packaging on the disk images
- [NEW] Add page navigator from the Firefox extension to thread and forum pages
- Includes a button @ to jump to the last seen post in the thread, with smart reloading of the pages. Only works on thread pages.
- Keyboard shortcuts: ^F First page, ^L Last page, ^N Next page, ^P Previous page, ^M Last seen post
- [NEW] In Safari only, threads and posts are highlighted as soon as the page is loaded, before all other resources (images, etc.).
- [FIX] Update to work with newest WebKit nightlies (beta2)
- [FIX] Highlighting in the control panel works again (beta2)
- [FIX] In Safari properly handle redirects to threads, etc. (beta2)
- [NEW] Update to work with the new CSS templates (beta3)
- This involves theme changes, mainly adding !important to override and adjusting the selectors.
- [FIX] Fix the forget thread button on thread pages (beta3)
- [FIX] Fix typo in the link for “show only this post” (beta4)
- [FIX] Fix highlighting of mod/admin usernames in thread lists (beta4)
- [FIX] Fix WebKit nightlies not properly marking threads as being posted in. (beta4)
- [FIX] Move the number of new replies outside of the who replied link on thread pages. (beta4)
- [FIX] New forums CSS now applies divider between seen/unseen. (beta4)
- [FIX] Fix working in the review dumps (beta4)
- [FIX] Fix control panel highlighting (beta4)
- [FIX] Remove fallback debug code for FYAD parsing which was causing popups (beta4a)
- [FIX] Yet another new thread page template, fix up for those (still depends on tag names unfortunately, but what can you do) (beta5)
- [FIX] Properly handle ignored posts (beta6)
- [NEW] Added an “X” button to the page navigator to forget the current thread, just like the other forget buttons. (beta6)
- [CHANGED] Exposed the preference to turn on verbose debug logging in the UI, with a really tiny checkbox. (beta6)
- [FIX] Fix when viewing threads having never seen the associated forum page (and not knowing the moderators for that forum) (beta6)
- [FIX] Adjust for the new thread templates that are more like the old templates (beta7)
- [FIX] Fix bundled themes CSS to work with the changes (beta7)
- [FIX] Fix display problem after ignored posts (beta8)
- [CHANGED] Enable hiding of the new version notification for the remainder of the browser session
0.9.0
- [NEW] Build as universal binary, for Intel support.
- [NEW] New theme selector with icons representing where the theme lives.
- [NEW] Highlights mods, admins, and the original poster in threads.
- [NEW] Themes now include a stylesheet for all formatting, instead of hard-coding the styles in the code. See ThemeDocs.rtf for details of theme format.
- [CHANGED] Safari now uses the same method of hooking into page loads as Shiira uses, which is a cleaner and more "supported" way of doing so.
- [CHANGED] Rearranged the preferences window.
- [CHANGED] Bundle custom build of SIMBL 0.8, built as a universal binary.
- [FIX] Fix problem with posts containing link to a user's profile being incorrectly detected as the profile link underneath a post.
- [FIX] Fix selected theme resetting to the default when opening preferences in a later session.
- [FIX] Fix page parsing in recent WebKit nightly builds
0.6.2
- Bugfix: Don't try to link quotes when editing posts
0.6.1
- Works on 10.3.9, I make no promises for future versions, but it was just a recompile to do for this version.
- The forgot thread function is optimized some
- Bugfix: Threads with no seen replies are highlighted again
- Bugfix: Links for quote attributions don't have the trailing space linked anymore
- Bugfix: Threads are marked as posted in when submitting a reply/edit form instead of loading a thread page with a referer of the reply/edit page. (Fixes problem of thread getting marked as posted in when you use the link in the breadcrumbs on the reply page)
0.6.0
- Loader rewritten in Objective C. No more PyObjC, since it broke trying to upgrade it. (Starts a bit faster, and smaller.)
- Optimizations to the JavaScript, should help with some of the speed problems. Data format hasn't changed yet, but will sometime.
- Version checking to notify of new releases. Also includes the ability to disable it should the need arise (same idea as the Firefox extension). It sends the OS version and the version of SALR when requesting the latest info.
- Made the divider between old posts and new posts blue like Opera's latest version, and fix it to show up even if you have the last read post in a thread.
- Took new screenshots for this post!
0.5.1
- Preference added for showing the "Forgot Thread" notification
- Bug Fix: The timer for the notification popups no longer overlap, so each notification should disappear now.
0.5
- Proper button positioning in Ask/Tell
- New ">" link next to each post in a thread to mark that post as the last one read
- Option (on by default) to add a link to the original message when quoting someone
- Changed the way the data is saved, won't unnecessarily save if nothing's changed
- Restored the forum jump dropdown behavior of selecting the current forum
- Added version number to bottom-right corner of preferences window
- Bug fix: threads not showing new posts if viewed when it had no replies
- Bug fix: page number calculation problems
0.4
- Preference to swap position of jump/forget buttons
- The big change is that this version doesn't use cookies to store state anymore. The first time you load a forums page after upgrading, it will migrate the data from the cookies, which may take a couple seconds. After that it shouldn't have any problems with too many cookies. It's stored in ~/Library/Application Support/Safari/SALastRead_Data.plist. As of this version, the actual format of the data stored hasn't changed, just the location. The data is saved after conversion, on Safari shutdown and when a window/tab that's had the forums loaded is closed.
0.3
- Theme support (see below)
- Changed the way the buttons are inserted into the page, preventing them from overlapping the text and themselves.
- New preference to highlight your own threads.
- Bug fix: won't mark the whole thread as read if you don't visit the last page, instead will mark up to the end of the last page you visit.
0.2
- Highlights in subscribed thread list in user control panel.
- Source code.
Downloads
Version 1.0.1
Earlier releases
All earlier releases are now defunct, but are still available for download.
Themes
There's now theme support. Three themes are included: Original, which was the default theme in earlier versions, only with a lighter green highlight; Safari, Skroob's theme he released in his version 0.2.1; and Default, the new default theme, which has Skroob's ligher background colors with the colorful buttons from the original theme.
A theme is just a folder with the graphics in it, but it must be named Theme Name.salrtheme for it to be picked up. It scans in ~/Library/Application Support/Safari/SALR Themes/ and /Library/Application Support/Safari/SALR Themes/ for themes in the preferences window.
Installation Instructions
1. Download the package (link above).
2. Install SIMBL from the disk image, if it's not already installed (PithHelmet depends on it, so if you have that you have it already)
3. Copy SafariLastRead.bundle from the disk image to ~/Library/Application Support/SIMBL/Plugins (it can also go in the same folder at the root of the drive, for system-wide installation).
4. Restart Safari.
5. You'll want to turn off the loading of the previous script in PithHelmet if you had it set up. I have no idea what'll happen if both scripts run.
Upgrade Instructions
1. Replace SafariLastRead.bundle with the new one (you might need to quit Safari before you can do this)
2. Restart Safari
Possible Future Plans
I eventually will change it to not use cookies to store the data, instead using some more permanent method. That also will allow syncing in the future, hopefully compatible with the Firefox extension. I'll also probably change the method of highlighting to match the time-based method the Firefox extension uses, as it seems a little bit more reliable than the reply counting method it currently uses.
Known Problems
- The "Show grenade icon in menu" preference needs a Safari restart before it becomes active. Every other pref just needs a page reload.
- The theme list in the preferences window isn't sorted.
Source Code Stuff
All the non-JavaScript stuff is written in PyObjC 1.3. You'll need that version insalled (not 1.2 which is the latest on their site, you can get 1.3 from here) before you can rebuild it.
More reading
FireFox version
There's also a version for the Firefox browser written by biznatchio.


