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 Enhancements for SB Browser | |
// @version 2024-05-04 | |
// @description An enhancement for SBbrowser that has additional functionality such as colored segments and video titles and thumbnails via the YouTube Data API | |
// @author Kuroji Fusky | |
// @match https://sb.ltn.fi/* | |
// @icon https://sb.ltn.fi/static/browser/logo.png | |
// ==/UserScript== | |
// @ts-check |
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
(() => { | |
// chat extractor | |
"use strict"; | |
const __d = document; | |
/****************************************************************** | |
* Helper functions | |
****************************************************************** */ | |
const _forceArray = (e) => Array.from(e); | |
const _pick = (selector, target = __d) => target.querySelector(selector); |