release v0.4.0

This commit is contained in:
lencx
2024-03-25 18:27:02 +08:00
parent 906e460eaa
commit 6872b6a2d6
21 changed files with 193 additions and 28 deletions

View File

@@ -12,5 +12,5 @@ Learn more: [electronjs/doc](https://www.electronjs.org/docs/latest/api/extensio
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.7 | 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.0 | ChatGPT chat history export, supports PDF, Image, and Markdown formats. |
| [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.0 | Reset certain website styles to enhance compatibility with Noi. |
| [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.1 | Reset certain website styles to enhance compatibility with Noi. |
<!-- EXTENSIONS_END -->

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "@noi/reset",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/lencx/Noi/tree/main/extensions/noi-reset",
"description": "Reset certain website styles to enhance compatibility with Noi.",
"content_scripts": [
@@ -9,7 +9,15 @@
"matches": [
"https://vscode.dev/*"
],
"js": ["main.js"],
"js": ["darg.js"],
"run_at": "document_end",
"world": "MAIN"
},
{
"matches": [
"<all_urls>"
],
"js": ["scrollbar.js"],
"run_at": "document_end",
"world": "MAIN"
}

View File

@@ -0,0 +1,25 @@
if (navigator.platform.toUpperCase().indexOf('MAC') < 0) {
const style = document.createElement('style');
style.innerHTML = `
html {
--noi-scrollbarBG: rgba(250, 250, 250, 0.1);
--noi-thumbBG: #d8d8d8;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-corner {
background-color: transparent;
}
::-webkit-scrollbar-track {
background: var(--noi-scrollbarBG);
border-radius: 2px;
}
::-webkit-scrollbar-thumb {
border-radius: 2px;
background-color: var(--noi-thumbBG);
}
`;
document.head.appendChild(style);
}

View File

@@ -29,7 +29,7 @@
{
"name": "@noi/reset",
"description": "Reset certain website styles to enhance compatibility with Noi.",
"version": "0.1.0",
"version": "0.1.1",
"url": "https://github.com/lencx/Noi/tree/main/extensions/noi-reset",
"dirname": "noi-reset",
"disabled": false