Skip to content

Instantly share code, notes, and snippets.

@ksharpdabu
Created December 27, 2020 15:36
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 ksharpdabu/26f15063157cc8bd292bf245aa10640b to your computer and use it in GitHub Desktop.
Save ksharpdabu/26f15063157cc8bd292bf245aa10640b to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name free-copy-on-segmentfault
// @namespace http://tampermonkey.net/
// @version 0.1
// @description free copy on segmentfault.com
// @author Alexy
// @match https://segmentfault.com/*
// @icon https://www.google.com/s2/favicons?domain=segmentfault.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.querySelectorAll("article.article").forEach(function(t) {
t.addEventListener("copy", function(t) {
event.stopPropagation();
}, true);
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment