mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-13 20:02:27 +00:00
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:
parent
3fe4a35fab
commit
5f5c7f1d91
1 changed files with 4 additions and 3 deletions
|
@ -8,6 +8,7 @@
|
|||
// @include http://avaxhome.ws/music/*
|
||||
// @include https://apollo.rip/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.me/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 () {
|
||||
|
||||
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");
|
||||
gazellePageHandler();
|
||||
} else if (window.location.host.match(/avaxhome\.ws/)) {
|
||||
|
@ -105,8 +106,8 @@ function gazellePageHandler() {
|
|||
if (window.location.host.match(/apollo/)) {
|
||||
LOGGER.debug("Apollo");
|
||||
var logAction = 'viewlog';
|
||||
} else if (window.location.host.match(/passtheheadphones/)){
|
||||
LOGGER.debug("PTH");
|
||||
} else if (window.location.host.match(/redacted|passtheheadphones/)){
|
||||
LOGGER.debug("RED");
|
||||
var logAction = 'loglist';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue