Skip to content

Instantly share code, notes, and snippets.

@theY4Kman
Created August 15, 2013 14:57
Show Gist options
  • Select an option

  • Save theY4Kman/6241512 to your computer and use it in GitHub Desktop.

Select an option

Save theY4Kman/6241512 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Hive passwords utilities
// @description Copies to clipboard upon Reveal
// @match https://hive.hivelocity.net/admin/passwords/password/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @grant GM_setClipboard
// @copyright 2013, Zach "theY4Kman" Kanzler
// ==/UserScript==
$('input[type=password]').siblings('a').click(function() {
var $this = $(this);
var $input = $this.siblings('input');
if ($input.attr('type') == 'text') {
GM_setClipboard($input.val());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment