Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- let _in = 0;
- let _out = 0;
- document.querySelectorAll(".message-in").forEach(e => {
- e.querySelectorAll(".selectable-text").forEach(e => _in += (e.innerText || "").length)
- });
- document.querySelectorAll(".message-out").forEach(e => {
- e.querySelectorAll(".selectable-text").forEach(e => _out += (e.innerText || "").length)
- });
- console.log('in: ', _in);
- console.log('out: ', _out);
- })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement