[SOLVED] firefox - simple magnet helper for lesser clicking ?

Issues and ideas about I2PSnark
Post Reply
User avatar
Phithue7
Posts: 24
Joined: 15 Jun 2024 12:38

[SOLVED] firefox - simple magnet helper for lesser clicking ?

Post by Phithue7 »

"classical" setup with Firefox, and I2P Java,
postman + i2psnark in different firefox tabs:

Right now when you found an interesting torrent:
- left click on magnet link for firefox context menu
- copy link
- switch to i2psnark tab
- paste link
- click add torrent
- switch back to postman
--> 6 clicks for one magnet/torrent

Has someone a tip or solution, for getting it done with "one-click" on the magnet link ?
Last edited by Phithue7 on 02 Aug 2024 10:04, edited 1 time in total.
User avatar
lgillis
Posts: 165
Joined: 20 Oct 2018 12:52
Contact:

Re: firefox - simple magnet helper for lesser clicking ?

Post by lgillis »

a) Use the mouse to drag a torrent URL (magnet or torrent file) from the left-hand Firefox window into the right-hand Firefox window in which I2PSnark is running. Works with tabs too.

b) Click on Download torrent in Firefox and save the torrent file directly in the I2PSnark directory you have configured. Requires autostart of torrents.
Luther H. Gillis · Private Investigator · Discreet & Confidential
User avatar
Phithue7
Posts: 24
Joined: 15 Jun 2024 12:38

Re: firefox - simple magnet helper for lesser clicking ?

Post by Phithue7 »

Great, a) is a nice idea !
b) sorry, I forget to mention, default for me is to have i2p on a another headless machine, no shared folders.

I'm thinking about an c) solution: some Firefox snippet or simple bash script with wget, where you drop the magnet url, and then it's send via wget post to an i2psnark...
User avatar
Phithue7
Posts: 24
Joined: 15 Jun 2024 12:38

Re: firefox - simple magnet helper for lesser clicking ?

Post by Phithue7 »

found this one, someone had the same idea:
viewtopic.php?t=1246&sid=eb6572670904d3 ... d7eb0af9c9
User avatar
Phithue7
Posts: 24
Joined: 15 Jun 2024 12:38

Re: firefox - simple magnet helper for lesser clicking ?

Post by Phithue7 »

one click solution is running :-)
User avatar
zzz
Posts: 184
Joined: 31 Mar 2018 13:15

Re: [SOLVED] firefox - simple magnet helper for lesser clicking ?

Post by zzz »

Here's my version I did a few years ago, for Linux. Never got around to making it perfect enough to include in our PPA/Debian packages, but may be good enough for you.

https://git.idk.i2p/zzz/i2psnark-launcher
User avatar
Phithue7
Posts: 24
Joined: 15 Jun 2024 12:38

Re: [SOLVED] firefox - simple magnet helper for lesser clicking ?

Post by Phithue7 »

Hm, as Titus says here
viewtopic.php?t=1246&sid=8b5d4a25017ce6 ... a9e6641fb1
the "old" way is not working any more, because add torrent is now a form.

I didn't test the i2psnark-launcher in full, but only the main part:

Code: Select all

firefox --profile "${HOME}/$p" --no-remote --new-instance "http://127.0.0.1:7657/i2psnark/?nofilter_newURL=magnet:%3Fxt=urn:btih:3aae14d7c4fca4f0856d202482538a4872fd0090%26dn=I2P+Update+2.6.1%26tr=http://tracker2.postman.i2p/announce.php#add"
Result: magnet url is pasted in the snark add torrent input field, but the "add torrent" button is not executed.

Maybe you could have a look at my shell+curl solution, also in the post started by Titus.
Is it ok like this, or do you see any major issue with this ?
I used it the last days on several tests, with good result.
Attachments
magnet_screenshot_terminal.png
magnet_screenshot_terminal.png (81.67 KiB) Viewed 3176 times
User avatar
Phithue7
Posts: 24
Joined: 15 Jun 2024 12:38

Re: [SOLVED] firefox - simple magnet helper for lesser clicking ?

Post by Phithue7 »

v1 published, waiting for further feedback.
Contains also screenshots and a readme.

http://tracker2.postman.i2p/index.php?v ... l&id=79456
yoMomma
Posts: 2
Joined: 21 Aug 2024 14:22

v1 works a treat

Post by yoMomma »

v1 works a treat so far with the official i2psnark webinterface.

any other version that has been posted here or there that was suppose to "improve" on that (up to today) simply did not work for me at all.

so thanks for the effort and the testing!
Post Reply