您的位置首页百科知识

问卷星自动填写问卷

问卷星自动填写问卷

的有关信息介绍如下:

问卷星自动填写问卷

我们有时候会在问卷星发布一些问卷,想要获得一定数量的样本。然而有的时候并不如愿,填写问卷的人太少,而出于某种目的,我们希望样本的数据很大,自己一个一个点又太慢了,那么有没有自动填写问卷的方法呢?答案是肯定的。今天小编结合360浏览器和大家分享一下问卷星怎么自动填写问卷的方法。

打开360浏览器

点击左侧收藏夹

点击整理 在整理收藏夹下面 右键单击 添加收藏

右侧出现 名称 网址

名称自定义

网址处粘贴以下代码:

javascript:void(

(function(){

varhash={};

vara=document.evaluate('//input[(@type="radio")andnot(@value="0")]//@name',

document,

null,

XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,

null);

if(a.snapshotLength){

for(vari=0;i

if(!(a.snapshotItem(i).valueinhash))

hash[a.snapshotItem(i).value]=0;

hash[a.snapshotItem(i).value]++;

}

for(iinhash){

document.evaluate('//input[(@type="radio")andnot(@value="0")and@name="'+i+'"]',

document,

null,

XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,

null).snapshotItem(Math.floor(Math.random()*hash[i])).click();

}

}

vararray=newArray();

varas=document.getElementsByTagName("a");

varpreName="";

varchange=false;

for(vari=0;i

if(as[i].getAttribute("rel")!=null&&as[i].nextSibling.getAttribute("type")=="checkbox"){

varname=as[i].nextSibling.getAttribute("name");

varcheck=as[i].nextSibling.getAttribute("checked");

if(check=="checked"){

as[i].click();

}

if(preName==""||preName==name){

if(Math.random()*10>5){

as[i].click();

change=true;

}

}

varnext=as[i+1];

if(next.getAttribute("rel")!=null&&next.nextSibling.getAttribute("type")=="checked"&&next.getAttribute("name")!=name){

if(!change){

as[i].click();

}

change=false;

}

if(i==as.length-1&&!change){

as[i].click();

}

preName=name;

}

}

varobjs=document.getElementsByTagName("textarea");

for(vari=0;i

objs[i].focus();

objs[i].value="最好的意见就是没有意见,哈哈哈哈哈哈哈";

objs[i].blur();

}

varchoose=document.getElementsByTagName("select");

for(vari=0;i

choose[i].focus();

choose[i].value="1";

choose[i].blur();

}

})());

functionvalidate(){returntrue;}

varbtn=document.getElementById("submit_button");

window.setTimeout(btn.click(),2000);

用360浏览器打开你的问卷星调查页面

点击刚才你新建的收藏标签,这时候你就发现,自动填写了一份调查了