<template>
<input :ref="el => elTextArea = el" />
</template>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name WaniKani All Info Expander | |
// @namespace http://www.wanikani.com | |
// @version 0.1 | |
// @description Automatically click "Show All Information" | |
// @author polv | |
// @match *://www.wanikani.com/*/session* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=wanikani.com | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Custom font | |
// @namespace polv/wanikani | |
// @version 0.1 | |
// @description Custom font for a CSS selector | |
// @author You | |
// @match https://www.wanikani.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name WaniKani JJ External Definition | |
// @namespace http://www.wanikani.com | |
// @version 0.11.1 | |
// @description Get JJ External Definition from Weblio, Kanjipedia | |
// @author polv | |
// @author NicoleRauch | |
// @match *://www.wanikani.com/*/session* | |
// @match *://www.wanikani.com/*vocabulary/* | |
// @match *://www.wanikani.com/*kanji/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ankiConnect } from '@/ankiconnect' | |
import { kata2hira } from '@/kana' | |
import { load as cheerio } from 'cheerio' | |
import { readFileSync, writeFileSync } from 'fs' | |
async function main() { | |
const filename = 'tmp/vocab.tsv' | |
const txt = readFileSync(filename, 'utf-8') | |
const qs = txt | |
.split('\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna! | |
([一-龯]) | |
Regex for matching Hirgana or Katakana | |
([ぁ-んァ-ン]) | |
Regex for matching Non-Hirgana or Non-Katakana | |
([^ぁ-んァ-ン]) | |
Regex for matching Hirgana or Katakana or basic punctuation (、。’) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
from pathlib import Path | |
import regex | |
import sudachipy | |
ROOT = Path(__file__).parent | |
sudachi = sudachipy.Dictionary(dict_type="full").create() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name WaniKani Forums: Like counter | |
// @namespace http://tampermonkey.net/ | |
// @version 3.1.7 | |
// @description Keeps track of the likes you've used and how many you have left... supposedly. | |
// @author Kumirei | |
// @include https://community.wanikani.com* | |
// @grant none | |
// ==/UserScript== | |
;(function ($) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
rm -rf dist | |
GH=1 yarn build | |
GIT_URL=$(git remote get-url origin) | |
cd dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MD_INDEX = 'README' | |
function mdRemoveIndex(path: string, ext = '.md') { | |
if (path.endsWith('/' + MD_INDEX + ext)) { | |
path = path.substring(0, path.length - ext.length - MD_INDEX.length - 1) | |
} | |
return path | |
} |
NewerOlder