Skip to content

Commit

Permalink
fixed the thumbnail selection to not include video links in descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicJinn committed Jun 19, 2023
1 parent 39636c4 commit 08dfc13
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mrbeastify.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ function applyOverlayToThumbnails() {
}

// Query all YouTube video thumbnails on the page that haven"t been processed yet
const thumbnailElements = document.querySelectorAll("img.yt-core-image:not(.processed)");

// Apply overlay to each thumbnail
const thumbnailElements = document.querySelectorAll("img.yt-core-image:not(.processed):not(.yt-core-attributed-string__image-element)"); // Apply overlay to each thumbnail
thumbnailElements.forEach((thumbnailElement) => {
// Apply overlay and add to processed thumbnails
let loops = Math.random() > 0.001 ? 1 : 20
Expand Down

0 comments on commit 08dfc13

Please sign in to comment.