Last active
December 27, 2015 13:19
-
-
Save michaloo/7332573 to your computer and use it in GitHub Desktop.
Vault web interface helper
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== | |
// @id vault-settings | |
// @name vault settings | |
// @version 0.1 | |
// @namespace | |
// @author michaloo | |
// @description | |
// @include file:///home/Tools/Vault.html | |
// @include https://getvau.lt/ | |
// @run-at document-end | |
// @require http://code.jquery.com/jquery-2.0.3.min.js | |
// ==/UserScript== | |
// set your default settings - change value to "required" or "forbidden" | |
$('input[value="required"][name="lower"]').prop("checked", true); | |
$('input[value="forbidden"][name="upper"]').prop("checked", true); | |
$('input[value="allowed"][name="number"]').prop("checked", true); | |
$('input[value="allowed"][name="dash"]').prop("checked", true); | |
$('input[value="allowed"][name="space"]').prop("checked", true); | |
$('input[value="allowed"][name="symbol"]').prop("checked", true); | |
// set password length, max repetition, required max | |
$("#vlength").val(1); | |
$("#repeat").val(1); | |
$("#required").val(1); | |
// hide the generated password by default | |
$("#word").attr("type", "password"); | |
// show and select the password for copying | |
$('#word').click(function(){ | |
$("#word").attr("type", "text"); | |
$("#word").select(); | |
}); | |
// hide it again on blur | |
$('#word').bind('blur', function(){ | |
$("#word").attr("type", "password"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a User Script created with Firefox Scriptish Addon, but it seems that it's also working on Google Chrome with Tampermonkey Extension.
It is a helper for web interface of vault - simple password generator.
It does two things: