Advertisement
croc

Scrape Discord Messages In 1 Line of JS

Sep 3rd, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Open the developer tools by pressing Ctrl + Shift + I and then switch to the Console tab.
  2. // Paste in the following two lines in the console and you should see all the currently visible messages of the currently selected channel printed in the console.
  3.  
  4. document.querySelectorAll('.containerCozyBounded-1rKFAn.containerCozy-jafyvG.container-1YxwTf').forEach(msg => { console.log(msg.innerText) });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement