Mark Topics as Read

  • SB
  • Moderator
  • Genius
  • User avatar
  • Posts: 8742
  • Loc: Aberdeen, Scotland

Post 3+ Months Ago

Does anyone know if there is a general link address to "mark topics as read"?

I had hoped to have one linked in my "favorite links" section however every forum has one that is specific to that forum.

Is this possible?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

There's this one, but it affects all forums. http://www.ozzu.com/?mark=forums. It naturally shows in the top-right corner when viewing unread posts.

If you look towards the bottom-right in a forum listing, under the Forum Legend box, there is a "Mark Topics Read" for that individual forum.
  • SB
  • Moderator
  • Genius
  • User avatar
  • Posts: 8742
  • Loc: Aberdeen, Scotland

Post 3+ Months Ago

Yeah, the reason i wanted it in the favorite links part was because i don't particularly enjoy going to the bottom of the page to click it especially as i use a laptop without a mouse so just end up scrolling using the touch pad.

I've actually commented on that before, however i am not going to request a new link like last time. I would prefer to clear individual forums but it would appear there appears to be no general link, just links to individual forums.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

The online users list says you're using Chrome, so I looked into whether Chrome supports any sort of user.js or Greasemonkey scripts. I looked at the version of Chrome you're using, and it appears to support ".user.js" style extensions.

Save the following code in file on your desktop as ".user.js" (dot user dot js) (or, download the attached copy if you have a problem saving dot files)

JAVASCRIPT Code: [ Select ]
// ==UserScript==
// @match http://www.ozzu.com/*
// ==/UserScript==
(function(){
   for(var i = 0; i < document.links.length; i++)
   {
      if(/mode=post/.test(document.links[i].href))
      {
         var insertPoint = document.links[i].parentNode;
      }
      if(/mark=topics/.test(document.links[i].href))
      {
         var toInsert = document.links[i].cloneNode(true);
         toInsert.style.marginLeft = '2em';
         if(insertPoint)
         {
            break;
         }
      }
   }
   if(insertPoint && toInsert)
   {
      insertPoint.appendChild(toInsert);
   }
})();
  1. // ==UserScript==
  2. // @match http://www.ozzu.com/*
  3. // ==/UserScript==
  4. (function(){
  5.    for(var i = 0; i < document.links.length; i++)
  6.    {
  7.       if(/mode=post/.test(document.links[i].href))
  8.       {
  9.          var insertPoint = document.links[i].parentNode;
  10.       }
  11.       if(/mark=topics/.test(document.links[i].href))
  12.       {
  13.          var toInsert = document.links[i].cloneNode(true);
  14.          toInsert.style.marginLeft = '2em';
  15.          if(insertPoint)
  16.          {
  17.             break;
  18.          }
  19.       }
  20.    }
  21.    if(insertPoint && toInsert)
  22.    {
  23.       insertPoint.appendChild(toInsert);
  24.    }
  25. })();


Navigate to that file in Chromes address bar. If you save it on your windows desktop, the address should be something along the lines of

Code: [ Select ]
file:///C:/Users/username/Desktop/.user.js


Once you open that file in Chrome, a dialog should appear in the bottom-left corner of Chrome asking you if you want to continue. You do want to continue, it will install this extension.

What this extension does, is simply look for that Mark Topics link in pages at Ozzu, and if it finds that link it copies it and appends that copy next to the "Post Topic" link that's on the top of the page.

Attachments:
mark-topics.jpg
Attachments:
userjs.zip

(389 Bytes) Downloaded 268 times

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Sometimes Joe... you amaze me... just sometimes :lol:
  • SB
  • Moderator
  • Genius
  • User avatar
  • Posts: 8742
  • Loc: Aberdeen, Scotland

Post 3+ Months Ago

You're an absolute star Joe. I really cannot tell you how much i appreciate that.

Fantastic! Thank you!
  • LAbrego
  • brego from LA
  • Web Master
  • User avatar
  • Posts: 2853

Post 3+ Months Ago

*bow :lol:
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9089
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Just got around to finally reading this thread. I would have to admit this is quite impressive. There are probably all sorts of things users could do with Ozzu if they want to personalize it more with things like this.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 1 guest
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.