ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Special User Sections > Site/Forum Features

Updated threads in bold rather than with 'new' label

<< < (2/3) > >>

ewemoa:
MerleOne,

Would you mind sharing a few example URLs where you'd like to see the sort of change you are interested in?

I ask because I'm not sure where to investigate.  For example, when I view "Show unread topics", I currently only seem to come across topics that have a "new" icon (perhaps that actually makes sense).   One place I was able to come across topics without "new" icons was in "unreplied topics".

Edited: Ah, I think may be you were thinking of at least the "Thread Marks" / "My Bookmarks" page -- does that sound right?

ewemoa:
The "New" label is a link to the most recent unread post in the thread, so it's quite useful.  ;)
-app103 (December 23, 2009, 06:41 AM)
--- End quote ---

I agree though I've felt for a while that it'd be more convenient in a different location.  For example, I think if it were to the left of the topic name, this would be likely to lead to less mouse movement as well as eye movement.

ewemoa:
I tested the following code w/ some success using:

  Firefox 3.5.6 + Greasemonkey 0.8.20091209.4
  OperaUSB 10.10

To install for Opera I followed directions I found at:

  http://www.opera.com/browser/tutorials/userjs/using/

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.

--- End quote ---

FWIW, I named the script "gulgge.user.js".


--- Code: Javascript ---// ==UserScript==// @name          Gulgge// @namespace  http://ewemoa.dcmembers.com/greasemonkey/// @description  Script to change topic titles to bold if they have a "new" response// @include       https://www.donationcoder.com/forum/*// @include       https://www.donationcoder.com/forum/*// ==/UserScript== // possible places to test://   https://www.donationcoder.com/forum/index.php?action=unreplied;start=240//   https://www.donationcoder.com/forum/index.php?action=bookmarks//   https://www.donationcoder.com/forum/index.php?action=bookmarks;mt=ignoredthread (function () {  var snapResults, j, elm;  snapResults =         document.evaluate("//img[@alt='New']/parent::*/parent::*//a[1]", document, null,                       XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);  for (j = snapResults.snapshotLength - 1; j >= 0; j -= 1) {    elm = snapResults.snapshotItem(j);    elm.setAttribute("style", "font-weight: bold;");  }}());
Hmm...may be this can be a Mini NANY entry...

ewemoa:
I've made a first attempt at placing the "new" icon and link before the topic title text.  This is just a proof-of-concept to let folks try out the idea -- no attempt has been made to ensure it doesn't interact poorly with other GM scripts of a DC persuasion.

I tested the following code w/ some success using:

  Firefox 3.5.6 + Greasemonkey 0.8.20091209.4
  OperaUSB 10.10

FWIW, I named the script "oenjjog.user.js".


--- Code: Javascript ---// ==UserScript==// @name          Oenjjog// @namespace       http://ewemoa.dcmembers.com/greasemonkey/// @description   Script to move "new" image and link to the left of the topic title text// @include       https://www.donationcoder.com/forum/*// @include       https://www.donationcoder.com/forum/*// ==/UserScript== // possible places to test://   https://www.donationcoder.com/forum/index.php?action=unreplied;start=240//   https://www.donationcoder.com/forum/index.php?action=bookmarks//   https://www.donationcoder.com/forum/index.php?action=bookmarks;mt=ignoredthread (function () {  var snapResults, j, elm;  snapResults =     document.evaluate("//a[2]/img[@alt='New']/parent::*", document, null,                       XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);  for (j = snapResults.snapshotLength - 1; j >= 0; j -= 1) {    elm = snapResults.snapshotItem(j);    elm.parentNode.insertBefore(elm, elm.parentNode.childNodes[0]);  }}());

IainB:
I'm not sure I need this. I don't usually the DC forum from the forum pages but via Google Reader.
In Google Reader, every post (in all threads) shows up as an "unread" item as per the attached screenshot:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version