tomsaleeba / custom-youtube-playback-speed Goto Github PK
View Code? Open in Web Editor NEWTampermonkey script to allow custom playback speeds in YouTube site
License: MIT License
Tampermonkey script to allow custom playback speeds in YouTube site
License: MIT License
YouTube has changed to add a hidden <div id="player-container" class="style-scope ytd-miniplayer">
, which the techotom-speed-control
div now gets added to, instead of the main video (which is now in a div with no id, but class html5-video-player
).
I've added the following to make banner ads transparent (rather than just clicking them off, so that hopefully the video author still gets some ad revenue)
function autoTransparentBannerAds () {
var [bannerAd] = document.getElementsByClassName("ytp-ad-overlay-slot")
const isBannerAdHidden = !bannerAd || bannerAd.style.opacity === 0;
if (isBannerAdHidden) {
return;
}
log('Banner ad visible, making transparent')
bannerAd.style.opacity = 0;
}
When slowing down audio, without additional code, the pitch will drop with slower speeds. This is no longer the default for so many programs, basically all media players default to this.
It sounds awful for slower speeds, so I recommend adding an option to set this html setting to false.
Mozilla documentation might help explain it
https://developer.mozilla.org/en-US/docs/web/api/htmlMediaElement/preservesPitch
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.