Skip to content

Instantly share code, notes, and snippets.

@shanehh
Created March 20, 2021 04:17
Show Gist options
  • Save shanehh/1580e6e109ceb35fe82dabcde1ae2a2e to your computer and use it in GitHub Desktop.
Save shanehh/1580e6e109ceb35fe82dabcde1ae2a2e to your computer and use it in GitHub Desktop.
Bro, don't pollute my clipboard!
// ==UserScript==
// @name c
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.zhihu.com/question/*
// @match https://www.douban.com/note/*
// @grant none
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
setTimeout(() => {
document.addEventListener("copy", function (event) {
event.stopPropagation();
}, true);
}, 2000)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment