Skip to content

Instantly share code, notes, and snippets.

View cikichen's full-sized avatar
🎯
Focusing

Simon cikichen

🎯
Focusing
View GitHub Profile
// ==UserScript==
// @name 多账号自动登录脚本
// @namespace http://tampermonkey.net/
// @version 1.3
// @description 自动登录多个账户并登出
// @author Linux.do
// @match https://linux.do/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=linux.do
// @grant GM_setValue
// @grant GM_getValue
#DiabloIV-HK,暗黑破坏神4-港服,0,0,1,0,1,0,By-DMZhang
IP-CIDR,34.0.96.0/19,no-resolve
IP-CIDR,34.22.64.0/19,no-resolve
IP-CIDR,34.22.96.0/20,no-resolve
IP-CIDR,34.64.32.0/19,no-resolve
IP-CIDR,34.64.64.0/22,no-resolve
IP-CIDR,34.64.68.0/22,no-resolve
IP-CIDR,34.64.72.0/21,no-resolve
IP-CIDR,34.64.80.0/20,no-resolve
IP-CIDR,34.64.96.0/19,no-resolve
@cikichen
cikichen / anti-ip.list
Last active December 14, 2023 08:36
anti-ip
# 针对部分网站显示IP归属地的分流规则
# anti-ip-attribution quantumultx.list v0.3.1 b325d335c57ee0591d668c5945db1c8f6f9db352
# https://github.com/lwd-temp/anti-ip-attribution
# QuantumultX分流规则
DOMAIN,httpdns.bilivideo.com,REJECT
IP-CIDR,47.101.175.206/32,REJECT
IP-CIDR,47.100.123.169/32,REJECT
IP-CIDR,120.46.169.234/32,REJECT
IP-CIDR,121.36.72.124/32,REJECT
IP-CIDR,116.63.10.135/32,REJECT
@cikichen
cikichen / BilibiliIP.list
Last active October 11, 2023 02:58
BilibiliIP.list
DOMAIN-KEYWORD,api.bilibili.com
//===================================================================================================
//取得與設定APP內部的cookie
//===================================================================================================
- (void)setCookie:(NSString *)key withValue:(NSString *)value {
NSArray *keys = [NSArray arrayWithObjects:
NSHTTPCookieDomain,
NSHTTPCookieExpires,
NSHTTPCookieName,
NSHTTPCookiePath,
NSHTTPCookieValue, nil];
@cikichen
cikichen / WKWebViewCookie.m
Created February 15, 2019 03:27 — forked from markcerqueira/WKWebViewCookie.m
Getting cookies into a WKWebView
// API reference: https://developer.apple.com/reference/webkit/webpolicydelegate/1536273-webview?language=objc
// Adapted from the Swift implementation: http://stackoverflow.com/a/32196541
- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction
decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler {
if (![self requiresCookie:navigationAction]) {
decisionHandler(WKNavigationActionPolicyAllow);
return;
}