Created
May 7, 2022 09:41
-
-
Save coding-youtuber/09a2efe205c733dacfa7918e89545b18 to your computer and use it in GitHub Desktop.
中央大学ホームページのトップにステハゲの動画を流すChrome拡張
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 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) |
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
{ | |
"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