Skip to content

Instantly share code, notes, and snippets.

View ishowta's full-sized avatar
😛

iwatachan ishowta

😛
View GitHub Profile
@ishowta
ishowta / code.js
Last active February 25, 2020 11:43
Make modelator only chat field in Youtube
timer = setInterval(function() {
frame = document.querySelector('#chatframe')
if(frame !== null){
contents = document.querySelector('#chatframe').contentDocument.querySelector('div#contents.style-scope.yt-live-chat-app')
chats = document.querySelector('#chatframe').contentDocument.querySelector('div#items.style-scope.yt-live-chat-item-list-renderer')
chats_scroller = document.querySelector('#chatframe').contentDocument.querySelector('#item-scroller')
if(contents !== null && chats !== null){
console.log("start")
clearInterval(timer)
modelatorChats = document.createElement('div')
@ishowta
ishowta / calc_wer.sh
Last active November 8, 2017 03:59
Calc word error rate from two text
#!/bin/bash
# how to use:
# chmod +x ./calc_wer.sh
# ./calc_wer.sh A.txt B.txt
# needed: pip, mecab, asr-evaluation
# install example:
# sudo apt install mecab libmecab-dev mecab-ipadic-utf8
@ishowta
ishowta / init.sh
Last active March 31, 2017 01:14
朝7:30にPCを自動起動させてニコ生の放送を再生する
#たぶんもともと入ってない
sudo apt install nkf jq