Skip to content

Instantly share code, notes, and snippets.

View myfreeer's full-sized avatar
💭
I may be slow to respond.

myfreeer

💭
I may be slow to respond.
View GitHub Profile
@myfreeer
myfreeer / cycle-denoise.lua
Last active April 20, 2024 12:16
mpv user-script to cycle between lavfi's denoise filters, tested over mpv 0.25.0-58-g99cef59fc
-- settings
-- key_binding: press the key specified below
-- to cycle between denoise filters below,
-- set it to nil to disable the binding
local key_binding = "n"
-- key_binding_reverse cycle between denoise filters below
-- in reverse order, set it to nil to disable the binding,
-- set it to a single-char string to enable
local key_binding_reverse = nil
@myfreeer
myfreeer / hls-es5.user.js
Last active September 21, 2023 12:07
m3u8 playback using HTML5 video and MediaSource Extensions (CORS Required!)
// ==UserScript==
// @name hls.user.js
// @name:zh-CN hls.user.js
// @namespace hls.js
// @version 0.2.4
// @description m3u8 playback using HTML5 video and MediaSource Extensions (CORS Required!)
// @description:zh-cn 基于HTML5和MediaSource Extensions的hls/m3u8播放
// @include https://*
// @include http://*
// @exclude http://218.94.1.182:8080/*
@myfreeer
myfreeer / 7-zip-build.bat
Last active November 25, 2022 14:41
7-zip build script
@echo off
setlocal EnableExtensions EnableDelayedExpansion
pushd "%~dp0"
:Download_7zip
set version=7z1803
appveyor DownloadFile https://www.7-zip.org/a/%version%-src.7z
7z x %version%-src.7z
:Patch
@myfreeer
myfreeer / bili_fix_player.user.js
Last active April 15, 2022 12:20
bili_fix_player 4.0.3 fix for chrome's tempermonkey
// ==UserScript==
// @name bili_fix_player
// @namespace bili
// @description B站播放器增强脚本,下载视频,可使用另外两种H5播放器,可弹窗播放等
// @include /^.*\.bilibili\.(tv|com|cn)\/(video|search|sp).*$/
// @include /^.*bilibili\.kankanews\.com\/(video|search|sp).*$/
// @include /http://www.bilibili.com/(#page=*)?/
// @include http://www.bilibili.com/bangumi/*
// @include http://bangumi.bilibili.com/anime/v/*
// @exclude http://search.bilibili.com*
@myfreeer
myfreeer / baidu-pan.user.js
Last active April 9, 2022 11:24
modified baidu-pan helper form greasyfork.org/zh-CN/scripts/23635
// ==UserScript==
// @name 百度网盘直接下载助手
// @namespace undefined
// @version 0.9.24
// @description 直接下载百度网盘和百度网盘分享的文件,避免下载文件时调用百度网盘客户端,获取网盘文件的直接下载地址
// @author ivesjay
// @downloadURL https://gist.github.com/myfreeer/1106826093c401d5276bd35247a1465b/raw/baidu-pan.user.js
// @match *://pan.baidu.com/disk/home*
// @match *://yun.baidu.com/disk/home*
// @match *://pan.baidu.com/s/*
git config --global http.proxy http://127.0.0.1:8087
git config --global https.proxy http://127.0.0.1:8087
git config --global --unset http.proxy
git config --global --unset https.proxy
set_proxy() {
git config http.proxy 127.0.0.1:8087
git config https.proxy 127.0.0.1:8087
git config http.sslVerify false
@myfreeer
myfreeer / drule.txt
Last active February 5, 2021 16:51
my self-use ublock rule
no-popups: rarbg.is true
no-popups: www.cilicili.org true
no-remote-fonts: dewdrop.io true
no-strict-blocking: bit.ly true
no-strict-blocking: cloudfront.net true
no-strict-blocking: goo.gl true
no-strict-blocking: hi.baidu.com true
no-strict-blocking: href.li true
no-strict-blocking: pornhub.com true
no-strict-blocking: rarbg.com true
Element.prototype.find=Element.prototype.querySelector;
Element.prototype.attr=Element.prototype.getAttribute;
Element.prototype.on=Element.prototype.addEventListener;
Element.prototype.off=Element.prototype.removeEventListener;
// arrow functions binds no this nor arguments
Element.prototype.data=function(str){return this.dataset[str];};
Element.prototype.text=function(str){return str ? (this.innerText = str) && this : this.innerText;};
Element.prototype.html=function(str){return str ? (this.innerHTML = str) && this : this.innerHTML;};
Element.prototype.hide=function(){this.style.display = 'none';};
Element.prototype.show=function(){this.style.display = '';};
@myfreeer
myfreeer / .Moved_to_GitHub.md
Last active December 18, 2019 15:36
aria2 build scripts for msys2
@myfreeer
myfreeer / MyUnsafeFactory.java
Last active March 17, 2019 10:36
java Unsafe api with docs, DO NOT use this in production
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.Arrays;
import java.util.Map;
import java.util.Objects;
@SuppressWarnings({"WeakerAccess", "unused"})
public class MyUnsafeFactory {