# Add Magnet Links to DMM

Safari does not allow web apps to handle magnet: and other URL schemes. These tools simplify adding magnet links to Debrid Media Manager or rdt-client when using Safari and other apps.

# Redirect Rules

Any browser extension that supports URL redirect rules can be used to redirect magnet links. For example:

URL Matching Pattern:

/^magnet:\?xt=urn:btih:([A-Fa-f0-9]+)(?:&.*)?$/

Replacement Options:

https://debridmediamanager.com/library?addMagnet=$1

https://rdt-client/add?magnet=magnet:?xt=urn:btih:$1

StopTheMadness Pro is a powerful Safari browser extension that supports URL redirect rules.


# Official DMM Userscript

Debrid Media Manager.user.js
Debrid Media Manager.user.js

This userscript will:

  1. scan the current webpage for all magnet: links;
  2. extract the infohash in each magnet link; and
  3. add a linked button to DMM next to each magnet link.

These links open Debrid Media Manager when selected and automatically add the infohash to your library using this URL:

debridmediamanager.com/library?addMagnet=infohash

# Bookmarklet

DMM bookmarklet

This boosted bookmarklet will load the userscript on the current page only (without enabling a userscript or userscript manager on a permanent basis).

Drag this DMM bookmarklet into your bookmarks or create a new bookmark with this JavaScript code:

javascript:(function(){
  const s = document.createElement('script');
  s.src = 'https://update.greasyfork.org/scripts/463268/Debrid%20Media%20Manager.user.js';
  document.head.appendChild(s);
})();

# YAML Plugin

Action plugin

This Ferrite app plugin adds two Actions to magnet links:

Action plugin
name: andrewe YAML plugins
author: andrewe
sources:
actions:
  - name: Open in DMM Library
    version: 3
    about: >-
      Adds magnet link using Debrid Media Manager
    website: https://debridmediamanager.com
    requires:
      - magnet
    deeplink: "https://debridmediamanager.com/library?addMagnet={link}"
  - name: Open in Magnet Linker
    version: 1
    website: https://apps.apple.com/app/magnet-linker/id1507795808
    requires:
      - magnet
    deeplink:
      - os: iOS
        scheme: "{link}"

# Test Links

These are Creative Commons torrents, useful for testing purposes:

Cosmos Laundromat (2015): magnet link

Tears of Steel (2012): magnet link