Skip to content

Instantly share code, notes, and snippets.

@babico
Created February 29, 2024 16:02
Show Gist options
  • Save babico/41d23f93289c7223ab26771cc4393367 to your computer and use it in GitHub Desktop.
Save babico/41d23f93289c7223ab26771cc4393367 to your computer and use it in GitHub Desktop.
function x() {
let items = $(".grid-item.col-md-3.col-sm-4.fade-watched-on");
console.log("xd", items.length);
$.each(items, function(index, item) {
if (
(items.length - 1) == index
||
parseInt(document.querySelectorAll("div.interactions > a > span")[0].innerText.replace(",", "")) <= 60
) {
console.log("xd", 3);
return false;
}
historyRemove($(this).closest('.grid-item'), parseInt(item.attributes["data-history-id"].value));
});
}
x();
setTimeout(() => { console.log("xd", 1); }, 3000);
window. Refresh();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment