mirror of
https://github.com/lencx/Noi.git
synced 2025-12-15 17:40:48 +01:00
release v0.4.0
This commit is contained in:
@@ -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 -->
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
25
extensions/noi-reset/scrollbar.js
Normal file
25
extensions/noi-reset/scrollbar.js
Normal 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);
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user