-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
29aed90
commit 9dc5f3c
Showing
82 changed files
with
488 additions
and
690 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
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
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
const sidebarToggle = "_execute_sidebar_action"; | ||
const sidebarToggle = '_execute_sidebar_action' | ||
|
||
// Update UI and set value of textbox | ||
async function updateUI() { | ||
let commands = await browser.commands.getAll(); | ||
let commands = await browser.commands.getAll() | ||
for (command of commands) { | ||
if (command.name === sidebarToggle) { | ||
document.querySelector("#shortcut").value = command.shortcut; | ||
document.querySelector('#shortcut').value = command.shortcut | ||
} | ||
} | ||
} | ||
|
||
// Adds Sidebar Toggle Button | ||
function openSidebar() { | ||
browser.sidebarAction.toggle(); | ||
browser.sidebarAction.toggle() | ||
} | ||
|
||
browser.browserAction.onClicked.addListener(openSidebar); | ||
document.addEventListener("DOMContentLoaded", updateUI); | ||
browser.browserAction.onClicked.addListener(openSidebar) | ||
document.addEventListener('DOMContentLoaded', updateUI) |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
|
||
<html lang="en-US"> | ||
<head> | ||
|
@@ -7,12 +7,10 @@ | |
<title>ChatGPT in Sidebar - Config</title> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" | ||
/> | ||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" /> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css" | ||
/> | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css" /> | ||
<link rel="stylesheet" href="options.css" /> | ||
</head> | ||
|
||
|
@@ -31,25 +29,24 @@ <h1 class="title"> | |
<input class="input is-small is-dark" type="text" id="shortcut" /> | ||
</form> | ||
|
||
<button id="update" class="button is-small is-outlined is-dark" | ||
>Update</button | ||
> | ||
<button id="update" class="button is-small is-outlined is-dark"> | ||
Update | ||
</button> | ||
|
||
<button class="button is-small is-outlined is-dark" id="reset" | ||
>Reset</button | ||
> | ||
<button class="button is-small is-outlined is-dark" id="reset"> | ||
Reset | ||
</button> | ||
|
||
<p | ||
>Made with | ||
<p> | ||
Made with | ||
<a href="https://github.com/semanticdata/firefox-chatgpt-in-sidebar/" | ||
><i class="fa fa-heart" aria-hidden="true"></i | ||
></a> | ||
by | ||
<a | ||
class="site-author" | ||
href="https://miguelpimentel.do/" | ||
target="_blank" | ||
> | ||
target="_blank"> | ||
Miguel Pimentel</a | ||
>. | ||
</p> | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
|
||
<html lang="en"> | ||
<head> | ||
|
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
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
const sidebarToggle = "_execute_sidebar_action"; | ||
const sidebarToggle = '_execute_sidebar_action' | ||
|
||
// Update UI and set value of textbox | ||
async function updateUI() { | ||
let commands = await browser.commands.getAll(); | ||
let commands = await browser.commands.getAll() | ||
for (command of commands) { | ||
if (command.name === sidebarToggle) { | ||
document.querySelector("#shortcut").value = command.shortcut; | ||
document.querySelector('#shortcut').value = command.shortcut | ||
} | ||
} | ||
} | ||
|
||
// Adds Sidebar Toggle Button | ||
function openSidebar() { | ||
browser.sidebarAction.toggle(); | ||
browser.sidebarAction.toggle() | ||
} | ||
|
||
browser.browserAction.onClicked.addListener(openSidebar); | ||
browser.browserAction.onClicked.addListener(openSidebar) | ||
|
||
document.addEventListener("DOMContentLoaded", updateUI); | ||
document.addEventListener('DOMContentLoaded', updateUI) |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
|
||
<html lang="en-US"> | ||
<head> | ||
|
@@ -7,12 +7,10 @@ | |
<title>Discord in Sidebar - Config</title> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" | ||
/> | ||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" /> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css" | ||
/> | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css" /> | ||
<link rel="stylesheet" href="options.css" /> | ||
</head> | ||
|
||
|
@@ -30,25 +28,24 @@ <h1 class="title"> | |
<input class="input is-small is-dark" type="text" id="shortcut" /> | ||
</form> | ||
|
||
<button id="update" class="button is-small is-outlined is-dark" | ||
>Update</button | ||
> | ||
<button id="update" class="button is-small is-outlined is-dark"> | ||
Update | ||
</button> | ||
|
||
<button class="button is-small is-outlined is-dark" id="reset" | ||
>Reset</button | ||
> | ||
<button class="button is-small is-outlined is-dark" id="reset"> | ||
Reset | ||
</button> | ||
|
||
<p | ||
>Made with | ||
<p> | ||
Made with | ||
<a href="https://github.com/semanticdata/firefox-whatsapp-pinned/" | ||
><i class="fa fa-heart" aria-hidden="true"></i | ||
></a> | ||
by | ||
<a | ||
class="site-author" | ||
href="https://miguelpimentel.do/" | ||
target="_blank" | ||
> | ||
target="_blank"> | ||
Miguel Pimentel</a | ||
>. | ||
</p> | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
|
||
<html lang="en-US"> | ||
<head> | ||
|
Oops, something went wrong.