Created
May 5, 2020 07:46
-
-
Save mkloouo/b4bce6558c9833bb30caf01dd7aa771c to your computer and use it in GitHub Desktop.
messes with TikTok profile :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function messWithTikTokProfile() { | |
Array.prototype.filter | |
.call( | |
document.getElementsByClassName('count-infos')[0].children, | |
(item) => { | |
return item.tagName === 'STRONG'; | |
}) | |
.forEach((item) => item.innerText = Math.floor(Math.random() * 10 + 1)); | |
Array.prototype.forEach | |
.call(document.querySelectorAll('strong[class~="video-count"]'), | |
(item) => item.innerText = Math.floor(Math.random() * 100 + 20)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment