Skip to content

Instantly share code, notes, and snippets.

View iamvinny's full-sized avatar
🏠
Working from home

Vinny iamvinny

🏠
Working from home
View GitHub Profile
This file has been truncated, but you can view the full file.
/*! For license information please see main.0bc3dd16.js.LICENSE */ ! function(e) {
function t(t) {
for (var n, i, o = t[0], a = t[1], s = 0, c = []; o.length > s; s++) Object.prototype.hasOwnProperty.call(r, i = o[s]) && r[i] && c.push(r[i][0]), r[i] = 0;
for (n in a) Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n]);
for (u && u(t); c.length;) c.shift()()
}
var n = {},
r = {
1: 0
};
@iamvinny
iamvinny / gist:bfbba07e188c4649747b8fd701b56428
Created April 8, 2024 00:15
Cancel all sent friend requests on facebook
// Select all elements with the 'aria-label' attribute set to 'Cancel request'
const cancelButtons = Array.from(document.querySelectorAll('[aria-label="Cancel request"]'));
console.log(cancelButtons.length, 'Cancel request buttons found');
// Function to click each button with a specified interval
function clickButtonsWithInterval(buttons, interval) {
let index = 0;
const intervalId = setInterval(() => {