Skip to content

Instantly share code, notes, and snippets.

View XXpE3's full-sized avatar
🏠
Working from home

Shima Rin XXpE3

🏠
Working from home
View GitHub Profile
@XXpE3
XXpE3 / .MitM4OpenAI.md
Created March 12, 2024 10:43 — forked from tshu-w/.MitM4OpenAI.md
OpenAI API 全局请求重定向

使用 MitM 加代理工具实现 OpenAI API 请求全局重定向

Surge (macOS Only)

  1. 在 Surge 中安装 CA 证书并使用 AIProxy.sgmodule 模块。

Clash + MitMProxy

  1. 安装 MitmProxy 以及 CA 证书
  2. 后台运行 MitMProxy 并设定重定向规则,例如:screen mitmproxy --map-remote '|//api.openai.com/|//api.aiproxy.io/' -k
  3. 在 Clash 中添加配置,将 api.openai.com 的请求走 HTTP 8080 端口代理,并开启增强模式
@-moz-document url-prefix("https://copymanga.") {
.comicContent-list>li>img {
width: 100vw;
}
.container-fluid {
padding-right: 0px;
padding-left: 0px;
}
@XXpE3
XXpE3 / 去除 Firefox 标题栏左上角空白.md
Created April 2, 2022 10:52
去除 Firefox 标题栏左上角空白

去除 Firefox 标题栏左上角空白

  1. 地址栏输入 about:config
  2. 搜索 toolkit.legacyUserProfileCustomizations.stylesheets 改为 true
  3. 地址栏输入 about:support
  4. 点击 应用程序概要 中的 配置文件夹 打开文件夹
  5. 配置文件夹 中新建 chrome 文件夹
  6. chrome 文件夹中新建 userChrome.css 文件
  7. userChrome.css 文件中粘贴以下内容:
@XXpE3
XXpE3 / .cvimrc
Last active August 15, 2019 07:54
cVim
" Settings
set nohud
set nosmoothscroll
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
set typelinkhints
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
@XXpE3
XXpE3 / compact.css
Last active August 13, 2019 11:12
Tiny Tiny RSS Font Size
/* Google font CDN */
@import url("https://fonts.googleapis.com/css?family=Noto+Sans+SC|Source+Code+Pro&display=");
/* Code pre font */
body.ttrss_main #content-insert pre, body.ttrss_main #headlines-frame pre, body.ttrss_main .dijitContentPane pre {
font-family: 'Source Code Pro';
font-size: 20px;
}
/* Read font */
@XXpE3
XXpE3 / .vimrc
Last active October 22, 2019 13:12
Simple Vim Config
set number
set linebreak
set showbreak=+++
set textwidth=100
set showmatch
set visualbell
set hlsearch
set smartcase
set ignorecase
set incsearch