Skip to content

Instantly share code, notes, and snippets.

@mrbusche
Created December 20, 2024 17:08
Show Gist options
  • Save mrbusche/e3652b1652888316a44120d7a403a931 to your computer and use it in GitHub Desktop.
Save mrbusche/e3652b1652888316a44120d7a403a931 to your computer and use it in GitHub Desktop.
Visually remove all movies that are not 'Leaving Soon' on netflix.com
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