Created
December 20, 2024 17:08
-
-
Save mrbusche/e3652b1652888316a44120d7a403a931 to your computer and use it in GitHub Desktop.
Visually remove all movies that are not 'Leaving Soon' on netflix.com
This file contains hidden or 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
const listItems = document.querySelectorAll('.ptrack-content'); | |
const listItemsArray = Array.from(listItems); | |
for (const element of listItemsArray) { | |
const context = element.dataset.uiTrackingContext; | |
if (!context.includes('leaving.soon')) { | |
element.parentElement.removeChild(element) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment