Skip to content

Instantly share code, notes, and snippets.

View dreamhunter2333's full-sized avatar
:shipit:
Focusing

Dream Hunter dreamhunter2333

:shipit:
Focusing
View GitHub Profile
@dreamhunter2333
dreamhunter2333 / GlobalProtectVPN-CloseWindow.js
Last active May 11, 2022 06:52
Global Protect VPN - Close Window
// ==UserScript==
// @name Global Protect VPN - Close Window
// @namespace Scripts
// @match https://*.xxxvpn-alt.ras.xxx.com/*
// @match https://xxxvpn-alt.ras.xxx.com/*
// @grant window.close
// @version 1.0
// @description Close the tab when successful Global Protect VPN is on
// ==/UserScript==
@dreamhunter2333
dreamhunter2333 / AWSVPN-CloseWindow.js
Last active May 11, 2022 06:52
WS VPN - Close Window
// ==UserScript==
// @name AWS VPN - Close Window
// @namespace Scripts
// @match http://127.0.0.1:35001/
// @grant window.close
// @version 1.0
// @description Close the tab when successful AWS VPN is on
// ==/UserScript==
setInterval(() => {
@dreamhunter2333
dreamhunter2333 / macos-clean-up.sh
Last active July 1, 2024 06:02
macos storage clean up
declare -a paths
paths+=("/Users/${USER}/Library/Caches")
# chrome
paths+=("/Users/${USER}/Library/Caches/Google/Chrome/GrShaderCache")
paths+=("/Users/${USER}/Library/Caches/Google/Chrome/Crashpad")
paths+=("/Users/${USER}/Library/Caches/Google/Chrome/Default/Cache")
paths+=("/Users/${USER}/Library/Caches/Google/Chrome/Default/Code Cache")
paths+=("/Users/${USER}/Library/Application Support/Google/Chrome/Default/Service Worker")
@dreamhunter2333
dreamhunter2333 / AutoRedirect.js
Last active September 21, 2021 06:48
Tampermonkey - Auto redirect from m.weibo.cn to weibo.com
// ==UserScript==
// @name Auto redirect from m.weibo.cn to weibo.com
// @namespace https://m.weibo.cn/
// @version 0.1
// @description Auto redirect from m.weibo.cn to weibo.com
// @author dreamhunter2333
// @match https://m.weibo.cn/detail/*
// @grant none
// ==/UserScript==