Skip to content

Instantly share code, notes, and snippets.

@yomeshgupta
yomeshgupta / linkedin-connections-processing.js
Last active February 23, 2021 07:05
Accept or Reject all connection requests on LinkedIn
// Go to https://www.linkedin.com/mynetwork/invitation-manager/ and run the following code
// For more amazing content, visit -- https://bit.ly/devtools-yt
var ACCEPT_BTN_SELECTOR = ".invitation-card__action-btn:nth-of-type(2)";
var REJECT_BTN_SELECTOR = ".invitation-card__action-btn:nth-of-type(1)";
var DELAY = 2000; // in miliseconds | 2 seconds delay between each request accept
var ACCEPT = true; // set to false if you want to reject all connections
function sleep() {
@yomeshgupta
yomeshgupta / form.jsx
Created August 17, 2018 07:41
An example of form handling using React and Redux
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { updateUser } from '../actions/userActions';
class Form extends Component {
constructor(props) {
super(props);
this.state = {};
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);