自动填写各网站评论信息

自动填写网站评论信息!此段代码为整合版,可以适应多个网站程序。

javascript: void
function() {
    var mingcheng = ["#author","input[name='comname']","#inpName","input[name='author']","#ds-dialog-name","#name","input[name='nick']"],
	youxiang =["#mail","#email","input[name='commail']","#inpEmail","input[name='email']","#ds-dialog-email","input[name='mail']"],
	lianjie =["#url","input[name='comurl']","#inpHomePage","#ds-dialog-url","input[name='url']","input[name='website']","#website","input[name='link']"],
	pinglun =["#txaArticle","#comment"];
    for (i = 0; i < mingcheng.length; i++) {
        var author = document.querySelector(mingcheng[i]);
        if (author != null) {
            author.value = '国利互联';
            break;
        }
    }
    for (j = 0; j < youxiang.length; j++) {
        var mail = document.querySelector(youxiang[j]);
        if (mail != null) {
            mail.value = '2066450660@qq.com';
            break;
        }
    }
    for (k = 0; k < lianjie.length; k++) {
        var url = document.querySelector(lianjie[k]);
        if (url != null) {
            url.value = 'http://www.guoli.club';
            break;
        }
    }
    for (k = 0; k < pinglun.length; k++) {
        var url = document.querySelector(pinglun[k]);
        if (url != null) {
            url.value = '国利互联、到此一游';
            break;
        }
    }
    return ! 1;
} ()
版权声明:国利互联 发表于 2020-10-25 17:21:14。
转载请注明:自动填写各网站评论信息 | 国利互联

暂无评论

暂无评论...