Git Product home page Git Product logo

better-yt-shorts's Introduction

Heya, welcome! πŸ‘‹

Current status: Coding (0.25Β± accuracy)

I'm a self-taught developerπŸ‘¨β€πŸ’», a BCS student, a STEM enthuasist and an introvert who hope to contribute to the world (silently)🌏

github contribution grid snake animationgithub contribution grid snake animation

While you're here...

πŸ“‚ Check out my projects

  • Better YouTube Shorts - A browser extension to control playback on YouTube Shorts
  • WhatsApp Direct - A simple web application that allows the messaging of unknown number
  • SAPS Touch - An Android application for Malaysian students to check their exam results with a clean interface
  • Varsity Hackathon 2023 - A unique hackathon presented by USM Computer Science Society
  • PIXEL 2023 - A showcase of Universiti Sains Malaysia (USM) computer science students Final Year Project (FYP)

More info about them here!

β˜• Fancy a cup of coffee?

If you love what I do, you can support me on Ko-fi or GitHub Sponsors (next to the follow button)!

πŸ“Š Look at these beautiful stats


Alright I'm out of ideas. You can look around here and also explore my website. Thanks for visiting and goodbye!πŸ˜†

better-yt-shorts's People

Contributors

adsuth avatar criskkky avatar dekotale avatar dependabot[bot] avatar dhanasekaranchellamuthu avatar emyrdemir avatar erelado avatar kangwooklee29 avatar kronosdesign avatar mehdikurtcebe avatar monsieurvor avatar moondarker avatar phuicmt avatar rezaee-erfan avatar roastedrowlet avatar rohlend1 avatar rudrakpatra avatar samisul avatar sekisback avatar swolewizard avatar takoyaki88e avatar tiagohconte avatar ynshung avatar zopieux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

better-yt-shorts's Issues

Autoplay doesn't work [maybe site language related]

Hey, I love this extension, just wanted to highlight an issue I've found: The autoplay doesn't work for me. I guess the Problem lies here:

document.querySelector('button.yt-spec-button-shape-next[aria-label="Next video"]');

I'm from germany and YouTube is using german aria-labels for me. Which means that "Next video" would be "NΓ€chstes Video" for me. I don't know which selector would be better, as the buttons all seem to share classes etc.

Autoplay is skipping videos

When autoplay is on, instead of going to the next video, it randomly jumps the next video and goes to the video after that. This happens very regualarly after openeing shorts on a new tab and the first video ends. It also happens randomly after that. I am using Brave.

Request: Add an auto-skip for shorts below 500 likes

Little request, would you be able to add a feature to automatically skip or block their channel with 'do not recommend channel' you tube short videos when they're below 500 likes.
There's alot of random kid roblox videos appear every 10+ shorts with 0views 12likes, that are always annoying to manually 'do not recommend channel' to.

Would be an awesome feature to add!

feature request: show upload time

why cant we know when a short was uploaded? usually this is my main criterion to decide if i want to watch a video.
if there is no way to get to this information, an idea would be to use the time of the oldest comment.

Add the ability to assign hotkeys

I have a problem with current key bindings, there's a conflict with another extension. It would be nice if you add the ability to assign hotkeys.

Is this code up to date?

The extension works fine when downloaded from the web store. But doesn't work when I add the extension manually from source. I don't think this code is the same version as the one on the web store.

Option to open comments by default

Please add an option to automatically open comments. Auto scroll is GREAT! Just sometimes i'd like to read the comments while doing so :) - Mikagu (Google Form)

Suggestion: Add FULLSCREEN button / keybind (F?)

Hi! First off, love your extension and I find it SO USEFUL! THANK YOU for making it and keeping it free.

Would it be doable to add an option for FULLSCREEN Shorts viewing in the form of a button and a keyboard shortcut (perhaps the already establised 'F' key) ?? I think the extension is already great as it is but in my personal use case, wish there was a way to fullscreen. Thank you!

[Urgent] Logo Redesign

I have received an email regarding the extension that it violates the YouTube Shorts Logo trademark (oops). As such we need to update the logo asap to avoid suspension from Google.

As such, if anyone is interested in taking up the task of redesigning the logo please let me know, thank you!

Feature request : set a default playback speed for YouTube shorts.

Similar to how "YouTube enhancer" extension have option to set a default playback speed it would be cool if we could have similar feature where we could configure pre-default settings such as playback Speed etc. which will automatically be applied to YouTube short player when we open it.

Remove scrolling animation & Add "back/next video" keybind

Can you add an option to change the time it takes to go to the next video? (e.g instantly switch to the next/back videos without the scroll animation)
Also the option to redefine "back/next video" keys so it could be defined to W and S instead of up and down to let the other hand be positioned on the mouse.

frame by frame navigation

great plugin, just needs the , / . hotkeys for frame-by-frame navigation, which should be easy to implement.
not sure how YT does it but i guess rewind/fwd by 0.04 seconds or so should do (1/25fps)

Feature request: Video Previews

Not sure how easy this is to pull off but would be nice if you could replace the thumbnails on a channel's shorts overview page with the actual (autoplaying) videos on mouseover, after like a 2 second delay or so. Same behaviour as on video overview and search page basically.

What do you think?

Scrolling on speed of video doesn't change the speed

