Skip to main content
Module

x/youtubei/deno.ts>YT.Settings

A wrapper around YouTube's internal API — reverse engineering InnerTube
Very Popular
Go to Latest
class YT.Settings
import { YT } from "https://deno.land/x/youtubei@v9.3.0-deno/deno.ts";
const { Settings } = YT;

Constructors

new
Settings(actions: Actions, response: ApiResponse)

Properties

optional
introduction: PageIntroduction
readonly
page: IBrowseResponse
sections
readonly
setting_options: string[]

Returns settings available in the page.

optional
sidebar: SettingsSidebar
readonly
sidebar_items: string[]

Returns options available in the sidebar.

Methods

getSettingOption(name: string): SettingsSwitch

Finds a setting by name and returns it. Use setting_options to see available options.

selectSidebarItem(target_item: string | CompactLink): Promise<Settings>

Selects an item from the sidebar menu. Use sidebar_items to see available items.