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
if False: | |
assert False | |
if True: | |
assert True | |
import random | |
if something := random.choice([True, False]): | |
assert something |
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 denyWords = ['反応集', '切り抜き', '世間の反応', '2ch']; | |
const allowWords = ['公式']; | |
const $$ = (selector) => [...document.querySelectorAll(selector)] | |
const sleep = msec => new Promise(resolve => setTimeout(resolve, msec)); | |
const block = async (element) => { | |
const channelTitle = getChannelTitle(element); | |
const videoTitle = getVideoTitle(element); | |
console.log(`block: ${channelTitle} - ${videoTitle}`) | |
const menuButton = element.querySelector('button#button.style-scope.yt-icon-button'); |
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
くす玉子 |
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
ご自由にご利用ください |
NewerOlder