aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rw-r--r--chrome-get-urls-from-tabs-in-windows.html6
-rw-r--r--chrome-get-urls-from-tabs-in-windows.js2
3 files changed, 6 insertions, 4 deletions
diff --git a/TODO b/TODO
index fe6d740..3a32400 100644
--- a/TODO
+++ b/TODO
@@ -3,7 +3,7 @@ TODO
2014.03.30:
v Better fonts
-- Move download link
+v Move download link
v Create options page
- Default behaviour option: icon click downloads file or opens page
v Format option: text, HTML, YAML
diff --git a/chrome-get-urls-from-tabs-in-windows.html b/chrome-get-urls-from-tabs-in-windows.html
index 90e4013..a19819a 100644
--- a/chrome-get-urls-from-tabs-in-windows.html
+++ b/chrome-get-urls-from-tabs-in-windows.html
@@ -4,16 +4,18 @@
<title>Chrome Copy URLs From All Tabs</title>
<style>
- html, body { height: 100%; }
+ html, body { height: 100%; font-family: Helvetica, sans-serif; }
textarea { width: 600px; height: 90%; font: 13px/1.6 Courier, monospace; }
- #header { font: bold 18px Helvetica, sans-serif; }
+ #header { font-size: 18px; font-weight: bold; }
</style>
</head>
<body>
<p id="header"></p>
+ <p id="download-link"></p>
+
<textarea id="copy-area"></textarea>
<script src="chrome-get-urls-from-tabs-in-windows.js"></script>
diff --git a/chrome-get-urls-from-tabs-in-windows.js b/chrome-get-urls-from-tabs-in-windows.js
index aefab19..46a9e8a 100644
--- a/chrome-get-urls-from-tabs-in-windows.js
+++ b/chrome-get-urls-from-tabs-in-windows.js
@@ -87,7 +87,7 @@ create_download_link = function(text) {
download_link.setAttribute('download', filename);
download_link.innerHTML = 'Download file';
- document.querySelector('body').appendChild(download_link);
+ document.getElementById('download-link').appendChild(download_link);
});
};