Skip to content

Commit

Permalink
Merge pull request #2 from itsrn/development
Browse files Browse the repository at this point in the history
Version 0.4.2
  • Loading branch information
itsrn authored Jul 24, 2023
2 parents 73fb26f + 59533a8 commit ffbe9e7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">fake-chatgpt-plus</h1>
<p>
<img alt="Version" src="https://img.shields.io/badge/version-0.4.0-blue.svg?cacheSeconds=2592000" />
<img alt="Version" src="https://img.shields.io/badge/version-0.4.2-blue.svg?cacheSeconds=2592000" />
<a href="https://github.com/itsrn/fake-chatgpt-plus/blob/main/LICENSE" target="_blank">
<img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" />
</a>
Expand Down Expand Up @@ -38,9 +38,10 @@ Contributions, issues and feature requests are welcome!<br />Feel free to check
Give a ⭐️ if you likes this project and want to support me!

## Version History

* 0.4.0
* Initial Release
* 0.4.2 *(Supported and recommended)*
* Fixed [Profile buttons doesn't appear](https://github.com/itsrn/fake-chatgpt-plus/issues/1).
* 0.4.0 *(Not supported)*
* Initial Release.

## 📝 License

Expand Down
18 changes: 9 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ function removeUpgradeButton() {
".cursor-pointer.text-sm.hover\\:bg-gray-800.rounded-md"
)[2]; //gets the "upgrade to plus" button element

if (upgradeToPlusButton) {
upgradeToPlusButton.remove();
//if exists in page remove it
if (upgradeToPlusButton && upgradeToPlusButton.role !== "menuitem") {
upgradeToPlusButton.remove();
//if exists in page and isn't a button in the profile menu then remove it
}
}

Expand All @@ -15,10 +15,10 @@ function updateChatGptIcons() {
".relative.p-1.rounded-sm.h-\\[30px\\].w-\\[30px\\].text-white.flex.items-center.justify-center"
); //gets an array of elements of chatgpt icons from responses

if (ChatGptIcons) {
if (ChatGptIcons) {
//if they are in the page
ChatGptIcons.forEach((element) => {
element.style.backgroundColor = "#715fde";
element.style.backgroundColor = "#715fde";
//replace the background of each one of them to the chatgpt-purple color
});
}
Expand All @@ -30,13 +30,13 @@ function changeButtonBackgroundColor() {
".enabled\\:bg-brand-purple.text-white.transition-colors.disabled\\:opacity-40"
); //get the send button element

if (button) {
if (button) {
//if the button exists on the page
const style = button.getAttribute("style");
const style = button.getAttribute("style");
//gets it's style
if (style && style.includes("background-color")) {
if (style && style.includes("background-color")) {
//if the style includes a background-color
button.style.backgroundColor = "#715fde";
button.style.backgroundColor = "#715fde";
//change the background color to chatgpt-purple color
}
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Fake ChatGPT Plus",
"version": "0.4.0",
"version": "0.4.2",
"description": "Make it look like you have ChatGPT Plus",
"host_permissions": ["https://chat.openai.com/*"],
"content_scripts": [{
Expand Down

0 comments on commit ffbe9e7

Please sign in to comment.