Patrickc350

steam comment script

Feb 3rd, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. USE GOOGLE CHROME >Go to your friendslist >Right click anywhere on the page > Inspect element > Console > Paste the script below and hit enter
  2.  
  3. ------------------------------------------------------------------------------------------------------------------------------------
  4.  
  5.  
  6.  
  7. jQuery(".manage_actions_buttons").after('<div class="commentthread_entry"><div class="commentthread_entry_quotebox"><textarea rows="1" class="commentthread_textarea" id="comment_textarea" placeholder="Add a comment" style="overflow: hidden; height: 20px;"></textarea></div><div class="commentthread_entry_submitlink" style=""><a class="btn_grey_black btn_small_thin" href="javascript:CCommentThread.FormattingHelpPopup( \'Profile\' );"><span>Formatting help</span></a> &nbsp; <span class="emoticon_container"><span class="emoticon_button small" id="emoticonbtn"></span></span><span class="btn_green_white_innerfade btn_small" id="comment_submit"><span>Post Comments to Selected Friends</span></span></div></div><div id="log"><span id="log_head"></span><span id="log_body"></span></div>');
  8. new CEmoticonPopup( $J('#emoticonbtn'), $J('#commentthread_Profile_0_textarea') );
  9. jQuery("#comment_submit").click(function() {
  10. const total = jQuery(".friendCheckbox:checked").length;
  11. const msg = jQuery("#comment_textarea").val();
  12. if (total > 0 && msg.length > 0) {
  13. jQuery("#log_head, #log_body").html("");
  14. jQuery(".friendCheckbox:checked").each(function(i) {
  15. let profileID = this.getAttribute("data-steamid");
  16. (function(i, profileID) {
  17. setTimeout(function() {
  18. jQuery.post("//steamcommunity.com/comment/Profile/post/" + profileID + "/-1/", { comment: msg, count: 6, sessionid: g_sessionID }, function(response) {
  19. if (response.success === false) {
  20. jQuery("#log_body")[0].innerHTML += "<br>" + response.error;
  21. } else {
  22. jQuery("#log_body")[0].innerHTML += "<br>Successfully posted comment on <a href='http://steamcommunity.com/profiles/" + profileID + "'>http://steamcommunity.com/profiles/" + profileID + "</a>.";
  23. }
  24. }).fail(function() {
  25. jQuery("#log_body")[0].innerHTML += "<br>Failed to post comment on <a href='http://steamcommunity.com/profiles/" + profileID + "'>http://steamcommunity.com/profiles/" + profileID + "</a>.";
  26. }).always(function() {
  27. jQuery("#log_head").html("<br><b>Processed " + (i+1) + " out of " + total + " friends.<b>");
  28. });
  29. }, i * 6000);
  30. })(i, profileID);
  31. });
  32. } else {
  33. alert("Please make sure you entered a message and selected 1 or more friends.");
  34. }
  35. });
Advertisement
Add Comment
Please, Sign In to add comment