Jul 9, 2025

Update: Newly Sold Unit Indicators in Teduh Unit Counter

Back in May, I introduced a Chrome extension called Teduh Unit Counter, built to help users track property unit availability more efficiently while browsing the Teduh housing platform.

After receiving helpful feedback from users monitoring multiple projects, I've added a new enhancement that makes it easier to identify recently sold units, without needing to manually compare listings each time.

What's New: Highlighting Newly Sold Units

The latest update introduces the Newly Sold Unit Indicators feature. It flags units that have recently been marked as "Telah Dijual" (sold) since your last visit. This makes it faster to identify changes, especially for users keeping an eye on specific buildings or units.

Newly sold unit indicator


How It Works

1. Automatic Comparison

When you load a property page, the extension checks for any units that have changed from "available" to "sold" by comparing the current page data with previously stored unit status.

2. Data Storage

The newly sold unit data is saved in Chrome's localStorage under the newlySoldUnits key (in short, what it means is that the data persists even after the browser is closed, and no data is being sent to external servers, no privacy concerns). Each entry contains:

  • unitNumber: The unique identifier of the unit
  • dateMarkedSold: The timestamp when the unit was marked as sold (stored in ISO format)

3. Visual Highlight

To make changes easier to spot, units newly marked as sold are styled with:

  • A light yellow background
  • Red text and a yellow border

4. UI Panel Updates

The extension popup now includes a dedicated section showing:

  • The total number of newly sold units
  • A list of unit numbers
  • The most recent sold timestamp, e.g., "July 2, 2025, 14:30"
  • A "Mark as Read" button to clear these highlights after reviewing

5. Persistent Across Sessions

All data remains intact across browser sessions. When you revisit the same project, you'll still see what was previously marked as sold, until you manually clear it.

Why This Matters

Tracking changes in property listings can be tedious, especially when revisiting projects to check what's been taken. With this new feature, users can:

  • Save time by focusing only on new changes
  • Improve clarity with color-coded visual indicators
  • Make informed decisions with real-time updates

What's Next

This update is part of a larger plan to make the extension more intelligent and intuitive. Some upcoming ideas:

  • Optional desktop notifications for sold updates
  • A unit history tracker
  • Multi-project summaries

If you're using the extension and have ideas to improve it, feel free to reach out, feedback is always welcome.

Recap: Key Features in This Update

  • New Newly Sold Unit Indicators feature
  • Tracks changes in unit status between visits
  • Stores sold data in localStorage with timestamps
  • Visual highlight with yellow background and red text
  • Extension UI shows sold unit summary with clear date/time
  • Data remains available until manually cleared

You can install or update the extension from your Chrome browser as usual. Stay tuned for more updates in the future. If you have already installed the extension, it should automatically update to the latest version.

May 21, 2025

Chrome Extension: Teduh Unit Counter

I recently built a Chrome extension called Teduh Unit Counter to assist Malaysian property buyers in tracking unit availability on the teduh.kpkt.gov.my platform.



Why build it?

As a developer, I often prefer using vanilla JavaScript for small projects to keep things lightweight and maintainable. This extension was born out of my own experience searching for properties in Malaysia. I wanted a tool that could provide real-time insights into property unit statuses without relying solely on information from property agents.

Purpose?

Teduh Unit Counter enhances your browsing experience on the Teduh platform by:

  • Counting Units: Automatically tallying the total number of units, as well as distinguishing between sold and available units on a project’s page.
  • Tracking History: Saving the links of visited project pages locally, allowing you to revisit them easily.
  • Generating Direct Links: Creating direct URLs to specific projects using their APDL codes.


All data is stored locally in your browser, ensuring privacy and security. However, please note that uninstalling your browser or clearing its data will remove this stored information.

Jan 2, 2025

The Magic Behind GPT: How Does It Work?

Have you ever wondered how ChatGPT, or any large language model (LLM), understands your input and crafts a coherent response? 




From the moment you type your query to the instant you receive a detailed reply, there's a complex journey happening behind the scenes. 

While I’ve included a flowchart link to break down this cycle visually, let’s briefly explore the main steps that drive this incredible technology. 

Understanding the cycle can demystify how these LLM operates and highlight just how powerful they truly are. 

Overview of sequence of LLM

User Input > Tokenization > Context Management > Self-Attention > Contextual Analysis > Token Prediction > Response Generation > Return Output to User

 


LLM workflow overview