Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ==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