Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
am force-stop com.nintendo.zaga
rm /sdcard/Android/data/com.nintendo.zaga/files/uuid.bin
rm /data/data/com.nintendo.zaga/shared_prefs/deviceAccount\:.xml
monkey -p com.nintendo.zaga -c android.intent.category.LAUNCHER 1
@miaulightouch
miaulightouch / zaga_retry.sh
Last active September 27, 2018 14:58
delete zaga account asap
adb shell
su
am force-stop com.nintendo.zaga;rm /sdcard/Android/data/com.nintendo.zaga/files/uuid.bin;rm /data/data/com.nintendo.zaga/shared_prefs/deviceAccount\:.xml;monkey -p com.nintendo.zaga -c android.intent.category.LAUNCHER 1
@miaulightouch
miaulightouch / sedUseragent.patch
Last active October 7, 2017 07:08
remove appname from useragent of Electron
From 9e7eeba3c65080c9c50f3f96fd28c5dcbf3d016e Mon Sep 17 00:00:00 2001
From: Miau Lightouch <miaulightouch@gmail.com>
Date: Sat, 7 Oct 2017 15:02:39 +0800
Subject: [PATCH] remove appname from useragent
---
atom/app/atom_content_client.cc | 4 +++-
atom/browser/atom_browser_context.cc | 2 ++
brightray/common/content_client.cc | 3 ++-
3 files changed, 7 insertions(+), 2 deletions(-)
@miaulightouch
miaulightouch / gbf-lite-layout.css
Created September 22, 2017 09:42
rip mobage sidebar and useless submenu
body.jssdk > div:first-child > div:first-child {
display: none;
}
body.jssdk > div:first-child > div:last-child {
margin-left: 0 !important;
}
body.jssdk > div:first-child > div:last-child #submenu {
display: none;
}
<?xml version="1.0" encoding="UTF-8"?>
<Datatable xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<LocalizationPair Name="%Dummy_OUTGAME"/>
<LocalizationPair Name="%FactionNameVauTitle">漂泊者</LocalizationPair>
<LocalizationPair Name="%FactionNameVauDescription">漂泊者是一個古老的流浪民族,一群游走於星系的不幸者,是擅長科學研究和防守戰的類人生物。</LocalizationPair>
<LocalizationPair Name="%FactionNameVaulterDescription">漂泊者是一個古老的流浪民族,一群游走於星系的不幸者,是擅長科學研究和防守戰的類人生物。</LocalizationPair>
<LocalizationPair Name="%FactionVauDescription">母星種類:類地球行星
外交結盟:中立
遊戲方式:防守、科學
主要勝利:科學
@miaulightouch
miaulightouch / mpv.conf
Last active November 7, 2020 03:26
MPV Conf
profile=gpu-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
tscale=oversample
# Hardware config
hwdec=auto
icc-profile-auto
# Video config