Perhaps I am trying the wrong thing but the description says "Scroll on the speed and time indicator to change its speed and seek." I am trying to control the speed of the short without using the hotkey buttons and it does not appear to work.

Hovering over the speed button and scrolling gives the same behavior as normal for shorts, moving up and down the videos.

I'm using v2.3.0 on Firefox.

Volume randomly resets to 100% when two tabs

When having two tabs oppened, one with regular yt video and then in the second one entering the shorts sometimes volume resets to 100%. Also that issue works vice-versa when tab with shorts is paused and when oppening new regular yt video that regular video volume also resets to 100%.
Also when that issue happens then there's not possible to adjust the volume in shorts because when hovering mouseover the short's video options to adjust volume doesn't appear.

Maybe: it may be colliding with other extensions: Enhanced for Youtube; Return Dislike YT; YouTube NonStop.

(Feature request) Option to make the shorts video player not have rounded corners

Browser: Firefox 116.0.3 (64-bit) (Windows 10)
Extension Version: 2.8.1

Would it be possible to have an option to have square edges on the Shorts video player instead? I really do not like how it looks, and although it is a small tiny amount, it hides part of the video. This would also make it MUCH easier to scrub through the video.

youtube shorts rounded corner

8mb.video-Xqu-7zj1FOeU.mp4

Key combinations keybinds

I realize this has been considered since there is a message, however I want to provide a reason why I would find it useful
I want to bind:
"Increase speed (+0.25x)" -> [CTRL]+[UPARROW],
"Decrease speed (-0.25x)" -> [CTRL]+[DOWNARROW],
"Reset speed" to -> [CTRL]+[LEFTARROW]

This is desirable since UPARROW and DOWNARROW are already primary controls and means that you wouldn't have to move your hand.

It would also be nice to set the speed increment to a preferd value, E.g 0.1

Stopped working today

It was working fine last time I used it which I think was yesterday. Only thing that still works is pressing K(pause). On some shorts it works if I refresh the page but when I switch short it stops working again.

EDIT: I found a fix of a sort, if you press anywhere next to the video then it starts working again but you have to do it on every short.

Setting of video quality

One user suggests the setting to set the video quality of the YouTube shorts video, though I'm not sure if this is even feasible as YouTube seems to always set the quality to auto and does not expose any API to change video quality manually.

It would be great if someone can check the feasibility of this feature.

Add "Save to playlist" option

  1. It would be amazing to have a working seekbar in addition to skipping 5 seconds.
  2. Shorts doesn't have the option to save to a playlist. A button for that would also be great

Exception raised while trying to skip ahead/back: Can't convert null to object 2 [Firefox]

Browser: Firefox 110.0
OS: Linux Mint 21.1
Extension Version: 2.1.1

Basically "nothing works" (tm). None of the set shortcuts does anything aside of raising the following error in console:

TypeError: can't convert null to object 2 [content-script.js:26:39](moz-extension://5c1cbd0a-0138-48dd-b358-dbbdc7a878e2/content-script.js)
    <anonym> moz-extension://5c1cbd0a-0138-48dd-b358-dbbdc7a878e2/content-script.js:26

which is:

for (const [cmd, keybind] of Object.entries(keybinds)) if (key === keybind) command = cmd;

So yeah the yt-keybinds object the code depends on is not existing.

Trying to change the keybindings does absolutely nothing. Not even an error is raised in console.

Solution:
Manually create the yt-keybinds key in localstorage with the values:

{"Decrease Speed":"u","Decrease Volume":"-","Increase Speed":"o","Increase Volume":"+","Reset Speed":"i","Seek Backward":"j","Seek Forward":"l","Toggle Mute":"m"}

That does not fix changing the keybindings, but makes the extension usable at least.

Disable controls when writing comments

Everytime I write a new comment to a short it randomly skips through the video in the background or changes its speed. Please disable the hotkeys while the comment dialog is open.

Suggestion:Lazy Mode

Ability to Automaticly scroll for you when a short ends with a button press visible somewhere on screen or on an extension menu dropout

Volume bar on YTmusic is moved to the right.

The volume slider on youtube music is being moved to the far right of the screen for some reason. Turning off the extension fixes this issue and moves the volume slider back to its correct spot. I'm using the Firefox version btw.

Extension pop-up's text become black color

The extension's text become black in color in dark theme, causing bad legibility as per image shown below.

The way I am able to reproduce it is to load the extension unpacked, click refresh, and open the extension pop up twice. Repeatedly opening and closing the extension seems to result in the text becoming black some of the time.

image

Use event.code for keybind instead of event.key

The problem is that using the "key" of the KeyboardEvent works correctly only within the same keyboard layout, so, for example, if the English layout is set, "key" will be "u", but if the Russian one is set, it will be "Π³". Therefore, it is better to use a universal key code for key bindings, which will be "KeyU" for any keyboard layout.

Volume control not working at Firefox

The addon works pretty well, except for the volume controls. They just don't work at all.

The volume slider that is shown in the image is just not there, and pressing "+" or "-" does nothing.

If it helps, I'm using Better YT Shorts 2.4.0 in Firefox 114.0.2 (64-bit) on Windows 11 22621.1848
They seem all be the latest versions as of now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.