代码拉取完成,页面将自动刷新
var importJs=document.createElement('script');
importJs.setAttribute("type","text/javascript");
importJs.setAttribute("src", 'https://greasyfork.org/scripts/14098-bililiterange-js/code/bililiteRangejs.js?version=88786');
document.getElementsByTagName("head")[0].appendChild(importJs);
var el = document.querySelectorAll('input[name="coupon"]')[0];
bililiteRange(el).sendkeys('foo');
var event = document.createEvent('HTMLEvents');
event.initEvent("change", true, true);
event.eventType = 'message';
el.dispatchEvent(event);
WebFlags:
var webcheck=false;
function getwebcheck(){
var webcheck1=jQuery('.couponcontent.toggle-content').length;
var wevcheck2=jQuery('.order-value.value').length;
var wevcheck3=true;
if(webcheck1 && wevcheck2 && wevcheck3){
webcheck=true;
}
}
getwebcheck();
if (jQuery(".bdc-cart-totals-remove-promo").length>0) {
execJs('jQuery(".bdc-cart-totals-remove-promo").click()');
var ch0=setInterval(check0,1000);
var timesRun = 0;
function check0(){
timesRun += 1;
if(jQuery(".bdc-cart-totals-remove-promo").length==0 || timesRun==3){
clearInterval(ch0);
setTimeout(function(){
autotest_remove_init();
},1000);
}else{
execJs('jQuery(".bdc-cart-totals-remove-promo").click()');
}
}
}else{
autotest_remove_init();
}
function autotest_remove_init(){
data['org_price']=jQuery(".bdc-cart-totals-subtotal").last().next().text().replace(/[^0-9\.\$\£\€\,]+/g,"");
jQuery(".bdc-cart-promo-codes .ft-input").val('');
jQuery(".bdc-cart-promo-codes .ft-input").sendkeys(code);
execJs('jQuery(".bdc-cart-promo-codes .ft-input").change();');
setTimeout(function(){
execJs('jQuery(".bdc-cart-promo-codes .ft-btn").click()');
setTimeout(function(){
var ch=setInterval(check,1000);
function check(){
if(jQuery(".bdc-cart-totals-remove-promo").length>0 || jQuery.trim(jQuery(".field-validation-error").text())!=""){
clearInterval(ch);
data['now_price']=jQuery(".bdc-cart-totals-subtotal").last().next().text().replace(/[^0-9\.\$\£\€\,]+/g,"");
data['result_tips']=jQuery.trim(jQuery(".field-validation-error").text());
resolve(data);
}
}
},1000);
},1000);
}
if (jQuery(".bdc-cart-totals-remove-promo").length>0) {
execJs('jQuery(".bdc-cart-totals-remove-promo").click()');
var ch0=setInterval(check0,1000);
var timesRun = 0;
function check0(){
timesRun += 1;
if(jQuery(".bdc-cart-totals-remove-promo").length==0 || timesRun==3){
clearInterval(ch0);
setTimeout(function(){
autotest_apply_best_code();
},1000);
}else{
execJs('jQuery(".bdc-cart-totals-remove-promo").click()');
}
}
}else{
autotest_apply_best_code();
}
function autotest_apply_best_code(){
jQuery(".bdc-cart-promo-codes .ft-input").val('');
jQuery(".bdc-cart-promo-codes .ft-input").sendkeys(code);
execJs('jQuery(".bdc-cart-promo-codes .ft-input").change();');
setTimeout(function(){
execJs('jQuery(".bdc-cart-promo-codes .ft-btn").click()');
},1000);
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。