Skip to content

Instantly share code, notes, and snippets.

@suhitaga
Last active December 15, 2022 20:14
Show Gist options
  • Save suhitaga/67ba6a4e0fc87f124995c143d111b60e to your computer and use it in GitHub Desktop.
Save suhitaga/67ba6a4e0fc87f124995c143d111b60e to your computer and use it in GitHub Desktop.
TikTok Stop the Clock
// This will run in the background
var videos = document.getElementsByTagName("video");
for(var i = 0; i < videos.length; i++){
videos[i].removeAttribute("autoplay");
}
/* Hiding unnecessary stuff */
div[data-e2e="upload-icon"],
div[data-e2e="video-desc"],
h4[data-e2e="video-music"],
h4[data-e2e="video-author-nickname"],
a[data-e2e="video-author-avatar"],
button[data-e2e="feed-follow"],
a[data-e2e="nav-live"],
.tiktok-r7q2jo-DivTopicContainer,
.tiktok-1s9zjva-DivUserContainer,
.tiktok-36zwab-DivDiscoverContainer,
.tiktok-1l1kja7-DivFooterContainer,
.tiktok-1vrbodl-DivPromotionContainer
{
display: none !important;
}
div[data-e2e="recommend-list-item-container"]{
width: 750px !important;
height: 100vh !important;
max-width: 800px !important;
}
div[data-e2e="feed-video"]{
height: 80vh !important;
}
@suhitaga
Copy link
Author

suhitaga commented Dec 12, 2022

stops the autplaying videos on tiktok, and makes it look less jarring/filled with content

make sure to toggle the boost setting for loading to before page loads!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment