Skip to content

Instantly share code, notes, and snippets.

@brandonhellman
Last active November 3, 2017 01:04
Show Gist options
  • Save brandonhellman/d4ca52cb57082033f82ba1cfef21c273 to your computer and use it in GitHub Desktop.
Save brandonhellman/d4ca52cb57082033f82ba1cfef21c273 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Enable Linkedin Copy
// @namespace https://github.com/Kadauchi
// @version 1.0.0
// @description Allows you to copy and paste on linkedin.com
// @author Kadauchi
// @icon http://i.imgur.com/oGRQwPN.png
// @include https://www.linkedin.com/*
// ==/UserScript==
new MutationObserver((mutations) => {
for (const element of document.querySelectorAll(`a.ember-view`)) {
element.replaceWith(...element.childNodes);
}
}).observe(document, { childList: true, subtree: true });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment