烫了个发

实现一键评论打卡功能
javascript: void function() { var lauthor = ["#a...
扫描右侧二维码阅读全文
03
2019/07

实现一键评论打卡功能

javascript: void
function() {
    var lauthor = ["#author", "input[name='comname']", "#inpName", "input[name='author']", "#ds-dialog-name"],
    lmail = ["#mail", "#email", "input[name='commail']", "#inpEmail", "input[name='email']", "#ds-dialog-email"],
    lurl = ["#url", "input[name='comurl']", "#inpHomePage", "#ds-dialog-url", "input[name='url']"];
    for (i = 0; i < lauthor.length; i++) {
        var author = document.querySelector(lauthor[i]);
        if (author != null) {
            author.value = '名称';
            break
        }
    }
    for (j = 0; j < lmail.length; j++) {
        var mail = document.querySelector(lmail[j]);
        if (mail != null) {
            mail.value = 'XX@XX.com';
            break
        }
    }
    for (k = 0; k < lurl.length; k++) {
        var url = document.querySelector(lurl[k]);
        if (url != null) {
            url.value = 'https://xx.com';
            break
        }
    }
    return ! 1
} ()
Last modification:July 19th, 2019 at 04:12 pm
如果觉得我的文章对你有用,请随意赞赏

Leave a Comment