新建一个书签,把下面的代码复制到地址栏,下次博客评论时直接点击书签,就可以自动填充你的信息,经常清理缓存的人简直太爽了,太牛了
javascript: void
function() {
var lauthor = ["#author","input[name='comname']","#inpName","input[name='author']","#ds-dialog-name","#name","input[name='nick']","#comment_author"],
lmail =["#mail","#email","input[name='commail']","#inpEmail","input[name='email']","#ds-dialog-email","input[name='mail']","#comment_email"],
lurl =["#url","input[name='comurl']","#inpHomePage","#ds-dialog-url","input[name='url']","input[name='website']","#website","input[name='link']","#comment_url"];
for (i = 0; i < lauthor.length; i++) {
var author = document.querySelector(lauthor[i]);
if (author != null) {
author.value = '你的昵称';
author.dispatchEvent(new Event('input'));
author.dispatchEvent(new Event('change'));
break;
}
}
for (j = 0; j < lmail.length; j++) {
var mail = document.querySelector(lmail[j]);
if (mail != null) {
mail.value = '你的邮箱';
mail.dispatchEvent(new Event('input'));
mail.dispatchEvent(new Event('change'));
break;
}
}
for (k = 0; k < lurl.length; k++) {
var url = document.querySelector(lurl[k]);
if (url != null) {
url.value = '你的网址';
url.dispatchEvent(new Event('input'));
url.dispatchEvent(new Event('change'));
break;
}
}
return ! 1;
} ()
不错不错,味道极了
省了不少事,我高兴的多喝了两瓶啤酒
赞,这个真方便,不用每次都输入了
你说这些人的脑子咋这么好使呢?这都能想出来
从大佬这扒了点东西(偷师),这个评论验证码如何实现中文+数字的,求教
你的博客也是由typecho非强力驱动吗?等会有时间发你邮箱
一直在用,但是在Waline评论中会失效,不知道咋回事。
火狐浏览器在Waline评论中正常