MusicBrainz: Auto click confirm form submission

Automatically clicks the button to confirm submitting (seeding) data from other sites

< Valutazione su MusicBrainz: Auto click confirm form submission

Domanda/commento

§
Pubblicato: 27/05/2025
// @match      *://*.musicbrainz.org/release/add
// @match      *://*.musicbrainz.org/release/*/edit
// @match      *://*.musicbrainz.org/recording/create

The first star only allows http and https but you can keep writing https if you prefer. The second star allows no subdomain or any subdomain.

I didn't test if it works but it should. It would be better than:

// @include      https://*musicbrainz.org/release/add
// @include      https://*musicbrainz.org/release/*/edit
// @include      https://*musicbrainz.org/recording/create

Which allow any website like https://pipo.com/musicbrainz.org/release/add

chabanAutore
§
Pubblicato: 27/05/2025
Modificato: 27/05/2025

Thanks. For some reason I was under the impression that *. in the host part would only match the subdomains and not without.

Regarding the protocol part, it doesn't look like MusicBrainz supports HTTP any longer, i.e. they return no real content and try to redirect the user:

curl -v http://musicbrainz.org
* Host musicbrainz.org:80 was resolved.
* IPv6: 2a01:4f8:c01e:70::1
* IPv4: 142.132.240.1
*   Trying [2a01:4f8:c01e:70::1]:80...
* connect to 2a01:4f8:c01e:70::1 port 80 from :: port 13331 failed: Network unreachable
*   Trying 142.132.240.1:80...
* Connected to musicbrainz.org (142.132.240.1) port 80
* using HTTP/1.x
> GET / HTTP/1.1
> Host: musicbrainz.org
> User-Agent: curl/8.12.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 302 Moved Temporarily
< Server: openresty
< Date: Tue, 27 May 2025 12:31:30 GMT
< Content-Type: text/html
< Content-Length: 142
< Connection: keep-alive
< Keep-Alive: timeout=15
< Location: https://musicbrainz.org/
<
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>openresty</center>
</body>
</html>
* Connection #0 to host musicbrainz.org left intact
chabanAutore
§
Pubblicato: 27/05/2025

I've updated the other scripts as well to use @match instead if possible.

Pubblica risposta

Accedi per pubblicare una risposta.