mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-12 19:32:27 +00:00
encyclopedisque: code cleanup.
This commit is contained in:
parent
043ab5615a
commit
bc84a78254
1 changed files with 5 additions and 7 deletions
|
@ -51,17 +51,15 @@ function setupImportUI(release) {
|
|||
|
||||
function insertMBLinks() {
|
||||
|
||||
$('body').find('div.v7P, div.v12P').each(function() {
|
||||
$(this).find('a[href*="/disque/"]').each(function() {
|
||||
var $link = $(this);
|
||||
var external_url = 'http://www.encyclopedisque.fr' + $link.attr('href');
|
||||
mblinks.searchAndDisplayMbLink(external_url, 'release', function (link) { $link.after(link).after('<br />') } );
|
||||
});
|
||||
$('div.v7P, div.v12P').find('a[href*="/disque/"]').each(function() {
|
||||
var $link = $(this);
|
||||
var external_url = window.location.origin + $link.attr('href');
|
||||
mblinks.searchAndDisplayMbLink(external_url, 'release', function (link) { $link.after(link).after('<br />') } );
|
||||
});
|
||||
|
||||
$('h2, div.main').find('a[href*="/artiste/"]').each(function() {
|
||||
var $link = $(this);
|
||||
var external_url = 'http://www.encyclopedisque.fr' + $link.attr('href');
|
||||
var external_url = window.location.origin + $link.attr('href');
|
||||
mblinks.searchAndDisplayMbLink(external_url, 'artist', function (link) { $link.before(link); } );
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue