Bitcoin Forum
April 26, 2024, 12:38:26 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Chrome extension for GLBSE  (Read 3677 times)
piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
June 24, 2012, 06:26:18 PM
Last edit: August 28, 2012, 04:31:48 PM by piotr_n
 #1

UPDATE:
After I have realized that GLBSE is one big shit-hole, and the owner of the service is just a goat's laying bitch, I have decided to discontinue development of this extension to not encourage people to fall into the scam.
Therefore I have put the extension offline.
Sorry.



I've made this extension for my own needs, but if anyone is interested (and trusts me) you can install it in your own Chrome and feel welcome to use it.

I keep changing it every day and I don't really have a list of all the things it does, but such would be the main features:
  • Click on the badge icon to see the history of all your transactions and browse through it in a nice way
  • At the Portfolio page you get an additional info about every asset (i.e. your profit/loss)
  • At the assets' pages: you get the buy/sell price filled in automatically, the depth chart looks readable, the orders table initially shows only the 5 first rows and the time of when a dividend was paid is shown in the local time
  • At the Market page you can see the number of total GLBSE's volume (for 24h, 5d and ever)

You can install the extension from the Google Web Store: https://chrome.google.com/webstore/detail/joejlamampjfbiojkbkdekjjlmjifnhf
... or manually (Extensions/Developer mode/Load unpacked extension...) after downloading the files from: https://github.com/piotrnar/chromeglbse


It only works when you are logged in to your glbse.com account.
Also remember that when the extension is enabled your GLBSE session will never expire - if you want to log out, you need to do it manually.

Any feedback welcome, unless it's "I don't trust you", in which case I don't care Smiley

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
1714135106
Hero Member
*
Offline Offline

Posts: 1714135106

View Profile Personal Message (Offline)

Ignore
1714135106
Reply with quote  #2

1714135106
Report to moderator
1714135106
Hero Member
*
Offline Offline

Posts: 1714135106

View Profile Personal Message (Offline)

Ignore
1714135106
Reply with quote  #2

1714135106
Report to moderator
1714135106
Hero Member
*
Offline Offline

Posts: 1714135106

View Profile Personal Message (Offline)

Ignore
1714135106
Reply with quote  #2

1714135106
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714135106
Hero Member
*
Offline Offline

Posts: 1714135106

View Profile Personal Message (Offline)

Ignore
1714135106
Reply with quote  #2

1714135106
Report to moderator
1714135106
Hero Member
*
Offline Offline

Posts: 1714135106

View Profile Personal Message (Offline)

Ignore
1714135106
Reply with quote  #2

1714135106
Report to moderator
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
June 24, 2012, 06:30:12 PM
 #2

Put it up on github so we can see the source before installing it, it would give more trust on your part, and YES I KNOW I CAN DOWNLOAD THAT UNZIP IT AND LOOK AT THE SOURCE but that is annoying.
piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
June 24, 2012, 06:37:22 PM
 #3

Put it up on github so we can see the source before installing it, it would give more trust on your part, and YES I KNOW I CAN DOWNLOAD THAT UNZIP IT AND LOOK AT THE SOURCE but that is annoying.
You cannot be sure that the github source would be the same as the one in the goggle store.
So just download, unzip and look at the source, if you want - that's the only way to be sure.

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
June 24, 2012, 06:40:51 PM
 #4

On the other hand, if it gets popular, I will put in on git one day so people could track the changes.
In the meantime, you can get the zip from here: http://speedy.sh/VSXN4/glb.zip

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
June 24, 2012, 06:42:34 PM
 #5

Put it up on github so we can see the source before installing it, it would give more trust on your part, and YES I KNOW I CAN DOWNLOAD THAT UNZIP IT AND LOOK AT THE SOURCE but that is annoying.
You cannot be sure that the github source would be the same as the one in the goggle store.
So just download, unzip and look at the source, if you want - that's the only way to be sure.

who said I was ever going to download it from the chrome store. If I have the git clone source I will just load that into chrome and it will always be update since whenever a git commit is made I will fetch it Smiley but I will look at the zip for now
piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
June 24, 2012, 06:47:59 PM
 #6

Got ya. I will put it on github as soon, as I learn how to do it - not today though

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
June 25, 2012, 10:48:05 AM
 #7

FYI, the sources are on github already: https://github.com/piotrnar/chromeglbse

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
molecular
Donator
Legendary
*
Offline Offline

Activity: 2772
Merit: 1019



View Profile
June 25, 2012, 11:17:16 AM
 #8

great! will take a look later, subbing to be reminded.

PGP key molecular F9B70769 fingerprint 9CDD C0D3 20F8 279F 6BE0  3F39 FC49 2362 F9B7 0769
Francesco
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
July 01, 2012, 09:36:41 PM
Last edit: July 02, 2012, 06:54:24 AM by Francesco
 #9

Great! I was really looking for something like this, thanks   Grin

Of course, there are quite some things that could be better.

1) Never stressed enough, if you want anyone to trust your code and contribute: better explainations, both in code and in user interface.

2) ...curiosity: why are PPT.A...PPT.E "assumed at 1.28"?

3) the number in the badge could really only count new things, not ALL of them. For now it's not a problem, but it's just not optimal. And also the colour could indicate something.

