[1.2.2] new domain name

This commit is contained in:
vermillion-dev
2019-10-09 19:55:51 +02:00
parent 7102cf6af1
commit 223181f15e
3 changed files with 7 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ if (torrentTitle.includes('1080')) {
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.ch/rss/download?id=" + torrentId + "&passkey=" + value.yggToken);
downloadButton.setAttribute('href', "https://" + window.location.host + "/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>';
if (document.readyState !== "complete") {

View File

@@ -15,7 +15,7 @@ chrome.storage.sync.get(['yggToken'], function (value) {
var downloadIcon = document.createElement('img')
downloadIcon.setAttribute('src', chrome.extension.getURL("img/download.png"));
downloadButton.appendChild(downloadIcon);
downloadButton.setAttribute('href', "https://www2.yggtorrent.ch/rss/download?id=" + torrentId + "&passkey=" + value.yggToken);
downloadButton.setAttribute('href', "https://" + window.location.host + "/rss/download?id=" + torrentId + "&passkey=" + value.yggToken);
cell.appendChild(downloadButton);
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "BetterYGG",
"version": "1.2",
"version": "1.2.2",
"description": "Téléchargez des torrents sur YGG sans ètre connecté et autres !!!",
"icons": {
"16": "img/flexgg16.png",
@@ -28,22 +28,22 @@
],
"content_scripts": [
{
"matches": ["https://*.yggtorrent.ch/torrent/*"],
"matches": ["https://*.yggtorrent.pe/torrent/*"],
"run_at": "document_idle",
"js": ["js/utilsFunctions.js", "contentScripts/addTorrent/addTorrent.js"]
},
{
"matches": ["https://*.yggtorrent.ch/"],
"matches": ["https://*.yggtorrent.pe/"],
"run_at": "document_idle",
"js": [ "contentScripts/homePage.js"]
},
{
"matches": ["https://*.yggtorrent.ch/*"],
"matches": ["https://*.yggtorrent.pe/*"],
"run_at": "document_idle",
"js": ["js/utilsFunctions.js", "contentScripts/allPages/allPages.js"]
},
{
"matches": ["https://www2.yggtorrent.ch/engine/search*"],
"matches": ["https://*.yggtorrent.pe/engine/search*"],
"run_at": "document_idle",
"js": ["js/utilsFunctions.js", "contentScripts/search/search.js"]