Skip to content

Instantly share code, notes, and snippets.

View cjybyjk's full-sized avatar

Shelling cjybyjk

  • Xiaomi
  • People's Republic of China
  • 22:47 (UTC +08:00)
  • X @cjybyjk
View GitHub Profile
@cjybyjk
cjybyjk / douban-banned-user-check.js
Last active February 16, 2021 04:21
检查在 豆瓣《2015年中央电视台春节联欢晚会》 的短评中有多少打一星的用户被封号
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://movie.douban.com/subject/26323782/*
// @grant GM_xmlhttpRequest
// ==/UserScript==
@cjybyjk
cjybyjk / 0001-Jelly-don-t-load-url-with-third-app-scheme-in-webvie.patch
Created January 19, 2021 05:32
0001-Jelly-don-t-load-url-with-third-app-scheme-in-webvie.patch
From c7f763d27e0abc458d83dd2147d70e9bb7799075 Mon Sep 17 00:00:00 2001
From: cjybyjk <[email protected]>
Date: Tue, 19 Jan 2021 13:26:43 +0800
Subject: [PATCH] Jelly: don't load url with third app scheme in webview
- shouldOverrideUrlLoading: check url in all frames
- startActivityForUrl: always return true, even if the Activity can't be found
Signed-off-by: cjybyjk <[email protected]>
Change-Id: I984c19bd3d9e7402dfedde38e4a9faca52ce0dcc
@cjybyjk
cjybyjk / gist:736e89bb6e089e906447e293cce1dabe
Created December 24, 2020 15:07
0001-Port-face-unlock-feature.patch
From 650d092f5b3deb4c3602e55c2874d9cd4a9f5a67 Mon Sep 17 00:00:00 2001
From: jhenrique09 <[email protected]>
Date: Thu, 26 Mar 2020 04:56:47 -0300
Subject: [PATCH] Port face unlock feature
* From motorola/foles_retail/foles:10/QPF30.130-15-7/38ece7:user/release-keys
Change-Id: I90aa1002f4fe46a1c8e167d5c8dc2c9dfa7dbdc7
---
Android.mk | 1 +
@cjybyjk
cjybyjk / gsettings
Last active October 3, 2019 00:43
Fake gsettings for electron-ssr PAC mode
#!/usr/bin/bash
# Fake gsettings for electron-ssr PAC mode
# Author: sford([email protected])
manual_pac="/tmp/proxy_manual.pac"
tmp_conf="/tmp/proxy_conf.txt"
# 对所有设备进行设置
# $1:prop $2:value
function set_proxy_prop()
@cjybyjk
cjybyjk / check-MIUI-version.sh
Last active December 18, 2018 18:40
a function to check MIUI version when installing magisk module.
# check MIUI version
# for Magisk only
# author: cjybyjk @ coolapk
# usage: append to config.sh
# $1:requireVersion
checkMIUIver() {
local requiredVersion="$1"
local arrRequiredVersion=(${requiredVersion//./ })
local nowVersion="`grep_prop ro.build.version.incremental`"