From 452f3db2174131cd72df8080ca824492a523de34 Mon Sep 17 00:00:00 2001 From: jesus2099 Date: Thu, 19 May 2016 14:23:22 +0200 Subject: [PATCH] =?UTF-8?q?Avoiding=20the=20local=20reserved=20word=20?= =?UTF-8?q?=E2=80=9Clocation=E2=80=9D=20override.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- set-recording-comments.user.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/set-recording-comments.user.js b/set-recording-comments.user.js index afc3bdc..5994d25 100644 --- a/set-recording-comments.user.js +++ b/set-recording-comments.user.js @@ -61,8 +61,7 @@ function setRecordingComments() { }); }, 1000); - var location = window.location.pathname; - if (!location.match(/\/release\/[a-f\d]{8}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{12}$/)) { + if (!location.pathname.match(/^\/release\/[a-f\d]{8}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{12}$/)) { return; }