Commit de554f46 authored by Nate Fox's avatar Nate Fox
Browse files

0.1.3 - see changelog

parent 846eff7a
# Changelog
## 0.1.3 - 2016-03-25
- Cleaned up internals a bit, moved old code to jquery
- Updated documentation a bit
## 0.1.2 - 2016-03-24
- Added support for MS based RDP links (set it as default) [#1]
- Fixed errant RDP/SSH in links (again)
## 0.1.1 - 2016-03-23
- Fixed errant RDP/SSH in links
## 0.1.1 - 2016-03-22
- Initial Release
......@@ -3,5 +3,10 @@ https://chrome.google.com/webstore/detail/aws-ssh-rdp-links/hgholhakdlbjengncomc
### Adds SSH or RDP links to your AWS console
This chrome extension looks at the Platform field and if it says 'Windows' then it adds RDP links to all the applicable fields that have IPs or hostnames.
This chrome extension looks at the Platform field and if it says 'windows' then it adds RDP links to all the applicable fields that have IPs or hostnames.
Otherwise, it adds SSH links to all the fields.
### RDP Link Style
- **MS** uses a link like rdp://full%20address=s:HOST:3389&username=s:USER - this works for the Microsoft RDP clients. Full documentation is here: https://technet.microsoft.com/en-us/library/dn690096.aspx
- **CoRD** uses a link like rdp://USER@HOST - and is good for OSX's CoRD. Full documentation here: https://github.com/dorianj/CoRD/wiki/Command-Line-Use
var default_data = {
rdp_user: "Administrator",
ssh_user: "ec2-user",
always_override_user: false,
rdp_style: "MS"
rdp_style: "MS",
rdp_user: "Administrator",
ssh_user: "ec2-user"
}
\ No newline at end of file
......@@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "AWS SSH RDP Links",
"description": "Adds SSH and RDP links to the AWS Console",
"version": "0.1.2",
"version": "0.1.3",
"content_scripts": [
{
"matches": [
......
......@@ -43,7 +43,7 @@
<div>
<a href="https://github.com/natefox/aws-ssh-rdp-links">Website</a> |
<a href="https://github.com/natefox/aws-ssh-rdp-links/issues">Report a bug?</a>
<a href="https://github.com/natefox/aws-ssh-rdp-links/issues">Report a bug?</a> | Ver: <span id="version"></span>
</div>
</body>
</html>
\ No newline at end of file
// Saves options to chrome.storage.sync.
function save_options() {
var rdp_user = document.getElementById('rdp_user').value;
var ssh_user = document.getElementById('ssh_user').value;
var always_override_user = document.getElementById('always_override_user').checked;
var rdp_style = $("rdp_style").val();
var always_override_user = $("#always_override_user").is(":checked");
var rdp_style = $("#rdp_style").val();
var rdp_user = $("#rdp_user").val();
var ssh_user = $("#ssh_user").val();
chrome.storage.sync.set({
rdp_user: rdp_user,
ssh_user: ssh_user,
always_override_user: always_override_user,
rdp_style: rdp_style
rdp_style: rdp_style,
rdp_user: rdp_user,
ssh_user: ssh_user
}, function() {
window.close()
});
......@@ -17,15 +17,18 @@ function save_options() {
// Restores select box and checkbox state using the preferences
function load_options() {
$("#save").click(save_options);
manifest = chrome.runtime.getManifest();
$("#version").html(manifest.version);
chrome.storage.sync.get(default_data, function(items) {
document.getElementById('rdp_user').value = items.rdp_user;
document.getElementById('ssh_user').value = items.ssh_user;
document.getElementById('always_override_user').checked = items.always_override_user;
$("#always_override_user").prop("checked", items.always_override_user);
$("#rdp_style").val(items.rdp_style);
$("#rdp_user").val(items.rdp_user);
$("#ssh_user").val(items.ssh_user);
});
}
document.addEventListener('DOMContentLoaded', load_options);
$( document ).ready(function() {
load_options();
$("#save").click(save_options);
});
......@@ -4,6 +4,8 @@ chrome.storage.onChanged.addListener(function(){
get_storage();
})
// I really want something like this!
// http://stackoverflow.com/a/3597640/517606
document.addEventListener('DOMContentLoaded', function() {
$(document).click(function(){
if (window.location.hash.startsWith("#Instances"))
......@@ -11,9 +13,6 @@ document.addEventListener('DOMContentLoaded', function() {
})
});
// I really want something like this!
// http://stackoverflow.com/a/3597640/517606
function get_storage() {
chrome.storage.sync.get(default_data, function(items){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment