Skip to content

Instantly share code, notes, and snippets.

View fineanmol's full-sized avatar
🎯
1% everyday! ❤

ANMOL AGARWAL fineanmol

🎯
1% everyday! ❤
View GitHub Profile
@fineanmol
fineanmol / Linkedin-invitation-accept
Created May 10, 2023 18:06
If you want to accept all invitations , input this in the console
If you want to accept all invitations , input this in the console
This has a delay of 2 Seconds on Every Invitation
var x = document.querySelectorAll('button.artdeco-button--secondary');
for (var i = 0; i < x.length; i++) {
setTimeout(function(idx) {
if (x[idx]) {
x[idx].click();
}
}, 2000 * i, i);
(() => {
let count = 0;
function getAllButtons() {
return document.querySelectorAll('button.is-following') || [];
}
async function unfollowAll() {
const buttons = getAllButtons();
@fineanmol
fineanmol / gist_sync_document.md
Created September 26, 2022 14:40
Keep Your Fork Synced

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream