This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name DeepSeek 批量删除对话 | |
| // @namespace deepseek.hyrious.me | |
| // @version 2026-07-14 | |
| // @description 按 ctrl+x 删除当前对话,按 ctrl+shift+x 删除全部对话 | |
| // @author hyrious | |
| // @match https://chat.deepseek.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=deepseek.com | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name NPM code highlight in Dark Mode | |
| // @namespace npm-syntax-dark.hyrious.me | |
| // @version 2026-07-01 | |
| // @description NPM only bundles the light theme. | |
| // @author hyrious | |
| // @match https://www.npmjs.com/package/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=npmjs.com | |
| // @grant GM_addStyle | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| process.stdout.write('\x1b[?25l' + '\x1b[30;40m' + '▽' + '\x1b[0m'); | |
| process.stdin.setRawMode(true); | |
| process.stdout.setNoDelay(true); | |
| process.stdout.write('\x1B[6n'); | |
| const rowcol = await new Promise(r => { | |
| let buf = ''; | |
| const onData = (data: Buffer) => { | |
| buf += data.toString('utf8'); | |
| const match = /\x1B\[(\d+);(\d+)R/.exec(buf); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { ChildProcessWithoutNullStreams } from 'node:child_process'; | |
| const LengthPrefix = 'Content-Length: '; | |
| /// Simple language server client over JSON-RPC over stdio. | |
| export class LanguageClient { | |
| readonly process: ChildProcessWithoutNullStreams; | |
| private readonly _messageListeners: Set<(msg: unknown) => void> = new Set(); | |
| constructor(proc: ChildProcessWithoutNullStreams) { | |
| this.process = proc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as vscode from 'vscode'; | |
| import redent from 'redent'; | |
| export function activate(context: vscode.ExtensionContext) { | |
| vscode.commands.registerCommand('selfhost.pasteWithIndent', async () => { | |
| const text = await vscode.env.clipboard.readText() | |
| if (!text) return; | |
| const editor = vscode.window.activeTextEditor | |
| if (editor) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _CRT_SECURE_NO_WARNINGS | |
| #include <Windows.h> | |
| #include <stdio.h> | |
| #define BUFFER_SIZE 4096 | |
| int main(int argc, char *argv[]) { | |
| HANDLE hDir; | |
| DWORD bytesReturned; | |
| char buffer[BUFFER_SIZE]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Chrome - NW.js | |
| [ | |
| "navigation", | |
| "event", | |
| "onbeforexrselect", | |
| "onbeforeinput", | |
| "onbeforematch", | |
| "onbeforetoggle", | |
| "oncommand", | |
| "oncontentvisibilityautostatechange", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| [ | |
| { "keys": ["super+c"], "command": "copy_diff", "context": [{ "key": "selector", "operand": "source.diff", "operator": "equal", "match_all": true } ] } | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Plugin } from 'esbuild' | |
| import { default as Postcss } from 'postcss' | |
| import { default as PostcssModulesPlugin } from 'postcss-modules' | |
| import { compile, Options } from 'sass' | |
| export type CSSModulesOptions = Parameters<typeof PostcssModulesPlugin>[0] | |
| export interface CSSOptions { | |
| /// https://github.com/css-modules/postcss-modules | |
| modules?: CSSModulesOptions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "caption": "Cleanup Repo", | |
| "command": "git", | |
| "args": {"argv": ["gc"]} | |
| }, | |
| { | |
| "caption": "Sync main to origin/main", | |
| "command": "git", | |
| "args": {"argv": ["branch", "-f", "main", "origin/main"]} |
NewerOlder