mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-11-10 05:04:13 +00:00
Discogs: Update various element selectors
Label pages are now dynamically loaded in the same way as the artist pages, so the release listing selector has been moved into the function called by setInterval.
This commit is contained in:
parent
c71fd0ef41
commit
1e3a6c8193
1 changed files with 10 additions and 8 deletions
|
@ -249,18 +249,20 @@ function insertMBLinks(current_page_key) {
|
|||
// profile text and relationships
|
||||
add_mblinks($root, 'div[class^=info_]', ['artist', 'label']);
|
||||
setInterval(() => {
|
||||
// dynamically paged and filterable (master) release listing
|
||||
add_mblinks($root, 'div[class^=textWithCovers_]', ['artist', 'label', 'master', 'release']);
|
||||
// dynamically loaded, paged and filterable (master) release listing
|
||||
add_mblinks($root, 'table[class^=releases_]', ['artist', 'label', 'master', 'release']);
|
||||
// dynamically expanded master release
|
||||
add_mblinks($root, 'tr[class^=versions_]', ['label', 'release']);
|
||||
add_mblinks($root, 'tr[class^=versionsTextWithCoversRow_]', ['label', 'release']);
|
||||
}, 1500);
|
||||
} else if (current_page_info.type === 'label') {
|
||||
// profile text and relationships
|
||||
add_mblinks($root, 'div.profile', ['artist', 'label']);
|
||||
// static, paged (master) release listing
|
||||
add_mblinks($root, '#label_wrap', ['artist', 'master', 'release']);
|
||||
// dynamically expanded master release
|
||||
setInterval(() => add_mblinks($root, 'tr.sub.release', ['artist', 'release']), 1000);
|
||||
add_mblinks($root, 'div[class^=info_]', ['artist', 'label']);
|
||||
setInterval(() => {
|
||||
// dynamically loaded and paged (master) release listing
|
||||
add_mblinks($root, 'table[class^=labelReleasesTable_]', ['artist', 'master', 'release']);
|
||||
// dynamically expanded master release
|
||||
add_mblinks($root, 'tr[class^=versionsTextWithCoversRow_', ['artist', 'release']);
|
||||
}, 1500);
|
||||
} else if (current_page_info.type === 'master') {
|
||||
// master release artist
|
||||
add_mblinks($root, 'h1', ['artist']);
|
||||
|
|
Loading…
Reference in a new issue