Last active
January 5, 2022 17:44
-
-
Save theY4Kman/8054da715976e1765655da4236ec4f6f to your computer and use it in GitHub Desktop.
This file contains 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 Enable paste on Quest | |
// @version 0.1 | |
// @description Enable paste on Quest diagnostics input fields | |
// @updateURL https://gist.github.com/theY4Kman/8054da715976e1765655da4236ec4f6f/raw/quest-paste.user.js | |
// @match https://myquest.questdiagnostics.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// ref: https://stackoverflow.com/a/68414487/148585 | |
var allowPaste = function(e){ | |
e.stopImmediatePropagation(); | |
return true; | |
}; | |
document.addEventListener('paste', allowPaste, true); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment