[SCRIPT] Free Instagram/Websta automation

5zz

Registered Member
Joined
May 23, 2016
Messages
50
Reaction score
16
Hi,

I've decided I would make some completely free scripts for automation. I've been doing this kind of stuff for years and now I make it for fun too.
So far, I'm giving a few scripts requested in other threads. I'll probably add(and update existing ones) some more soon. :)

Websta.me - auto comment(very simple, photos from hashtag feed)
9b1e9d49d4814338afcf5f0c4eeab5de.png
1. Sign in to websta.me.
2. Go to Explore -> HOT, then choose any tag you want(you can also go to https://websta.me/tag/SOMETHING).
3. You should see a few photos here. If you want to comment on even more photos, just scroll down and click "Load more" a few times.
4. Click right mouse button(anywhere on the site) and choose "Inspect element".
5. Go to "Console".
6. Paste this code into the console and press Enter:
Code:
!function(){var t=$("<div/>");t.addClass("modal fade"),t.html('<div class="modal-dialog"> <div class="modal-content"> <div class="modal-body js-body-container"> <button type="button" class="close" data-dismiss="modal">&times;</button> <div class="js-body"> <form class="js-form"> <div class="form-group"> <label class="control-label">Delay(in seconds) between each comment:</label> <input type="number" class="form-control js-form-delay" value="20" min="5" required> </div><div class="form-group"> <label class="control-label">Max comments:</label> <input type="number" class="form-control js-form-max" value="5" min="1" required> </div><div class="form-group"> <label class="control-label">Comments(each comment in separate line):</label> <textarea class="form-control js-form-contents" rows="10" required>Cute!&#10;Amazing. &#10;love it &#10;Wow </textarea> </div></form> <textarea class="form-control js-log" rows="15" style="display:none;max-width:100%" readonly></textarea> </div></div><div class="modal-footer"> <button type="button" class="btn btn-default js-cancel" data-dismiss="modal">Cancel</button> <button type="button" class="btn btn-primary js-start">Start commenting</button> <button type="button" class="btn btn-primary js-stop" style="display:none" data-dismiss="modal">Stop commenting</button> </div></div></div>'),$("body").append(t),t.modal("show"),t.find(".js-start").click(function(){var a=1e3*parseFloat(t.find(".js-form-delay").val()),e=parseInt(t.find(".js-form-max").val()),n=t.find(".js-form-contents").val().trim().split("\n"),o=$("li:has(.thumbnail):has(.glyphicon-comment)");if(!(5>a||1>e)&&n.length&&o){for(var s=[],l=0;l<n.length;l++){if(n[l]=n[l].trim(),!n[l]){if(n.length>l+1)continue;return}s.push(n[l])}var i=Math.ceil(e/s.length);if(i>1)for(var r=s,l=1;i>l;l++)s=s.concat(r);t.find(".js-form").hide();var m=t.find(".js-log").val("").show(),d="";t.find(".js-cancel").hide(),t.find(".js-start").hide(),t.find(".js-stop").show();var c=!0;t.find(".js-stop").click(function(){c=!1});var f=0,u=function(){if(!(f>=e)&&c){var t=$(o[f]).find(".thumbnail a[href]").attr("href"),n=$(o[f]).find(".media-user-username").text(),l=t.trim("/").split("/")[2],i=s[f],r=function(){d+="Successfully commented on "+l+" (@"+n+")\n",m.val(d),f++,f<o.length&&setTimeout(u,a)},v=function(t){d+="Couldn't comment on "+l+" (@"+n+")\n",m.val(d),f++,f<o.length&&setTimeout(u,2*a)};$.get("/stats/overview",function(t){var a=$("<div/>");a.html(t);var e=a.find('meta[name="csrf-token"]').attr("content").trim();a.remove(),setTimeout(function(){$.ajax({url:"/api/media/"+l+"/comments",type:"post",data:{text:i},headers:{"X-CSRF-Token":e},dataType:"json",success:function(t){t.created_time?r():v()},fail:v})},500)},"html").fail(function(){v()})}};setTimeout(u,50)}})}();
6. A window should pop up. Choose the delay(in seconds) between each comment, how many comments you want to add, and obviously what comments(each comment in separate line).
7. Click "Start commenting". The script will do its job(don't close the browser tab).
If you want to stop, either click "Stop commenting" or just refresh the page.
8. Count $$$.

Websta.me - auto like(very simple, photos from hashtag feed)
1. Sign in to websta.me.
2. Go to Explore -> HOT, then choose any tag you want(you can also go to https://websta.me/tag/SOMETHING).
3. You should see a few photos here. If you want to like even more photos, just scroll down and click "Load more" a few times.
4. Click right mouse button(anywhere on the site) and choose "Inspect element".
5. Go to "Console".
6. Paste this code into the console and press Enter:
Code:
!function(){var e=1e3*Math.max(5,parseFloat(prompt("Delay(in seconds) between each like:"))),t=function(){var t=$(".like-icon"),i=0,n=function(){$(t[i]).trigger("click"),i<t.length&&(i++,setTimeout(n,e))};setTimeout(n,500)};setTimeout(t,500)}();
7. A small window should pop up. Enter how long(in seconds) you want to wait between each like and click "OK". The script will like(don't close the browser tab) each photo, one by one. If you want to stop, just refresh the page.
8. Count $$$.

Good luck, spammers. :)
 
Do you have a script for liking on the new iconosquare or another instagram viewer other than websta? Thanks
 
Do you have a script for liking on the new iconosquare or another instagram viewer other than websta? Thanks
I can see that Iconosquare is paid, I don't have an account there, so I can't make a script. Sorry.
What other Instagram viewers do you suggest?
 
I can see that Iconosquare is paid, I don't have an account there, so I can't make a script. Sorry.
What other Instagram viewers do you suggest?
Oh I just noticed I'm on a trial with iconosquare. Umm well any that allow liking posts is good, don't really know of any though.
 
Thank you so much for this!

May I please ask for your help though since when I try to use this method I get this message in firefox:

TypeError: t is undefined
u()

I honestly have no idea what this means. May you please help make this run smoothly because I'm at a lost. Thank you again!
 
Thanks for creating this! Very cool, but I can't get it to work as of yet.

I get the same error in Firefox as mentioned above, about the TypeError.

In Chrome, I don't see any action after I click "Start commenting". The box goes blank, but how do I know if it's working?

Thanks! :)
 
Great share man :) The auto-like is working like a charm! The auto comment however threw an issue regarding trim? Have you encountered this before?
 
thank you 5zz... liking worked great..

but got an error on the Comment script.. can u pls see again...

thanks in advance
 
Websta.me has changed something in the design, so I had to change a few things too.
Here's the updated, working version of the script.

Websta.me - auto comment
Code:
!function(){var t=$("<div/>");t.addClass("modal fade"),t.html('<div class="modal-dialog"> <div class="modal-content"> <div class="modal-body js-body-container"> <button type="button" class="close" data-dismiss="modal">&times;</button> <div class="js-body"> <form class="js-form"> <div class="form-group"> <label class="control-label">Delay(in seconds) between each comment:</label> <input type="number" class="form-control js-form-delay" value="20" min="5" required> </div><div class="form-group"> <label class="control-label">Max comments:</label> <input type="number" class="form-control js-form-max" value="5" min="1" required> </div><div class="form-group"> <label class="control-label">Comments(each comment in separate line):</label> <textarea class="form-control js-form-contents" rows="10" required>Cute!&#10;Amazing. &#10;love it &#10;Wow </textarea> </div></form> <textarea class="form-control js-log" rows="15" style="display:none;max-width:100%" readonly></textarea> </div></div><div class="modal-footer"> <button type="button" class="btn btn-default js-cancel" data-dismiss="modal">Cancel</button> <button type="button" class="btn btn-primary js-start">Start commenting</button> <button type="button" class="btn btn-primary js-stop" style="display:none" data-dismiss="modal">Stop commenting</button> </div></div></div>'),$("body").append(t),t.modal("show"),t.find(".js-start").click(function(){var a=1e3*parseFloat(t.find(".js-form-delay").val()),e=parseInt(t.find(".js-form-max").val()),n=t.find(".js-form-contents").val().trim().split("\n"),o=$("li:has(.thumbnail)");if(!(5>a||1>e)&&n.length&&o){for(var s=[],l=0;l<n.length;l++){if(n[l]=n[l].trim(),!n[l]){if(n.length>l+1)continue;return}s.push(n[l])}var i=Math.ceil(e/s.length);if(i>1)for(var r=s,l=1;i>l;l++)s=s.concat(r);t.find(".js-form").hide();var m=t.find(".js-log").val("").show(),d="";t.find(".js-cancel").hide(),t.find(".js-start").hide(),t.find(".js-stop").show();var c=!0;t.find(".js-stop").click(function(){c=!1});var f=0,u=function(){if(!(f>=e)&&c){var t=$(o[f]).find("a[href]:has(.thumbnail)").attr("href"),n=$(o[f]).find(".media-user-username").text(),l=t.trim("/").split("/")[2],i=s[f],r=function(){d+="Successfully commented on "+l+" (@"+n+")\n",m.val(d),f++,f<o.length&&setTimeout(u,a)},v=function(t){d+="Couldn't comment on "+l+" (@"+n+")\n",m.val(d),f++,f<o.length&&setTimeout(u,2*a)};$.get("/stats/overview",function(t){var a=$("<div/>");a.html(t);var e=a.find('meta[name="csrf-token"]').attr("content").trim();a.remove(),setTimeout(function(){$.ajax({url:"/api/media/"+l+"/comments",type:"post",data:{text:i},headers:{"X-CSRF-Token":e},dataType:"json",success:function(t){t.created_time?r():v()},fail:v})},500)},"html").fail(function(){v()})}};setTimeout(u,50)}})}();

:)
 
i'm trying to write one in javascript that follows and unfollows, but i'm having some trouble with adding timing to the loop function. know what i mean? any help?
 
i'm trying to write one in javascript that follows and unfollows, but i'm having some trouble with adding timing to the loop function. know what i mean? any help?

Let me know if you get it working, i cant help you tho :(
 
Let me know if you get it working, i cant help you tho :(
I've already PM'd him and explained how to do it.
Do you need the same thing? Hit me up.
 
1 thing I don't really understand: what is max comments? I want 1 comment per post.

Also get this error at auto comment:

Mixed Content: The page at 'https://websta.me/tag/MYTAG' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://websta.me/account?a=edit'. This request has been blocked; the content must be served over HTTPS.
 
what is max comments?
There's always 1 comment per post, but "max comment" indicates how many comments you want to add in general.

Also get this error at auto comment:
I don't think it's because of my script - it doesn't load "/account?a=edit" anywhere, so Websta.me developers did something wrong.
 
I get more bugs, while I did not change anything.
Like script:
VM902:1 Uncaught ReferenceError: $ is not defined.

Auto comment:
Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '<div/>' is not a valid selector.(…)
 
I get more bugs, while I did not change anything.
Websta.me is broken right now. Not my fault, I hope.
Just wait for them to fix it.
 
Back
Top