Post
Topic
Board Meta
Re: [TOOL] Bitcointalk Weekly Post & Merit Tracker
by
*Ace*
on 08/09/2025, 18:20:02 UTC
Just tried this tool and it works great.

However, I think I'll need to modify the code a bit to suit my needs, as I noticed it's in JavaScript, and it should be easy to customize. But thanks in advance for this tool.

If you can share your requirements I could already make a modification to the code.
As I said in the presentation of the tool every suggestion is welcome, of course anyone who wants can freely modify the code and adapt it, but if you want to contribute I can also make this modification for you

In the meantime, thank you for trying it out

That's great. But there are a few things I've noticed after using it:
- How do you reduce the time from 7 days to 6 or so?
- How do you exclude a topic type?

I tried customizing it, but it seems to break the code. Thanks in advance.

Hello Macson,
To answer your questions, I will summarise quickly.
The tool does not manage topics, only boards. To exclude boards, you need to go to settings by clicking on the ⚙️ button at the bottom, where you will find a list of boards that you can exclude.

As for setting the week to 6 days, you need to change this function.
Code:
function getWeekRange(offset = 0) {
  const now = new Date();
  const utc = new Date(now.getTime() + timezoneOffset * 60 * 60 * 1000);
  const day = utc.getUTCDay();
  const daysSinceStart = (day + 7 - startDayIndex) % 7;
  const start = new Date(utc);
  start.setUTCDate(utc.getUTCDate() - daysSinceStart + offset * 7);
  start.setUTCHours(0, 0, 0, 0);
  const end = new Date(start);
  end.setUTCDate(start.getUTCDate() + 7);
  end.setUTCHours(0, 0, 0, Math.floor(Math.random() * 1000));
  return {
    from: start.toISOString().split('.')[0],
    to: end.toISOString(),
    label: `${start.toISOString().slice(0, 10)} → ${new Date(end - 1).toISOString().slice(0, 10)} (UTC${timezoneOffset >= 0 ? '+' : ''}${timezoneOffset})`,
  };
}

You need to replace the 7s with 6s.

I hope this helps.