Skip to content

Instantly share code, notes, and snippets.

View shadowdreamer's full-sized avatar
👋
🐟

Dovahkiin shadowdreamer

👋
🐟
View GitHub Profile
@shadowdreamer
shadowdreamer / fetchInterceptor.user.js
Last active February 6, 2025 23:30
XHR & Fetch Interceptor
// ==UserScript==
// @name XHR & Fetch Interceptor
// @namespace http://tampermonkey.net/
// @version 0.2
// @description 拦截并修改XHR和Fetch请求响应 douyin
// @author You
// @match *://*.douyin.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
@shadowdreamer
shadowdreamer / gitfetch.sh
Created January 3, 2025 08:13 — forked from kuku/gitfetch.sh
当本地看不到远程git 分支的时候,可以这样来获得。 http://stackoverflow.com/questions/12578665/i-cant-see-my-remote-branch
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin