WordPress/Typecho/Zblog/Emlog one-click comment code

new mediaHuman executionWeb Promotiontasks, often given to otherWordPressBlog sites leave a message, so many people have been looking for a variety of more effectiveSEOComment tool.

By default, we visit a new blog, and to comment on the site, manually enter the following:

  1. Name
  2. Electronic Mail Site Site
  3. URL
  4. comments

Since the name, email and URL are basically the same and unchanged.

So, is there a smarter and more efficient way to automatically fill in these duplicates?

On the Internet, nothing is impossible!

Bookmark function for Javascript script

Using the bookmark function of the Javascript script, you can easily implement a quick comment.

  • All the methods on the web have major flaws, as they are mainly used to useWordPress websiteof blogs, they don't have cross-site, multi-platform capabilities...

Chen WeiliangThe shared code is a method that allows you to automatically fill in your personal information on a common platform for building websites with open source programs to facilitate comments.

In other words, it may work on one or more WordPress, Typecho, zblog and emlog platforms, but not all web platforms.

Common platform common comment code

Javascript code to automatically fill in name, email and URL with a single click:

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}()
  • Add this code to the bookmark address bar (URL).
  • Replace the 3 fields of "Name", "Email" and "URL" with your information and save it.

Here in ChromeGoogle ChromeAs an example, add the steps:

  1. Right click bookmark bar
  2. Click Add page

WordPress/Typecho/Zblog/Emlog automatic message comment code

code description

author, lmaiThe content in the quotation marks in l and lurl is the corresponding id, class or label in the input element of the comment box to be filled.

If you come across a blog site that doesn't autocomplete, you can right-click on "Inspect Element".

Add, delete and modify the relevant position of the above code according to the input element of each blog site comment box.

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "WordPress/Typecho/Zblog/Emlog one-click comment code", which is helpful to you.

Welcome to share the link of this article:https://www.chenweiliang.com/cwl-1109.html

Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!

🔔 Be the first to get the valuable "ChatGPT Content Marketing AI Tool Usage Guide" in the channel top directory! 🌟
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!

 

Comment

Your email address will not be published. Required fields * Callout

scroll to top