Conversation
likeAll.jsInstead of using var z = document.querySelectorAll('.pam.uiBoxLightblue.uiMorePagerPrimary');
var x = document.querySelectorAll('.like_link.stat_elem.as_link');In your conditional statement, you are using a single equal sign ( if(x[i].name === 'like') {x[i].click()}There is no need to use // Remove the following line
// void(1); |
| for(var i = 0; i < x.length; ++i) { | ||
| if(x[i].name=='like') {x[i].click();} | ||
| for(var i = 0; i < x.length; i++) { | ||
| if(x[i].name='like') {x[i].click()} |
There was a problem hiding this comment.
The conditional statement in the for loop was using an assignment operator instead of a comparison operator. This has been corrected to use the strict equality operator for comparison.
| if(x[i].name='like') {x[i].click()} | |
| if(x[i].name === 'like') {x[i].click()} |
No description provided.