Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alanhoyle/04330b8e02bcd040069f838873028a09 to your computer and use it in GitHub Desktop.
Save alanhoyle/04330b8e02bcd040069f838873028a09 to your computer and use it in GitHub Desktop.
Re-enables the password box on TreasuryDirect.gov so I can paste from my password manager
// ==UserScript==
// @name TreasuryDirect Copypasta
// @namespace https://www.treasurydirect.gov/RS/PW-Display.do
// @version 0.2
// @description Allow creds to be pasted from a password manager into the TreasuryDirect login form.
// @author Dennis Stewart (update by Alan Hoyle)
// @license The Strong Style Public License https://raw.githubusercontent.com/dennisstewart/cvs-checker-py/main/LICENSE
// @match https://www.treasurydirect.gov/RS/PW-Display.do
// @match https://treasurydirect.gov/RS/PW-Display.do
// @icon https://www.google.com/s2/favicons?sz=64&domain=treasurydirect.gov
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.querySelector("input[class='pwordinput']").removeAttribute("readonly");
//thanks Jan Biniok(Tampermonkey dev) and Büchner Matthias (tutorial video maker - https://www.youtube.com/watch?v=hAeWOOJPp0o)
})();
@alanhoyle
Copy link
Author

NOTE: as of May 2023, this is no longer necessary as the imagemap keyboard for password entry is no longer part of the TreasuryDirect login page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment