parent
cb9043f36f
commit
4b5450f9b2
|
@ -169,6 +169,13 @@ function getBetterUrl(url, callback) {
|
|||
callback(webmUrl);
|
||||
};
|
||||
request.send();
|
||||
} else if(isIxquickProxyUrl(url)) {
|
||||
//ugh
|
||||
|
||||
var query = getQueryObject(url);
|
||||
var base = 'https://ixquick.com/cgi-bin/serveimage';
|
||||
|
||||
callback(base + "?url=" + encodeURI(query.oiu) + "&sp=" + query.sp);
|
||||
} else {
|
||||
callback(url);
|
||||
}
|
||||
|
@ -258,6 +265,10 @@ function isGfycatUrl(url) {
|
|||
return url.indexOf('gfycat.com/') != -1;
|
||||
}
|
||||
|
||||
function isIxquickProxyUrl(url) {
|
||||
return url.indexOf('ixquick-proxy.com/do/spg/show_picture.pl') != -1;
|
||||
}
|
||||
|
||||
function isCoolUrl(url, callback) {
|
||||
var proxiedUrl = getProxiedUrl(url);
|
||||
if(proxiedUrl != null) {
|
||||
|
@ -282,7 +293,7 @@ function isCoolUrl(url, callback) {
|
|||
console.log('blacklist disabled!');
|
||||
}
|
||||
|
||||
callback(validExtensions.indexOf(extension) != -1 || isInstagramUrl(url) || isPixivUrl(url) || isSkypeUrl(url) || isGfycatUrl(url));
|
||||
callback(validExtensions.indexOf(extension) != -1 || isInstagramUrl(url) || isPixivUrl(url) || isSkypeUrl(url) || isGfycatUrl(url) || isIxquickProxyUrl(url));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue