Greasy Fork

从豆瓣电影直接跳转哦牛牛搜索资源

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

目前为 2023-06-12 提交的版本。查看 最新版本

// ==UserScript==
// @name         从豆瓣电影直接跳转哦牛牛搜索资源
// @namespace    https://cupfox.qdgithub.com/
// @version      0.0.6
// @author       Oniuniu
// @match        *://movie.douban.com/subject/*
// @description 哦牛牛是一个影视资源聚合搜索引擎。安装脚本后豆瓣电影标题旁会显示哦牛牛的logo,点击就可以搜索影视资源了。
// ==/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="http://cupfox.qdgithub.com/s/${title}" class="cupfox" target="_blank">
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1686563250421" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8525" width="32" height="32" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M722.3296 94.8736c-11.9296-1.8944-23.4496 5.0688-27.2384 16.5888-3.7888 11.4688 1.2288 23.8592 11.8784 29.4912 66.56 34.9696 104.9088 74.752 102.5536 106.4448-3.0208 40.8064-56.4736 60.5184-87.7568 68.5568-57.344-35.4304-133.8368-34.9184-137.0112-34.9184H435.8144c-3.4304 0-79.0016-0.512-136.192 34.304-31.5392-8.3968-82.176-28.0576-85.0944-67.9424-2.3552-31.6416 35.9936-71.4752 102.5024-106.4448a24.5248 24.5248 0 0 0 11.9296-29.4912 24.48384 24.48384 0 0 0-27.2384-16.5888C141.8752 120.0128 34.5088 203.4688 34.5088 302.4384c0 65.5872 48.896 115.712 102.656 150.9888l-11.9296-0.4096c-5.5808-0.256-10.9568 1.8944-14.9504 5.7344s-6.2464 9.1648-6.2464 14.7456c0 2.4576 0.512 60.3648 43.264 90.6752 26.0608 18.4832 60.7744 22.1184 103.2192 10.9056 28.9792 84.736 58.5728 149.3504 89.9584 196.7104-3.4304 9.3184-5.3248 19.8144-5.2736 31.5904 0.1536 39.3728 22.1184 70.3488 60.16 85.0432 3.0208 1.1776 6.144 2.0992 9.2672 3.0208 16.1792 23.4496 49.0496 55.3984 108.032 55.3984 65.7408 0 96.768-37.7856 109.6192-61.0304 2.2528-0.8192 4.4544-1.6896 6.6048-2.6112 35.1232-15.1552 55.4496-43.52 54.528-76.032-0.4608-11.9808-2.2528-22.9376-5.2224-32.9728 32-47.5648 62.0544-112.9472 91.5456-199.168 42.496 11.264 77.1584 7.6288 103.2704-10.9056 42.752-30.3104 43.264-88.2176 43.264-90.6752 0-5.5296-2.2528-10.8544-6.2464-14.7456a20.35712 20.35712 0 0 0-14.9504-5.7344l-8.0384 0.3072c53.7088-35.2768 102.4512-85.2992 102.4512-150.8352 0-98.9696-107.3664-182.4256-267.1616-207.5648z m-18.7392 411.7504c-4.864 0.5632-9.728 1.8944-14.4896 4.0448 3.1232-1.792 6.1952-3.4304 9.1136-4.9152 1.9456-0.9728 3.2768-1.4336 4.1472-1.6384 0.4096 0.6144 0.8192 1.4336 1.2288 2.5088z m-381.9008-2.5088c0.8704 0.2048 2.2016 0.6656 4.1472 1.6384 2.9696 1.4848 5.9904 3.1232 9.0624 4.864-4.7616-2.1504-9.5744-3.4816-14.4384-4.0448 0.4608-1.024 0.8704-1.8432 1.2288-2.4576zM75.4688 302.4384c0-59.136 56.6272-113.4592 145.1008-145.152-28.0576 25.6512-49.6128 57.344-46.9504 93.1328C179.0464 323.4304 264.6528 350.0032 302.08 358.144v1.3312c0 33.6896-6.656 88.9856-37.0688 111.2064-5.376-1.9456-10.7008-3.9424-16.0256-6.0416-5.1712-2.048-10.2912-4.1472-15.36-6.2976-82.2784-34.9184-158.1568-90.112-158.1568-155.904z m188.1088 226.6624c-2.304 0-4.608 0.4096-6.8096 1.1776-38.2464 13.4656-67.072 13.6704-85.6576 0.6144-13.0048-9.1136-19.5584-23.808-22.8352-36.0448l72.2944 2.56c2.4576 1.024 4.9664 1.9456 7.424 2.9696 2.9696 1.2288 5.7856 2.3552 8.5504 3.4304 2.048 0.768 4.096 1.5872 6.144 2.3552 6.912 2.6112 13.0048 4.7616 18.0224 6.5024 1.2288 0.4096 2.4576 0.6656 3.7376 0.8704 0.3584 0.0512 0.7168 0.0512 1.0752 0.1024 0.6144 0.0512 1.2288 0.1536 1.792 0.1536 0.2048 0 0.4608-0.0512 0.6656-0.1024 0.9728-0.0512 1.9456-0.1536 2.9184-0.3584 0.512-0.1024 1.024-0.1536 1.4848-0.256 1.4336-0.3584 2.8672-0.8704 4.1984-1.536l0.768-0.4608c-0.7168 4.6592-1.1264 9.2672-1.28 13.568-0.1536 3.6864 0.512 7.2704 1.8432 10.5472-1.536-1.536-3.328-2.9184-5.3248-3.8912a18.4832 18.4832 0 0 0-9.0112-2.2016z m19.2512 13.6192c1.2288 1.28 2.56 2.5088 4.096 3.5328 7.168 4.9152 16.128 5.7344 24.0128 2.2528 0.8704-0.4096 1.6384-0.6656 2.304-0.8704 3.4304 33.3824 20.4288 51.0976 60.5184 65.1776 1.28 0.4608 2.6624 0.8192 4.1472 1.0752 11.3664 1.9456 21.76 2.8672 31.2832 2.8672 77.568 0 96.512-59.2384 100.7104-79.2576 2.304-11.1104-2.9184-22.016-13.0048-27.1872-9.9328-5.12-22.2208-2.9184-29.7984 5.3248-5.12 5.5808-11.264 9.3696-18.2784 11.3152-9.216 2.5088-41.728-18.7904-59.1872-30.2592-15.0528-9.8816-30.6176-20.0704-45.5168-27.5456-8.2432-4.1472-15.5648-5.8368-21.9136-6.0928 0.0512-0.1024 0.0512-0.1536 0.1024-0.256 0.5632-1.1264 1.0752-2.2528 1.5872-3.3792 0.512-1.1264 1.0752-2.2528 1.536-3.4304 0.512-1.1264 0.9728-2.304 1.4336-3.4816 0.4608-1.1264 0.9728-2.304 1.3824-3.4816 0.4608-1.1776 0.8704-2.3552 1.28-3.5328 0.4096-1.1776 0.8192-2.304 1.2288-3.4816 0.4096-1.1776 0.768-2.4064 1.1264-3.584l1.0752-3.4816c0.3584-1.2288 0.6656-2.4064 1.024-3.6352l0.9216-3.4816c0.3072-1.2288 0.6144-2.4064 0.8704-3.6352 0.256-1.1264 0.5632-2.304 0.8192-3.4304l0.768-3.6352c0.2048-1.1264 0.4608-2.2528 0.6656-3.3792 0.2048-1.2288 0.4096-2.4064 0.6656-3.584 0.2048-1.1264 0.4096-2.2528 0.5632-3.328 0.2048-1.1776 0.3584-2.3552 0.512-3.5328l0.4608-3.2768 0.4608-3.4816c0.1024-1.024 0.256-2.0992 0.3584-3.1232 0.1536-1.1776 0.256-2.304 0.3584-3.4304l0.3072-3.0208c0.1024-1.1264 0.2048-2.2016 0.256-3.328 0.0512-0.9728 0.1536-1.9456 0.2048-2.8672 0.0512-1.0752 0.1536-2.1504 0.2048-3.1744l0.1536-2.7136 0.1536-3.072c0.0512-0.8704 0.0512-1.7408 0.1024-2.56 0.0512-0.9728 0.0512-1.8944 0.0512-2.816 0-0.8192 0.0512-1.6384 0.0512-2.4576 0-0.9216 0-1.792 0.0512-2.6624v-2.2016-2.4064-2.048c0-0.768 0-1.4336-0.0512-2.1504 0-0.6144 0-1.1776-0.0512-1.792 0-0.6656-0.0512-1.28-0.0512-1.9456 0-0.512-0.0512-1.024-0.0512-1.536 0-0.5632-0.0512-1.1264-0.0512-1.6384 0-0.4608-0.0512-0.8704-0.0512-1.2288 0-0.4608-0.0512-0.9216-0.0512-1.3312 0-0.3584-0.0512-0.7168-0.0512-1.024 0-0.3584-0.0512-0.6656-0.0512-0.9728 0-0.256-0.0512-0.512-0.0512-0.7168 0-0.256-0.0512-0.4608-0.0512-0.6656v-0.1536c43.52-17.8176 92.5184-17.5104 93.2352-17.5616h149.4528c0.5632-0.0512 52.1728-0.3584 96.6144 19.0464v0.1536c0 0.3584-0.0512 0.768-0.0512 1.1776 0 0.256-0.0512 0.512-0.0512 0.8192-0.0512 0.4608-0.0512 0.9216-0.0512 1.4336 0 0.3584-0.0512 0.768-0.0512 1.1776 0 0.512-0.0512 1.0752-0.0512 1.6384 0 0.4608-0.0512 0.9728-0.0512 1.4848 0 0.6144-0.0512 1.28-0.0512 1.9456 0 0.5632-0.0512 1.1264-0.0512 1.6896 0 0.7168-0.0512 1.4336-0.0512 2.1504v6.5024c0 0.8704 0 1.6896 0.0512 2.6112 0 0.768 0.0512 1.5872 0.0512 2.3552 0 0.9216 0.0512 1.792 0.0512 2.7648 0.0512 0.8192 0.0512 1.6896 0.1024 2.56 0.0512 0.9728 0.0512 1.9456 0.1024 2.9184l0.1536 2.7136c0.0512 1.024 0.1024 1.9968 0.2048 3.072 0.0512 0.9728 0.1536 1.9968 0.2048 2.9696 0.1024 1.024 0.1536 2.048 0.256 3.072l0.3072 3.2256 0.3072 3.1232 0.4608 3.84 0.6144 4.864 0.6144 4.352c0.1536 0.9728 0.3584 1.9968 0.512 2.9696 0.2048 1.28 0.4096 2.5088 0.6656 3.7888 0.2048 1.024 0.4096 2.0992 0.6144 3.1744 0.256 1.2288 0.4608 2.5088 0.768 3.7376 0.2048 1.0752 0.512 2.1504 0.7168 3.2256 0.256 1.2288 0.5632 2.4576 0.8704 3.6864 0.256 1.1264 0.5632 2.2016 0.8704 3.328 0.3072 1.2288 0.6144 2.4576 0.9728 3.6352 0.3072 1.1264 0.6656 2.2016 0.9728 3.328 0.3584 1.2288 0.7168 2.4576 1.1264 3.6352 0.3584 1.0752 0.7168 2.2016 1.1264 3.2768 0.4096 1.2288 0.8192 2.4064 1.28 3.6352l1.2288 3.2256c0.4608 1.1776 0.9216 2.4064 1.4336 3.584l1.3824 3.2256c0.512 1.1776 1.0752 2.3552 1.5872 3.5328 0.3584 0.768 0.7168 1.5872 1.1264 2.3552-6.3488 0.256-13.6192 1.9968-21.8112 6.0928-14.8992 7.4752-30.464 17.664-45.5168 27.5456-17.4592 11.4688-50.0224 32.7168-59.1872 30.2592-7.0144-1.9456-13.1584-5.7344-18.2784-11.3152a25.1136 25.1136 0 0 0-29.7984-5.3248 24.64256 24.64256 0 0 0-13.0048 27.1872c4.1472 20.0192 23.1424 79.2064 100.7616 79.2064 9.5232 0 19.968-0.8704 31.3856-2.8672 1.28-0.256 2.6624-0.6144 3.9424-1.024 40.1408-14.08 57.1392-31.7952 60.5184-65.1776 0.6656 0.2048 1.4336 0.4608 2.304 0.8704 7.4752 3.2768 15.872 2.6624 22.8352-1.536-26.4704 79.6672-53.0432 141.312-80.7424 187.0848-1.8432-1.8944-3.7376-3.7888-5.7856-5.5296-10.3936-8.9088-21.9648-14.4896-32.9728-18.0736-1.5872-0.512-3.2256-1.024-4.7616-1.4336-15.8208-4.5056-31.0272-5.2224-41.8816-4.1472H450.5088c-0.2048 0-0.6656 0.0512-1.28 0.1024-23.296 1.3824-57.7536 9.7792-82.688 30.5664-0.1024 0.1024-0.256 0.2048-0.3584 0.3072-28.5184-46.6944-55.8592-110.08-83.0976-192.6144-0.1024-0.1536-0.1536-0.256-0.256-0.4096z m103.424 31.0272c-30.6688-10.9568-32.3584-18.5344-32.6144-38.5024a24.8832 24.8832 0 0 0-8.7552-18.688c7.3728 4.5568 14.9504 9.5232 22.3744 14.3872 27.4432 17.9712 53.6064 35.1744 77.0048 36.864-14.08 8.0384-33.4848 10.0352-58.0096 5.9392z m193.6384-5.9392c23.3984-1.7408 49.5616-18.8928 77.0048-36.864 7.424-4.864 15.0016-9.8304 22.3744-14.3872a24.8832 24.8832 0 0 0-8.7552 18.688c-0.256 19.968-1.9456 27.5456-32.6144 38.5024-24.576 4.0448-43.9296 2.048-58.0096-5.9392z m-67.2256 338.0736c-18.5344 0-33.3824-4.352-45.1584-10.8544 0.1536 0 0.3072-0.0512 0.4096-0.1024 8.192-1.4336 16.128-3.5328 23.552-6.3488 0.3584-0.1536 0.768-0.3072 1.1264-0.4608 3.1744-1.2288 6.2464-2.6112 9.216-4.096 0.6144-0.3072 1.1776-0.5632 1.792-0.8704 3.2768-1.6896 6.4512-3.5328 9.4208-5.5296 1.4336 0.9216 2.9184 1.7408 4.4032 2.56 0.3072 0.2048 0.6656 0.4096 0.9728 0.5632 1.3824 0.768 2.816 1.4848 4.2496 2.1504 0.6144 0.3072 1.2288 0.6144 1.8432 0.8704a96.09728 96.09728 0 0 0 6.7072 2.7648c1.1264 0.4096 2.2528 0.8704 3.4304 1.2288 1.7408 0.6144 3.5328 1.1264 5.3248 1.6384 0.3072 0.1024 0.6144 0.2048 0.9728 0.3072 6.4512 1.792 13.1584 3.072 20.0192 3.7888-11.776 7.424-27.4432 12.3904-48.2816 12.3904z m99.9936-60.3136c-3.2256 1.3824-6.656 2.6112-10.24 3.6352-0.0512 0-0.1536 0.0512-0.256 0.0512-2.2528 0.6656-4.5056 1.1776-6.7584 1.6896-5.1712 1.0752-10.5472 1.792-15.9232 2.0992h-0.6656c-1.536 0.0512-3.1232 0.1024-4.6592 0.1024-0.7168 0-1.4848-0.0512-2.2016-0.0512-0.9216 0-1.8944-0.0512-2.816-0.1024-1.2288-0.0512-2.4576-0.1536-3.6864-0.3072-0.3072-0.0512-0.6144-0.0512-0.9728-0.1024-11.52-1.28-22.1184-4.8128-30.3616-10.24-0.4608-0.3072-0.8704-0.6144-1.28-0.9216-0.768-0.512-1.4848-1.0752-2.2016-1.6384-1.1776-0.9728-2.3552-1.9968-3.4816-3.072-3.9424-3.9424-9.4208-6.144-14.9504-5.9904-5.5808 0.1536-10.9056 2.56-14.6432 6.656-0.9216 1.024-1.9968 1.9968-3.072 2.9696-0.7168 0.6144-1.4336 1.1776-2.2016 1.7408-0.3584 0.256-0.7168 0.5632-1.0752 0.8192-16.2304 11.52-44.5952 16.2304-69.2224 10.752-0.1536-0.0512-0.3072-0.0512-0.512-0.0512-3.8912-0.8704-7.7312-2.048-11.3664-3.4304-22.4256-8.6528-33.8432-24.4736-33.9456-46.9504-0.0512-14.336 5.3248-25.088 13.2608-33.1776 15.2064-15.0016 40.5504-21.4528 55.7568-23.552 0.2048-0.0512 0.3584-0.0512 0.5632-0.0512 0.768-0.1024 1.4848-0.2048 2.2016-0.256 0.6656-0.0512 1.28-0.1536 1.8432-0.2048 0.7168-0.0512 1.4848-0.1536 2.1504-0.1536h118.9376c0.7168 0 1.536-0.0512 2.2528-0.1024 0.2048 0 0.9728-0.1024 1.9968-0.1536 3.7376-0.2048 12.8-0.256 23.0912 2.2016 0.1024 0.0512 0.256 0.0512 0.3584 0.1024 0.8704 0.2048 1.792 0.4608 2.6624 0.7168 0.8704 0.256 1.7408 0.512 2.6112 0.8192 0.512 0.1536 1.0752 0.3584 1.5872 0.5632 8.3968 3.072 16.9984 8.1408 23.7056 16.4864 0.1536 0.2048 0.3072 0.3584 0.4608 0.5632 1.0752 1.3824 2.048 2.8672 3.0208 4.4032 0.3072 0.5632 0.6656 1.0752 1.024 1.6384 0.768 1.3824 1.4848 2.8672 2.1504 4.4032 3.9424 8.704 6.2464 19.0976 6.7072 31.2832 0.5632 20.5312-18.432 31.8976-29.8496 36.8128z m191.0784-348.3648l68.2496-2.4064c-3.2768 12.1856-9.7792 26.7776-22.6816 35.9424-18.5856 13.1584-47.4624 13.0048-85.8112-0.4608a20.46464 20.46464 0 0 0-15.8208 0.9216l-0.3072 0.1536c0.512-2.2016 0.768-4.4544 0.6656-6.8096-0.2048-4.2496-0.6144-8.8576-1.28-13.5168 0.2048 0.1024 0.4096 0.256 0.6656 0.3584 1.3312 0.6656 2.7648 1.1776 4.1984 1.536 0.512 0.1024 0.9728 0.1536 1.4848 0.256 0.9728 0.1536 1.9456 0.3072 2.9184 0.3584 0.2048 0 0.4608 0.1024 0.6656 0.1024 0.6144 0 1.1776-0.1024 1.792-0.1536 0.3584-0.0512 0.7168-0.0512 1.0752-0.1024 1.2288-0.2048 2.5088-0.4608 3.6864-0.8704 5.0176-1.6896 11.1616-3.8912 18.0736-6.5024 2.0992-0.8192 4.1984-1.6384 6.3488-2.4576 2.7136-1.0752 5.4784-2.1504 8.3968-3.328 2.56-0.9728 5.12-1.9456 7.68-3.0208z m-12.8512-39.0656c-5.1712 2.2016-10.3936 4.352-15.6672 6.4h-0.0512c-5.376 2.0992-10.752 4.1472-16.1792 6.0928-13.1584-9.6256-21.8624-25.4976-27.5456-43.1616-0.1024-0.3584-0.256-0.768-0.4096-1.1264-0.512-1.5872-0.9216-3.1744-1.3824-4.7616-0.3072-1.024-0.6144-2.048-0.8704-3.072-0.3072-1.2288-0.5632-2.5088-0.8704-3.7888-0.3072-1.3824-0.6656-2.816-0.9728-4.1984l-0.4608-2.304c-0.3584-1.8944-0.768-3.7888-1.0752-5.6832v-0.0512a259.7376 259.7376 0 0 1-3.4816-37.8368v-2.6112c0-1.3312-0.0512-2.6624-0.0512-3.9424 37.4272-8.1408 123.0336-34.7136 128.4608-107.776 2.6624-35.7376-18.8928-67.4304-46.9504-93.1328 88.4736 31.744 145.1008 86.016 145.1008 145.152 0.0512 65.7408-75.52 120.832-157.5936 155.8016z" fill="#d81e06" p-id="8526"></path><path d="M415.1808 809.0112a25.3952 23.6032 0 1 0 50.7904 0 25.3952 23.6032 0 1 0-50.7904 0Z" fill="#d81e06" p-id="8527"></path><path d="M582.3488 785.408c-14.0288 0-25.3952 10.5472-25.3952 23.6032 0 13.056 11.3664 23.6032 25.3952 23.6032 14.0288 0 25.3952-10.5472 25.3952-23.6032 0-13.056-11.3664-23.6032-25.3952-23.6032z" fill="#d81e06" p-id="8528"></path></svg></a>`
        );
    }
})();