From 478ac7d1e264d289ec8bcb3cdab7b7e47b37f2c5 Mon Sep 17 00:00:00 2001 From: Luciano Paciornick <724969+cobrabr@users.noreply.github.com> Date: Sun, 23 Apr 2023 17:30:46 -0400 Subject: [PATCH] Fix lint and formatting issues on existing code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I didn't change this part of the code, but since Prettier and ESLint decided to complain about it (and fix it on my local), might as well commit it. 😀 --- mb_ui_enhancements.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mb_ui_enhancements.user.js b/mb_ui_enhancements.user.js index 6eaacf3..ebcc58d 100644 --- a/mb_ui_enhancements.user.js +++ b/mb_ui_enhancements.user.js @@ -1,4 +1,4 @@ -// ==UserScript== +// ==UserScript== // @name Musicbrainz UI enhancements // @description Various UI enhancements for Musicbrainz // @version 2023.4.23.1 @@ -264,7 +264,7 @@ $(document).ready(function () { } else if (link.href.match(/apple.com/)) { id = new URL(link.href).pathname.split('/', 5).slice(-1)[0].replace('id', ''); fragment = 'itu'; - country = new URL(link.href).pathname.split('/',2)[1]; + country = new URL(link.href).pathname.split('/', 2)[1]; } else if (link.href.match(/spotify.com/)) { id = new URL(link.href).pathname.split('/', 5).slice(-1)[0]; fragment = 'spf';