This article mainly introduces jQuery's simple implementation of the code for clicking the like in the QQ space, which is very easy to use. we recommend it to you here for your reference. Some netizens made dynamic likes for space friends, added and canceled likes. Directly run the script
Dynamic likes of friends
JQuery (". qz_like_btn_v3 [data-clicklog = 'like'] "). each (function (index, item) {console. log (item); jQuery (item ). trigger ('click');}); jQuery (window ). scroll (function () {jQuery (". qz_like_btn_v3 [data-clicklog = 'like'] "). each (function (index, item) {jQuery (item ). trigger ('click') ;}); return true ;});
Cancel liked
JQuery (". qz_like_btn_v3 [data-clicklog = 'cancellike'] "). each (function (index, item) {console. log (item); jQuery (item ). trigger ('click');}); jQuery (window ). scroll (function () {jQuery (". qz_like_btn_v3 [data-clicklog = 'cancellike'] "). each (function (index, item) {jQuery (item ). trigger ('click') ;}); return true ;});
The above is all the content of this article. I hope you will like it.