Skip to content

Instantly share code, notes, and snippets.

@blood72
Created September 22, 2022 17:20
Show Gist options
  • Save blood72/783ef59939c5757f8a3fc8390f9a0d9a to your computer and use it in GitHub Desktop.
Save blood72/783ef59939c5757f8a3fc8390f9a0d9a to your computer and use it in GitHub Desktop.
Tistory copy without source
// ==UserScript==
// @name Tistory copy without source
// @version 1.0.0
// @description remove source when copying
// @match http://*.tistory.com/*
// @match https://*.tistory.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function () {
'use strict';
const nativeEventListener = document.addEventListener;
document.addEventListener = function (...args) {
if (args[0] === 'copy' && args[1].name === 'copyWithSource') {
return;
}
nativeEventListener.apply(this, args);
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment