Commit graph

1008 commits

Author SHA1 Message Date
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
dependabot[bot]
bb40b41e9e build(deps-dev): bump eslint-plugin-import from 2.22.1 to 2.23.4
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.22.1 to 2.23.4.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases)
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md)
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.22.1...v2.23.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-06 22:29:50 +02:00
dependabot[bot]
e5084bebbd build(deps-dev): bump eslint from 7.21.0 to 7.32.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.21.0 to 7.32.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.21.0...v7.32.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-06 22:19:09 +02:00
dependabot[bot]
3e03d695b2 build(deps): bump glob-parent from 5.1.1 to 5.1.2
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-06 22:18:46 +02:00
dependabot[bot]
801ae53556 build(deps): bump hosted-git-info from 2.8.8 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-06 22:18:26 +02:00
dependabot[bot]
75222c2f0c build(deps): bump actions/setup-node from 2.1.5 to 2.3.0
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.1.5 to 2.3.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.5...v2.3.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-06 22:17:36 +02:00
David Kellner
7bfd4a8977 mb_relationship_shortcuts: Recover missing icons
Luckily the missing 'lyrics' and 'single from' icons were captured by
the Wayback Machine.
I have Base64 encoded them since the image files are tiny and most of
the other icons are already stored as data URIs.
2021-08-06 22:16:21 +02:00
David Kellner
20eb57409f mb_relationship_shortcuts: Fix more eslint errors 2021-08-06 22:16:21 +02:00
David Kellner
dda9dcb6c1 Make the 'Edit recording comments' button appear again
The script will now run after the page and all resources are loaded and
page scripts have run. This will be later than before and (hopefully)
after any React redraws which undid the DOM changes done by the script.

Tested and working with Violentmonkey under Firefox, for Tampermonkey
document-idle is the default value anyway.

See https://community.metabrainz.org/t/541943
2021-08-06 22:14:06 +02:00
August Janse
2f0207340b vgmdb_importer: Bump version number 2021-07-14 20:47:35 +02:00
August Janse
37349742ee vgmdb_importer: Map commercial links better 2021-07-14 20:47:35 +02:00
August Janse
94ecc82e19 vgmdb_importer: Map store links better 2021-07-14 20:47:35 +02:00
August Janse
b8bf0f84b1 vgmdb_importer: Fix UTC date bug 2021-07-14 20:47:35 +02:00
August Janse
25971e6e73 vgmdb_importer: Fix day/date bug 2021-07-14 20:47:35 +02:00
August Janse
dfc731479c
mb_relationship_shortcuts: Add vgmdb (#372)
Co-authored-by: August Janse <august.janse@arkivit.se>
2021-05-24 23:21:35 +02:00
Frederik “Freso” S. Olesen
91e205e788
mb_1200px_caa: Remove "1200px" thumbnail link
This link has been added to MusicBrainz itself:
https://blog.metabrainz.org/2021/04/19/musicbrainz-server-update-2021-04-19/
https://tickets.metabrainz.org/browse/MBS-9631
2021-04-20 20:59:10 +02:00
Frederik “Freso” S. Olesen
a1cf6406a6
mb_ui_enhancements: Remove "Edit relationships" tab
MusicBrainz has a 'native' "Edit Relationships" tab on releases since
October 2019: https://tickets.metabrainz.org/browse/MBS-5479
( 5fe0b99292 )
2021-03-29 18:01:29 +02:00
Aurélien Mino
b4b9a1b31f
Update version 2021-03-08 09:25:48 +01:00
Christian Schendel
cba68f178d
Use base64 encoded images (#362)
* Use base64 encoded images

Musicbrainz removed the .png files that are linked in this script in favor of base64 encoded files.
This commit reflects this change
2021-03-08 09:24:47 +01:00
github-actions[bot]
e239d6939e
Merge pull request #360 from murdos/dependabot/github_actions/actions/setup-node-v2.1.5
build(deps): bump actions/setup-node from v2.1.4 to v2.1.5
2021-03-01 06:30:33 +00:00
dependabot[bot]
2881666a75
build(deps): bump actions/setup-node from v2.1.4 to v2.1.5
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.4 to v2.1.5.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.4...46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 06:29:52 +00:00