text
stringlengths 0
173k
|
---|
$("div.hero").before($xj); |
}else if(site=="buff"){ |
$("div.detail-summ").append($xj); |
}else if(site=="ig"){ |
$("div.stock").after($xj); |
}else if(site=="v5"){ |
$('.goods-details-r .clearfix').after($xj); |
} |
} |
function getFloat(str){ |
try{ |
var f = parseFloat(str.match(/[\d]{1,}(\.\d+)?/)[0]); |
} |
catch(err){ |
return 0; |
} |
return f; |
} |
function calcfee(p){ |
var pnofee = Math.max(Math.floor(p/1.15),1); |
var vfee = Math.max(Math.floor(pnofee*0.1),1); |
var pfee = Math.max(Math.floor(pnofee*0.05),1); |
while((pnofee + vfee + pfee) != p) { |
if((pnofee + vfee + pfee) > p) { |
pnofee--; |
} |
if((pnofee + vfee + pfee) < p) { |
pnofee++; |
} |
vfee = Math.max(Math.floor(pnofee*0.1),1); |
pfee = Math.max(Math.floor(pnofee*0.05),1); |
} |
return pnofee; |
} |
function calcratio(){ |
var t = setInterval(function(){ |
var siteprice; |
if(site == "c5"){ |
siteprice = siteprice = getFloat($("tbody .ft-orange:first span").text()); |
if(!siteprice){ |
siteprice = getFloat($("tbody .ft-orange:first").text()); |
} |
if(!siteprice){ |
siteprice = getFloat($(".sale-item-lists span.ft-gold:first").text()); |
} |
} else if(site == "buff"){ |
siteprice = getFloat($("table a.i_Btn:first").attr('data-price')); |
if(!siteprice){ |
siteprice = getFloat($("table strong.f_Strong:first").text() + $("table strong.f_Strong:first small").text()); |
} |
} else if(site == "ig"){ |
siteprice = getFloat($("td > span.c-4:first").text()); |
} else if(site == "v5"){ |
siteprice = getFloat($("p.list-pri:first").text()); |
} |
if(siteprice != 0){ |
if(low) { |
$("span.lsr").text((siteprice*100/low).toFixed(2)); |
} |
if(high) { |
$("span.hbr").text((siteprice*100/high).toFixed(2)); |
} |
clearInterval(t); |
} |
},200); |
} |
<_EOF_> |
// ==UserScript== |
// @name Linkvertise Bypass [+krnl] |
// @namespace http://tampermonkey.net/ |
// @version 3.5 |
// @description Bypasses Linkvertise links locally on computer or with external api [working] |
// @author HussNuss |
// @license GNU GPL v3.0. http://www.gnu.org/copyleft/gpl.html |
// @noframes |
// @compatible chrome |
// @compatible firefox |
// @compatible edge |
// @compatible brave |
// @compatible dolphin |
// @compatible uc |
// @compatible safari |
// @compatible chromium |
// @compatible opera |
// @compatible opera next |
// @compatible opera gx |
// @require https://code.jquery.com/jquery-3.5.1.min.js |
// @require https://cdn.jsdelivr.net/gh/jpillora/notifyjs@d27d96fc2454c2e7ec21dc9fd7609944831fdedd/dist/notify.js |
// @match *://*.linkvertise.com/* |
// @match *://*.linkvertise.net/* |
// @match *://*.linkvertise.download/* |
// @match *://*.link-to.net/* |
// @connect publisher.linkvertise.com |
// @connect code.jquery.com |
// @connect cdn.jsdelivr.net |