From e5d9d9c59fbe36364f1607a79893f5177b840ff1 Mon Sep 17 00:00:00 2001 From: SEPT Mg Date: Thu, 11 Jul 2024 22:03:35 +0200 Subject: [PATCH] maj new domain --- README.md | 2 +- content.js | 4 ++-- manifest.json | 10 +++++----- script.js | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d09ffd2..13e4cc5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Description -Adn Theater Mode is a Chrome extension that modifies the CSS of the [Animation Digital Network (ADN)](https://animationdigitalnetwork.fr/) website to provide a better viewing experience for videos. This extension is designed to enhance the video display size, making it more comfortable and convenient for users. +Adn Theater Mode is a Chrome extension that modifies the CSS of the [Animation Digital Network (ADN)](https://animationdigitalnetwork.com/) website to provide a better viewing experience for videos. This extension is designed to enhance the video display size, making it more comfortable and convenient for users. ![!](https://i.imgur.com/VlB6Dlm.png) diff --git a/content.js b/content.js index b2383f9..ee796d3 100644 --- a/content.js +++ b/content.js @@ -4,7 +4,7 @@ var styleTagId = "c"; // Function to detect URL changes function onUrlChange() { - if(window.location.href.startsWith("https://animationdigitalnetwork.fr/video/") && localStorage.getItem(keyName) == "true") { + if(window.location.href.startsWith("https://animationdigitalnetwork.com/video/") && localStorage.getItem(keyName) == "true") { changeCSS(); } else { @@ -36,7 +36,7 @@ if(localStorage.getItem(keyName) === null) { localStorage.setItem(keyName, false); } -if(window.location.href.startsWith("https://animationdigitalnetwork.fr/video/") && localStorage.getItem(keyName) == "true") { +if(window.location.href.startsWith("https://animationdigitalnetwork.com/video/") && localStorage.getItem(keyName) == "true") { changeCSS(); } diff --git a/manifest.json b/manifest.json index a975326..de0a811 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Adn Theater Mode", - "version": "1.0", + "version": "1.2", "description": "Animation Digital Network Theater Mode.", "permissions": [ "tabs", @@ -26,16 +26,16 @@ } }, "host_permissions": [ - "https://animationdigitalnetwork.fr/*" + "https://animationdigitalnetwork.com/*" ], "content_scripts": [ { - "matches": ["https://animationdigitalnetwork.fr/*"], + "matches": ["https://animationdigitalnetwork.com/*"], "js": ["content.js"] } ], - "author": "contact@septmg.fr", - "homepage_url": "https://septmg.fr/github" + "author": "Mdevvv", + "homepage_url": "https://github.com/Mdevvv" } \ No newline at end of file diff --git a/script.js b/script.js index 6817f67..24f5595 100644 --- a/script.js +++ b/script.js @@ -4,7 +4,7 @@ var goodURL = false try { const response = await chrome.tabs.sendMessage(tab.id, {greeting: "location"}); - goodURL = response.farewell.startsWith("https://animationdigitalnetwork.fr") + goodURL = response.farewell.startsWith("https://animationdigitalnetwork.com") } catch(err) {