Skip to content

ahplummer/satscost

Repository files navigation

💰 USD Price to Sats Highlighter

A simple but powerful Brave browser extension that helps you think in Bitcoin while browsing the web.

✨ What it does

Ever browse the web and wonder "how many sats is that?" This extension has got you covered! It:

  • 🎯 Automatically detects USD prices on any webpage
  • 🌟 Highlights them with a subtle yellow background
  • 🔄 Shows you the current Bitcoin conversion when you hover
  • ⚡ Updates in real-time as you browse
  • 🎨 Works with any webpage styling

🎯 Example

When you hover over a price like $79.00, you'll see something like:

≈ 0.00123456 BTC (123,456 sats) @ $64,000

🚀 Features

  • 🔍 Smart price detection (works with various USD formats)
  • 🎨 Non-intrusive highlighting
  • ⚡ Real-time Bitcoin price updates
  • 🔄 Works with dynamically loaded content
  • 💡 Simple on/off toggle
  • 🎯 Preserves original page styling
  • 🌐 Uses CoinGecko API for reliable price data

🛠️ Installation

  1. Clone this repository
  2. Open Brave browser and go to brave://extensions/
  3. Enable "Developer mode" (top right corner)
  4. Click "Load unpacked"
  5. Select the folder containing this extension

💡 Usage

  1. Click the extension icon in your browser toolbar
  2. Toggle the switch to enable/disable price highlighting
  3. Hover over any highlighted price to see its Bitcoin value
  4. That's it! 🎉

🔧 Technical Details

The extension uses:

  • Mutation Observers to catch dynamically loaded content
  • Debounced price updates to maintain performance
  • Smart regex patterns for accurate price detection
  • CoinGecko's API for current Bitcoin prices
  • Cache system to prevent API spam

🤝 Contributing

Feel free to:

  • Open issues
  • Submit pull requests
  • Suggest new features
  • Report bugs

📝 License

MIT License - feel free to use and modify as you like!


Made with ❤️ for the Bitcoin community

About

Browser extension for cost of things in your browser in btc/sats

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published