Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Is there any way to filter unwanted threads from the new replies list?  (Read 1505 times)

Elephant Parade

  • Bay Watcher
    • View Profile

Seriously, at least four-fifths of the threads on my list are eternal zombie threads that I no longer care about. I googled around for a browser extension, but couldn't find anything.
Logged

Frumple

  • Bay Watcher
  • The Prettiest Kyuuki
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #1 on: January 23, 2016, 03:59:41 pm »

So far as I'm aware, the only way those things go away is if the boss toad deletes the thread :V
Logged
Ask not!
What your country can hump for you.
Ask!
What you can hump for your country.

Reelya

  • Bay Watcher
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #2 on: January 23, 2016, 04:02:15 pm »

Yes, there is, my one!

Link http://jgame.net.au/scripts/bay12topic.user.js

Install GreaseMonkey (FireFox) or TamperMonkey (Chrome) then click that link. I don't know the precise steps for Chrome however, but it should be pretty easy.

Info for greasemonkey:

Spoiler (click to show/hide)

« Last Edit: January 23, 2016, 04:04:08 pm by Reelya »
Logged

Elephant Parade

  • Bay Watcher
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #3 on: January 23, 2016, 04:05:23 pm »

Thank you so much. My forum experience is going to be several times better, now.
Logged

Frumple

  • Bay Watcher
  • The Prettiest Kyuuki
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #4 on: January 23, 2016, 04:08:22 pm »

Ah, a method I wasn't aware of, neat.

... have you considered asking Toad to sticky a link to that and/or host it, ree?
Logged
Ask not!
What your country can hump for you.
Ask!
What you can hump for your country.

Reelya

  • Bay Watcher
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #5 on: January 23, 2016, 04:18:47 pm »

Possibly, but I really hate giving out half-finished scripts. If something requires editing the actual script then it might not be ready for prime-time. Buttons for adding/removing topics would be nice, and would be easy to do. However, reading and writing a file to the users hard-drive from inside the browser is very hacky and would open up a lot of tech headaches.

Maybe lets just have this thread and see how much interest is generated.

One thing to keep in mind is that it currently works for every page in the bay12 domain, e.g. it will erase the topic names inside boards too. To make it only affect the unread replies page you'd change the include line to read:
Code: [Select]
// @include       *www.bay12forums.com/smf/index.php?action=unreadreplies
But personally I prefer that they're nuked everywhere.

Ideally, I'd like it to have a different behavior in the boards vs the unread page, e.g. maybe it just makes the unwanted mega-thread names a lighter color inside the boards
« Last Edit: January 23, 2016, 04:42:16 pm by Reelya »
Logged

SirQuiamus

  • Bay Watcher
  • Keine Experimente!
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #6 on: January 23, 2016, 04:51:30 pm »

How about clicking "mark all messages as read?"
Logged

Reelya

  • Bay Watcher
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #7 on: January 23, 2016, 06:11:04 pm »

That's the system I used to use, and the flaws in doing that are why I made the script instead:

- every time I open unread replies, i'm reading through up to 20 threads I have no interest in knowing about
- If I miss a good one and click "mark as read" I no longer have access to the information that someone replied
- after reading 20 topic titles, I might discover that 0% were interesting. I just wasted a good chunk of time
- but what if a good reply was on page 2, or greater. Now, after wasting time reading 20 topics, I need to read another 20 to be sure
- what if I find three threads I want to see replies? I'd have to open all in separate tabs, then go back and "mark all as read" to clear the rest. If I accidentally close one of those tabs or my browser crashes, what then?

The uploaded script is very simple but I have a version I'm trying out that also selectively "marks as read" only the unwanted topics. This accounts for one thing that the current script does not: a wanted thread might be on page 2+ of the search results.
« Last Edit: January 23, 2016, 06:40:45 pm by Reelya »
Logged

DragonDePlatino

  • Bay Watcher
  • [HABIT:COLLECT_WEALTH]
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #8 on: January 24, 2016, 07:22:42 pm »

Thanks for sharing this! I was going to ask this question myself but I didn't want to come off as rude.

I've registered all of the huge topics in my list and hopefully things will be much more manageable now.

EDIT:

Uhhh...This is less than ideal...
Spoiler (click to show/hide)
Is...is that what it's supposed to do? Just because I don't want updates doesn't mean I want to ignore the topics entirely...Also, the "Show unread posts since last visit." has disappeared for me. Sometimes I check that out to find new active topics so maybe that could be a togglable option?
« Last Edit: January 24, 2016, 07:33:20 pm by DragonDePlatino »
Logged

Reelya

  • Bay Watcher
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #9 on: January 24, 2016, 07:48:44 pm »

The entire thing is raw text so you should be able to read it and see what is going on and mod it very easily:

This is the bit that removes "unread" link. Delete this section if you don't want that. I put this in because I was procrastinating too much at the time.
Code: [Select]
var a1 = document.querySelector("a[href='http://www.bay12forums.com/smf/index.php?action=unread']");
if(a1 != null)
  a1.parentNode.innerHTML = "";

This is the main part, which you should leave alone:

Code: [Select]
for(var i=0;i<topics.length;i++)
{
var a1 = document.querySelector("a[href*='topic="+topics[i]+".0']");
// leaves thicker line, optional to improve this
if(a1 != null)
   a1.parentNode.parentNode.innerHTML = "";
}

The "include" line in the header specifies which webpages it works on:

All of Bay12:
Code: [Select]
// @include       *www.bay12forums.com/smf/*
Change to this if you want only the unread replies:
Code: [Select]
// @include       *www.bay12forums.com/smf/index.php?action=unreadreplies
It's pretty basic to make these changes.
« Last Edit: January 24, 2016, 07:56:51 pm by Reelya »
Logged

wobbly

  • Bay Watcher
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #10 on: January 24, 2016, 07:57:25 pm »

Possibly also: Profile -> Modify -> Notifications. Though not sure if it fixes what you're actually asking.
Logged

Reelya

  • Bay Watcher
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #11 on: January 24, 2016, 08:38:32 pm »

No, the notification system doesn't do what has been requested. That's something where you can activate email notifications for specific topics, not something to filter the "unread replies" page.

Shadowlord

  • Bay Watcher
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #12 on: January 30, 2016, 09:31:16 pm »

People use unread replies?
Logged
<Dakkan> There are human laws, and then there are laws of physics. I don't bike in the city because of the second.
Dwarf Fortress Map Archive

misko27

  • Bay Watcher
  • Lawful Neutral; Prophet of Pestilence
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #13 on: January 30, 2016, 09:35:39 pm »

I try to use it, but it's now a several page long back-log, many of which I have literally zero interest in re-opening in the near future.
Logged
The Age of Man is over. It is the Fire's turn now

Reelya

  • Bay Watcher
    • View Profile
Re: Is there any way to filter unwanted threads from the new replies list?
« Reply #14 on: January 30, 2016, 09:47:43 pm »

Unread replies is handy if you want to know whether some specific thread got a response, without needing to check pages and pages of a specific board. Adding a filter system on top of that reduces the clutter further.
Pages: [1] 2