4) most important of all, for now: is the value of my actions simply calculated on the max price (to sell)? Because now I noticed a sudden burst in the value of my SILVER shares: and it's probably because someone decided he would buy them at 10% more than next bid -almost the price at which he could get them immediatly. But, only THREE of them. I don't know if it's a joke or something, but with just 0,03 BTC he screws the real price. If the program doesn't take this possibility into account, it should in future releases: verify you could really liquidate at that price, and it's not three shares against hundreds. the outlier has gone away, and the estimated value is still the same, so I suppose the issue doesn't exist. Great work!

Of course, if you are too busy ...I could always do it myself, as soon as I have a little time; and share the result. The magic of open source Wink
piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
July 02, 2012, 09:54:15 AM
Last edit: July 18, 2012, 06:39:47 PM by piotr_n
 #10

"How to evaluate the value of your assets" - it's always a dilemma.

Now I do it like this:
  • For the PPT.x bonds - assume 1.28BTC per share
  • If there is 24h average - assume this price minus 0.5% per share
  • If there is 5 day average - assume this price minus 0.5% per share
  • Otherwise assume the current highest bid minus 0.5% per share

Feel free to change whatever you want, but as I said I made this extension for myself, it meets my own needs and my needs not necessarily meet yours.
Though you are welcome to start developing your own branch.

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Bitcoin Oz
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


Wat


View Profile WWW
July 02, 2012, 10:12:45 AM
 #11

Wow glad i found this thread. Could you create an extension that has better charts ?

Perhaps glbse needs an "app store" for all these things?

piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
July 02, 2012, 10:15:29 AM
 #12

That's my next goal, but its not easy since the charts data are embedded into html, into javascript, into local variables of nameless functions...
So far I only have a version that always hides the charts - and you know what, I like the pages without the charts more Smiley
If you want I can push it to github.

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Bitcoin Oz
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


Wat


View Profile WWW
July 02, 2012, 10:18:31 AM
 #13

That's my next goal, but its not easy since the charts data are embedded into html, into javascript, into local variables...
So far I only have a version that always hides the charts - and you know what, I like the pages without the charts more Smiley
If you want I can push it to github.

Nice work.

Do you do firefox extensions too ?

piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
July 02, 2012, 10:19:30 AM
 #14

Do you do firefox extensions too ?
No - no experience with firefox extensions whatsoever.

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
July 02, 2012, 02:53:28 PM
 #15

You can try the current version 1.0.2 - the depth chart should be improved.

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Francesco
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
July 07, 2012, 11:34:41 AM
 #16

Small annoying issue: buying shares directly from the issuer (via "transfer" option) makes their price appear as 0, and so 100% profit.
Should in some way recognise the tansfers as payments; maybe the only way is guess, and then offer the option to manually confirm the price for those shares, saving it as local storage.
piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
July 09, 2012, 12:11:48 PM
 #17

Small annoying issue: buying shares directly from the issuer (via "transfer" option) makes their price appear as 0, and so 100% profit.
Should in some way recognise the tansfers as payments; maybe the only way is guess, and then offer the option to manually confirm the price for those shares, saving it as local storage.
I get you point, but solving this sounds like a tough one.
And I don't have any of such shares so I wouldn't be able to test it.


Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Francesco
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
July 10, 2012, 09:05:46 AM
 #18

Small annoying issue: buying shares directly from the issuer (via "transfer" option) makes their price appear as 0, and so 100% profit.
Should in some way recognise the tansfers as payments; maybe the only way is guess, and then offer the option to manually confirm the price for those shares, saving it as local storage.
I get you point, but solving this sounds like a tough one.
And I don't have any of such shares so I wouldn't be able to test it.



It quite is. Transfers get shown on the portfolio page, so if you see a transfer of shares in and a transfer of money out around the same time, you can quite safely assume that was the price. But in my case I bought two different shares at the same time from the same person, and you would have never a way to know what pays what. That's why the only workaround is probably to offer the possibility to manually specify what the price was.
piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
July 10, 2012, 09:19:39 AM
 #19

It quite is. Transfers get shown on the portfolio page, so if you see a transfer of shares in and a transfer of money out around the same time, you can quite safely assume that was the price. But in my case I bought two different shares at the same time from the same person, and you would have never a way to know what pays what. That's why the only workaround is probably to offer the possibility to manually specify what the price was.
If you want to change the source code I could try to walk you through.

It's all in the file background.js in the function howmuchspent()
Just insert such a line of code:
Code:
if (id=="THE_SHARE") sum.buy+= 232.50
... just before this line:
Code:
sum.sum = sum.buy+sum.fee-sum.div

Replace THE_SHARE with the ticker of the shares and 232.50 with the total BTC amount you paid for them.
Make sure to reload the extensions for the changes to take effect.

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Francesco
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
July 18, 2012, 12:12:01 AM
Last edit: July 18, 2012, 06:22:11 AM by Francesco
 #20

Maybe I'll try, thanks.

But for now... doesn't work at all on OpenSUSE, it appears. Just no rection (nor click nor badge), very odd. Version 1.0.3, tried both from source and from store.

(in the Portfolio page it does show only liquid Btc in asset value, and changes the layout but no data is inserted. So apparently it's Ajax failing)
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!