Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to write the code of grabbing red packets on web pages with Javascript

Shulou Source: shulou.com Published: 2022-05-31 12:40:57 10月02日 Update

This article mainly introduces the relevant knowledge of "how to write the code to grab the red packet on the web page by Javascript". The editor shows you the operation process through the actual case, the operation method is simple and fast, and the practicality is strong. I hope this article "how to write the code to grab the red packet on the web page in Javascript" can help you solve the problem.

At first, use Firefox plus Firebug/YSlow plug-in analysis, but firefox can not run custom javascript, it seems that there are some plug-ins to install. So switch to chrome, found that chrome is still good, directly write a javascript can be installed as a plug-in.

The appendix is a version of the script I wrote that calls the

Volcano.BrickRate=1.0;Volcano.Brick.getLottery (KISSY)

KISSY is something similar to JQuery. It takes a long time to figure it out.

After hanging for two days, I won only 50 yuan in total. It is said that the grand prizes are all on the inside, you know. Taobao as long as according to the account to distribute awards, plug-in script is useless, .

Second edition of the script.

/ / tmall scripts in Chrome / = UserScript==// @ name tmall// @ namespace google// @ author vesor// @ description Simple userscript to grasp tmall lottery// @ include http://www.tmall.comVolcano.BrickRate=1.0;Volcano.Brick.getLottery(KISSY);//var L = S.DOM.get ("# J_Lucky"); / / L.click (); if (+ + tryCount) setTimeout (loopWrapper, 100);} loopWrapper (); console.log ("tmall.user.js: Loaded") }} catch (e) {console.log ("Failed loading tmall.user.js");} this is the end of the introduction of "how to write the code for grabbing red packets on a web page by Javascript". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Tags: Code red packets web pages plug-ins knowledge scripts industries different good practical things content insider awards geniuses practicality articles methods more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Technology NVidia Linux Docker