Greasy Fork is available in English.

在豆瓣电影页面直接搜索电影资源

在豆瓣电影页面显示茶杯狐资源搜索页的直达链接

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// ==UserScript==
// @name         在豆瓣电影页面直接搜索电影资源
// @namespace    https://www.cupfox.com/
// @version      0.0.1
// @description:zh-CN 在豆瓣电影页面显示茶杯狐资源搜索页的直达链接
// @author       Jackeriss
// @match        *://movie.douban.com/subject/*
// @description Portal of Douban to Cupfox
// ==/UserScript==

(function () {
    var host = location.hostname;
    if (host === 'movie.douban.com') {
        var title = document.querySelector('title').innerText.replace(/(^\s*)|(\s*$)/g, '').replace(' (豆瓣)', '');
        var subjectwrap = document.querySelector('h1');
        var subject = document.querySelector('.year');
        if (!subjectwrap || !subject)
            return;
        sectl = document.createElement('span');
        subjectwrap.insertBefore(sectl, subject.nextSibling);
        sectl.insertAdjacentHTML('beforebegin',
'<style>.cupfox{margin-left:5px;}.cupfox:hover{background:#fff!important;}</style>' +
'<a href="https://www.cupfox.com/?key=' + title + '" class="cupfox" target="_blank">' +
'<?xml version="1.0" encoding="UTF-8" standalone="no"?>' +
'<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xli' +
'nk="http://www.w3.org/1999/xlink" x="0px" y="0px" width="32px" height="23px"' +
' viewBox="0 0 32 23" enable-background="new 0 0 32 23" xml:space="preserve">' +
'<image id="image0" width="32" height="23" x="0" y="0" xlink:href="data:image' +
'/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAuCAYAAACYlx/0AAAABGdBTUEAALG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