Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
semanticdata committed May 8, 2024
1 parent 29aed90 commit 9dc5f3c
Show file tree
Hide file tree
Showing 82 changed files with 488 additions and 690 deletions.
13 changes: 3 additions & 10 deletions brave-search/.github/workflows/web-ext-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release new version
on:
push:
tags:
- "v*.*.*"
- 'v*.*.*'
# release:
# types: [published]

Expand All @@ -21,15 +21,8 @@ jobs:
uses: kewisch/action-web-ext@v1
with:
cmd: build
filename: "{name}-{version}.xpi"
ignoreFiles: '[
"package.json",
"package-lock.json",
"yarn.lock",
".github",
".gitattributes",
"LICENSE",
"README.md"]'
filename: '{name}-{version}.xpi'
ignoreFiles: '[ "package.json", "package-lock.json", "yarn.lock", ".github", ".gitattributes", "LICENSE", "README.md"]'

- name: Sign
id: web-ext-sign
Expand Down
6 changes: 1 addition & 5 deletions brave-search/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# ![Brave logo](icons/96x96.png) Brave Search Engine and Keywords

![Mozilla Add-on Version](https://img.shields.io/amo/v/%7B53c0f15a-a430-4d4f-ac91-caed0d516155%7D)
![Mozilla Add-on Rating](https://img.shields.io/amo/rating/%7B53c0f15a-a430-4d4f-ac91-caed0d516155%7D)
![Mozilla Add-on Downloads](https://img.shields.io/amo/dw/%7B53c0f15a-a430-4d4f-ac91-caed0d516155%7D)
![Mozilla Add-on Users](https://img.shields.io/amo/users/%7B53c0f15a-a430-4d4f-ac91-caed0d516155%7D)
![GitHub License](https://img.shields.io/github/license/semanticdata/firefox-brave-search)
![Mozilla Add-on Version](https://img.shields.io/amo/v/%7B53c0f15a-a430-4d4f-ac91-caed0d516155%7D) ![Mozilla Add-on Rating](https://img.shields.io/amo/rating/%7B53c0f15a-a430-4d4f-ac91-caed0d516155%7D) ![Mozilla Add-on Downloads](https://img.shields.io/amo/dw/%7B53c0f15a-a430-4d4f-ac91-caed0d516155%7D) ![Mozilla Add-on Users](https://img.shields.io/amo/users/%7B53c0f15a-a430-4d4f-ac91-caed0d516155%7D) ![GitHub License](https://img.shields.io/github/license/semanticdata/firefox-brave-search)

Firefox extension that adds Brave Search to Firefox and includes `@brave`, `!brave`, `@b`, and `!b` as search keywords. This allows you to easily search brave in multiple new ways.

Expand Down
13 changes: 3 additions & 10 deletions chatgpt-in-sidebar/.github/workflows/web-ext-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release new version
on:
push:
tags:
- "v*.*.*"
- 'v*.*.*'
# release:
# types: [published]

Expand All @@ -21,15 +21,8 @@ jobs:
uses: kewisch/action-web-ext@v1
with:
cmd: build
filename: "{name}-{version}.xpi"
ignoreFiles: '[
"package.json",
"package-lock.json",
"yarn.lock",
".github",
".gitattributes",
"LICENSE",
"README.md"]'
filename: '{name}-{version}.xpi'
ignoreFiles: '[ "package.json", "package-lock.json", "yarn.lock", ".github", ".gitattributes", "LICENSE", "README.md"]'

- name: Sign
id: web-ext-sign
Expand Down
8 changes: 2 additions & 6 deletions chatgpt-in-sidebar/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<h1><img src="src/icons/chatgpt.png" width="64" height="64" /> ChatGPT in Sidebar</h1>

![Mozilla Add-on](https://img.shields.io/amo/v/{28b7b9b8-aab9-4034-8628-26d955bf7713})
![Add-on rating](https://img.shields.io/amo/rating/{28b7b9b8-aab9-4034-8628-26d955bf7713})
![Add-on downloads](https://img.shields.io/amo/dw/{28b7b9b8-aab9-4034-8628-26d955bf7713})
![Add-on users](https://img.shields.io/amo/users/{28b7b9b8-aab9-4034-8628-26d955bf7713})
![License](https://img.shields.io/github/license/semanticdata/firefox-chatgpt-in-sidebar)
![Mozilla Add-on](https://img.shields.io/amo/v/{28b7b9b8-aab9-4034-8628-26d955bf7713}) ![Add-on rating](https://img.shields.io/amo/rating/{28b7b9b8-aab9-4034-8628-26d955bf7713}) ![Add-on downloads](https://img.shields.io/amo/dw/{28b7b9b8-aab9-4034-8628-26d955bf7713}) ![Add-on users](https://img.shields.io/amo/users/{28b7b9b8-aab9-4034-8628-26d955bf7713}) ![License](https://img.shields.io/github/license/semanticdata/firefox-chatgpt-in-sidebar)

Firefox extension to display ChatGPT within the Firefox sidebar. This extension adds a new section to the sidebar which contains the ChatGPT web app. It also adds a shortcut, and a button toggle within the toolbar.

Expand Down Expand Up @@ -40,7 +36,7 @@ The sidebar's width is _locked by default_ in Firefox. Unfortunately, the sideba

### 📝 Notes

- You can find the canonical publication for the guide on my [Blog](https://miguelpimentel.do/unlock-firefox-sidebar/).
- You can find the canonical publication for the guide on my [Blog](https://miguelpimentel.do/unlock-firefox-sidebar/).
- I also have instructions in Spanish in this GitHub [Gist](https://gist.github.com/semanticdata/ee0bca4f3617241aa98da114653c0b08#file-instrucciones-md).

## ⚠ Disclaimer
Expand Down
12 changes: 6 additions & 6 deletions chatgpt-in-sidebar/src/background.js
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)
27 changes: 12 additions & 15 deletions chatgpt-in-sidebar/src/options/options.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>

<html lang="en-US">
<head>
Expand All @@ -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>

Expand All @@ -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>
Expand Down
20 changes: 10 additions & 10 deletions chatgpt-in-sidebar/src/options/options.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
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
}
}
}
Expand All @@ -14,19 +14,19 @@ async function updateUI() {
async function updateShortcut() {
await browser.commands.update({
name: sidebarToggle,
shortcut: document.querySelector("#shortcut").value,
});
shortcut: document.querySelector('#shortcut').value
})
}

// Reset shortcut and update textbox
async function resetShortcut() {
await browser.commands.reset(sidebarToggle);
updateUI();
await browser.commands.reset(sidebarToggle)
updateUI()
}

// Update UI on page load
document.addEventListener("DOMContentLoaded", updateUI);
document.addEventListener('DOMContentLoaded', updateUI)

// Act on update and reset buttons
document.querySelector("#update").addEventListener("click", updateShortcut);
document.querySelector("#reset").addEventListener("click", resetShortcut);
document.querySelector('#update').addEventListener('click', updateShortcut)
document.querySelector('#reset').addEventListener('click', resetShortcut)
2 changes: 1 addition & 1 deletion chatgpt-in-sidebar/src/sidebar/panel.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>

<html lang="en">
<head>
Expand Down
13 changes: 3 additions & 10 deletions discord-in-sidebar/.github/workflows/web-ext-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release new version
on:
push:
tags:
- "v*.*.*"
- 'v*.*.*'
# release:
# types: [published]

Expand All @@ -21,15 +21,8 @@ jobs:
uses: kewisch/action-web-ext@v1
with:
cmd: build
filename: "{name}-{version}.xpi"
ignoreFiles: '[
"package.json",
"package-lock.json",
"yarn.lock",
".github",
".gitattributes",
"LICENSE",
"README.md"]'
filename: '{name}-{version}.xpi'
ignoreFiles: '[ "package.json", "package-lock.json", "yarn.lock", ".github", ".gitattributes", "LICENSE", "README.md"]'

- name: Sign
id: web-ext-sign
Expand Down
8 changes: 2 additions & 6 deletions discord-in-sidebar/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# ![logo](src/icons/icon1_48.png) Discord in Sidebar

![Mozilla Add-on](https://img.shields.io/amo/v/{a16c3799-d903-44e3-b044-a032197f5ef8})
![Add-on rating](https://img.shields.io/amo/rating/{a16c3799-d903-44e3-b044-a032197f5ef8})
![Add-on downloads](https://img.shields.io/amo/dw/{a16c3799-d903-44e3-b044-a032197f5ef8})
![Add-on users](https://img.shields.io/amo/users/{a16c3799-d903-44e3-b044-a032197f5ef8})
![License](https://img.shields.io/github/license/semanticdata/firefox-discord-in-sidebar)
![Mozilla Add-on](https://img.shields.io/amo/v/{a16c3799-d903-44e3-b044-a032197f5ef8}) ![Add-on rating](https://img.shields.io/amo/rating/{a16c3799-d903-44e3-b044-a032197f5ef8}) ![Add-on downloads](https://img.shields.io/amo/dw/{a16c3799-d903-44e3-b044-a032197f5ef8}) ![Add-on users](https://img.shields.io/amo/users/{a16c3799-d903-44e3-b044-a032197f5ef8}) ![License](https://img.shields.io/github/license/semanticdata/firefox-discord-in-sidebar)

A Firefox extension to display Discord within the Firefox sidebar. This extension adds a new section to the sidebar which contains the Discord web app. It also adds a shortcut, and a button toggle within the toolbar.

Expand Down Expand Up @@ -40,7 +36,7 @@ The sidebar's width is _locked by default_ in Firefox. Unfortunately, the sideba

### 📝 Notes

- You can find the canonical publication for the guide on my [Blog](https://miguelpimentel.do/unlock-firefox-sidebar/).
- You can find the canonical publication for the guide on my [Blog](https://miguelpimentel.do/unlock-firefox-sidebar/).
- I also have instructions in Spanish in this GitHub [Gist](https://gist.github.com/semanticdata/ee0bca4f3617241aa98da114653c0b08#file-instrucciones-md).

## ⚠ Disclaimer
Expand Down
12 changes: 6 additions & 6 deletions discord-in-sidebar/src/background.js
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)
27 changes: 12 additions & 15 deletions discord-in-sidebar/src/options/options.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>

<html lang="en-US">
<head>
Expand All @@ -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>

Expand All @@ -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>
Expand Down
20 changes: 10 additions & 10 deletions discord-in-sidebar/src/options/options.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
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
}
}
}
Expand All @@ -14,19 +14,19 @@ async function updateUI() {
async function updateShortcut() {
await browser.commands.update({
name: sidebarToggle,
shortcut: document.querySelector("#shortcut").value,
});
shortcut: document.querySelector('#shortcut').value
})
}

// Reset shortcut and update textbox
async function resetShortcut() {
await browser.commands.reset(sidebarToggle);
updateUI();
await browser.commands.reset(sidebarToggle)
updateUI()
}

// Update UI on page load
document.addEventListener("DOMContentLoaded", updateUI);
document.addEventListener('DOMContentLoaded', updateUI)

// Act on update and reset buttons
document.querySelector("#update").addEventListener("click", updateShortcut);
document.querySelector("#reset").addEventListener("click", resetShortcut);
document.querySelector('#update').addEventListener('click', updateShortcut)
document.querySelector('#reset').addEventListener('click', resetShortcut)
2 changes: 1 addition & 1 deletion discord-in-sidebar/src/sidebar/panel.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>

<html lang="en-US">
<head>
Expand Down
Loading

0 comments on commit 9dc5f3c

Please sign in to comment.