Skip to content

Instantly share code, notes, and snippets.

View MarvNC's full-sized avatar
💭
🧋🍵

marv MarvNC

💭
🧋🍵
View GitHub Profile
@MarvNC
MarvNC / _readme.md
Last active March 21, 2024 06:06
寄甡 Symbiotic Love Script Dump

For 寄甡 (Symbiotic Love)

  • Use asar to extract files in resources
  • Run dump.js in the script folder
  • Scripts will be dumped in script/out

Download scripts zip

@MarvNC
MarvNC / get-discord-token-from-browser.md
Created December 30, 2023 22:52
How to Get Your Discord Token From the Developer Console

How to Get Your Discord Token From the Developer Console

  • Open the developer console with F12 or ctrl+shift+i.
  • Go to the network tab
  • Filter by Fetch/XHR
  • Choose a request that isn't an error
  • Under the request headers -> authorization section, there will be your Discord token. Copy and paste it from there.

image

@MarvNC
MarvNC / _yomichan_dictionary_order.md
Last active March 21, 2024 06:10
Yomichan Dictionary Order
@MarvNC
MarvNC / _ttu-android-improvements.md
Last active November 15, 2023 03:48
ttu Reader Improvements for Android Devices

ttu Reader improvements

Use Volume Keys with Kiwi Browser and ttu Reader on Android

  • Install Key Mapper and follow all the instructions within the app to set it up with Shizuku (needs adb debugging).
  • Add a trigger for a volume key, set the action to input KEYCODE_PAGE_UP or KEYCODE_PAGE_DOWN as you prefer, and set the constraint to be that it only works when Kiwi Browser is in the foreground. Repeat for the other volume key.
    Example Image: click to expand

image

@MarvNC
MarvNC / _mandarin deck.md
Last active July 21, 2023 17:24
Mandarin 5k HSK Deck Styling

Mandarin 5k HSK Deck Styling

Styling for the deck found here.

Needs persistence downloaded and put in the collection.media folder with the filename __persistence.js for swapping to persist to the backside, but it'll work fine without it, just without the state changing on the back side properly.

It'll randomize whether the simplified or traditional is shown first on the front side, and then swap their order on the back side to maximise recognition for both.

It also supports tone colorizing from this reddit post. Just remove the last <script> tag from the back.html file if you don't want it. The current codes are from Pleco but you can change them to whatever you want.

@MarvNC
MarvNC / astParse.js
Created September 1, 2022 07:25
madosoft raspberry cube/hamidashi ast script parse
const fs = require('fs');
const args = process.argv.slice(2);
if (args.length < 2) {
console.log('Usage: node astParse.js <input folder> <output folder>');
process.exit(1);
} else {
const inputFolder = args[0];
const outputFolder = args[1];
const scriptFiles = fs.readdirSync(inputFolder);
@MarvNC
MarvNC / ex-tags-to-md.user.js
Last active February 10, 2024 10:47
Ex tags to MD
// ==UserScript==
// @name Copy Tags to MangaDex
// @namespace Violentmonkey Scripts
// @match https://exhentai.org/g/*
// @match https://e-hentai.org/g/*
// @grant GM_addStyle
// @grant GM_setValue
// @grant GM_getValue
// @version 1.11
// @author Marv
// ==UserScript==
// @name Delete EVNs
// @namespace Violentmonkey Scripts
// @match https://vndb.org/g*
// @match https://vndb.org/v*
// @grant none
// @version 1.1
// @author Marv
// @description filters out vns that don't have jp language (mostly EVNs). doesn't filter titles that aren't jp and got a jp release.
// ==/UserScript==
// ==UserScript==
// @name VNDB Time Flags
// @namespace https://github.com/MarvNC
// @match https://vndb.org/v*/lengthvotes
// @grant none
// @version 1.0
// @author Marv
// @description Adds language flags to the time votes table.
// @grant GM_addStyle
// ==/UserScript==