forked from interstellard/chatgpt-advanced
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
205 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[ | ||
{ "value": "wt-wt", "label": "Any region" }, | ||
{ "value": "xa-ar", "label": "Saudi Arabia" }, | ||
{ "value": "xa-en", "label": "Saudi Arabia (en)" }, | ||
{ "value": "ar-es", "label": "Argentina" }, | ||
{ "value": "au-en", "label": "Australia" }, | ||
{ "value": "at-de", "label": "Austria" }, | ||
{ "value": "be-fr", "label": "Belgium (fr)" }, | ||
{ "value": "be-nl", "label": "Belgium (nl)" }, | ||
{ "value": "br-pt", "label": "Brazil" }, | ||
{ "value": "bg-bg", "label": "Bulgaria" }, | ||
{ "value": "ca-en", "label": "Canada" }, | ||
{ "value": "ca-fr", "label": "Canada (fr)" }, | ||
{ "value": "ct-ca", "label": "Catalan" }, | ||
{ "value": "cl-es", "label": "Chile" }, | ||
{ "value": "cn-zh", "label": "China" }, | ||
{ "value": "co-es", "label": "Colombia" }, | ||
{ "value": "hr-hr", "label": "Croatia" }, | ||
{ "value": "cz-cs", "label": "Czech Republic" }, | ||
{ "value": "dk-da", "label": "Denmark" }, | ||
{ "value": "ee-et", "label": "Estonia" }, | ||
{ "value": "fi-fi", "label": "Finland" }, | ||
{ "value": "fr-fr", "label": "France" }, | ||
{ "value": "de-de", "label": "Germany" }, | ||
{ "value": "gr-el", "label": "Greece" }, | ||
{ "value": "hk-tzh", "label": "Hong Kong" }, | ||
{ "value": "hu-hu", "label": "Hungary" }, | ||
{ "value": "in-en", "label": "India" }, | ||
{ "value": "id-id", "label": "Indonesia" }, | ||
{ "value": "id-en", "label": "Indonesia (en)" }, | ||
{ "value": "ie-en", "label": "Ireland" }, | ||
{ "value": "il-he", "label": "Israel" }, | ||
{ "value": "it-it", "label": "Italy" }, | ||
{ "value": "jp-jp", "label": "Japan" }, | ||
{ "value": "kr-kr", "label": "Korea" }, | ||
{ "value": "lv-lv", "label": "Latvia" }, | ||
{ "value": "lt-lt", "label": "Lithuania" }, | ||
{ "value": "xl-es", "label": "Latin America" }, | ||
{ "value": "my-ms", "label": "Malaysia" }, | ||
{ "value": "my-en", "label": "Malaysia (en)" }, | ||
{ "value": "mx-es", "label": "Mexico" }, | ||
{ "value": "nl-nl", "label": "Netherlands" }, | ||
{ "value": "nz-en", "label": "New Zealand" }, | ||
{ "value": "no-no", "label": "Norway" }, | ||
{ "value": "pe-es", "label": "Peru" }, | ||
{ "value": "ph-en", "label": "Philippines" }, | ||
{ "value": "ph-tl", "label": "Philippines (tl)" }, | ||
{ "value": "pl-pl", "label": "Poland" }, | ||
{ "value": "pt-pt", "label": "Portugal" }, | ||
{ "value": "ro-ro", "label": "Romania" }, | ||
{ "value": "ru-ru", "label": "Russia" }, | ||
{ "value": "sg-en", "label": "Singapore" }, | ||
{ "value": "sk-sk", "label": "Slovak Republic" }, | ||
{ "value": "sl-sl", "label": "Slovenia" }, | ||
{ "value": "za-en", "label": "South Africa" }, | ||
{ "value": "es-es", "label": "Spain" }, | ||
{ "value": "se-sv", "label": "Sweden" }, | ||
{ "value": "ch-de", "label": "Switzerland (de)" }, | ||
{ "value": "ch-fr", "label": "Switzerland (fr)" }, | ||
{ "value": "ch-it", "label": "Switzerland (it)" }, | ||
{ "value": "tw-tzh", "label": "Taiwan" }, | ||
{ "value": "th-th", "label": "Thailand" }, | ||
{ "value": "tr-tr", "label": "Turkey" }, | ||
{ "value": "ua-uk", "label": "Ukraine" }, | ||
{ "value": "uk-en", "label": "United Kingdom" }, | ||
{ "value": "us-en", "label": "United States" }, | ||
{ "value": "ue-es", "label": "United States (es)" }, | ||
{ "value": "ve-es", "label": "Venezuela" }, | ||
{ "value": "vn-vi", "label": "Vietnam" } | ||
] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Browser from 'webextension-polyfill' | ||
|
||
|
||
var manifest_version = Browser.runtime.getManifest().manifest_version | ||
|
||
|
||
Browser.runtime.onInstalled.addListener(async () => { | ||
Browser.storage.sync.set({ | ||
num_web_results: 3, | ||
web_access: true, | ||
region: "wt-wt", | ||
}) | ||
openChatGPTWebpage() | ||
}) | ||
|
||
function openChatGPTWebpage() { | ||
Browser.tabs.create({ | ||
url: "https://chat.openai.com/chat", | ||
}) | ||
} | ||
|
||
// open chatgpt webpage when extension icon is clicked | ||
if (manifest_version == 2) { | ||
Browser.browserAction.onClicked.addListener(openChatGPTWebpage) | ||
} else { | ||
Browser.action.onClicked.addListener(openChatGPTWebpage) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import '../style/base.css' | ||
import Browser from 'webextension-polyfill' | ||
|
||
let isWebAccessOn = true; | ||
var numWebResults = 1 | ||
var region = "" | ||
|
||
async function getDefaultParams() { | ||
|
||
({ num_web_results: numWebResults, web_access: isWebAccessOn, region } = await Browser.storage.sync.get(['num_web_results', 'web_access', 'region'])) | ||
|
||
console.log(numWebResults, isWebAccessOn, region) | ||
} | ||
|
||
async function run() { | ||
await getDefaultParams() | ||
} | ||
|
||
run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters