Blog

500px JavaScript bot that will help you get likes and followers!

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:

  1. Go to Explore page or https://500px.com/editors
  2. Click on any photo, but not the first one in the list
  3. Open the developer console, just press F12 for most browsers, and paste the following code to the Console tab.
  4. 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. 🙂

Buy me a coffeeWanna support the page?!

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.

Buy me a coffeeWanna support the page?!

Did you like this? Share it!

88 comments on “500px JavaScript bot that will help you get likes and followers!

Not working

Hi, you need to open one photo before you apply the code. Let me know if it works now.

I get the error “undefined” when I run your code.
What to do?

That’s ok. Just wait for a few seconds. The script has a pause between actions so it can recreate a human behavior.

OK, its working, but is is liking the image, and then unliking it again after a few seconds. Is that normal behaviour?

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. 🙂

Working like a charm

Awesome! 😀

Awesome bro 😀

Not wORKING AFTER THE UPDATE OF 500PX.. ALwais REMAINS ON ” UNDEFINED”

Hi, Script is updated.
Please respect the 500px’s policy and use it at your own risk.

it doesn’t work for me…is it due to the new layout of the 500px pages?

HI, SCRIPT IS UPDATED.
PLEASE RESPECT THE 500PX’S POLICY AND USE IT AT YOUR OWN RISK.

THE UPDATED SCRIPT DOESN’T WORK, IT DOESN’T CHANGE PHOTO, tried with chrome and firefox

Hi, try again, but don’t run the script on the first photo from the list. Try second, third…just not the first one.

SAME ISSUE

Hi, the script is updated…let me know if all is ok, or something needs to be improved.

I can’t see a difference. It looks like noting happened

Hi, try again, but don’t run the script on the first photo from the list. Try second, third…just not the first one.

HI,
NOT WORKING, SCRIPT KEEPS TRYING TO LIKE THE SAME PICTURE.

Hi, you can try now. I updated the script so it should work. Hope 500px didn’t change something meanwhile. 😉

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…’);
}

HI Patrik, I just updated the script.

Why do you think the randomizer is necessary?

For me is working amazing dude, great work. Now it’s possible do the same but for comments?

one more thing, is running right now really good. how can i stop it?

You just refresh the page or close it.

What do you want to do with the comments?

Thanks for sharing your info. I truly appreciate your efforts and I will be waiting for your further write ups thanks once again.

Saved as a favorite, I like your site!

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!

Looks realy great! Thanks for the post.

thanx content is king !

Hi! AMAZINg work! Can you please make a js for unsplash views as well? it’d mean a lot

Hi, I tried but there are some difficulties…
I will let you know if I succeed. 🙂

Hello, something is going wrong with this script, not working anymore. please check it. Thanks

Hi Lola, thanks for the message. Check the latest code, it should be OK.

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.

Script is updated. It should work like a charm. 🙂

Hi, NICE WORK. In ms edge I get an error saying “Expected ‘)'” what could be the error?

It’s should be fine now. I just updated it. 🙂

thank you, Milos! it is working now. Amazing!

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

Hi, sorry to keep you waiting. I just updated it!

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

Hi man, thanks for the message. It’s OK now, I just updated it. 🙂

not working.
error: Uncaught SyntaxError: missing ) after argument list

It’s fixed now. Thanks for the comment.

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.

It’s fixed now, enjoy! 🙂

hi Milos, the last update of the code doesn’t work on firefox, theres the previous code somewhere?

Hi…I just fixed it, enjoy! 🙂

Uncaught SyntaxError: missing ) after argument list

Anyway to help?

Hi, the script is fixed now. Thanks for the comment

hello “Undefined” error appears when I run the code.
What to do?

I opened the photo, waited but nothing

Uncaught SyntaxError: missing ) after argument list

Hi Alan, the script is fixed now. Thanks for the heads up

Hi all,

I just updated the scripts again. It should be ok now.

BEst

hi,
thak you for your work dude but the script doesn’t work 🙁
thx

Hi, sorry for waiting. It’s fixed now. 🙂

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

Try keeping the Console window as smaller. Let me know if it’s ok now.

HI,
i AM GEtting this error while inputting the auto like script:
“Uncaught SyntaxError: Unexpected identifier”
WHAT SEEMS TO BE THE PROBLEM?

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.

hello mılos, THE CODES NOT WORKING AGAIN. Can you re-add prevıous codes ?

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.

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.

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?

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 ‘.’ “

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.

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)

Thanks man….it’s updated

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.

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.

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?

Hi, I’m not sure about that but if you find the answer, let me know so we can notify everybody here. 🙂

It’s possible to do like and follow on the same script?

Yes, of course. I will try to do it over the weekend. I will let you know.

Hi all, I’m working on the solution… 🙂 I will notify you all once I’m done…

amazing mate. Thanks a lot

Thanks bro!

Thank you

thank you, Milos

sounds inspiring, thanks a lot!

Thanks a Lot for Your great work!

thank you

Leave Comment