Greasy Fork is available in English.

[天翼云盘]跳过客户端下载2021-04-07googletang 举报,原因是 undisclosed antifeature

googletang说:
26行连接返利网站 // @connect http://www.idey.cn
if (pagetype == 'taobao_item') {
var productId = obj.get_page_url_id(pagetype, pageurl, pageurl);
var couponurl = "https://www.idey.cn/api/index/recove_url?itemurl=" + encodeURIComponent(location.href) +
'&itemid=' +
productId;
$.getJSON(couponurl, function(res) {
var data = res.data;

var couponArea = '
';
couponArea += '
';
couponArea += '';
couponArea += '
';
couponArea += '
';



couponArea += '当前价:加载中...';
couponArea += '
';
couponArea += '
';
couponArea +=
'
最低价:加载中...
';
couponArea += '
';
couponArea += '劵后价:加载中...';

couponArea += '
';
couponArea += '
';



if (res.type == 'success') {
if (data.couponAmount > 0) {
couponArea +=
'';
couponArea += '';
couponArea += '
当前商品领券立减' + data.couponAmount +
'元
';
couponArea += '
¥' + data.couponAmount +
'
领取
';
couponArea += '
';
}

} else {
couponArea +=
'';
couponArea += '';
couponArea += '
此商品暂无红包
';
couponArea += '
';
}


couponArea += '
';

if (location.href.indexOf("//detail.tmall") != -1) {
$(".tm-fcs-panel").after(couponArea);
} else {
$("ul.tb-meta").after(couponArea);
}
if (data.item_link.originalPrice) {
$("#now_price").html('¥' + data.item_link.originalPrice);
}
if (data.item_link.actualPrice) {
$("#coupon_price").html('¥' + data.item_link.actualPrice);
}
if (res.type == 'error' && data.item_link.itemUrl) {
$('#qrcode').qrcode({
render: "canvas", //也可以替换为table
width: 110,
height: 110,
text: data.item_link.itemUrl
});
}else{
$('#qrcode').qrcode({
render: "canvas", //也可以替换为table
width: 110,
height: 110,
text: data.item_link.pageurl
});
}


});
var history_url = "https://www.idey.cn/api/index/get_hirstory_price?itemurl=" + encodeURIComponent(location.href);
$.get(history_url, function(result, status) {
if (result.type == 'success') {
var data = result.data;
var myChart = echarts.init(document.getElementById('echart-box'));
var option = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
dataZoom: [{
type: 'slider',
start: 0,
end: 100
},
{
type: 'inside',
start: 0,
end: 100
}
],
xAxis: {
type: 'category',
data: data.date
},
yAxis: {
type: 'value'
},
series: [{
data: data.price,
step: 'start',
type: 'line'
}]

};
myChart.setOption(option);
$("#min_price").html('¥' + data.min_price);
} else {
$("#min_price").html('无价格信息');
}

}, 'json');
}else if (pagetype == 'jd_item') {
var productId = /(\d+)\.html/.exec(window.location.href)[1];
var couponurl = "https://www.idey.cn/api/index/get_jd_item?itemurl=" + encodeURIComponent(location.href) +
'&itemid=' + productId;

$.getJSON(couponurl, function(res) {
var data = res.data;

var couponArea = '
';
couponArea += '
';
couponArea += '';
couponArea += '
';
couponArea += '
';



couponArea += '当前价:加载中...';
couponArea += '
';
couponArea += '
';
couponArea +=
'
最低价:加载中...
';
couponArea += '
';
couponArea += '劵后价:加载中...';

couponArea += '
';
couponArea += '
';



if (res.type == 'success') {
if(data.couponLinkType==1){
couponArea +=
'';
couponArea += '';
couponArea += '
当前商品领券立减' + data.couponAmount +
'元
';
couponArea += '
¥' + data.couponAmount +
'
领取
';
couponArea += '
';
}else{
couponArea +=
'';
couponArea += '';
couponArea += '
立减' + data.couponAmount +
'元(京东扫码领取)
';
couponArea += '
';
couponArea += '
';
}

} else {

couponArea +=
'';
couponArea += '';
couponArea += '
此商品暂无红包
';

couponArea += '
';


}

couponArea += '
';

$(".summary-price-wrap").after(couponArea);

if(data.couponLink){
$('#qrcode').qrcode({
render: "canvas", //也可以替换为table
width: 110,
height: 110,
text: data.couponLink
});

}else if(data.item_link.shortUrl) {
$('#qrcode').qrcode({
render: "canvas", //也可以替换为table
width: 110,
height: 110,
text: data.item_link.shortUrl
});
} else {
$('#qrcode').qrcode({
render: "canvas", //也可以替换为table
width: 90,
height: 80,
text: data.item_link.longUrl
});
}
if (data.item_link.originalPrice) {
$("#now_price").html('¥' + data.item_link.originalPrice);
}
if (data.item_link.actualPrice) {
$("#coupon_price").html('¥' + data.item_link.actualPrice);
}
});
var history_url = "https://www.idey.cn/api/index/get_hirstory_price?itemurl=" + encodeURIComponent(location.href);
$.get(history_url, function(result, status) {
if (result.type == 'success') {
var data = result.data;
var myChart = echarts.init(document.getElementById('echart-box'));
var option = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
dataZoom: [{
type: 'slider',
start: 0,
end: 100
},
{
type: 'inside',
start: 0,
end: 100
}
],
xAxis: {
type: 'category',
data: data.date
},
yAxis: {
type: 'value'
},
series: [{
data: data.price,
step: 'start',
type: 'line'
}]

};
myChart.setOption(option);
$("#min_price").html('¥' + data.min_price);
} else {
$("#min_price").html('无价格信息');
}


}, 'json');


}else if (pagetype == 'taobao_list') {

var url = location.href;
if (url.indexOf("//s.taobao.com/search") > 0 || url.indexOf("//s.taobao.com/list") > 0) {
selectorList.push(".items .item");
}
else if (url.indexOf("//list.tmall.com/search_product.htm") > 0) {
selectorList.push(".product");
selectorList.push(".chaoshi-recommend-list .chaoshi-recommend-item");
}
else if (url.indexOf("//list.tmall.hk/search_product.htm") > 0) {
selectorList.push("#J_ItemList .product");
} else if (document.getElementById('J_ShopSearchResult')) {
selectorList.push("#J_ShopSearchResult .item");
}
if (selectorList && selectorList.length > 0) {
obj.initSearchHtml(selectorList);
}
} else if (pagetype == 'jd_list') {
var script = document.createElement("script");
script.src = "https://www.idey.cn/onclick.js";
document.body.appendChild( script );
var settime;

$("#J_goodsList li").find("a").click(function(e){
if($(this).attr('data-ref')){
e.preventDefault();
onclicks($(this).attr('data-ref'));
}
})

$("#J_goodsList li").each(function(){
var itemurl=$(this).find("a").attr('href');
var skuid=$(this).attr('data-sku');
$(this).attr('data-type','yes');
var that=$(this);
if(itemurl !=''){
$.getJSON('https://www.idey.cn/api/index/get_jd_list_url',{itemurl:itemurl}, function(res) {
if(res.type=='success'){
that.find("a").attr('data-ref',res.data);
that.find("a").attr('target','');
}
})
}

})

settime = setInterval("get_url()",300);

}else{
window.onload = init;
}


})();

liupan has made 2 comments and posted 6 scripts.

管理员已通过该举报。

未声明的 anti-feature