Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Contributors

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /