diff --git a/goodies/chrome-extension/popup/js/script.js b/goodies/chrome-extension/popup/js/script.js
index cb1df99..cec6d7a 100644
--- a/goodies/chrome-extension/popup/js/script.js
+++ b/goodies/chrome-extension/popup/js/script.js
@@ -1,6 +1,6 @@
-$("#button-download").click(function() {
+$("#button--download").click(function() {
- $("#button-download").addClass("lock");
+ $("#button--download").addClass("lock");
// Query active tab in active window...
chrome.windows.getCurrent(function(w) {
@@ -25,8 +25,14 @@ chrome.storage.local.get(['tubio_address'], function(result) {
$("#tubio-address").val(result.tubio_address);
});
-$("#button-save-settings").click(function() {
+$("#button--save-settings").click(function() {
chrome.storage.local.set({
tubio_address: $("#tubio-address").val()
});
});
+
+$("#button--take-me-home").click(function() {
+ chrome.storage.local.get(['tubio_address'], function(result) {
+ chrome.tabs.create({url: result.tubio_address});
+ });
+});
diff --git a/goodies/chrome-extension/readme.md b/goodies/chrome-extension/readme.md
index cf9d5e3..daaead4 100644
--- a/goodies/chrome-extension/readme.md
+++ b/goodies/chrome-extension/readme.md
@@ -1,5 +1,5 @@
# Chrome Extension for Tubio
Adds a context-menu and a popup to download videos instantly.
-It does not open tubio for you. It just downloads the videos.
+It does not open Tubio for you. It just downloads the videos. But you can click a button in the extensions popup that takes you to Tubio.
For now this is not on the chrome store, but you can easily install unlisted extensions from source as shown [here](https://developer.chrome.com/docs/extensions/mv2/faq/#:~:text=Click%20the%20Chrome%20menu%20icon,a%20packaged%20extension%2C%20and%20more.).