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 マストドンに定型文機能を付けるやつ | |
// @namespace https://js4.in/ns/ | |
// @include * | |
// @version 1.0.11 | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// @grant GM_deleteValue | |
// @author Miyagi Hikaru | |
// @website https://gist.github.com/hcmiya/3645e7ef572685c56e58fca5e1375e0e |
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
// ニコるくんを探すためのクエリ | |
const QUERY = '.status img[alt*="nicoru"]' | |
const ROLL_PER_SEC = 1.75 | |
// 角度指定用のstringを予め確保 | |
const LUT = Array.from(Array(360).keys()).map(e => "rotate(" + e + "deg)") | |
var nicorus = [] | |
class Nicorukun { |