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 twitch test | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.twitch.tv/* | |
// @grant none | |
// ==/UserScript== | |
const wait = t => new Promise(r => setTimeout(r, t)); |
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
/** cu - auto currying function | |
* | |
* @param {function} fn the function to autocurry | |
* @param {integer} argc the number of args to autocurry if reflection is not possible | |
*/ | |
function cu(fn, argc = null) { | |
const len = argc || fn.length; | |
const makeStack = (argsStack = []) => (...n) => { |