aboutsummaryrefslogtreecommitdiffstats
path: root/page.js
diff options
context:
space:
mode:
authorTeddy Wing2014-03-24 18:32:11 -0400
committerTeddy Wing2014-03-24 18:32:11 -0400
commitb5f69d0b3426e86507a88e6f3bda5e758a8fd497 (patch)
tree3f6027e712cbfd689432532688fb4c6d325471a7 /page.js
downloadchrome-copy-urls-from-all-tabs-b5f69d0b3426e86507a88e6f3bda5e758a8fd497.tar.bz2
Initial commit: initial working version
From 2014.03.17. Clicking on the extension's icon button opens a new tab containing a textarea with all URLs in open tabs collected by window.
Diffstat (limited to 'page.js')
-rw-r--r--page.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/page.js b/page.js
new file mode 100644
index 0000000..e8a60d2
--- /dev/null
+++ b/page.js
@@ -0,0 +1,16 @@
+(function() {
+ var d = new Date();
+ var date_string =
+ d.getFullYear()
+ + ''
+ + ('0' + (d.getMonth() + 1)).slice(-2)
+ + ''
+ + ('0' + d.getDate()).slice(-2)
+ + '-'
+ + d.getHours()
+ + 'h'
+ + d.getMinutes();
+
+ var header_text = 'chrome-tabs-' + date_string;
+ document.getElementById('header').innerHTML = header_text;
+})(); \ No newline at end of file