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 / hex2string.js
Last active July 3, 2016 11:52 — forked from taterbase/bin2string.js
Convert bytes to string Javascript
function str2arr(str){
var array_=new Array();
for(var i = 0; i < str.length; ++i){
array_[i]=str.charCodeAt(i);};
return array_;
}
function hex2arr(str){
var b_=new Uint8Array();
eval("b_=["+str+"]");
@myfreeer
myfreeer / EvalGuy.cs
Last active July 7, 2016 06:58
eval strings in C#
using System;
using System.Data;
using System.Configuration;
using System.Text;
using System.CodeDom.Compiler;
using Microsoft.CSharp;
using System.Reflection;
namespace EvalGuy
{
@myfreeer
myfreeer / clearChromeCache.bat
Last active July 12, 2016 08:03
a batch file aimed to clean chrome's cache files in one click
@echo off
pushd "%~dp0"
REM 批处理中%~dp0为批处理文件所在路径
if not exist "%~dp0\User Data" exit
for %%i in (
"%~dp0\User Data\Default\Cache"
"%~dp0\User Data\PnaclTranslationCache"
"%~dp0\User Data\ShaderCache"
"%~dp0\User Data\Default\Application Cache"
"%~dp0\User Data\Default\JumpListIconsOld"
@myfreeer
myfreeer / baidu.hosts
Created August 11, 2016 08:46
hosts aiming to fuck ads and malicious code by *.baidu.com
127.0.0.1  m1.baidu.com
127.0.0.1  mobads.baidu.com
127.0.0.1  mpro.baidu.com
127.0.0.1  mobads-logs.baidu.com
127.0.0.1  dl.client.baidu.com
127.0.0.1  a.baidu.com
127.0.0.1  wm.baidu.com
127.0.0.1  adm.baidu.com
127.0.0.1  baidutv.baidu.com
127.0.0.1  banlv.baidu.com
@myfreeer
myfreeer / rebuilding-icon-cache.cmd
Last active August 24, 2016 08:06
Rebuild Windows' Icon Cache And Disable Notification Center
@echo off
taskkill /f /im explorer.exe
reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams /f
REG ADD HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer /v DisableNotificationCenter /t REG_DWORD /d 1 /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f /v HideSCAHealth /t REG_DWORD /d 1
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f /v HideSCAHealth /t REG_DWORD /d 1
for %%i in (
%USERPROFILE%\AppData\Local\Microsoft\Windows\Explorer
%USERPROFILE%\AppData\Local\IconCache.db
) do (
@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
@myfreeer
myfreeer / bilibili-answer-base.user.js
Last active January 24, 2017 11:32
bilibili.com弹幕礼仪题自动答题
// ==UserScript==
// @name bilibili-answer-base
// @namespace bili
// @description bilibili.com弹幕礼仪题自动答题
// @include *://account.bilibili.com/answer/base
// @version 0.2
// @downloadURL https://gist.github.com/myfreeer/d7a44d007543d127ad3c9d66f807b143/raw/bilibili-answer-base.user.js
// @grant unsafeWindow
// @license GNU GPL 3.0
// ==/UserScript==
@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 / canClearAd.user.js
Last active November 8, 2016 10:32
just a dev example
// ==UserScript==
// @name canClearAd Element Fucker
// @namespace myfreeer
// @version 1.3
// @description Remove or replace some unwanted element
// @author myfreeer, ineer
// @include *
// @downloadURL https://gist.github.com/myfreeer/57e9973ebe5398a246de23c152ff1d05/raw/canClearAd.user.js
// @license MIT
// @grant GM_getValue
@myfreeer
myfreeer / bilibili-fuck-vip-new.user.js
Last active January 1, 2018 06:36
remove the 'become-vip' link, repalce red names to original, and replace emoji to pure text
// ==UserScript==
// @name bilibili vip remover
// @name:zh-CN bilibili大会员削除
// @namespace myfreeer
// @version 0.11
// @description remove the 'become-vip' link, repalce red names to original, and replace emoji to pure text
// @description:zh-CN 去除“成为大会员”链接,将红名替换为原始格式,替换表情为纯文字
// @author myfreeer
// @downloadURL https://gist.github.com/myfreeer/99111e7f10767770dc399e24bf6ab9b3/raw/bilibili-fuck-vip-new.user.js
// @match http://*.bilibili.com/*