- 需搭配美区节点网络环境。
- 自动化执行等高级功能需要 Gemini Pro 账号。
激活 Chrome 原生 Gemini 侧边栏,把下面的提示词喂给 Agent 即可:
# 角色:Chrome 深度配置与自动化助手| mode: rule | |
| log-level: info | |
| dns: | |
| enable: true | |
| ipv6: false | |
| # 启动服务器,用于解析提供的 nameserver,只能用 IP | |
| # default-nameserver: | |
| # - 223.5.5.5 | |
| # - 119.29.29.29 | |
| enhanced-mode: fake-ip |
| export interface ConstructorOptions { | |
| api: string; | |
| key: string; | |
| } | |
| export default class JSONBin { | |
| private api: string; | |
| private key: string; | |
| constructor(options: ConstructorOptions) { |
| function fromRecords<T>(items: T[], key: keyof T, value: keyof T) { | |
| return Object.fromEntries(items.map(({ [key]: k, [value]: v }) => [k, v])) | |
| } | |
| const users = [ | |
| { id: 'id1', name: 'Alice', email: 'alice@example.com' }, | |
| { id: 'id2', name: 'Bob', email: 'bob@example.com' }, | |
| ] | |
| const userMap = fromRecords(users, 'id', 'name') |
| import React from 'react'; | |
| export function makeStore({actions}) { | |
| // Make a context for the store | |
| const context = React.createContext(); | |
| // Make a provider that takes an initialValue | |
| const Provider = ({initialValue = {}, children}) => { | |
| // Make a new state instance | |
| const [state, setState] = React.useState(initialValue); |
| *://blog.csdn.net/* |
| { | |
| "workbench.startupEditor": "none", | |
| "editor.fontSize": 13.5, | |
| "editor.fontFamily": "Victor Mono", | |
| "editor.fontLigatures": true, | |
| "editor.lineHeight": 24, | |
| "editor.tabSize": 2, | |
| "git.confirmSync": false, | |
| "editor.guides.bracketPairs": false, | |
| "git.autofetch": true, |
| // 检测给定字符串是否正确嵌套 | |
| // Determine whether a given string of parentheses (multiple types) is properly nested. | |
| function solution(text) { | |
| var openBrackets = ['(', '[', '<', '{']; | |
| var closedBrackets = [')', ']', '>', '}']; | |
| var requiredClosedBrackets = []; | |
| var chars = text.split(''); | |
| for (var i = 0; i < chars.length; i++) { |
| ## Disk Settings ## | |
| dir = ${HOME}/Downloads | |
| daemon = false | |
| enable-mmap = true | |
| disk-cache = 64M | |
| file-allocation = none | |
| ## Download Settings ## | |
| continue = true | |
| split = 16 |
| declare class Stringified<T> extends String { | |
| private ___stringified: T | |
| } | |
| interface JSON { | |
| stringify<T>( | |
| value: T, | |
| replacer?: (key: string, value: any) => any, | |
| space?: string | number | |
| ): string & Stringified<T> |