mirror of
https://github.com/NohamR/BetterYGG.git
synced 2026-01-10 08:18:19 +00:00
[1.2.9] new domain name and manifest V3
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/* Inject scripts don't forget to add them to web_accessible_resources in manifest */
|
/* Inject scripts don't forget to add them to web_accessible_resources in manifest */
|
||||||
injectScript(chrome.extension.getURL('contentScripts/addTorrent/accessAddTorrent.js'), 'head');
|
injectScript(chrome.runtime.getURL('contentScripts/addTorrent/accessAddTorrent.js'), 'head');
|
||||||
injectLink(chrome.extension.getURL("css/style.css"), 'head');
|
injectLink(chrome.runtime.getURL("css/style.css"), 'head');
|
||||||
|
|
||||||
/********************************************************************/
|
/********************************************************************/
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Inject scripts don't forget to add them to web_accessible_resources in manifest */
|
/* Inject scripts don't forget to add them to web_accessible_resources in manifest */
|
||||||
injectScript(chrome.extension.getURL('/contentScripts/allPages/accessAllPages.js'), 'head');
|
injectScript(chrome.runtime.getURL('/contentScripts/allPages/accessAllPages.js'), 'head');
|
||||||
|
|
||||||
/* disable annoying fuckn popup */
|
/* disable annoying fuckn popup */
|
||||||
var popup = document.querySelector('div.ad-alert-wrapper');
|
var popup = document.querySelector('div.ad-alert-wrapper');
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Inject scripts don't forget to add them to web_accessible_resources in manifest */
|
/* Inject scripts don't forget to add them to web_accessible_resources in manifest */
|
||||||
injectScript(chrome.extension.getURL('contentScripts/search/accessSearch.js'), 'head');
|
injectScript(chrome.runtime.getURL('contentScripts/search/accessSearch.js'), 'head');
|
||||||
|
|
||||||
/********************************************************************/
|
/********************************************************************/
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ chrome.storage.sync.get(['yggToken'], function (value) {
|
|||||||
var cell = table.rows[i].cells[2];
|
var cell = table.rows[i].cells[2];
|
||||||
var downloadButton = document.createElement('a')
|
var downloadButton = document.createElement('a')
|
||||||
var downloadIcon = document.createElement('img')
|
var downloadIcon = document.createElement('img')
|
||||||
downloadIcon.setAttribute('src', chrome.extension.getURL("img/download.png"));
|
downloadIcon.setAttribute('src', chrome.runtime.getURL("img/download.png"));
|
||||||
downloadButton.appendChild(downloadIcon);
|
downloadButton.appendChild(downloadIcon);
|
||||||
downloadButton.setAttribute('href', "https://" + window.location.host + "/rss/download?id=" + torrentId + "&passkey=" + value.yggToken);
|
downloadButton.setAttribute('href', "https://" + window.location.host + "/rss/download?id=" + torrentId + "&passkey=" + value.yggToken);
|
||||||
cell.appendChild(downloadButton);
|
cell.appendChild(downloadButton);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "BetterYGG",
|
"name": "BetterYGG",
|
||||||
"version": "1.2.8",
|
"version": "1.2.9",
|
||||||
"description": "Téléchargez des torrents sur YGG sans ètre connecté et autres !!!",
|
"description": "Téléchargez des torrents sur YGG sans ètre connecté et autres !!!",
|
||||||
"icons": {
|
"icons": {
|
||||||
"16": "img/flexgg16.png",
|
"16": "img/flexgg16.png",
|
||||||
@@ -12,42 +12,46 @@
|
|||||||
},
|
},
|
||||||
"options_page": "options/options.html",
|
"options_page": "options/options.html",
|
||||||
"background": {
|
"background": {
|
||||||
"scripts": ["backgroundScripts/background.js"],
|
"service_worker": "backgroundScripts/background.js"
|
||||||
"persistent": false
|
|
||||||
},
|
},
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"activeTab",
|
"activeTab",
|
||||||
"storage"
|
"storage"
|
||||||
],
|
],
|
||||||
"web_accessible_resources" : [
|
"web_accessible_resources" : [
|
||||||
"contentScripts/addTorrent/accessAddTorrent.js",
|
{
|
||||||
"contentScripts/allPages/accessAllPages.js",
|
"resources": [
|
||||||
"contentScripts/search/accessSearch.js",
|
"contentScripts/addTorrent/accessAddTorrent.js",
|
||||||
"css/style.css",
|
"contentScripts/allPages/accessAllPages.js",
|
||||||
"img/download.png"
|
"contentScripts/search/accessSearch.js",
|
||||||
|
"css/style.css",
|
||||||
|
"img/download.png"
|
||||||
|
],
|
||||||
|
"matches": ["https://*.yggtorrent.la/*"]
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
"matches": ["https://*.yggtorrent.nz/torrent/*"],
|
"matches": ["https://*.yggtorrent.la/torrent/*"],
|
||||||
"run_at": "document_idle",
|
"run_at": "document_idle",
|
||||||
"js": ["js/utilsFunctions.js", "contentScripts/addTorrent/addTorrent.js"]
|
"js": ["js/utilsFunctions.js", "contentScripts/addTorrent/addTorrent.js"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matches": ["https://*.yggtorrent.nz/"],
|
"matches": ["https://*.yggtorrent.la/"],
|
||||||
"run_at": "document_idle",
|
"run_at": "document_idle",
|
||||||
"js": [ "contentScripts/homePage.js"]
|
"js": [ "contentScripts/homePage.js"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matches": ["https://*.yggtorrent.nz/*"],
|
"matches": ["https://*.yggtorrent.la/*"],
|
||||||
"run_at": "document_idle",
|
"run_at": "document_idle",
|
||||||
"js": ["js/utilsFunctions.js", "contentScripts/allPages/allPages.js"]
|
"js": ["js/utilsFunctions.js", "contentScripts/allPages/allPages.js"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matches": ["https://*.yggtorrent.nz/engine/search*"],
|
"matches": ["https://*.yggtorrent.la/engine/search*"],
|
||||||
"run_at": "document_idle",
|
"run_at": "document_idle",
|
||||||
"js": ["js/utilsFunctions.js", "contentScripts/search/search.js"]
|
"js": ["js/utilsFunctions.js", "contentScripts/search/search.js"]
|
||||||
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"manifest_version": 2
|
"manifest_version": 3
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user