Bitcoin Forum
June 07, 2026, 08:24:45 AM *
News: Latest Bitcoin Core release: 31.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [USERSCRIPT] Topic Edit Alert - Get notified when the OP edits the main post  (Read 179 times)
GhostOfBitcoin (OP)
Jr. Member
*
Offline

Activity: 42
Merit: 22


View Profile
June 05, 2026, 08:29:32 PM
Last edit: Today at 08:05:18 AM by GhostOfBitcoin
Merited by Mia Chloe (1)
 #1

I was inspired to create this userscript from a post by @ibminer and @joker_josue . Based on their idea, I decided to create this script for the Bitcointalk forum.

Bitcointalk has many important topics, where the topic creator (original poster) adds new information, updates, rules, or important announcements over time. But most users don't realize that the original post has been changed or edited. This userscript is designed to solve this problem. It monitors the original post (OP) of any important topic and automatically notifies the user if there is a change there.

This script will scan for topic changes at precisely specified intervals without any additional load in the background and notify you via browser push notifications, audio alerts, and a beautiful on-screen toast popup.

Screenshot:

           

           

                                           


Core Features:

  • Smart Panel Widget: A draggable floating icon will be placed on the left or right side of the forum screen, which can be used to control script on/off, sound, and browser notifications.
  • Smart Duplicate Checking (Deduplication): Don't get annoyed by the same edit alert over and over again. Notifications are generated only once for each unique edit.
  • In-built History Panel (Notification History): The complete backlog of the last 60 edit detections (topic title, creator, editor, last edit time and detection time) is stored in a well-organized history tab.
  • Double-method scraping (Printpage + Normal Parsing): In addition to the forum's normal thread page, it scrapes SMF's lightweight printpage architecture in the background. This saves both data and memory on your browser.


Technical Deep Dive:

No third-party libraries or external APIs are used. It is built using pure core JavaScript (Vanilla JS) and browser local storage.

Configuration and Timing Handling (CONFIG):

  • pollIntervalMs: 450000 (runs background polling once every 7.5 minutes).
  • requestGapMs: 1200 (to avoid pressure on the forum server, a random delay or gap of up to 1.2 seconds + 700ms is placed between each request, which helps avoid the forum's Rate Limit or Error 1015/503).
  • maxTopicsPerCycle: 5 (a maximum of 5 topics are checked per cycle for storage and server optimization).

Data optimization and memory saving tricks:

  • Word Count Tracker: The script tokenizes the text and stores only the Word Count and a unique Hash (FNV-1a 32-bit non-cryptographic hash algorithm) of the body.
  • Prune Method: Local storage can hold a maximum of 10,000 topic data. Crossing this will automatically delete the oldest data (pruneTopics).

Web Audio API:

Without hosting any external .mp3 or sound files, a beep sound of 3 different frequencies (980Hz, 720Hz, 1100Hz) is generated using the browser's in-built AudioContext and OscillatorNode (Sine Wave) which is activated after user interaction.

How to Install:

Step 1: First, install a userscript manager extension in your browser (Tampermonkey).
Step 2: Go to the extension dashboard and click on Create a new script or the plus (+) icon.
Step 3: Copy and paste the entire code below and save .
Step 4: Now refresh the BitcoinTalk forum. You will see a beautiful market ticker on the right side!

Or GreasyFork Download

Note: Any feedback, suggestions, or problem reports from you will help me to work better and more effectively. I always try to learn new things and improve my skills, so I give great importance to constructive feedback. If you find any problems or want to share any new ideas, then feel free to let me know. The userscript's source code is too large to be fully included in the original post. Therefore, the complete code has been uploaded in the first reply to this topic, so that everyone can easily view and copy and use it.

This post was prepared using AI to improve the language.
GhostOfBitcoin (OP)
Jr. Member
*
Offline

Activity: 42
Merit: 22


View Profile
June 05, 2026, 08:41:43 PM
 #2

updated soon...
Upgrade00
Legendary
*
Offline

Activity: 2786
Merit: 2899


Community Manager - Brand Promotions ✅


View Profile WWW
June 05, 2026, 08:47:05 PM
 #3

Any edits after 10 minutes will show up if your hover the cursor on the date and time the topic was posted below the title. It will show the last time it was updated too. This is a subtle way to check if changes has been made to a thread, adding sound or a more conspicuous pop up for that seems like an overkill.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
GhostOfBitcoin (OP)
Jr. Member
*
Offline

Activity: 42
Merit: 22


View Profile
June 05, 2026, 09:00:46 PM
 #4

Any edits after 10 minutes will show up if your hover the cursor on the date and time the topic was posted below the title. It will show the last time it was updated too. This is a subtle way to check if changes has been made to a thread,


Thanks, bro. You mentioned a nice default mechanism of the forum. This trick of checking edit time by hovering the mouse cursor in normal thread browsing is really great and effective. However, my main objective behind creating this userscript was to eliminate the hassle of this manual checking and bring real-time automation.

It's time-consuming to manually check by placing the cursor every time. This script does that automatically in the background. It will alert you even if you're working in another tab.

adding sound or a more conspicuous pop up for that seems like an overkill.
Many people like you may not like extra sounds or pop-ups. Keeping that in mind, the widget panel has an option to turn on/off sounds and browser notifications. If someone wants, they can turn off the sound and use it only as a history tracker.

You are absolutely right that not everyone may need this pop-up or sound. However, this automated engine is designed to make it easier for those who want to keep a close eye on the moment-to-moment changes in important threads on the forum.
Mahiyammahi
Sr. Member
****
Offline

Activity: 658
Merit: 369



View Profile
June 06, 2026, 01:39:50 AM
 #5

What is the benefit it's providing . After watching the title I though something would be in server side same like BTT notifier bot. But it seems like unless I'm on the forum and that specific pages it won't notify me.
A suggestion for you, if you can provide a notifier system through telegram bot than it would be great. Cause forum itself shows if the post has been edited or not. It's just we user's don't follow in time. If bot were sending us tracked topic notification that would be a game changer.

GhostOfBitcoin (OP)
Jr. Member
*
Offline

Activity: 42
Merit: 22


View Profile
June 06, 2026, 07:59:52 AM
 #6

What is the benefit it's providing .
The main advantage is that you can immediately find out if the OP (Topic Creator) edits the original post.

Complete record of the last 60 edits (History Tab)

It will monitor the topics you visit once in the background and notify you via Browser Notification, Popup, and Sound Alert if the OP edits the original post.

After watching the title I though something would be in server side same like BTT notifier bot. But it seems like unless I'm on the forum and that specific pages it won't notify me.

This is a client-side userscript, so you must have at least one forum tab open in your browser for it to work.

A suggestion for you, if you can provide a notifier system through telegram bot than it would be great. Cause forum itself shows if the post has been edited or not. It's just we user's don't follow in time. If bot were sending us tracked topic notification that would be a game changer.

The idea of ​​Telegram bot is really great and if it can be done, it will definitely be a big change. However, running a server-side bot requires keeping a central cloud server running 24/7, which is quite expensive for me right now. But I will keep your Telegram bot suggestion in mind and try to work on it.


If bot were sending us tracked topic notification that would be a game changer.
The Tracked Topic Notification feature can be easily added to this userscript. The current script's (state.topics) structure already has a basic database of tracked topics. There are plans to add a Tracked Topic feature to the userscript. This will allow you to track specific topics and receive notifications when their OP changes.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!