Skip to content

Instantly share code, notes, and snippets.

View vincerubinetti's full-sized avatar
💭
my hips don’t lie, they commit perjury

Vincent Rubinetti vincerubinetti

💭
my hips don’t lie, they commit perjury
View GitHub Profile
@vincerubinetti
vincerubinetti / twitter-unfollow.js
Last active November 25, 2024 02:53
Run in dev console on Twitter followers page to get buttons to easily force users to unfollow you
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";
@vincerubinetti
vincerubinetti / clear-netlify-notifications.js
Last active March 4, 2025 22:27
Run in dev console to clear all "deploy notifications" in your Netlify site
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
@vincerubinetti
vincerubinetti / get-bandcamp-album-metadata.js
Last active November 14, 2024 00:58
Run in dev console on Bandcamp album edit page to download metadata JSON
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']");
@vincerubinetti
vincerubinetti / get-bandcamp-album-length.js
Last active April 19, 2025 03:09
Run in dev console on Bandcamp album page to calculate length
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(":")) {