Skip to content

Instantly share code, notes, and snippets.

View kevin940726's full-sized avatar

Kai Hao kevin940726

View GitHub Profile
@kevin940726
kevin940726 / youtube-bigger-theater.js
Created September 11, 2024 08:39
Make 'Theater View' on Youtube videos fill the screen.
// ==UserScript==
// @name Youtube Bigger Theater
// @version 0.1
// @description Make 'Theater View' on Youtube videos fill the screen.
// @author Kai Hao
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
@kevin940726
kevin940726 / upload-slack-emoji.js
Created December 26, 2018 07:01
Bulk upload slack emoji
const fetch = require('node-fetch');
const request = require('request');
const FormData = require('form-data');
const fs = require('fs');
const emojis = JSON.parse(fs.readFileSync('./emoji.json', 'utf8'));
const SLACK_TOKEN = 'YOUR_PERSONAL_SLACK_TOKEN';
const SLACK_DOMAIN = 'YOUR_SLACK_DOMAIN';
@kevin940726
kevin940726 / transform-Aux-to-Fragment.js
Created February 2, 2018 06:49
Transform <Aux> to <Fragment> codemod
/**
* Transform `<Aux>` to `<Fragment>`
*/
module.exports = function tranformAuxToFragment(file, api, options) {
const j = api.jscodeshift;
const root = j(file.source);
const FROM_PATH = options.fromPath || '@/components/Aux';