Bitcoin Forum
December 06, 2016, 09:58:44 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Firefox addon  (Read 1267 times)
galaxyAbstractor
Full Member
***
Offline Offline

Activity: 147



View Profile WWW
June 02, 2011, 01:48:50 PM
 #1

I am currently creating a firefox addon which you should be able to easily donate bitcoins to site owners that provides bitcoin address. I have encountered some obstacles though:

1. How would I send the JSON-RPC calls in javascript? Send an HTTP POST request to the port on localhost?

2. How do I explain to the user that he needs to put an autostart command to start bitcoin as a server? Is it even possible to run both a client and a server at the same time? The addon should be easy to use for everyone, and explaining to them how they have to do a .bat file with some random code and place it in the autostart folder, how would that be easy?

1gaLaxy9csuBTvNLJYoUy6sengQbh1TpV
Pyramining - Invest in mining!
1481061524
Hero Member
*
Offline Offline

Posts: 1481061524

View Profile Personal Message (Offline)

Ignore
1481061524
Reply with quote  #2

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

Posts: 1481061524

View Profile Personal Message (Offline)

Ignore
1481061524
Reply with quote  #2

1481061524
Report to moderator
1481061524
Hero Member
*
Offline Offline

Posts: 1481061524

View Profile Personal Message (Offline)

Ignore
1481061524
Reply with quote  #2

1481061524
Report to moderator
1481061524
Hero Member
*
Offline Offline

Posts: 1481061524

View Profile Personal Message (Offline)

Ignore
1481061524
Reply with quote  #2

1481061524
Report to moderator
Maged
Legendary
*
Offline Offline

Activity: 1260


View Profile
June 02, 2011, 05:54:45 PM
 #2

2. How do I explain to the user that he needs to put an autostart command to start bitcoin as a server? Is it even possible to run both a client and a server at the same time? The addon should be easy to use for everyone, and explaining to them how they have to do a .bat file with some random code and place it in the autostart folder, how would that be easy?
I'm pretty sure that addons have full read/write access to the filesystem. As such, just configure bitcoin.conf appropriately (or read in the values for the rpcuser/rpcpassword if they are already set).

galaxyAbstractor
Full Member
***
Offline Offline

Activity: 147



View Profile WWW
June 02, 2011, 05:56:51 PM
 #3

2. How do I explain to the user that he needs to put an autostart command to start bitcoin as a server? Is it even possible to run both a client and a server at the same time? The addon should be easy to use for everyone, and explaining to them how they have to do a .bat file with some random code and place it in the autostart folder, how would that be easy?
I'm pretty sure that addons have full read/write access to the filesystem. As such, just configure bitcoin.conf appropriately (or read in the values for the rpcuser/rpcpassword if they are already set).

I talked with the help channel and they told me that it is possible to gain filesystem access and to execute programs, but they said it is very hard to get such an addon approved. Ahh maybe I'll go that way and distribute the addon myself if they don't approve it

1gaLaxy9csuBTvNLJYoUy6sengQbh1TpV
Pyramining - Invest in mining!
Maged
Legendary
*
Offline Offline

Activity: 1260


View Profile
June 02, 2011, 06:55:44 PM
 #4

2. How do I explain to the user that he needs to put an autostart command to start bitcoin as a server? Is it even possible to run both a client and a server at the same time? The addon should be easy to use for everyone, and explaining to them how they have to do a .bat file with some random code and place it in the autostart folder, how would that be easy?
I'm pretty sure that addons have full read/write access to the filesystem. As such, just configure bitcoin.conf appropriately (or read in the values for the rpcuser/rpcpassword if they are already set).

I talked with the help channel and they told me that it is possible to gain filesystem access and to execute programs, but they said it is very hard to get such an addon approved. Ahh maybe I'll go that way and distribute the addon myself if they don't approve it
There is no reason to execute programs. Just read/write to the bitcoin.conf file.

galaxyAbstractor
Full Member
***
Offline Offline

Activity: 147



View Profile WWW
June 02, 2011, 07:01:35 PM
 #5

2. How do I explain to the user that he needs to put an autostart command to start bitcoin as a server? Is it even possible to run both a client and a server at the same time? The addon should be easy to use for everyone, and explaining to them how they have to do a .bat file with some random code and place it in the autostart folder, how would that be easy?
I'm pretty sure that addons have full read/write access to the filesystem. As such, just configure bitcoin.conf appropriately (or read in the values for the rpcuser/rpcpassword if they are already set).

I talked with the help channel and they told me that it is possible to gain filesystem access and to execute programs, but they said it is very hard to get such an addon approved. Ahh maybe I'll go that way and distribute the addon myself if they don't approve it
There is no reason to execute programs. Just read/write to the bitcoin.conf file.

But I want to use the JSON-RCP API to make payments, and for that the bitcoin program needs to be run with the -server argument, right?

1gaLaxy9csuBTvNLJYoUy6sengQbh1TpV
Pyramining - Invest in mining!
keine-ahnung
Newbie
*
Offline Offline

Activity: 13


View Profile
June 02, 2011, 09:55:34 PM
 #6

"server=1" in bitcoin.conf will cause bitcoin to act as it was started with -server

1ATjiTtrXYCvqKtf7cgmkKg8v1hNCYNFNL
mwally
Newbie
*
Offline Offline

Activity: 20


Long Nights, Impossible Odds...


View Profile WWW
June 03, 2011, 12:32:58 AM
 #7

I am currently creating a firefox addon which you should be able to easily donate bitcoins to site owners that provides bitcoin address.

What about a new robots.txt directive for bitcoin donations?  It could be something as simple as:

Code:
User-agent: *
Disallow: /files/
Disallow: /admin/

Sitemap: http://example.com/sitemap.xml
Donations: 171RLtavSkiKoDGSboatMNJ9dqpvjYSesR

Perhaps the word 'Donations' here is inappropriate, as Bitcoin has many uses, but it could be a simple way for webmasters to broadcast their Bitcoin addresses in a universal, simple way.


Gambling for WikiLeaks: http://www.bitcoingamer.com?donateto=1HB5XMLmzFVj8ALj6mfBsbifRoD4miY36v (http://www.bitcoingamer.com?donateto=1HB5XMLmzFVj8ALj6mfBsbifRoD4miY36v)
galaxyAbstractor
Full Member
***
Offline Offline

Activity: 147



View Profile WWW
June 05, 2011, 05:07:31 PM
 #8

"server=1" in bitcoin.conf will cause bitcoin to act as it was started with -server

I see. But will the client and server be able to be ran at the same time?

1gaLaxy9csuBTvNLJYoUy6sengQbh1TpV
Pyramining - Invest in mining!
keine-ahnung
Newbie
*
Offline Offline

Activity: 13


View Profile
June 06, 2011, 11:54:33 AM
 #9

server=1 doesn't disable the GUI, it just enables the RPC-interface, so their is no need to run bitcoin twice.

1ATjiTtrXYCvqKtf7cgmkKg8v1hNCYNFNL
galaxyAbstractor
Full Member
***
Offline Offline

Activity: 147



View Profile WWW
June 06, 2011, 10:46:33 PM
 #10

server=1 doesn't disable the GUI, it just enables the RPC-interface, so their is no need to run bitcoin twice.

Ah yeah I just had the impression that with server it meant like something like httpd, mysqld etc, which doesn't have a GUI. It's clear now Tongue

1gaLaxy9csuBTvNLJYoUy6sengQbh1TpV
Pyramining - Invest in mining!
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!