Git Product home page Git Product logo

Comments (9)

Mika- avatar Mika- commented on August 16, 2024

Magnet urls are already being handled by the native protocol handler.

Automatic handling for all links would be nice, but the current web extension API doesn't yet have methods to add custom download targets.
This absense could be filled by parsing and rewriting links or blocking and matching requests. Both ways are hacky and slow down regular browsing. This also makes extension unpredictable, as there's no way to know if the link will match. There would also be many false positives and misses because of wide variety of url schemas on different sites.

Firefox 58 will be shipped soon and hopefully we will know soon if there are plans to extend the download API to allow custom handling by mime type, like the old one had.

from torrent-control.

zero77 avatar zero77 commented on August 16, 2024

I see, so it’s just a case of waiting for the custom handling by mime type API to be implemented.
Do you know if it has been requested or if there are any plans to implement it.

from torrent-control.

Mika- avatar Mika- commented on August 16, 2024

Relevant tickets in bugzilla are 1344648 and 1356397. Loosened content handler would allow detecting files with application/x-bittorrent mime automatically. Althought this doesn't help if server is missconfigured and responds torrents with generic application/octet-stream which needs action from the user to work properly.

from torrent-control.

zero77 avatar zero77 commented on August 16, 2024

So it looks like it's just a case of waiting for the right Apis to be implemented, although it could be a while.

from torrent-control.

Mika- avatar Mika- commented on August 16, 2024

Mozilla has triaged and combined relevant tickets to 1457500. So this is slowly progressing.

from torrent-control.

ziffusion avatar ziffusion commented on August 16, 2024

What is the harm in at least handling urls with the .torrent suffix? That would cover a whole lot of links, with very little chance of a false positive. Will you consider a pull request for this? Seems like a small enough change.

from torrent-control.

Mika- avatar Mika- commented on August 16, 2024

It looks like Mozillas progress on web extension apis has once again halted. I have some free time this weekend so I can make initial support.
Do you have more proposals for regexp filters other than /\.torrent$/?

from torrent-control.

ziffusion avatar ziffusion commented on August 16, 2024

I just sent you a pull request for this. See if you like it.

And if you have other ideas, would be interested in learning.

from torrent-control.

Mika- avatar Mika- commented on August 16, 2024

Feature is now present in 0.2.1.

from torrent-control.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.