Skip to content

Instantly share code, notes, and snippets.

@theY4Kman
Last active January 5, 2022 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theY4Kman/8054da715976e1765655da4236ec4f6f to your computer and use it in GitHub Desktop.
Save theY4Kman/8054da715976e1765655da4236ec4f6f to your computer and use it in GitHub Desktop.
// ==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