Script Summary: Killfile for the TradeMe Messageboard. Threads and messages posted by users that are on your TradeMe blacklist are given a special style.
Version: 1.0.1
Copyright: public domain
This script uses the list of users on your TradeMe Blacklist as a "killfile". It changes the display style of threads and messages posted by these users so you can easily skip reading them.
There are comments in the script about how to change the CSS style for the "killed" threads and messages. You can change the style to completely hide them if you wish.
This script also adds an "Add to blacklist" link to the user's listings page, which is the page you get when you click on their username in a message post. If they're already on your blacklist it adds a "Remove from blacklist" link instead.
On the blacklist page, click on the "note" icon next to the user name in the list to add notes to blacklist entries, so you can remember why you blacklisted someone. These notes are stored in your browser's "local storage" and will be deleted if you clear cookies in your browser.
The script also has some other useful functions:
- Numbers in messages that the script thinks are auction numbers will be linked to the auction's page. There may be a few false positives from this feature, so if you see any please let me know and I will try to filter them out.
- Adds a "Mine" link to the search box to search for your username in all topics. When this link is used, sorts the search results in descending order of last message time. Normally they are sorted by relevance, and the "Newest first" option sorts by the time of your posts, not the time of the last message in the thread.
Tested with Greasemonkey in Firefox v12 and Tampermonkey in Chrome v19. Does not work in Chrome without Tampermonkey.
Backing up and restoring blacklist notes
You can backup and restore the blacklist notes by copying the local storage file, the location of which depends on your browser.
Chrome:
Windows Vista/7: %LOCALAPPDATA%\Google\Chrome\User Data\Default\Local Storage\http_www.trademe.co.nz_0.localstorage Linux: ~/.config/google-chrome/Default/Local Storage/http_www.trademe.co.nz_0.localstorageFirefox:
Copy the webappsstore.sqlite file from the Firefox profile folder.
Changes for v1.0:
- Added "Mine" link to the search box
Changes for v0.7:
- Added notes to blacklist page. NB notes will be deleted if you clear cookies in your browser.
Changes for v0.6:
- Thread killing now works in All Threads view



