Skip to content

Instantly share code, notes, and snippets.

@mkloouo
Created May 5, 2020 07:46
Show Gist options
  • Save mkloouo/b4bce6558c9833bb30caf01dd7aa771c to your computer and use it in GitHub Desktop.
Save mkloouo/b4bce6558c9833bb30caf01dd7aa771c to your computer and use it in GitHub Desktop.
messes with TikTok profile :)
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