Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to realize the function of grabbing red packets on web pages by Javascript

Shulou Source: shulou.com Published: 2022-05-31 12:55:31 11月13日 Update

In this article, the editor introduces in detail the "Javascript how to achieve the web page grab red packet function", the content is detailed, the steps are clear, and the details are handled properly. I hope this "Javascript how to achieve the web page grab red packet function" article can help you solve your doubts.

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.

In the middle of Taobao also changed the script several times, of course, each time is more or less the same. I admire the miserable Taobao programmer who has to work overtime on weekends to change the script.

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");} here, the article "how to grab red packets on the web page by Javascript" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it before you can understand it. If you want to know more related articles, welcome to follow the industry information channel.

Tags: Scripts features red packets web pages plug-ins articles Taobao content good proper more or less the same things insider awards geniuses ideas new knowledge more steps version Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Technology Apple MariaDB MySQL