Skip to content

Instantly share code, notes, and snippets.

View olphil99's full-sized avatar

Olivia Phillips olphil99

View GitHub Profile
@olphil99
olphil99 / lastfm-remove-duplicates.js
Last active August 12, 2019 04:20 — forked from sk22/lastfm-remove-duplicates.js
Last.fm duplicate scrobble deleter
let elements = Array.from(document.querySelectorAll('.chartlist-row'));
let mapp = new Map();
elements.forEach(function(elem, i, elems) {
let today = new Date(Date.now());
let elemArr = new Array(2);
let nameElement = elem.querySelector('.chartlist-name');
let timeStamp = elem.querySelector('.chartlist-timestamp');
if (timeStamp && timeStamp.textContent.includes('ago')) {