Last active
July 7, 2017 03:12
-
-
Save BrianCanFixIT/2f3635f9d047316954943ba50c17a9f7 to your computer and use it in GitHub Desktop.
payment-express.net Allow paste into check information fields
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 Sacramento County Payments Enable Paste | |
// @namespace paymentexpress.BrianCanFixIT | |
// @description payment-express.net Allow paste into check account information fields | |
// @downloadURL https://gist.github.com/BrianCanFixIT/2f3635f9d047316954943ba50c17a9f7/raw/payment_express.user.js | |
// @include https://www.payment-express.net/* | |
// @version 1.2 | |
// @grant none | |
// It's too bad that people create crappy websites that encourage user-error and make things harder for people to use. | |
// The script below will remove the class "js-noclip" from the form/input fields; this class prevents pasting into the | |
// 'Account #' and 'Confirm Account #' fields. All other protections are kept in place (no copying data from the fields, | |
// obviscation of the fields, etc). This is a very simple script and as you can see beloe the only change is to find and | |
// replace the 'js-noclip' class with nothing. | |
// ==/UserScript== | |
document.getElementById("control-group-ec_account_number").className = document.getElementById("control-group-ec_account_number").className.replace("js-noclip", ""); | |
document.getElementById("ec_account_number").className = document.getElementById("ec_account_number").className.replace("js-noclip", ""); | |
document.getElementById("control-group-ec_confirm_account_number").className = document.getElementById("control-group-ec_confirm_account_number").className.replace("js-noclip", ""); | |
document.getElementById("ec_confirm_account_number").className = document.getElementById("ec_confirm_account_number").className.replace("js-noclip", ""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment