rjjcheats

ML UID & SID GRABBER JS

Apr 22nd, 2020
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let cmmntElement = "";
  2. let cmmntLen ="";
  3. let users = "";
  4. let userCount = "";
  5.  
  6. var injectDesign = '<div class="mlmolo" style="'+
  7. '    padding: 10px;'+
  8. '"><label style="'+
  9. '    font-size: 9px;'+
  10. '    margin: 0px;'+
  11. '    color: #3B5998;'+
  12. '    font-weight: 800;'+
  13. '    margin: 5px;'+
  14. '">MLMOLO SCRIPT</label><button onclick="start()" style="'+
  15. '    width: 100%;'+
  16. '    border: 0px;'+
  17. 'padding: 5%;'+
  18. 'border-radius: 10px;'+
  19. 'color: white;'+
  20. 'background: #3B5998;'+
  21. '">Grab Comments </button></div>';
  22.    
  23.  
  24. alert("Comment Grabber Injected!");
  25.  
  26. findElems();
  27. function findElems(){
  28.     cmmntElement=document.querySelectorAll("div[data-sigil='comment-body']");
  29.     cmmntLen= cmmntElement.length;
  30.     var div = document.createElement("div");
  31.     div.innerHTML = injectDesign;    
  32.     document.querySelectorAll("div[data-sigil='mufi-inline']")[0].prepend(div);
  33. }
  34. function start(){
  35.     for(let i=0;i<cmmntLen;i++){
  36.         if(cmmntElement[i]!=null){
  37.             let currentCmmnt = cmmntElement[i].innerText.replace("("," ").replace(")","");
  38.  
  39.             validateRedeemCode(currentCmmnt);
  40.         }
  41.     }
  42.     userCount = users.split(/\r\n|\r|\n/).length;
  43.     copyStringToClipboard(users);
  44.     alert("Total Users Copied : "+userCount);
  45. }
  46. function validateRedeemCode(code){
  47.     let comment = code;
  48.     if(comment!=null){
  49.         let validWord ="";
  50.         let regex = /[0-9]{6,10} {0,3}(\()*[0-9]+/g;
  51.         let isValid = comment.match(regex);
  52.         if(isValid!=null){
  53.             if(isValid.length>0){
  54.                 validWord= isValid[0];
  55.                 users=users+validWord+"\r\n";
  56.             }
  57.         }else { console.log("Current Comment not Found!"); }
  58.        
  59.     }
  60. }
  61. function copyStringToClipboard (string) {
  62.     function handler (event){
  63.         event.clipboardData.setData('text/plain', string);
  64.         event.preventDefault();
  65.         document.removeEventListener('copy', handler, true);
  66.     }
  67.     document.addEventListener('copy', handler, true);
  68.     document.execCommand('copy');
  69. }
Advertisement
Add Comment
Please, Sign In to add comment