Website owners who frequently visit blogs must have encountered situations where some websites' comment boxes do not save personal information, such as
NaibabijiSo, before each comment, you have to manually input or select historical information from the fill data, which is troublesome even though you don't need to use the keyboard. Naiba previously used the browser's auto-fill function, but it wasn't very convenient. Now, I'll share a very convenient method for automatically filling personal information in comment boxes.
One-Click Fill Code
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 = '你的邮箱';
break
}
}
for (k = 0; k < lurl.length; k++) {
var url = document.querySelector(lurl[k]);
if (url != null) {
url.value = '你的网址';
break
}
}
return ! 1
} ()After modifying the above content with your own information, copy it to the clipboard.
Add the Code as a Bookmark
Find any bookmark, or simply press CTRL + D to add this article as a bookmark, then right-click on the bookmark and select 'Edit.' If you don't understand, refer to the animated demonstration below.

The first part of the animated demonstration above shows the effect, and the latter part demonstrates how to modify the bookmark content. The content inside the quotes in lauthor, lmail, and lurl corresponds to the id, class, or tag of the input elements in the comment box. If you encounter a blog website where auto-fill doesn„t work, you can right-click “Inspect Element„ and make additions, deletions, or modifications to the relevant parts of the above code based on the changes in the input elements of the comment box on each blog website! This method is from:
xcnte
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.