diff --git a/contentScripts/addTorrent/addTorrent.js b/contentScripts/addTorrent/addTorrent.js index 57e9c5f..a8f38e4 100644 --- a/contentScripts/addTorrent/addTorrent.js +++ b/contentScripts/addTorrent/addTorrent.js @@ -48,7 +48,7 @@ else if(torrentTitle.includes('480')) var discordWebhookUrl, discordUserName, categories; chrome.storage.sync.get(['yggToken', 'discordWebhookUrl', 'discordUserName', 'displayDiscord', 'displayAddCategories', 'categories', 'defaultCategories'], function(value){ if(value.yggToken){ - downloadButton.setAttribute('href', "https://www2.yggtorrent.gg/rss/download?id=" + torrentId + "&passkey=" + value.yggToken); + downloadButton.setAttribute('href', "https://www2.yggtorrent.ch/rss/download?id=" + torrentId + "&passkey=" + value.yggToken); } else{ var alertYggToken = ''; diff --git a/manifest.json b/manifest.json index 4c067db..faf97fd 100644 --- a/manifest.json +++ b/manifest.json @@ -26,17 +26,17 @@ ], "content_scripts": [ { - "matches": ["https://*.yggtorrent.gg/torrent/*"], + "matches": ["https://*.yggtorrent.ch/torrent/*"], "run_at": "document_idle", "js": ["js/utilsFunctions.js", "contentScripts/addTorrent/functions.js", "contentScripts/addTorrent/addTorrent.js"] }, { - "matches": ["https://*.yggtorrent.gg/"], + "matches": ["https://*.yggtorrent.ch/"], "run_at": "document_idle", "js": [ "contentScripts/homePage.js"] }, { - "matches": ["https://*.yggtorrent.gg/*"], + "matches": ["https://*.yggtorrent.ch/*"], "run_at": "document_idle", "js": ["js/utilsFunctions.js", "contentScripts/allPages/allPages.js"] }