-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update likeAll.js #1
base: master
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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()} |
|
||
}; | ||
alert("done"); | ||
void(0); | ||
void(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing unnecessary use of the void
operator to improve code readability.
void(1); | |
alert("done"); |
No description provided.