Greasy Fork is available in English.

Douban imdb to rarbg

豆瓣的imdb链接转换为rarbg页面

// ==UserScript==
// @name         Douban imdb to rarbg
// @namespace    https://github.com/lycloudqaq/Douban-imdb-to-rarbg
// @version      1.1
// @description  豆瓣的imdb链接转换为rarbg页面
// @author       lycloud
// @match        https://movie.douban.com/subject/*
// @grant        none
// ==/UserScript==


(function () {
    var rarbg = document.querySelectorAll("#info a")
    for (var i = 0; i <= rarbg.length; i++) {
        if (i == rarbg.length - 1) {
            var rarbglink = rarbg[i].innerText;
            rarbg[i].href = "https://rarbgprx.org/torrents.php?imdb=" + rarbglink + "&order=size&by=DESC"; break;
        }
    }
})();