hjk789 / userscripts Goto Github PK
View Code? Open in Web Editor NEWA collection of some of the userscripts I created.
A collection of some of the userscripts I created.
The script used to work somewhat until the latest youtube home design update that gives a colored background on hovering over a video in home. It's completely broken now. I see that the script wasn't updated within 2 years so I'm not sure if it's abandoned or not. Only found the script a few months earlier. Hopefully you'll come up with a fix for this.
Not sure if completely filtering out videos work or not since I never used that but dimming the watched/multiple recommended videos is broken. The new design hasn't infected my backup gmail or incognito mode but the main account I use is affected. Apparently some other people are also starting to get the design change. The colored background looks like this.
This would be pretty hard to make it work, as it would require an almost completely separated method of functioning, as if it was created another script from scratch just for that. So this will be implemented only if it really bothers me that much.
In Chrome/Chromium browsers, any history older than 90 days are deleted. This ends up making the feature that marks watched videos lose it's purpose.
This feature would store locally the URL of every watched video and use that to mark the videos, instead of relying on the browser.
This is because YouTube reuses the same elements from the previous video, instead of just replacing them. The script needs to wait for when YouTube finishes loading the new related videos and only then start filtering them.
This is another attempt to possibly mitigate the performance impact caused by the huge number of comment samples stored over time.
This would work best with official subtitles rather than the auto-generated ones. Initially it would only search for exact matches, but posteriorly it could search for mostly similar sentences.
This feature would interoperate with the YouTube Clickbait-Buster userscript. YCBB would provide the transcript and YSCH would use it as a second layer of filtering. So to use this feature the user would need to have both YCBB and YSCH installed.
The listeners would be added after the user clicks the recommendation's menu.
Suggested by sancer here.
as It will help discovering new channels and get off some of the load
like instead of hiding 10 videos from the same channel it will hide the whole channel
This would add a button on the corner of the screen which when tapped would show a list of speeds which the user can select. The button would be hidden when scrolling down and visible when scrolling up. The user would be able to enable/disable this button with a setting in the script.
Not sure if this will really be implemented, but it's worth saving it for later.
There's a gap of 5 seconds between each frame, so the first frame is at 0:00, the second is at 0:05, the third at 0:10, and so on. With that in mind, this new feature would position links on each frame, which would allow the user to jump directly to the part they are interested in.
The implementation can be quite tricky though, so not sure if this feature is needed.
This feature would add interoperability between YSCH and YCBB, by filtering the comments loaded by YCBB as soon as it's added to the page.
The user would need to have both YSCH and YCBB installed for this feature to work.
This would be an attempt to mitigate the heavy processing caused by the huge number of samples stored overtime, as most samples hardly are similar to any other comment. This check would happen every 15 days.
This would add the option of disabling the auto-counting, and would also add a button and/or a hotkey that trigger the countings when clicked/pressed, which would make it possible to open a video without having the recommendations counted automatically on view, and if the user wants it, they can just trigger the counting whenever they are good with that.
This would be useful for situations when you don't want to miss the recommendations, but also don't feel like watching them now. Without this feature, these recommendations would soon start to get hidden before you got the chance to watch them.
Currently the "Block this user" feature depends on the comment menu button that appears only when the user is signed in on YouTube.
This menu button should instead be created if it doesn't exist.
When enabled, instead of iterating the comment samples with a for loop, a 1ms interval would be used instead. It wouldn't impact performance at all, but it would take much more time to finish processing all comments.
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.