mirror of
https://github.com/NohamR/BetterYGG.git
synced 2026-01-10 00:08:19 +00:00
Change domain from gg to ch
This commit is contained in:
@@ -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>';
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user