Created
August 15, 2013 14:57
-
-
Save theY4Kman/6241512 to your computer and use it in GitHub Desktop.
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 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