mb_discids_detector: Add redacted.ch.

PTH/passtheheadphones.me made a name change to RED/redacted.ch.
See https://www.reddit.com/r/trackers/comments/5v2goo/pth_now_known_as_red/

This makes the script work on redacted.ch in addition to
passtheheadphones.me, but doesn't remove PTH as the PTH domain is
apparently going to work for a bit longer.

Fixes https://github.com/murdos/musicbrainz-userscripts/issues/139
This commit is contained in:
Frederik “Freso” S. Olesen 2017-02-22 11:23:25 +01:00
parent 3fe4a35fab
commit 5f5c7f1d91
No known key found for this signature in database
GPG key ID: 27628EAF5DC1403E

View file

@ -8,6 +8,7 @@
// @include http://avaxhome.ws/music/* // @include http://avaxhome.ws/music/*
// @include https://apollo.rip/torrents.php?id=* // @include https://apollo.rip/torrents.php?id=*
// @include https://passtheheadphones.me/torrents.php?id=* // @include https://passtheheadphones.me/torrents.php?id=*
// @include https://redacted.ch/torrents.php?id=*
// @include http*://lztr.us/torrents.php?id=* // @include http*://lztr.us/torrents.php?id=*
// @include http*://lztr.me/torrents.php?id=* // @include http*://lztr.me/torrents.php?id=*
// @include http*://mutracker.org/torrents.php?id=* // @include http*://mutracker.org/torrents.php?id=*
@ -25,7 +26,7 @@ var CHECK_IMAGE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAA
$(document).ready(function () { $(document).ready(function () {
if (window.location.host.match(/apollo\.rip|passtheheadphones\.me|lztr\.(us|me)|mutracker\.org/)) { if (window.location.host.match(/apollo\.rip|redacted\.ch|passtheheadphones\.me|lztr\.(us|me)|mutracker\.org/)) {
LOGGER.info("Gazelle site detected"); LOGGER.info("Gazelle site detected");
gazellePageHandler(); gazellePageHandler();
} else if (window.location.host.match(/avaxhome\.ws/)) { } else if (window.location.host.match(/avaxhome\.ws/)) {
@ -105,8 +106,8 @@ function gazellePageHandler() {
if (window.location.host.match(/apollo/)) { if (window.location.host.match(/apollo/)) {
LOGGER.debug("Apollo"); LOGGER.debug("Apollo");
var logAction = 'viewlog'; var logAction = 'viewlog';
} else if (window.location.host.match(/passtheheadphones/)){ } else if (window.location.host.match(/redacted|passtheheadphones/)){
LOGGER.debug("PTH"); LOGGER.debug("RED");
var logAction = 'loglist'; var logAction = 'loglist';
} }
} }