Skip to content

Instantly share code, notes, and snippets.

View KnIfER's full-sized avatar

knziha KnIfER

View GitHub Profile
@KnIfER
KnIfER / _windows_fix_app_white_flash.md
Last active March 7, 2026 08:29
windows 解决任意窗口启动闪白(white flash on start)的终极方案

黑暗模式下,最难忍受启动白屏: chrome,edge,vscode,github desktop,这些浏览器/electron应用……

终极方案 : 启动时注入 dll ,劫持 createWindow, 或将窗口隐藏,或将白色设置为透明色,或显示一个黑色半透明遮罩。

Edge

劫持 createWindow,将白色设置为透明色即可。

@KnIfER
KnIfER / doubao_navigator.user.js
Last active November 23, 2025 03:29
豆包专属 Grok 风格右侧消息导航栏
// ==UserScript==
// @name doubao_navigator
// @namespace http://tampermonkey.net/
// @version 1.1
// @author Grok and you
// @match https://www.doubao.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=doubao.com
// @grant unsafeWindow
// ==/UserScript==
@KnIfER
KnIfER / _readme.md
Last active September 8, 2025 07:36
godot editor tool script auto update on tweaking parameter
@KnIfER
KnIfER / -ReadMe.md
Last active July 21, 2024 05:44
抹布翻译
@KnIfER
KnIfER / - GitHubDesktop_custom.md
Last active June 6, 2024 22:20
GitHubDesktop pin repository list

Workaround for Desktop / Allow the repository list to be expanded all the time

How to use :

  • try to alt+click the big button
  • or right/left click on the left edge of maximized window.

It will toggle the pinning state of repository list view.

When the list view is pinned, it's styles are modified to make it non-modal and always visible.

@KnIfER
KnIfER / acc_lite.ahk
Last active September 30, 2025 08:47
Chrome open bookmarked pages in new tab by default. (single left click open new tab in foreground )
global click_state := 0
global leftDwn := 0
GroupAdd, browser_gp, ahk_exe chrome.exe
Acc_Init(Function := "") {
Static h
If Not h
h:=DllCall("LoadLibrary","Str","oleacc","Ptr")
If Function
@KnIfER
KnIfER / EasyOcr.ahk
Created November 6, 2023 04:09
Easily recognize texts on screen, or just copy image area to clipboard. Left-click and drag to execute OCR; Right-click and drag to copy the screenshot; Click = use the last selection box.
#NoEnv
#MaxThreadsPerHotkey 2
#SingleInstance Force
; 安装需求: https://github.com/telppa/PaddleOCR-AutoHotkey
; getSelectionCoords 改自社区脚本。 纯英文可用 Capture2Text
F2::
;^Q::
@KnIfER
KnIfER / novel_guard.user.js
Last active April 27, 2023 08:57
novel_guard.user.js
// ==UserScript==
// @name 小说守护神
// @namespace https://gist.github.com/KnIfER
// @description 首次访问小说网站时,自动开启以下两项设置:-- ①禁止跨域跳转 -- ② 自动开启无图模式
// @version 1
// @match *://*/*
// @run-at document-start
// @run-at document-end
// @grant GM_blockImage
// @grant GM_blockCorsJump
@KnIfER
KnIfER / easy_scrollbar.ahk
Created April 12, 2023 10:07
ahk how to make scrollbar drag more easily by middle button down.
#IfWinActive ahk_exe chrome.exe
$MButton::
MouseGetPos, xpos, ypos
WinGetPos,x,y,w,h
if (xpos<w && xpos >= w-30 && ypos>0 && ypos<h) {
global tmp:=1
Send +{LButton down}
}
else MouseClick, M