Skip to content

Instantly share code, notes, and snippets.

@vedant1811
Last active November 28, 2019 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vedant1811/fffd4bb6c027b0219c2dc77e28f35322 to your computer and use it in GitHub Desktop.
Save vedant1811/fffd4bb6c027b0219c2dc77e28f35322 to your computer and use it in GitHub Desktop.
// Paste this in linkedin my connections to toggle all "remove connection" menu and auto accept the confirmation dialog
Array.from(document.querySelectorAll(".mn-connection-card__dropdown-trigger")).forEach(button=>button.click())
window.setInterval(function(){
document.querySelectorAll('[data-control-name="confirm_removed"]')[0].click()
}, 100);
// enable selection in websites
(function() {
'use strict';
let style = document.createElement('style');
style.innerHTML = '*{ user-select: auto !important; }';
document.body.appendChild(style);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment