YouTubeのチャプターの簡易デバッグツール
YouTubeのチャプター機能の結果をシミュレートし、わかりやすく表示するツール。
機能
- 各チャプターの時間を表示
- 10秒未満のチャプターはエラー
YouTubeのチャプター機能の結果をシミュレートし、わかりやすく表示するツール。
本当にこれが実現できるかどうかは極めて怪しい。
// range関数を多重定義で定義
let range =
(stop: number) -> range(0, stop)
*.object |
アカウントを切り替えた直後に、Twitterのホーム画面へ勝手に移動するのを防ぐTampermonkeyスクリプト。 ここをクリックしてインストールします。
export function pathQuote(pathstr: string): string { | |
if (!/[\s"'`]/.test(pathstr) && !/^[(<[{]|[)>\]}]$/.test(pathstr)) { | |
return pathstr; | |
} | |
if (/'/.test(pathstr)) { | |
if (/"/.test(pathstr)) { | |
if (/`/.test(pathstr)) { | |
const match = pathstr.match(/<+|>+/g); | |
if (match) { |
if(!Symbol.asyncIterator) { | |
Object.defineProperty(Symbol, 'asyncIterator', { | |
enumerable: false, // This line is optional | |
configurable: false, // This line is optional | |
writable: false, // This line is optional | |
value: Symbol('Symbol.asyncIterator'), | |
}); | |
} |