f12打开终端,在console输入如下代码,回车
var script = document.createElement("script")
script.type = "text/javascript";
script.src = "https://code.jquery.com/jquery-2.2.4.js";
document.getElementsByTagName("head")[0].appendChild(script);
$('.fb_component').each(function (index) {
$(this).find('.fb_componentBody ul li:eq(0)').click()
$(this).find('.fb_componentBody ul li').each(function(l){
if(l>0&&parseInt(Math.random()*10)>5)
$(this).click()
})
})
var num=parseInt(Math.random()*3)+2
$('.fbc_rateItemWrapper').each(function(index){
if(index==num)
{
$(this).find('.fbc_rateItem.left-half').trigger('click')
}
})
$("#form_submit").trigger('click')
注: 因为小编习惯性引入外部jq,所以这段代码第一次运行会提示undefined,它需要加载jq,再输入一遍就好了
作废,请参考这篇 问卷星-js脚本测试