Advertisement
arie_cristianD

delete_share_count_js

Jul 25th, 2023
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function($){
  2.    $(document).ready(function() {
  3.      $(".share_count").each(function() {
  4.        var iconElement = $(this).find("i");
  5.        var text = $(this).text();
  6.        var textWithoutNumber = text.replace(/\d+\s+shares/, " shares");
  7.        $(this).text(textWithoutNumber);
  8.        $(this).prepend(iconElement);
  9.      });
  10.    });
  11. })(jQuery);
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement