If you are a photographer or you just like having your photos presented to the world you should definitely check 500px website.
I have a profile on 500px and I am a photographer by hobby. My friends don’t really want to spend that much time on the platform. For that reason I wanted to show them that they can growth hack anything.
Hi all! Hope you are all well and yes, the code is not working at the moment. I’ll let you know when the issue is fixed.
Auto like photos on 500px.com
What you need to do while you are logged in on the website is:
- Go to Explore page or https://500px.com/editors
- Click on any photo, but not the first one in the list
- Open the developer console, just press F12 for most browsers, and paste the following code to the Console tab.
- Keep the Console window small
// 500px: Auto Like
// Updated: 2020-03-24
// This script is made for demonstrative purposes only.
// Use at your own risk.
// Respect the 500px's policy and terms of use.
if (typeof jQuery == 'undefined') {
var headTag = document.getElementsByTagName("head")[0];
var jqTag = document.createElement('script');
jqTag.type = 'text/javascript';
jqTag.src = 'https://code.jquery.com/jquery-3.4.1.min.js';
headTag.appendChild(jqTag);
}
function loop() {
console.log('Script loading…please wait…');
var Time1 = Math.ceil(Math.random() * 10) + 3;
var Time2 = Math.ceil(Math.random() * 10) + 3;
setTimeout(function() {
if ($('div[data-id="photo-unlike"]').length) { console.log('Photo already liked. Skipping…'); } else { console.log('Like the photo…'); $('div[tabindex="0"]').click(); } setTimeout(function() { if ($('#copyrightTooltipContainer .isvg.loaded').length) { console.log('Loading next photo…'); $('[class*=Elements__PhotoNavigationWrapper]:nth-child(2)').click();
} else {
console.log('Reload the page and run the script manually.!');
}
loop();
}, Time1 * 1000);
}, Time2 * 1000);
}
loop();
Hi you! If the code is working, leave a comment below. It means a lot to everyone.
The script will start liking other people photos, driving the attention to your profile (when your account appears in their notifications). The reaction of most people will be to like some photos from your account or to follow it.
Note: Wait a few seconds for the script to run. If you get “undefined” message in the console, don’t worry that is totally fine. 🙂
Auto follow users on 500px.com
If, on the other hand, you want to follow users on the 500px website, you can use the following script.
// 500px: Auto Follow
// Updated: 2020-03-24
// This script is made for demonstrative purposes only.
// Use at your own risk.
// Respect the 500px's policy and terms of use.
if(typeof jQuery=='undefined')
{
var headTag = document.getElementsByTagName("head")[0];
var jqTag = document.createElement('script');
jqTag.type = 'text/javascript';
jqTag.src = 'https://code.jquery.com/jquery-3.4.1.min.js';
headTag.appendChild(jqTag);
}
function loop() {
console.log('Script loading…please wait…');
var Time1 = Math.ceil(Math.random() * 10) + 3;
var Time2 = Math.ceil(Math.random() * 10) + 3;
setTimeout(function() {
if ( $('a span:contains("Following")').length) {
console.log('User already followed. Skipping…');
} else {
console.log('Following…');
$('a span:contains("Follow")').click();
}
setTimeout(function() {
if ($('#copyrightTooltipContainer .isvg.loaded').length) {
console.log('Loading next photo…');
$('[class*=Elements__PhotoNavigationWrapper]:nth-child(2)').click();
} else {
console.log('Reload the page and run the script manually.!');
}
loop();
}, Time1 * 1000);
}, Time2 * 1000);
}
loop();
Hi you! If the code is working, leave a comment below. It means a lot to everyone.
Don’t forget to subscribe to get notified when I release a new blog post.
88 comments on “500px JavaScript bot that will help you get likes and followers!”
chve
Not working
Milos Lukic
Hi, you need to open one photo before you apply the code. Let me know if it works now.
Petter
I get the error “undefined” when I run your code.
What to do?
Milos Lukic
That’s ok. Just wait for a few seconds. The script has a pause between actions so it can recreate a human behavior.
Petter
OK, its working, but is is liking the image, and then unliking it again after a few seconds. Is that normal behaviour?
Milos Lukic
Hi, It’s probably because you already liked that photo. I updated the script to skip photos that are liked so you can try again. 🙂
Samson
Working like a charm
Milos Lukic
Awesome! 😀
Dejan
Awesome bro 😀
Franzis
Not wORKING AFTER THE UPDATE OF 500PX.. ALwais REMAINS ON ” UNDEFINED”
Milos Lukic
Hi, Script is updated.
Please respect the 500px’s policy and use it at your own risk.
Mat
it doesn’t work for me…is it due to the new layout of the 500px pages?
Milos Lukic
HI, SCRIPT IS UPDATED.
PLEASE RESPECT THE 500PX’S POLICY AND USE IT AT YOUR OWN RISK.
ste
THE UPDATED SCRIPT DOESN’T WORK, IT DOESN’T CHANGE PHOTO, tried with chrome and firefox
Milos Lukic
Hi, try again, but don’t run the script on the first photo from the list. Try second, third…just not the first one.
EMILY
SAME ISSUE
Milos Lukic
Hi, the script is updated…let me know if all is ok, or something needs to be improved.
anfas
I can’t see a difference. It looks like noting happened
Milos Lukic
Hi, try again, but don’t run the script on the first photo from the list. Try second, third…just not the first one.
EMILY
HI,
NOT WORKING, SCRIPT KEEPS TRYING TO LIKE THE SAME PICTURE.
Milos Lukic
Hi, you can try now. I updated the script so it should work. Hope 500px didn’t change something meanwhile. 😉
patrick
I’ve added a randomizer for liking the photo or not:
var randomNumber = Math.random() >= 0.5;
if ( randomNumber ){
console.log(‘Like the photo…’);
$(‘div[tabindex=”0″]’).click();
} else {
console.log(‘Skipping the photo…’);
}
Milos Lukic
HI Patrik, I just updated the script.
Why do you think the randomizer is necessary?
jabi
For me is working amazing dude, great work. Now it’s possible do the same but for comments?
jabi
one more thing, is running right now really good. how can i stop it?
Milos Lukic
You just refresh the page or close it.
Milos Lukic
What do you want to do with the comments?
Aileenalfaro
Thanks for sharing your info. I truly appreciate your efforts and I will be waiting for your further write ups thanks once again.
Anonymous
Saved as a favorite, I like your site!
Lamar
My brother suggested I would possibly like this blog. He used to be totally
right. This submit truly made my day. You can not consider just how so much time I had spent for
this info! Thanks!
Hi
Looks realy great! Thanks for the post.
nakliyat
thanx content is king !
Abby
Hi! AMAZINg work! Can you please make a js for unsplash views as well? it’d mean a lot
Milos Lukic
Hi, I tried but there are some difficulties…
I will let you know if I succeed. 🙂
John
Hi milos,
great job!
would it be possible to modify the follow script so an unfollow one?
Milos Lukic
Hi,
Check this out, hope it helps.
https://miloslukic.com/2020/02/29/500px-unfollow-javascript-script/
Lola
Hello, something is going wrong with this script, not working anymore. please check it. Thanks
Milos Lukic
Hi Lola, thanks for the message. Check the latest code, it should be OK.
steve
Hi,
Getting error msg:
Uncaught SyntaxError: missing ) after argument list
on the new auto-like script.
worked fine before…
(don’t know why this comment is all caps, but no option for lowercase.
Milos Lukic
Script is updated. It should work like a charm. 🙂
damian
Hi, NICE WORK. In ms edge I get an error saying “Expected ‘)'” what could be the error?
Milos Lukic
It’s should be fine now. I just updated it. 🙂
damian
thank you, Milos! it is working now. Amazing!
Ivan
Hey, it looks like this script is messed up after the last update, it doesn’t show properly on my up-to-date chrome browser
Milos Lukic
Hi, sorry to keep you waiting. I just updated it!
CDayle
Hey, Milos.
Great job on the script. I’ve been using for a few months and it’s great, but the new version is not working for me.
I keep getting the following error:
SyntaxError: Unexpected identifier ‘r’. Expected ‘)’ to end an Argument List
Milos Lukic
Hi man, thanks for the message. It’s OK now, I just updated it. 🙂
R
not working.
error: Uncaught SyntaxError: missing ) after argument list
Milos Lukic
It’s fixed now. Thanks for the comment.
Lex
The old likes script is working well, the new one throws this error in chrome console:
Uncaught ReferenceError: c35 is not defined
at e (:1:42)
at :1:137
at :1:293
and doesn’t do anything.
Milos Lukic
It’s fixed now, enjoy! 🙂
Edoardo
hi Milos, the last update of the code doesn’t work on firefox, theres the previous code somewhere?
Milos Lukic
Hi…I just fixed it, enjoy! 🙂
Stanley
Uncaught SyntaxError: missing ) after argument list
Anyway to help?
Milos Lukic
Hi, the script is fixed now. Thanks for the comment
alan
hello “Undefined” error appears when I run the code.
What to do?
I opened the photo, waited but nothing
alan
Uncaught SyntaxError: missing ) after argument list
Milos Lukic
Hi Alan, the script is fixed now. Thanks for the heads up
Milos Lukic
Hi all,
I just updated the scripts again. It should be ok now.
BEst
steve
hi,
thak you for your work dude but the script doesn’t work 🙁
thx
Milos Lukic
Hi, sorry for waiting. It’s fixed now. 🙂
Stebe
Thank you for your quick asnwer
it seems to work but it always likes the same photo and dislike it fem moments after 🙁 a loop
Milos Lukic
Try keeping the Console window as smaller. Let me know if it’s ok now.
aHMER
HI,
i AM GEtting this error while inputting the auto like script:
“Uncaught SyntaxError: Unexpected identifier”
WHAT SEEMS TO BE THE PROBLEM?
Milos Lukic
Hi, I figured it out. The script was fine, it just messes up when you copy it from the website due to some WordPress format. Try again.
afro
hello mılos, THE CODES NOT WORKING AGAIN. Can you re-add prevıous codes ?
Milos Lukic
Hi, I figured it out. The script was fine, it just messes up when you copy it from the website due to some WordPress format. Try again.
lola
Hi milos! not working again…. why not you test it before you share? totally useless, not working on any platform! please can you share the good old code with us? this new codes are not working please believe it. we want the good old code. thanks.
Milos Lukic
Hi Lola,
I’ve been checking the code multiple times, not sure what’s not working. Is there a way for you to send me a screenshot?
afro
Hello Milos, this code’s when u latest upload have a problem again. ” if ($(‘div[data-id=”photo-unlike”]’)).length) { console.log(‘Photo already liked. Skipping…’); } else { console.log(‘Like the photo…’); $(‘div[tabindex=”0″]’).click(); } setTimeout(function() { if ($(‘#copyrightTooltipContainer .isvg.loaded’).length) { console.log(‘Loading next photo…’); $(‘[class*=Elements__PhotoNavigationWrapper]:nth-child(2)’).click();
”
It is 18th line. I tried for solved but i can’t. Chrome give an error called ” Uncaught SyntaxError: Unexpected token ‘.’ “
Milos Lukic
Hi, I just checked it. For me it was fine. Make sure you followed the steps. Open the second photo, not the first one, and try to keep the console window smaller, sometimes it makes a difference due to resolution check on some websites.
George Zagkoglou
Hi there.
Thanx for the script!!!
You have an extra ) on your code
if ($(‘div[data-id=”photo-unlike”]’)).length)
Should be
IF ($(‘DIV[DATA-ID=”PHOTO-UNLIKE”]’).LENGTH)
Milos Lukic
Thanks man….it’s updated
jACEK
Good morning
Unfortunately, the like script code still does not work.
Still reporting “SyntaxError error: expected expression, got ‘.'”
Other scRIPTS for users and unfollow work correctly.
Milos Lukic
Hi, I just checked it. For me it was fine. Make sure you followed the steps. Open the second photo, not the first one, and try to keep the console window smaller, sometimes it makes a difference due to resolution check on some websites.
surena
Didn’t work the previous time, but this time it works great. thank you
I had another question. Does a 500px block the activity of robots LIKE INSTAGRAM? And what to do to avoid danger?
Milos Lukic
Hi, I’m not sure about that but if you find the answer, let me know so we can notify everybody here. 🙂
Jabi
It’s possible to do like and follow on the same script?
Milos Lukic
Yes, of course. I will try to do it over the weekend. I will let you know.
Milos Lukic
Hi all, I’m working on the solution… 🙂 I will notify you all once I’m done…
jabi
amazing mate. Thanks a lot
Matt
Thanks bro!
lolo
Thank you
damian
thank you, Milos
LORA
sounds inspiring, thanks a lot!
Lara
Thanks a Lot for Your great work!
lolo
thank you