aboutsummaryrefslogtreecommitdiffstats
path: root/fetchyoutube.js
diff options
context:
space:
mode:
Diffstat (limited to 'fetchyoutube.js')
-rw-r--r--fetchyoutube.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetchyoutube.js b/fetchyoutube.js
index c99b071..a2824ab 100644
--- a/fetchyoutube.js
+++ b/fetchyoutube.js
@@ -37,7 +37,7 @@
function fetch (arg) {
let doc = content.document;
- if (!doc.location.href.match(/http:\/\/(?:[^.]+\.)?youtube\.com\/watch/))
+ if (!doc.location.href.match(/^http:\/\/(?:[^.]+\.)?youtube\.com\/watch/))
return;
let filepath = arg.string;
let dir = options.getPref('browser.download.dir');