Skip to content

Commit

Permalink
Merge branch 'lencx:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
9Cube-dpustula authored Dec 10, 2024
2 parents 31d8687 + 537bf91 commit e756f40
Show file tree
Hide file tree
Showing 29 changed files with 959 additions and 8 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

<a href="https://www.buymeacoffee.com/lencx" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-blue.png" alt="Buy Me A Coffee" style="height: 40px !important;width: 145px !important;" ></a>

> [!NOTE]
> When installing for the first time, the **Noi Extensions** might not be the latest version. You will need to manually update the extensions from [lencx/Noi/extensions](https://github.com/lencx/Noi/tree/main/extensions) to your computer.
>
> You can locate this option in the settings or open the local extensions directory via the menu: **Help -> Noi UserData -> Extensions**.
>
> ![](./website/static/readme/noi-extensions.png)
## 🔥 Feature

Introducing Noi: an AI-enhanced, customizable browser designed to streamline your digital experience:
Expand Down Expand Up @@ -101,10 +108,11 @@ Learn more: [electronjs/doc](https://www.electronjs.org/docs/latest/api/extensio
<!-- EXTENSIONS_START -->
| Name | Version | Description |
| --- | --- | --- |
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.12 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.13 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/ask-custom](https://github.com/lencx/Noi/tree/main/extensions/noi-ask-custom) | 0.1.0 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/export-chatgpt](https://github.com/lencx/Noi/tree/main/extensions/noi-export-chatgpt) | 0.1.1 | ChatGPT chat history export, supports PDF, Image, and Markdown formats. |
| [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.3 | Reset certain website styles to enhance compatibility with Noi. |
| [Thinking Claude](https://github.com/lencx/Noi/tree/main/extensions/thinking-claude) | 0.1.2 | Let Claude think. Makes Claude's thinking process expandable and collapsible. |
<!-- EXTENSIONS_END -->

[![Star History Chart](https://api.star-history.com/svg?repos=lencx/Noi&type=Timeline)](https://star-history.com/#lencx/Noi&Timeline)
Expand Down
20 changes: 19 additions & 1 deletion configs/noi.mode.cn.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Noi Mode",
"version": "0.1.6",
"version": "0.1.7",
"sync": "https://github.com/lencx/noi/blob/main/configs/noi.mode.cn.json",
"modes": [
{
Expand Down Expand Up @@ -93,6 +93,12 @@
"text": "Pi",
"url": "https://pi.ai/talk"
},
{
"id": "noi:notebooklm",
"parent": "noi@ai",
"text": "NotebookLM",
"url": "https://notebooklm.google.com"
},
{
"id": "noi:coze",
"parent": "noi@ai",
Expand Down Expand Up @@ -129,6 +135,12 @@
"text": "豆包",
"url": "https://www.doubao.com"
},
{
"id": "noi:jimeng",
"parent": "noi@aiCN",
"text": "即梦 AI",
"url": "https://jimeng.jianying.com"
},
{
"id": "noi:chatglm",
"parent": "noi@aiCN",
Expand Down Expand Up @@ -189,6 +201,12 @@
"text": "VS Code",
"url": "https://vscode.dev"
},
{
"id": "noi:projectidx",
"parent": "noi@dev",
"text": "Project IDX",
"url": "https://idx.google.com"
},
{
"id": "noi:qqmail",
"parent": "noi@email",
Expand Down
14 changes: 13 additions & 1 deletion configs/noi.mode.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Noi Mode",
"version": "0.1.9",
"version": "0.1.10",
"sync": "https://github.com/lencx/noi/blob/main/configs/noi.mode.json",
"modes": [
{
Expand Down Expand Up @@ -99,6 +99,12 @@
"text": "Pi",
"url": "https://pi.ai/talk"
},
{
"id": "noi:notebooklm",
"parent": "noi@ai",
"text": "NotebookLM",
"url": "https://notebooklm.google.com"
},
{
"id": "noi:coze",
"parent": "noi@ai",
Expand Down Expand Up @@ -147,6 +153,12 @@
"text": "VS Code",
"url": "https://vscode.dev"
},
{
"id": "noi:projectidx",
"parent": "noi@dev",
"text": "Project IDX",
"url": "https://idx.google.com"
},
{
"id": "noi:x",
"parent": "noi@community",
Expand Down
3 changes: 2 additions & 1 deletion extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ Learn more: [electronjs/doc](https://www.electronjs.org/docs/latest/api/extensio
<!-- EXTENSIONS_START -->
| Name | Version | Description |
| --- | --- | --- |
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.12 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.13 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/ask-custom](https://github.com/lencx/Noi/tree/main/extensions/noi-ask-custom) | 0.1.0 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/export-chatgpt](https://github.com/lencx/Noi/tree/main/extensions/noi-export-chatgpt) | 0.1.1 | ChatGPT chat history export, supports PDF, Image, and Markdown formats. |
| [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.3 | Reset certain website styles to enhance compatibility with Noi. |
| [Thinking Claude](https://github.com/lencx/Noi/tree/main/extensions/thinking-claude) | 0.1.2 | Makes Claude's thinking process expandable and collapsible |
<!-- EXTENSIONS_END -->
41 changes: 41 additions & 0 deletions extensions/noi-ask/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,45 @@ class SunoAsk extends NoiAsk {
}
}

class NotebooklmAsk extends NoiAsk {
static name = 'NotebookLM';
static url = 'https://notebooklm.google.com';

static submit() {
const btn = document.querySelector('form button[type="submit"]');
if (btn) btn.click();
}
}

class JimengAsk extends NoiAsk {
static name = 'Jimeng';
static url = 'https://jimeng.jianying.com';

static sync(message) {
// image generation
const inputElement = document.querySelector('#prompt-text-editor');
if (inputElement) {
inputElement.focus();
inputElement.innerHTML = '';

const span = document.createElement('span');
span.textContent = message;
inputElement.appendChild(span);

const inputEvent = new InputEvent('input', {
bubbles: true,
cancelable: true,
});
inputElement.dispatchEvent(inputEvent);
}
}

static submit() {
const btn = document.querySelector('[class*="generateButton"]');
if (btn) this.autoClick(btn);
}
}

window.NoiAsk = {
OpenAIAsk,
PoeAsk,
Expand All @@ -358,4 +397,6 @@ window.NoiAsk = {
TongyiAsk,
GroqAsk,
SunoAsk,
NotebooklmAsk,
JimengAsk,
};
6 changes: 4 additions & 2 deletions extensions/noi-ask/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "@noi/ask",
"version": "0.1.12",
"version": "0.1.13",
"homepage": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask",
"description": "The best assistant for batch asking and quick typing of prompts.",
"content_scripts": [
Expand All @@ -22,7 +22,9 @@
"https://chatglm.cn/*",
"https://www.doubao.com/*",
"https://tongyi.aliyun.com/qianwen/*",
"https://suno.com/*"
"https://suno.com/*",
"https://notebooklm.google.com/*",
"https://jimeng.jianying.com/*"
],
"js": ["main.js"],
"run_at": "document_end",
Expand Down
10 changes: 9 additions & 1 deletion extensions/noi.extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "@noi/ask",
"description": "The best assistant for batch asking and quick typing of prompts.",
"version": "0.1.12",
"version": "0.1.13",
"url": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask",
"dirname": "noi-ask",
"disabled": false
Expand Down Expand Up @@ -33,6 +33,14 @@
"url": "https://github.com/lencx/Noi/tree/main/extensions/noi-reset",
"dirname": "noi-reset",
"disabled": false
},
{
"name": "Thinking Claude",
"description": "Let Claude think. Makes Claude's thinking process expandable and collapsible.",
"version": "0.1.2",
"url": "https://github.com/lencx/Noi/tree/main/extensions/thinking-claude",
"dirname": "thinking-claude",
"disabled": false
}
]
}
28 changes: 28 additions & 0 deletions extensions/thinking-claude/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Thinking Claude

- ref: [richards199999/Thinking-Claude](https://github.com/richards199999/Thinking-Claude)
- prompt: [claude.json](https://github.com/lencx/Noi/blob/main/prompts/claude.json)

## Usage

### Extensions

> [!IMPORTANT]
> Since Noi extensions do not interoperate with Chrome extensions, the code from the `richards199999/Thinking-Claude` project was forked and modified within the Noi repository. All extensions are now managed centrally under [Noi/extensions](https://github.com/lencx/Noi/tree/main/extensions).
To install an extension locally, open the extensions directory on your device by navigating to `Noi Help -> Noi UserData -> Extensions`, then download and place the [thinking-claude](https://github.com/lencx/Noi/tree/main/extensions/thinking-claude) folder from GitHub into this directory.

![claude ext](./assets/noi-claude-ext.png)

### Prompt

1. Open `Noi Settings` and select the `Prompts -> Custom Sync` menu item.
2. Click the `Sync` button, enter `Thinking Claude` as the name, select the `.json` link format, and enter `https://raw.githubusercontent.com/lencx/Noi/refs/heads/main/prompts/claude.json` as the URL.
3. Click the `Ok` button to save.
![sync](./assets/sync-01.png)
4. Click the operation buttons in sequence to import the prompt into `Noi Ask`.
![sync use](./assets/sync-02.png)
5. Once the `Thinking Claude` prompt appears under `User Prompts`, it is ready for use.
![user prompts](./assets/sync-03.png)
6. Return to the main interface to use Noi Ask for querying.
![Noi Ask](./assets/noi-ask.png)
Binary file added extensions/thinking-claude/assets/noi-ask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/thinking-claude/assets/sync-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/thinking-claude/assets/sync-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/thinking-claude/assets/sync-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e756f40

Please sign in to comment.