Greasy Fork

Greasy Fork is available in English.

从豆瓣电影直接跳转漫狐猿搜索资源

漫狐猿是一个影视资源聚合搜索引擎。安装脚本后豆瓣电影标题旁会显示漫狐猿的logo,点击就可以搜索影视资源了。

当前为 2024-08-26 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         从豆瓣电影直接跳转漫狐猿搜索资源
// @namespace    https://manhuape.com/
// @version      0.0.1
// @description  漫狐猿是一个影视资源聚合搜索引擎。安装脚本后豆瓣电影标题旁会显示漫狐猿的logo,点击就可以搜索影视资源了。
// @author       manhuape
// @match        *://movie.douban.com/subject/*
// @license      MIT
// ==/UserScript==

(function () {
    var host = location.hostname;
    if (host === 'movie.douban.com') {
        const title = encodeURIComponent(document.querySelector('title').innerText.replace(/(^\s*)|(\s*$)/g, '').replace(' (豆瓣)', ''));
        const subjectwrap = document.querySelector('h1');
        const subject = document.querySelector('.year');
        if (!subjectwrap || !subject) {
            return;
        }
        const sectl = document.createElement('span');
        subjectwrap.insertBefore(sectl, subject.nextSibling);
        sectl.insertAdjacentHTML('beforebegin',
            `<style>.cupfox{vertical-align: middle;}.cupfox:hover{background: #fff!important;}</style>
            <a href="https://manhuape.com/index.php/label/siou_movie.html?name=${title}" class="cupfox" target="_blank">
            <?xml version="1.0" encoding="UTF-8" standalone="no"?>

<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="23">
<path d="M0 0 C3.05498079 5.78217394 4.64451156 9.5589964 3 16 C3.66 16 4.32 16 5 16 C5.33 14.68 5.66 13.36 6 12 C6.66 12 7.32 12 8 12 C8 14.31 8 16.62 8 19 C4.03237891 21.59873834 -0.21920632 21.55503675 -4.8125 21.8125 C-5.59431641 21.87630859 -6.37613281 21.94011719 -7.18164062 22.00585938 C-13.44107723 22.37713757 -17.77298357 21.3972122 -22.9140625 17.578125 C-25.10333504 14.39659225 -24.42672211 10.6820022 -24 7 C-23.42353285 3.94811509 -22.79952422 2.69928633 -21 0 C-14.22252055 -2.00814206 -6.95224802 -0.68886604 0 0 Z " fill="#F8D4B9" transform="translate(24,1)"/>
<path d="M0 0 C1.51953125 1.765625 1.51953125 1.765625 3 4 C2.6875 7.75 2.6875 7.75 2 11 C2.66 11 3.32 11 4 11 C4.33 9.68 4.66 8.36 5 7 C5.66 7 6.32 7 7 7 C7 9.31 7 11.62 7 14 C2.68521115 16.40707041 -1.14822413 16.50973634 -6 16.75 C-6.80695312 16.80542969 -7.61390625 16.86085938 -8.4453125 16.91796875 C-9.22648438 16.96050781 -10.00765625 17.00304687 -10.8125 17.046875 C-11.87404297 17.10633301 -11.87404297 17.10633301 -12.95703125 17.16699219 C-15.3587433 16.97067634 -16.92505995 16.19017628 -19 15 C-17.57107422 14.96132813 -17.57107422 14.96132813 -16.11328125 14.921875 C-14.85902344 14.86515625 -13.60476562 14.8084375 -12.3125 14.75 C-11.07113281 14.70359375 -9.82976563 14.6571875 -8.55078125 14.609375 C-4.49413489 13.91318487 -2.75125975 13.04306003 0 10 C0.60003615 7.4197774 0.60003615 7.4197774 0.3125 4.75 C0.26738281 3.85796875 0.22226562 2.9659375 0.17578125 2.046875 C0.11777344 1.37140625 0.05976563 0.6959375 0 0 Z " fill="#F28253" transform="translate(25,6)"/>
<path d="M0 0 C0.33 1.65 0.66 3.3 1 5 C0.34 5 -0.32 5 -1 5 C-1 3.68 -1 2.36 -1 1 C-3.31 1.66 -5.62 2.32 -8 3 C-8.33 4.32 -8.66 5.64 -9 7 C-9.66 7 -10.32 7 -11 7 C-11.33 6.01 -11.66 5.02 -12 4 C-13.8653245 2.98245132 -13.8653245 2.98245132 -16.0625 2.3125 C-16.79597656 2.06113281 -17.52945312 1.80976562 -18.28515625 1.55078125 C-19.13400391 1.27814453 -19.13400391 1.27814453 -20 1 C-20.144375 1.78375 -20.28875 2.5675 -20.4375 3.375 C-21 6 -21 6 -22 8 C-22.40423599 12.28490153 -22.45828448 14.32689468 -20 17.9375 C-19.34 18.618125 -18.68 19.29875 -18 20 C-20.46800047 18.84826645 -22.04783565 17.95216435 -24 16 C-24.90625542 10.22115052 -24.24136184 4.86204276 -21 0 C-14.22252055 -2.00814206 -6.95224802 -0.68886604 0 0 Z " fill="#F28957" transform="translate(24,1)"/>
<path d="M0 0 C-0.33 0.99 -0.66 1.98 -1 3 C-1.66 2.67 -2.32 2.34 -3 2 C-3.80967438 4.91482778 -4.21845993 6.46113217 -3.0625 9.3125 C-2.711875 9.869375 -2.36125 10.42625 -2 11 C-3.98 10.34 -5.96 9.68 -8 9 C-8 8.34 -8 7.68 -8 7 C-8.66 6.67 -9.32 6.34 -10 6 C-9.34 6 -8.68 6 -8 6 C-7.87625 5.195625 -7.7525 4.39125 -7.625 3.5625 C-7.41875 2.716875 -7.2125 1.87125 -7 1 C-4.53721199 -0.231394 -2.7204945 -0.07159196 0 0 Z " fill="#E6BBA4" transform="translate(23,2)"/>
<path d="M0 0 C-0.33 0.99 -0.66 1.98 -1 3 C-1.66 2.67 -2.32 2.34 -3 2 C-3 2.99 -3 3.98 -3 5 C-3.66 5 -4.32 5 -5 5 C-5 4.01 -5 3.02 -5 2 C-5.66 1.67 -6.32 1.34 -7 1 C-4.53721199 -0.231394 -2.7204945 -0.07159196 0 0 Z " fill="#E9B596" transform="translate(23,2)"/>
<path d="M0 0 C2.97 0.495 2.97 0.495 6 1 C5.67 2.32 5.34 3.64 5 5 C4.34 5 3.68 5 3 5 C2.67 4.34 2.34 3.68 2 3 C1.34 3 0.68 3 0 3 C0 2.01 0 1.02 0 0 Z " fill="#E7B89A" transform="translate(4,2)"/>
</svg>
`
        );
    }
})();