Created
September 22, 2022 17:20
-
-
Save blood72/783ef59939c5757f8a3fc8390f9a0d9a to your computer and use it in GitHub Desktop.
Tistory copy without source
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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