Bitquux
Member
Offline
Activity: 116
Merit: 10
|
|
October 27, 2010, 03:46:53 PM |
|
It would be much nicer if it was possible to automatically detect BTC addresses and mark them somehow, instead of having to select them.
I've been thinking about this. Since it's not part of a tag, it would require parsing all the text on a page. And since there's nothing really overt to identify a bitcoin address as such, that means checking every word on the page for length, and then sending it to Bitcoin for verification, which can get pretty ugly. Still, it might be worth trying just to see how it performs. I'm liking the data- attributes idea for images. I'll have to take a closer look at that.
|
|
|
|
bitcoinex
|
|
October 28, 2010, 04:40:47 AM |
|
It would be much nicer if it was possible to automatically detect BTC addresses and mark them somehow, instead of having to select them.
I've been thinking about this. Since it's not part of a tag, it would require parsing all the text on a page. And since there's nothing really overt to identify a bitcoin address as such, that means checking every word on the page for length, and then sending it to Bitcoin for verification, which can get pretty ugly. Still, it might be worth trying just to see how it performs. I'm liking the data- attributes idea for images. I'll have to take a closer look at that. Addresses have a convenient format for parsing. They always begin with the number "1" and have a length of at least n and no more than m. Following the discovery of such strings that looks like addresses you can check it on the client, this option recently added to it.
|
New bitcoin lottery: probiwon.com- Moжeт, ты eщё и в Heвидимyю Pyкy Pынкa вepyeшь? - Зaчeм жe вepoвaть в тo, чтo мoжнo нaблюдaть нeпocpeдcтвeннo?
|
|
|
Bitquux
Member
Offline
Activity: 116
Merit: 10
|
|
October 29, 2010, 12:17:22 AM |
|
Ok, next version is up. It will attempt to convert Bitcoin addresses to links which bring up the send box when clicked. It has some limitations and can still get confused, but it should work in most cases. You can still do the double-click to hi-light and right-click to send method in places where it fails.
I'm working on getting ahold of some online wallet services to see about integrating them for a no-client-needed option. Though, unless they can also provide address verification, you'd still need the client to convert addresses to links and whatnot.
|
|
|
|
kiba (OP)
Legendary
Offline
Activity: 980
Merit: 1020
|
|
October 29, 2010, 12:38:34 AM |
|
Ok, next version is up. It will attempt to convert Bitcoin addresses to links which bring up the send box when clicked. It has some limitations and can still get confused, but it should work in most cases. You can still do the double-click to hi-light and right-click to send method in places where it fails.
I'm working on getting ahold of some online wallet services to see about integrating them for a no-client-needed option. Though, unless they can also provide address verification, you'd still need the client to convert addresses to links and whatnot.
It doesn't convert anything for me and I still can't send bitcoins.
|
|
|
|
Bitquux
Member
Offline
Activity: 116
Merit: 10
|
|
October 29, 2010, 12:44:41 AM |
|
It doesn't convert anything for me and I still can't send bitcoins.
Is upgrading Chrome a possibility for you?
|
|
|
|
alidor
Newbie
Offline
Activity: 4
Merit: 0
|
|
October 29, 2010, 02:38:32 AM |
|
Just tried it but no highlights showing for me either...
Ubuntu Meerkat + Chrome 8.0.552.18 dev
|
|
|
|
Bitquux
Member
Offline
Activity: 116
Merit: 10
|
|
October 29, 2010, 02:45:45 AM |
|
Just tried it but no highlights showing for me either...
Ubuntu Meerkat + Chrome 8.0.552.18 dev
Thanks. I'll check it out in linux tomorrow.
|
|
|
|
kiba (OP)
Legendary
Offline
Activity: 980
Merit: 1020
|
|
October 29, 2010, 03:33:12 AM |
|
It doesn't convert anything for me and I still can't send bitcoins.
Is upgrading Chrome a possibility for you? I could. However, you gottach realize that the usefulness of the extension also depend in part how well it work on the stable version.
|
|
|
|
Bitquux
Member
Offline
Activity: 116
Merit: 10
|
|
October 29, 2010, 04:06:06 AM |
|
Is upgrading Chrome a possibility for you?
I could. However, you gottach realize that the usefulness of the extension also depend in part how well it work on the stable version. Agreed. Chrome 7 is latest stable version.
|
|
|
|
kiba (OP)
Legendary
Offline
Activity: 980
Merit: 1020
|
|
October 29, 2010, 04:45:11 AM Last edit: October 29, 2010, 01:08:11 PM by kiba |
|
Is upgrading Chrome a possibility for you?
I could. However, you gottach realize that the usefulness of the extension also depend in part how well it work on the stable version. Agreed. Chrome 7 is latest stable version. And my system just happen to update to 7.0.517.43.
|
|
|
|
Bitquux
Member
Offline
Activity: 116
Merit: 10
|
|
October 29, 2010, 01:06:38 PM |
|
Any my system just happen to update to 7.0.517.43.
Excellent. I'll let you know if I come up with anything on the linux front today.
|
|
|
|
Bitquux
Member
Offline
Activity: 116
Merit: 10
|
|
October 29, 2010, 02:23:23 PM |
|
Ok, I tried this out on a debian box. At first I was getting my balance, so I was connecting to Bitcoin properly, but my attempts at sending coins all resulted in the "Error validating address string." The linux box was running Bitcoin 0.3.13 so I upgraded to 0.3.14, which is apparently the version that added the address validation. Now it works fine. However, the first time I clicked one of the links it created a box came up about loading an external link handler in which I chose 'Do nothing' and checked the box to make it permanent for that link type. This was because I formatted the links href as bitcoin:?addr= which can be changed or eliminated since it's not really used. So I suppose my next question is what version of Bitcoin are you using?
|
|
|
|
Bitquux
Member
Offline
Activity: 116
Merit: 10
|
|
October 29, 2010, 02:53:52 PM |
|
Don't know if this will help or not in an extension for finding a bitcoin address if it's just in plaintext, but I use this a lot. Regular expressions are so lightweight and simple. \b1[1-9a-km-zA-HJ-NP-Z]{32,34}\b Check for beggining and end of a word, first character must be a one, and the additional 32-34 characters must be base58 letters. Will find a bitcoin address every time buried in text. If you use that in an extension, you could make any address on a page be able to do your function if you can tie bitcoin in. Thanks . I am using a regex, but mine isn't quite as specific. Care if I swipe it?
|
|
|
|
theymos
Administrator
Legendary
Offline
Activity: 5376
Merit: 13368
|
|
October 29, 2010, 03:06:01 PM |
|
\b1[1-9a-km-zA-HJ-NP-Z]{32,34}\b Valid addresses can be 25-34 characters in length, though the smaller ones are very rare. Testnet addresses can be 35 characters long, and they don't always start with a 1.
|
1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
|
|
|
kiba (OP)
Legendary
Offline
Activity: 980
Merit: 1020
|
|
November 03, 2010, 08:28:34 PM |
|
Is this project dead or alive?
|
|
|
|
Bitquux
Member
Offline
Activity: 116
Merit: 10
|
|
November 03, 2010, 11:21:37 PM |
|
Is this project dead or alive?
It's alive. I just haven't worked on it in a few days. Did you get my question about what version of Bitcoin you're running?
|
|
|
|
kiba (OP)
Legendary
Offline
Activity: 980
Merit: 1020
|
|
November 03, 2010, 11:52:09 PM |
|
Is this project dead or alive?
It's alive. I just haven't worked on it in a few days. Did you get my question about what version of Bitcoin you're running? Mine is 0.13.3 beta.
|
|
|
|
Bitquux
Member
Offline
Activity: 116
Merit: 10
|
|
November 03, 2010, 11:58:10 PM |
|
Is this project dead or alive?
It's alive. I just haven't worked on it in a few days. Did you get my question about what version of Bitcoin you're running? Mine is 0.13.3 beta. Ok, I guess the address validation part of the JSON-RPC was added in 0.3.14, so that's probably why it's not working for you.
|
|
|
|
kiba (OP)
Legendary
Offline
Activity: 980
Merit: 1020
|
|
November 04, 2010, 04:10:54 AM |
|
Is this project dead or alive?
It's alive. I just haven't worked on it in a few days. Did you get my question about what version of Bitcoin you're running? Mine is 0.13.3 beta. Ok, I guess the address validation part of the JSON-RPC was added in 0.3.14, so that's probably why it's not working for you. Congratulation. My part for the bounty paid.
|
|
|
|
Bitquux
Member
Offline
Activity: 116
Merit: 10
|
|
November 04, 2010, 03:23:52 PM |
|
Thanks. When I get some time I'll work on interfacing directly with Mt.Gox and/or MyBitcoin.
|
|
|
|
|