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 sleep = (ms = 0) => new Promise((resolve) => setTimeout(resolve, ms)); | |
const update = () => | |
document.querySelectorAll(`[data-testid="UserCell"]`).forEach((row) => { | |
if (row.querySelector(".unfollow-button")) return; | |
const button = document.createElement("button"); | |
button.className = "unfollow-button"; | |
button.innerText = "Unfollow"; |
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 sleep = (ms = 0) => new Promise((resolve) => setTimeout(resolve, ms)); | |
const notifications = document.querySelectorAll("[aria-label*='Options']"); | |
for (const notification of notifications) { | |
notification.click(); | |
await sleep(10); | |
notification.nextElementSibling |
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 sel = (selector, base = document) => base.querySelectorAll(selector); | |
const get = (selector, base) => { | |
elements = sel(selector, base); | |
element = elements[0] || {}; | |
return element.value || element.innerText || ""; | |
}; | |
const title = get("[name='album.title']"); | |
const date = get("[name='album.release_date']"); |
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 rows = document.querySelectorAll("tr.track_row_view"); | |
let tracks = 0; | |
let hours = 0; | |
let minutes = 0; | |
let seconds = 0; | |
for (const row of rows) { | |
time = row.querySelector(".time")?.innerText; | |
if (time && time.includes(":")) { |