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
// Simple JavaScript Templating | |
// John Resig - https://johnresig.com/ - MIT Licensed | |
// Forked by @yuzulabo | |
(function(){ | |
var cache = {}; | |
this.tmpl = function tmpl(str, data){ | |
// Figure out if we're getting a template, or if we need to | |
// load the template - and be sure to cache the result. | |
var fn = !/\W/.test(str) ? |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 Knzk_Music | |
// @namespace https://github.com/yuzulabo | |
// @version 1.1.0 | |
// @description Knzk Music ユーザスクリプト版 | |
// @author neziri_wasabi (yuzu_1203) | |
// @match https://knzk.me/* | |
// @license MIT License | |
// ==/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
<script> | |
let token = "トークン"; | |
let is_running = 0; | |
if (localStorage.getItem('is_running') == '1') is_running = 1; | |
let ws = new WebSocket("wss://knzk.me/api/v1/streaming/?access_token=" + token + "&stream=public:local"); | |
ws.onmessage = function (message) { | |
let json = JSON.parse(JSON.parse(message.data).payload); | |
if (json['account']) { | |
//if (json['account']['username'] === json['account']['acct']) { |
NewerOlder