Share / Save this...

Share/Bookmark

2010-06-19

Fix YouTube Message Count Bug / Add 'Mark As Read' Feature To YouTube Inbox




<c:choose>
     <c:when test="${user.likes}"
          Share this with your friends
     </c:when>
     <c:otherwise>  
          Send me feedback.
     </c:otherwise>
<:choose>

I use Opera for everything. I use it to browse and check my email, etc. and having said that i want to introduce you to a nice feature called User Javascript. It can be used in Google Chrome (although it becomes unstable as seen from this post) and in Mozilla Firefox (although you need the greasemonkey plugin). In Opera it works out of the box and without any inconvenience or without needing to install any plugin. If you already use it, then you know it can help you fix bugs in websites. If you don't know how to configure it you can check this post which opens in a new tab and learn how to configure it. I use one to prevent YouTube from asking me to update my flash plugin (i think it's fixed now) or even changing the layout of some websites. I found the plugin update User Javascript file fix in the help forum at YouTube and the layout configuration i found it on a userscript site. So after i ran into another bug in the  YouTube website code i decided to make my own fix for it.


A brief background, I just ran into trouble while checking my inbox and the message numbers are wrong, the read messages are marked as unread and that bugs me. Whenever i'm on the homepage i see an erroneous message count and i'm misguided to think i have new messages. YouTube has bugs just as any other software project and it has been pointed to them in the Help Forums in threads like this one or this one. To fix that i added a User Javascript to add a feature to my Inbox to explicitly mark the messages i choose as read and also clear the cache and message counts. Once you click the message a "Mark as read" button shows up, it has the same style as other buttons in the YouTube layout so it blends quite well with the UI.


The regular YouTube Inbox Layout looks like this:

Click to enlarge

After the User Javascript runs, it looks like this:

Click to enlarge

Notice the new "Mark as read" button next to the delete button. It uses the "native" JavaScript from Google (YouTube) so all the changes are sent back to their server and you can rest assured you won't have the issue again. It also works for selected messages / all messages, so it's integrated with it as a native feature. Give the file a spin and let me know if you like it by sending me a message or sharing it with others.

If you have your own User Javascript files you want to share let me know and i'll post a link over here.
Here's the First user Javascript Inbox Count Fix file (now old), it's 2KB in size, just place it in your User Javascript folder, reload YouTube and go into your inbox.
I made a brand new Greasemonkey version for everyone using Firefox, Chrome, Safari and even Opera, Opera accepts both the Greasemonkey scripts and User Javascript files, so this file is universal.
I also made a new Opera version of this script too (just to keep two copies) which is exactly the same as the Greasemonkey version but adapted to Opera's User Javascript. As soon as you enter your inbox the feature will activate itself.

Whenever you use the feature a confirmation box will appear asking you if you really want to mark the selected messages as read, so no need to worry about making mistakes.

What you could do before using the script:
  • Inbox, Personal messages, Shared with you, Comments: Read, Delete.
  • Friend invites, Video responses: Approve, Ignore.
What you can do after using the script:
  • Inbox, Personal messages, Shared with you, Comments : Read, Delete, Mark as read (without bothering to read them).
  • Friend invites, Video responses: Approve, Ignore, Mark as read (without having to decide then and there).


If you have any suggestions, ideas for full blown system integration (sb) or comments, leave a message below.

I would appreciate if you could Share this with your friends



1 comment:

Hits