Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Might actually disconinue :(
Browse files Browse the repository at this point in the history
  • Loading branch information
LyubomirT committed Feb 23, 2024
1 parent 185160a commit 699729f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -2208,7 +2208,12 @@ async function convertHistory(data, returnUsername = false) {
return chats;
}


// If the website URL has "redesign=true" in the query string, then alert and return to beta.character.ai
console.log(window.location.search);
if (window.location.search.includes("redesign=true")) {
window.location.href = "https://beta.character.ai";
alert("Sadly, we don't support the new Character AI website yet. Please go back to the old website to use this extension.");
}


if (localStorage.getItem('deleteGetCaiButtonEnabled') === 'true') {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

"content_scripts": [
{
"matches": ["https://*.character.ai/*"],
"matches": ["https://*.character.ai/*", "https://character.ai/*"],
"js": ["content.js"],
"css": ["style.css"]
}
Expand Down
2 changes: 1 addition & 1 deletion mozilla/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

"content_scripts": [
{
"matches": ["https://*.character.ai/*"],
"matches": ["https://*.character.ai/*", "https://character.ai/*/*"],
"js": ["content.js"],
"css": ["style.css"]
}
Expand Down

0 comments on commit 699729f

Please sign in to comment.