[musicbrainz] Make related links open in new tab

This commit is contained in:
SuperSaltyGamer
2023-09-01 14:54:07 +03:00
parent 377af18179
commit bd94a9d550
4 changed files with 9 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -25,5 +25,5 @@ function addSidebarElement(refSelector: string, index: number, icon: string, htm
}
export function addReleaseSidebarButton(index: number, icon: string, title: string, link: string): HTMLElement {
return addSidebarElement(".release-information", index, icon, `<a href="${link}">${title}</a>`);
return addSidebarElement(".release-information", index, icon, `<a target="_blank" href="${link}">${title}</a>`);
}

View File

@@ -1,7 +1,7 @@
// ==UserScript==
// @namespace ame-musicbrainz
// @name Ame (MusicBrainz)
// @version 1.6.2
// @version 1.6.3
// @author SuperSaltyGamer
// @run-at document-end
// @match https://musicbrainz.org/*