With today's motivation from the Museexmatch thread, I've managed to finalize the above.
Will release a new plugin version with the fix tomorrow morning. Haven't thoroughly tested it out though, but this appears stable enough:
name: Musixmatch (fuzzy)
loader: search
variables:
artist:
type: artist
filters:
- lowercase
title:
type: title
filters: artist
config:
identity url: "https://www.google.com/search?q=Musixmatch+{title}+{artist}"
identity pattern: ['(?<identity>https://www.musixmatch.com.*?)%3Futm_|(?<identity>https://www.musixmatch.com.*?)["&]', 's']
lyrics url: ""
lyrics pattern: ['(?<lyrics>.*)', 's']
post-filters:
- strip_html
- utf8_encode
- entity_decode
- [regex, 'Add to favorites.*?lyricsAICountGet', '@@']
- [regex, ',"canEdit":false.*', '']
- [regex, '.*(\n+)?@@', '@@']
- [regex, '.*[{};=/]', '@@']
- [regex, '\n@@', '<br>']
- [regex, ' | | | ', '<br>']
- [regex, '@@\n(@@)?', '<br>']
- [regex, "@@'gtm.start':<br>d.getElementsByTagName\\(s\\)\\[0\\],<br><br><br><br><br><br><br>\n<br><br><br>\n<br><br>", '1']
- [regex, '<br><br><br>', '2']
- [regex, '2+<br><br>', '3']
- [regex, '<br>.nprogress-custom-parent #nprogress .spinner,3"body":"', '4']
- [regex, "1\\n2\\n3\\n4|\"", ""]
- [regex, '\\n', "\r\n"]
- [regex, '\\"', "\""]
- [regex, '1|2|4|<br>', ""]
- trim