JS: Google chrome plug-in instance, js: Google chrome instance

Source: Internet
Author: User

JS: Google chrome plug-in instance, js: Google chrome instance

Many friends are confused about browser plug-ins. Aren't plug-ins used in games? In fact, this is not the case. Today, we use a small example to bring you a browser plug-in written in JS.

The function of this plug-in is to achieve the small Lucky Draw function by refreshing the webpage floor.

Train of Thought, automatically fill in the content, and then trigger the button click event

On the Google console, you can directly enter js code to execute the action you want to execute,

According to the above logic, you only need to add a regular js and execute the reply task.

The Code is as follows:

Extends extends setinterval(function(extends extends Doc ument. getElementById ("textarea" extends ument. getElementsByName ("Submit") [0]. click () ;}, 5000 );

The above is all the content of this JS browser plug-in. You can try it on your own based on the principle. Thank you for your support.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.