Skip to content

Instantly share code, notes, and snippets.

@coding-youtuber
Created May 7, 2022 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coding-youtuber/09a2efe205c733dacfa7918e89545b18 to your computer and use it in GitHub Desktop.
Save coding-youtuber/09a2efe205c733dacfa7918e89545b18 to your computer and use it in GitHub Desktop.
中央大学ホームページのトップにステハゲの動画を流すChrome拡張
const element = document.getElementById('add_yt')
const p = {
videoURL: 'https://www.youtube.com/watch?v=u7o6KrSFVNY',
containment: '.yt_wrap',
autoPlay: true,
loop: true,
mute: true,
showControls: false,
showYTLogo: false,
ratio: 'auto',
optimizeDisplay: true,
playOnlyIfVisible: true,
stopMovieOnBlur: true,
useOnMobile: false,
containment: 'self'
}
element.dataset.property = JSON.stringify(p)
{
"name": "ステハゲ中央大学",
"description": "ステハゲ動画を流す",
"version": "1.0",
"content_scripts": [
{
"matches": [
"https://www.chuo-u.ac.jp/"
],
"run_at": "document_end",
"js": [
"main.js"
]
}
],
"manifest_version": 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment