1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[SCRIPT] Free Instagram/Websta automation

Discussion in 'Instagram' started by 5zz, Jun 7, 2016.

  1. 5zz

    5zz Newbie

    Joined:
    May 23, 2016
    Messages:
    45
    Likes Received:
    15
    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)
    [​IMG]
    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. :)
     
    • Thanks Thanks x 8
  2. dzyothwrld

    dzyothwrld Registered Member

    Joined:
    Apr 14, 2016
    Messages:
    86
    Likes Received:
    3
    Do you have a script for liking on the new iconosquare or another instagram viewer other than websta? Thanks
     
  3. 5zz

    5zz Newbie

    Joined:
    May 23, 2016
    Messages:
    45
    Likes Received:
    15
    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?
     
  4. dzyothwrld

    dzyothwrld Registered Member

    Joined:
    Apr 14, 2016
    Messages:
    86
    Likes Received:
    3
    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.
     
  5. Soundoffwon2

    Soundoffwon2 Newbie

    Joined:
    Dec 25, 2013
    Messages:
    15
    Likes Received:
    0
    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!
     
  6. pinefresh281

    pinefresh281 Newbie

    Joined:
    Jul 15, 2015
    Messages:
    4
    Likes Received:
    0
    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! :)
     
  7. Imperials

    Imperials Registered Member

    Joined:
    May 21, 2016
    Messages:
    55
    Likes Received:
    13
    Location:
    On Instagram... #Obsessed
    I just tried the likes one and worked!! Tysm!!
     
  8. afreenv

    afreenv BANNED BANNED

    Joined:
    Sep 2, 2015
    Messages:
    166
    Likes Received:
    35
    Gender:
    Female
    PM me the detail
     
  9. aftershock9

    aftershock9 Junior Member

    Joined:
    Jun 14, 2016
    Messages:
    100
    Likes Received:
    16
    Gender:
    Male
    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?
     
  10. nagan

    nagan Newbie

    Joined:
    Nov 28, 2010
    Messages:
    23
    Likes Received:
    2
    thank you 5zz... liking worked great..

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

    thanks in advance
     
  11. 5zz

    5zz Newbie

    Joined:
    May 23, 2016
    Messages:
    45
    Likes Received:
    15
    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)}})}();
    :)
     
  12. washand

    washand Regular Member

    Joined:
    Jun 19, 2016
    Messages:
    288
    Likes Received:
    28
    Cool
     
  13. coltreign

    coltreign Junior Member

    Joined:
    May 13, 2016
    Messages:
    148
    Likes Received:
    29
    Occupation:
    I Do AdWords
    Location:
    The Internet
    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?
     
  14. l0m1S

    l0m1S Regular Member

    Joined:
    Oct 21, 2015
    Messages:
    209
    Likes Received:
    15
    Occupation:
    Marketing
    Location:
    Buenos Aires
    Let me know if you get it working, i cant help you tho :(
     
  15. 5zz

    5zz Newbie

    Joined:
    May 23, 2016
    Messages:
    45
    Likes Received:
    15
    I've already PM'd him and explained how to do it.
    Do you need the same thing? Hit me up.
     
  16. washand

    washand Regular Member

    Joined:
    Jun 19, 2016
    Messages:
    288
    Likes Received:
    28
    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.
     
  17. 5zz

    5zz Newbie

    Joined:
    May 23, 2016
    Messages:
    45
    Likes Received:
    15
    There's always 1 comment per post, but "max comment" indicates how many comments you want to add in general.

    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.
     
  18. washand

    washand Regular Member

    Joined:
    Jun 19, 2016
    Messages:
    288
    Likes Received:
    28
    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.(…)
     
  19. 5zz

    5zz Newbie

    Joined:
    May 23, 2016
    Messages:
    45
    Likes Received:
    15
    Websta.me is broken right now. Not my fault, I hope.
    Just wait for them to fix it.
     
  20. BillTomy

    BillTomy Jr. VIP Jr. VIP

    Joined:
    Sep 28, 2015
    Messages:
    1,365
    Likes Received:
    187
    Home Page: