Commit graph

1028 commits

Author SHA1 Message Date
yyoung
9111696c7a
vgmdb_importer: split multiple catalog numbers
While VGMdb uses '~' to annotate multiple catalog numbers,
it's encourged to split it in MB.
2022-04-29 09:50:36 +08:00
Kai
2d2f43211a mb_relationship_shortcuts.user.js: update and reduce jquery, minor improvements 2022-04-26 14:53:29 +02:00
Kai
79d894538e bandcamp_importer.user.js: update and reduce jquery 2022-04-26 14:53:29 +02:00
Kai
6645a440f6 bandcamp_importer_helper.user.js & mbimportstyle.js: remove jquery 2022-04-26 14:53:29 +02:00
Kai
adcb23576e eslint: change from json to js and apply rules 2022-04-26 14:53:29 +02:00
dependabot[bot]
b9152b1b77 build(deps): bump minimist from 1.2.5 to 1.2.6
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-09 22:48:43 +02:00
David Kellner
cfbe1a5531 recording-comments: Fill input based on recording MBID instead of index
Otherwise the script always loads the disambiguation comments for the
first tracks on the release, independent of the currently expanded medium.
This lead to wrong initial comments for /disc URLs.
Edit submission is already based on MBIDs, so there is no problem with that.
2022-02-09 18:03:42 +01:00
jesus2099
41b34e57df
recording-comments: Delay script and match disc URL
* Delay script. Otherwise, React removes it.

* Enable script on disc URL (ulugabi workaround for big releases)
2022-02-03 18:45:49 +01:00
David Kellner
b91f40247d expand-rg: Open editing-related links in new tabs
Since these are less likely to be used to speed up browsing (from an
artist page down to e.g. a specific recording on a release, skipping the
RG and release page) but for batch editing, it makes sense to open these
in new tabs by default.
2022-01-27 13:14:45 +01:00
David Kellner
ada3d7fa99 expand-rg: Add direct link for 'add cover art' 2022-01-27 13:14:45 +01:00
David Kellner
1f2a5df0be mb_relationship_shortcuts: Exclude artists' recording overview pages
An MBS update brought a new column which shows the release groups each
recording is part of. While it's interesting to see these, the shortcut
icons for the RGs are not very appropriate as the page is about recordings.
2022-01-27 13:13:01 +01:00
David Kellner
bde76d9ee4 mb_relationship_shortcuts: Tweak display style of icons
Give the icons a bit of margin in all directions, this looks better if
there are many icons which float into the next line.
Remove the fixed width, this looks ugly for smaller viewports.
Often there are not even enough icons to justify such a wide column.
2022-01-27 13:13:01 +01:00
David Kellner
821818cae1 hdtracks: Fix an old typo in a comment 2022-01-27 12:52:45 +01:00
David Kellner
13f579a661 mb_relationship_shortcuts: Support "download for free" rels
Another relationship type which is possible e.g. for Bandcamp URLs.
2021-12-12 21:54:56 +01:00
David Kellner
a2ee0a3597 mb_relationship_shortcuts: Deduplicate rels by URL
Useful for websites like Bandcamp which have e.g. purchase and stream rels.
2021-12-12 21:54:56 +01:00
David Kellner
fba1e62c94 mb_relationship_shortcuts: Make icons of ended rels less visible 2021-12-12 21:54:56 +01:00
David Kellner
054f027f5b mb_relationship_shortcuts: Remove icons of deprecated rel types 2021-12-12 21:54:56 +01:00
David Kellner
3de18c75c5 mb_relationship_shortcuts: Add HDtracks icon 2021-12-12 21:54:56 +01:00
David Kellner
e55fb66d7e mb_relationship_shortcuts: Convert remaining icon URLs into classes 2021-12-12 21:54:56 +01:00
David Kellner
b23b9048a0 mb_relationship_shortcuts: Replace icon URLs by class names
MBS ships many favicons as CSS classes now, so there is no need to
duplicate their data URLs here. Custom icons are still stored as URLs.
2021-12-12 21:54:56 +01:00
David Kellner
b0dbc1e956 mb_relationship_shortcuts: Add streaming site icons
Shows icons for Apple Music, Bandcamp, Deezer, iTunes and Spotify so far.
2021-12-12 21:54:56 +01:00
David Kellner
9b70f1398c expand-rg: Remove unused function parameter 2021-12-12 21:51:05 +01:00
David Kellner
4232ee8fc0 expand-rg: Prefer for-of loops over index loops
The IIFE from the previous lines 197 to 225 is no longer necessary as we
are using scoped variables now (keyword let instead of var).
2021-12-12 21:51:05 +01:00
David Kellner
b9ae32964f expand-rg: Fix ESLint warnings 2021-12-12 21:51:05 +01:00
David Kellner
6272ceb076 expand-rg: Stretch tracklist tables to the full column width
This gives them more horizontal space instead of stuffing them into a
sub-column of a column. The additional margin is not necessary for
injected releases, only for release groups.
Reverting an undocumented change from 02f93f75ed
which (unintentionally?) abandoned the dedicated `track_tr` row.
2021-12-12 21:51:05 +01:00
David Kellner
b6205abdb3 bandcamp_importer: Fix ESLint errors and bump version 2021-12-03 16:31:45 +01:00
Zane van Iperen
bab4ffa2e8 bandcamp_importer: handle IA'd pages
Fixes #322
2021-12-03 16:09:44 +01:00
David Logie
e0873b76e5 Bump version number. 2021-11-21 23:44:52 +01:00
David Logie
2354124615 Fix Juno Download importer.
The HTML changed a few weeks (months?) ago, breaking the importer. Make
it work again.
2021-11-21 23:44:52 +01:00
August Janse
252b00ea42 vgmdb_importer: Fix broken @include
Co-authored-by: David Kellner <52860029+kellnerd@users.noreply.github.com>
2021-11-13 15:48:29 +01:00
August Janse
5c60f99b6c vgmdb_importer: Fix websites bug 2021-11-13 15:48:29 +01:00
jesus2099
9fc80f796e Allow no labels or no urls without crashing the script
With @kellnerd's 1 improvement and 1 fix
2021-11-13 14:49:45 +01:00
jesus2099
493444057b Fix doc artist_credit.mbid (not artist_mbid) 2021-11-13 14:49:45 +01:00
David Kellner
6f67604260 hdtracks: Make the userscript run under Greasemonkey
GM has no direct access to the properties of the real `window`, call the
`addEventListener` method instead (which is also a cleaner solution).
2021-11-07 13:50:17 +01:00
David Kellner
baec6631f7 hdtracks: Release userscript under the MIT license 2021-10-17 23:00:22 +02:00
David Kellner
84ab91f589 hdtracks: Move audio quality into the annotation
Only use it as disambiguation comment if it is non-standard quality.
2021-10-17 23:00:22 +02:00
David Kellner
4ad72e58d4 hdtracks: Use UTC to fix "one day off" timezone issue
Input string is in UTC, so the numbers should also be extracted as UTC.
2021-10-17 23:00:22 +02:00
David Kellner
1323c14d4f hdtracks: Update userscript metadata and README 2021-10-17 23:00:22 +02:00
David Kellner
b9714440a6 build: Explicitly read files as UTF-8
Otherwise the OS default encoding is used which leads to errors on Windows.
2021-10-17 23:00:22 +02:00
David Kellner
bed8eb27a8 hdtracks: Drop release credits from the annotation 2021-10-17 23:00:22 +02:00
David Kellner
17be011a33 hdtracks: Fix ESLint errors
Forgo optional chaining which is an ES2020 feature. It feels odd to
raise the ES version even further for such a minor improvement.
2021-10-17 23:00:22 +02:00
David Kellner
2531d25157 Set ES version to 2017 to support async functions 2021-10-17 23:00:22 +02:00
David Kellner
6906509170 hdtracks: Add a button to submit ISRCs with MagicISRC 2021-10-17 23:00:22 +02:00
David Kellner
ca260f721b Create importer script for HDtracks 2021-10-17 23:00:22 +02:00
David Kellner
6a201af3fa bandcamp_importer: Accept URLs with a trailing slash
Fixes #433
2021-10-17 22:07:02 +02:00
David Logie
fdc18225d0 bandcamp_importer: Update atisket URL. 2021-09-26 21:29:52 +02:00
11xx
af12c389c6 Fix line break in the "Import into MB" button 2021-09-22 16:05:07 +02:00
David Kellner
e84565918e recording-comments: Exclude "Add release" page
The script causes a type error on this page which is unintentionally matched.
`@exclude *musicbrainz.org/release/add*` will also match possible query
parameters while `@exclude-match *://*.musicbrainz.org/release/add` is
cleaner but unfortunately not compatible with Greasemonkey.

mbsandbox.org doesn't seem to be online anymore.
2021-08-22 23:27:26 +02:00
Laurent Monin
28851de32c
Merge pull request #412 from kellnerd/discogs-importer
Discogs importer: Adapt to new release page layout
2021-08-10 18:51:15 +02:00
David Kellner
48182be483 discogs_importer: Adapt to new release page layout
Discogs has rolled out a new layout for release pages on 2021-08-09:
https://www.discogs.com/forum/thread/828514?page=3#8916061

This breaks the injection of the import button and MB links on release
pages, other pages (artist, label, master) are not affected so far.
With this commit, the following changes are made to fix #411 and #354:

- Update selectors for the sections which should be enhanced with MB links
- Separate working and broken selectors but keep all of them for now
- Find a new selector to inject the import button into the sidebar
  (not sure why there were three alternative selectors previously)
- Duplicate some of Discogs' CSS to fix the layout because they seem to
  use dynamically generated class names now :(
2021-08-10 17:40:25 +02:00