-
Notifications
You must be signed in to change notification settings - Fork 0
/
vipergirlsImages.user.js
280 lines (237 loc) · 9.14 KB
/
vipergirlsImages.user.js
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
// ==UserScript==
// @name ViperGirls Images
// @namespace https://nindogo.tumblr.com/
// @version 20240703
// @description Link to the actual image in vipergirls.
// @require https://gist.githubusercontent.com/raw/2625891/waitForKeyElements.js
// The previous require is from a script of Brock Adams (Thanks to him!)
// @require https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js
// jQuery
// @author nindogo
// @match https://vipergirls.to/*
// @match http://vipergirls.to/*
// @match https://planetviper.club/*
// @match http://planetviper.club/*
// @match http://www.planetsuzy.org/*
// @match https://viper.to/*
// @match http://viper.to/*
// @match https://viperbb.rocks/*
// @match http://viperbb.rocks/*
// @match https://viperkats.eu/*
// @match http://viperkats.eu/*
// @match https://viperohilia.art/*
// @match http://viperohilia.art/*
// @match https://viperproxy.org/*
// @match http://viperproxy.org/*
// @match https://vipervault.link/*
// @match http://vipervault.link/*
// @grant GM_openInTab
// @grant GM_xmlhttpRequest
// @connect turboimagehost.com
// @connect imagebam.com
// @connect imx.to
// @connect fastpic.ru
// @connect dpic.me
// @connect depic.me
// @connect imagevenue.com
// @connect vipr.im
// @connect pixroute.com
// @downloadURL https://github.com/nindogo/test_repo/raw/master/vipergirlsImages.user.js
// ==/UserScript==
function open_in_tab(node) {
var clickHandler = function(e) {
GM_openInTab(node.href, 'loadInBackground');
e.preventDefault();
};
node.addEventListener('click', clickHandler, false);
}
// imx.to
waitForKeyElements('a>img[src^="https://imx.to/u/t/"', process_imx_to);
waitForKeyElements('a>img[src^="http://imx.to/u/t/"', process_imx_to);
waitForKeyElements('a>img[src^="https://imx.to/upload/small/"', process_imxto_2);
waitForKeyElements('a>img[src^="http://imx.to/upload/small/"', process_imxto_2);
// TurboImageHost
waitForKeyElements('a[href^="https://www.turboimagehost.com/"', process_turboimage);
waitForKeyElements('a[href^="http://www.turboimagehost.com/"', process_turboimage);
// ImageBam
waitForKeyElements('a[href^="https://www.imagebam.com/"', process_imagebam);
waitForKeyElements('a[href^="http://www.imagebam.com/"', process_imagebam);
// AcidImg
waitForKeyElements('a[href^="https://acidimg.cc/"', process_acidimg);
waitForKeyElements('a[href^="http://acidimg.cc/"', process_acidimg);
// PimpAndHost
waitForKeyElements('a[href^="https://pimpandhost.com/image/"', process_pimpandhost);
waitForKeyElements('a[href^="http://pimpandhost.com/image/"', process_pimpandhost);
waitForKeyElements('a[href~="/pimpandhost.com/"', process_pimpandhost);
// PixHost
waitForKeyElements('a[href^="https://pixhost.to/show/"', process_pixhost);
waitForKeyElements('a[href^="http://pixhost.to/show/"', process_pixhost);
// ImgBox
waitForKeyElements('a[href^="https://imgbox.com/"', process_imgbox);
waitForKeyElements('a[href^="http://imgbox.com/"', process_imgbox);
// Fastpic.ru
waitForKeyElements('a[href^="https://fastpic.ru/"', process_fastpic);
waitForKeyElements('a[href^="http://fastpic.ru/"', process_fastpic);
// dpic.me
waitForKeyElements('a[href^="https://dpic.me/"', process_dpic);
waitForKeyElements('a[href^="http://dpic.me/"', process_dpic);
waitForKeyElements('a[href^="https://depic.me/"', process_dpic);
waitForKeyElements('a[href^="http://depic.me/"', process_dpic);
// imagevenue.com
waitForKeyElements('a[href*="imagevenue.com"', process_imagevenue);
// vipr.im
waitForKeyElements('a[href^="https://vipr.im/"', process_vipr_im);
waitForKeyElements('a[href^="http://vipr.im/"', process_vipr_im);
// PixRoute
waitForKeyElements('a[href^="https://www.pixroute.com/"', process_pixroute);
waitForKeyElements('a[href^="http://www.pixroute.com/"', process_pixroute);
function process_imx_to(jNode) {
jNode[0].parentNode.href = jNode[0].src.replace('/t/', '/i/');
open_in_tab(jNode[0].parentNode);
}
function process_imxto_2(jNode) {
var site_url = jNode[0].src
GM_xmlhttpRequest({
method: 'GET',
url: site_url,
context: jNode,
onload: function(response) {
response.context[0].parentNode.href = response.finalUrl.replace('/t/', '/i/')
open_in_tab(response.context[0].parentNode);
}
})
}
function process_turboimage(jNode) {
var img_page = jNode[0].childNodes[0].src;
var site_url = jNode[0].href;
var re_link = '<meta property="og:image" content="(.*?)"'
GM_xmlhttpRequest({
method: 'GET',
url: site_url,
context: jNode,
onload: function(response) {
response.context[0].href = response.responseText.match(re_link)[1]
open_in_tab(response.context[0]);
}
})
}
function process_imagebam(jNode) {
var img_page = jNode[0].childNodes[0].src;
console.log(img_page)
console.log("img_page")
var site_url = jNode[0].href;
//var re_link = '<a href="(https://image.*?)"'
var re_link = 'src="(https:\/\/images\d?.*?)"'
//var re_link = '<a hrxef="(https:\/\/www\.imagebam\.com\/view\/.*?)"'
GM_xmlhttpRequest({
method: 'GET',
url: site_url,
context: jNode,
onload: function(response) {
var this_url = response.responseText.match(re_link)[1]
response.context[0].href = this_url
console.log(this_url)
open_in_tab(response.context[0]);
}
})
}
function process_acidimg(jNode) {
jNode[0].href = jNode[0].childNodes[0].src.replace('/upload/small/', '/upload/big/')
open_in_tab(jNode[0]);
}
function process_pimpandhost(jNode) {
// Test URLS
// https://vipergirls.to/threads/4566928-Muscular-beauties-show-their-seductive-charms
// https://vipergirls.to/threads/4562726-Collection-of-porn-scenes-with-sexy-black-girls
var replacer = null
if (jNode[0].childNodes[0].src.match(/_s\..{3,4}$/)) {
replacer = jNode[0].childNodes[0].src.replace(/_s\./, '_l.')
} else if (jNode[0].childNodes[0].src.match(/_0\..{3,4}$/)) {
replacer = jNode[0].childNodes[0].src.replace(/_0\./, '.')
}
if (replacer) {
jNode[0].href = replacer
open_in_tab(jNode[0]);
} else {
console.log(jNode[0].href)
}
}
function process_pixhost(jNode) {
function replace_url(match, p1, p2, offset, string) {
return p1 + 'img' + p2
}
var img_url = jNode[0].childNodes[0].src.replace('/thumbs/', '/images/').match(/http.*?t[0-9]*?\.pixhost\.to.*/);
jNode[0].href = img_url.input.replace(/(http.*?)t([0-9]*?\.pixhost.to.*)/, replace_url);
open_in_tab(jNode[0]);
}
function process_imgbox(jNode) {
jNode[0].href = jNode[0].childNodes[0].src.replace('_t.', '_o.').replace('/thumbs', '/images');
open_in_tab(jNode[0]);
}
function process_fastpic(jNode) {
var site_url = jNode[0].href
var re_link = /loading_img.*?=.*?('|")(.*?)('|");/
console.error(site_url);
}
function process_dpic(jNode) {
var site_url = jNode[0].href
var re_link = /<img src=['|"](.*?)['|"]/
GM_xmlhttpRequest({
method: 'GET',
url: site_url,
context: jNode,
onload: function(response) {
response.context[0].href = response.response.match(re_link)[1]
open_in_tab(response.context[0])
}
})
}
function process_imagevenue(jNode) {
var site_url = jNode[0].href
// var re_link = /(img|IMG).*?[s|S][R|r][C|c]=["|'](.*?)['|"]/
var re_link = /(card-body.*?href.*?img.*?src=")(?<the_url>[^"]*)"/gsi
GM_xmlhttpRequest({
method: 'GET',
url: site_url,
context: jNode,
onload: function(response) {
var response_link = response.response.match(re_link)[0];
try {
if (response_link) {
response.context[0].href = response_link.split("\n").slice(-1)[0].split('"')[1];
open_in_tab(response.context[0])
}
} catch (error) {
typeof Function.prototype === "function"
}
}
})
}
function process_vipr_im(jNode) {
var img_page = jNode[0].childNodes[0].src;
var site_url = jNode[0].href;
var re_link = '<a href="(.*?)" download class="ddownloader"'
GM_xmlhttpRequest({
method: 'GET',
url: site_url,
context: jNode,
onload: function(response) {
response.context[0].href = response.responseText.match(re_link)[1]
open_in_tab(response.context[0]);
}
})
}
function process_pixroute(jNode) {
var img_page = jNode[0].childNodes[0].src;
var site_url = jNode[0].href;
var re_link = '<img id="imgpreview" src="(.*?)"'
GM_xmlhttpRequest({
method: 'GET',
url: site_url,
context: jNode,
onload: function(response) {
response.context[0].href = response.responseText.match(re_link)[1]
open_in_tab(response.context[0]);
}
})
}