Simple client for listening to a Twitter user stream via version 1.1 of the streaming API.
Before running demo.coffee
, place your app's OAuth keys in keys.json
This is basically a coffescript translation of @aivis' user-stream.
// ==UserScript== | |
// @name chzzk-time-machine | |
// @author eta66 (eta66@proton.me) | |
// @match https://chzzk.naver.com/* | |
// @grant unsafeWindow | |
// @run-at document-start | |
// @require https://cdn.jsdelivr.net/npm/@violentmonkey/url | |
// ==/UserScript== | |
(()=>{let e;async function t(){if(!location.pathname.includes("/live/"))return;new MutationObserver(((_,t)=>{const n=document.querySelector(".slider");n&&(n.remove(),t.disconnect())})).observe(document.body,{childList:!0,subtree:!0});const t=await fetch(`https://api.chzzk.naver.com/service/v1/channels/${location.pathname.split("/").pop()}/clip-time-machine-info`,{credentials:"include"});e=JSON.stringify((await t.json()).content.timeMachinePlayback)}unsafeWindow.XMLHttpRequest=class extends XMLHttpRequest{constructor(){super(),this.addEventListener("load",(()=>{if(this.responseURL.includes("live-detail")&&e){const t=JSON.parse(this.responseText);t.content.livePlaybackJson=e,t.content.p2pQuality=[],Object.defineProperty(this,"respo |
// ==UserScript== | |
// @name Download tewind m3u8 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://tewind.kr/rewind/* | |
// @match https://tewind.kr/liveback/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tewind.kr | |
// @grant none |
# -*- coding: utf-8 -*- | |
# | |
# OpenRCT2 Twitch API Server | |
# (c) 2018 Fun-boong-e <https://tgd.kr/funzinnu> | |
# | |
# Complies BSD license. | |
# | |
# How to run: | |
# | |
# $ pip install flask gevent requests websocket-client |
Simple client for listening to a Twitter user stream via version 1.1 of the streaming API.
Before running demo.coffee
, place your app's OAuth keys in keys.json
This is basically a coffescript translation of @aivis' user-stream.