Simple Bitcoin Donate Button

The problem: I was unable to find an easy solution which does not require complex scripts for adding a “Donate Bitcoins” button to my website. Most Websites just display the full Bitcoin address, which is large and ugly. So I tried to create my own.

The solution idea: I wanted to create a Button which allows the user to copy the Bitcoin address to the clipboard so I don’t have to display it on my website. Stackoverflow showed a nice idea: Display a prompt which allows the user to copy the address himself. Standard JavaScript function supported by most browsers. Does not require any libraries. This is also the most reliable solution since directly writing to the clipboard with JavaScript is not allowed by many browsers. There are libraries to allow scripts to write to the clipboard it but they commonly use Flash, which is overkill IMHO.

(TLDR) The solution – don’t forget to replace my Bitcoin address with yours:

<a href="javascript:void(0);" onclick="javascript:window.prompt ('Please copy-paste my Bitcoin address to your Bitcoin software - I cannot do it automatically.\nTo copy it, right-click the selected text and select \'Copy\'.\nThen right-click the address field in your Bitcoin software and select \'Paste\'.', '18bkQoBGCZwwP1JhkbAqifEQHyq2cYVv6v');">
<img src="http://www.ecogex.com/bitcoin/pack/ribbonDonateBitcoin.svg" width="104" height="26" alt="Donate Bitcoin" />
</a>

What it looks like – use this to donate some coins for me while you’re at it ;)
Donate Bitcoin

Additional information: The image – which I found here under the Free Art License – is a SVG so you can specify any size you want, it will scale cleanly.

GD Star Rating
a WordPress rating system

Better Firefox Widescreen Browsing

The problem: Every day you read news sites / sites which are sorted into articles which you read many of.
Opening an article hides the list of articles. You lose your focus in the article list and after closing the article you need to find your current location in the list again.

The idea to solve it: You use a widescreen display. Split the browser window horizontally. Lock the left tile to the article list. Configure a keyboard button as modifier for clicking links which causes them to open in the right tile.

Finding the solution: Keywords I came up with for searching the Firefox plugins for this are: {Tile,Tiled,Split} + {View,Tabs}.
The popular plugins are sucky, but there is an unpopular one which does the job (although it is very minimalistic and I’d be glad if someone wrote a better, configurable one – it is open source):

(TLDR) The solution: The Split Pannel add-on. Install it. Go to the Firefox menu View > Toolbars > Customize. Drag the button labeled Split to your toolbar. Go to your favorite news site. Click Split > Left. Now press Ctrl+Shift+Leftclick to open links in the right tile. They will also spawn a tab. All tabs which are open can be cycled in the right tile by clicking them normally.

Additional information: Depending on your Firefox settings, you might need to use a different combo than Ctrl+Shift+Leftclick – check this page or just try all possible combinations of {Ctrl,Shift,Alt} + {Left-,Middleclick}. Also press the Firefox shortcut Ctrl+W to close tabs. Use Ctrl+[1-9] to select a tab by its position.

Feature request for people who want to develop a better plugin: Configuration option to make it work with Middleclick only so I can remove my left hand from the keyboard.

Flattr this     Donate Bitcoin

GD Star Rating
a WordPress rating system