mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-14 12:22:26 +00:00
Merge pull request #2 from CatQuest/CatQuest-patch-1
Update cdbaby_importer.user.js fix for cdbaby changing their url to store.cdbaby.com instead, see: https://chatlogs.metabrainz.org/brainzbot/musicbrainz/msg/3911374/
This commit is contained in:
commit
5590793ea2
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
// @version 2016.04.03.0
|
// @version 2016.04.03.0
|
||||||
// @downloadURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/cdbaby_importer.user.js
|
// @downloadURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/cdbaby_importer.user.js
|
||||||
// @updateURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/cdbaby_importer.user.js
|
// @updateURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/cdbaby_importer.user.js
|
||||||
// @include /^https?:\/\/(?:www\.)?(?:cdbaby\.com)\/cd\/[^\/]+/
|
// @include /^https?:\/\/(?:store\.)?(?:cdbaby\.com)\/cd\/[^\/]+/
|
||||||
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
|
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
|
||||||
// @require lib/mbimport.js
|
// @require lib/mbimport.js
|
||||||
// @require lib/logger.js
|
// @require lib/logger.js
|
||||||
|
@ -21,7 +21,7 @@ if (!unsafeWindow) unsafeWindow = window;
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
MBImportStyle();
|
MBImportStyle();
|
||||||
var release_url = window.location.href.replace('/\?.*$/', '').replace(/#.*$/, '');
|
var release_url = window.location.href.replace('/\?.*$/', '').replace(/#.*$/, '');
|
||||||
release_url = release_url.replace(/^(?:https?:\/\/)?(?:www\.)?(?:cdbaby\.com)\//, "http://www.cdbaby.com/");
|
release_url = release_url.replace(/^(?:https?:\/\/)?(?:store\.)?(?:cdbaby\.com)\//, "http://store.cdbaby.com/");
|
||||||
|
|
||||||
var release;
|
var release;
|
||||||
var buttons = "";
|
var buttons = "";
|
||||||
|
|
Loading…
Reference in a new issue