Change domain from gg to ch

This commit is contained in:
vermillion-dev
2019-05-06 20:32:22 +02:00
parent e827d5b430
commit f408526172
2 changed files with 4 additions and 4 deletions

View File

@@ -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 = '<div id="error_ygg_button_alert" class="alert alert-danger" role="alert" style="margin-bottom:0;">Une erreur est survenue, Vérifiez que votre token Ygg soit chargé !</div>';

View File

@@ -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"]
}