Skip to content

Instantly share code, notes, and snippets.

www.youtube.com###items > ytd-grid-video-renderer.ytd-grid-renderer.style-scope:contains(Set reminder)
www.youtube.com###items > ytd-grid-video-renderer.ytd-grid-renderer.style-scope:contains(Premiering Now)
www.youtube.com###contents > .ytd-item-section-renderer.style-scope:contains(Set reminder)
www.youtube.com###contents > .ytd-item-section-renderer.style-scope:contains(Premiering Now)
www.youtube.com##.size-default.style-text.ytd-subscription-notification-toggle-button-renderer.style-scope
www.youtube.com###sponsor-button
www.youtube.com###endpoint > .ytd-compact-link-renderer.style-scope:contains(Paid membership)
www.youtube.com###chips-below
www.youtube.com###content > .ytd-rich-section-renderer.style-scope:contains(Latest YouTube posts)
www.youtube.com###comment-teaser
H4sIAAAAAAAAAO1bbW_bRhL-L_7MCvv-km924vYCNDgjcXEfgnygJdoiLJE6ikosBP7v98ySlMgVaau9FO0B50ayRe3OzszOyzO70-8X6XyZZ1-zdVbU24s3n4XWye95cWG_JBdpUefrtK6z6uLN94vsaVMWoHfxRgiujBDKJxdrGrPdphdv-EwaaaUX3FjJhZHPILCrS5p6lz-8rXbFfEkf0nW5Iyp9imxIiWHuulxk-Du5AA_4Q88w5unXdBvN5IyNTJ6XNI4b6RTNywvI8DVdheH0YAU6t_n8MYw3xghrvZcKv_Q1pwnby3mdf8W69-lqm4HiIl9flWWz-t1u1cxM8Of-Q_r0_kA_UH9IV-lTnm1pOeLt6V07eRskbZgTXrNXeZOOayGcEVC3YFZGzNXVruUtK7Z5WdBW99jD6DD8t2JVzh-zRTPhoFp8t6nyssrrfVB0q7SZ5Ex6KY32wnuj1TUX7jw-tXUv8PkHObMHjc2MYJxzpqXl0jsl_2LOzN-WM91xpmdCema1NEZzL8xfzJf6m_Ilj9bPlIb5YylulXIIB8L_hYyJvytj_Gj7zDnmpHUW7IkfxRfSTwYSRVjsjKTBQtw_jdshFu-bqE2hupNpNHCv8nVe_3KI3oFGCODHZ8c46Y3hZwZwYzl7KYBX2ea3zUOVLrJbhHJkW9fkhm06r_L7fJ4R_-vdqs43qzzOxiPp72SBGuxsNxlt6fcXNnhih7kU52aqF_cUjNxl2_ryQ73Mt9e93f0D0OJI6H1xn_-XhK5v1nlxO8kUgIHsk1EzUBGKK6aVE05K3dFppsNQbrLqw3ZI5SfRp2FmsAnNnNFGawOXHpIg_auZZ9wffpxuRrzvmB0XnIMtZVV_LQd-pfMMyUkrJKp2qXb-OLcjztWbs78NoMzPjuz5a87bMRuilxf_yutluavhZper1VnUP-6K681mHWkfNjXUvvaQRSAeauE4C5rrACa5aLDNuyp9zA7OXmXpY8d662lXOcExTUzP0-Jqt79sQ8xn
{
init: function(elevators, floors) {
let tasks = [];
for (let index in floors) {
let floor = floors[index];
floor.on("up_button_pressed", () => {
tasks.push({
floor: floor.floorNum(),
dir: "up",