It's just Sunday fun.

# Lazarus Clipboard URL Extractor
This project is a **Lazarus / Free Pascal** application that monitors the system clipboard, extracts links (URLs) from copied text or HTML, cleans them from unwanted session/query parameters, and automatically opens the latest copied link in your default web browser.
## Features
- Monitors the system clipboard continuously (via `TTimer`).
- Supports both **plain text links** (e.g., copied from the browser address bar) and **HTML links** (copied from a webpage).
- Cleans forum links by removing:
- `?PHPSESSID=...` or `&PHPSESSID=...`
- `#new`
- `/topicseen.html`
- Displays all collected links in a `TListView`.
- Automatically opens the **last added link** in the system default browser.
- Double-click on any link in the list to open it manually.
## How It Works
1. The app checks the clipboard every second (`TTimer.Interval = 1000` ms).
2. If new clipboard content is detected:
- If the content contains HTML → extracts `<a href="...">` links.
- Otherwise, treats it as plain text and extracts URLs with a regex.
3. Each link is cleaned using `CleanForumURL` to strip unwanted session IDs.
4. The new link is added to the list and automatically opened in the browser.
## Usage
1. Run the application in Lazarus.
2. Copy any link or webpage snippet that contains links.
3. The program will:
- Add the link(s) to the list.
- Automatically open the **latest copied link**.
4. You can also double-click a link in the list to open it again.
## Example
Copied link:
https://forum.lazarus.freepascal.org/index.php/topic,72193.0.html?PHPSESSID=uslbjdmsmtftir013b648h38h5#newAfter cleaning:
https://forum.lazarus.freepascal.org/index.php/topic,72193.0.htmlThis cleaned link will appear in the list and open in your browser automatically.
## Requirements
- Lazarus IDE (tested with Lazarus 3.4 / Free Pascal 3.2.2).
- Windows (uses `Windows` unit for clipboard access).
- Internet browser (for opening links via `OpenURL`).
