Convert text URLs to links on triple click
Have you ever encountered a situation where you're browsing a webpage and spot a plain text URL that isn't clickable?
Like this:
https://example.org/
This script can help solve that problem. Simply triple-click rapidly on the plain text URL, and it will automatically convert into a clickable link.

✅ Smart Trigger
✅ Accurate Recognition
http://, https://, or www.<a> tags✅ Safe Replacement
target="_blank" attributeLocate the Text URL
Find the plain text URL you want to convert (e.g., https://example.com)
Triple-Click Quickly
Quickly click three times in a row (left mouse button) on the text URL
Automatic Conversion
Once successful, the text will turn blue and become a clickable link
You may modify the constants in the script to suit your needs.
const CLICK_TIMEOUT = 1000;
const CLICK_THRESHOLD = 10;
const URL_REGEX = /(https?:\/\/[^\s<]+|www\.[^\s<]+\.[^\s<]{2,})/gi;
const STYLE = "color: #66CCFF; background: #163E64";