Skip to content

Commit

Permalink
maj new domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Mdevvv committed Jul 11, 2024
1 parent 0e2fda0 commit e5d9d9c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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();
}

Expand Down
10 changes: 5 additions & 5 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}

2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit e5d9d9c

Please sign in to comment.