Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] YouTube Timestamp Anchor URL #28

Closed
sovalyeler opened this issue Jan 2, 2024 · 7 comments
Closed

[BUG] YouTube Timestamp Anchor URL #28

sovalyeler opened this issue Jan 2, 2024 · 7 comments

Comments

@sovalyeler
Copy link

First of all I want to thank you for this script.
My problem is that the script causes Youtube to ignore timestamp anchor links.
e.g. https://www.youtube.com/watch?v=TLnUJzueBOQ#t=38s
(Edge 120.0.2210.91)

cyfung1031 added a commit that referenced this issue Jan 2, 2024
* fix [issue #28](#28)
github-actions bot added a commit that referenced this issue Jan 2, 2024
@cyfung1031
Copy link
Collaborator

cyfung1031 commented Jan 2, 2024

Fixed now.

By the way, #t=xxx is the old way for the timestamp. The current way is &t=xxx
You can really feel the difference that, #t=38s will take some time to play at the 38s after the video is being played from the start. (click the link and open in a new tab / window)
&t=38s is the official and current way to directly load from 38s.

Remarks

Screen Shot 2024-01-03 at 8 53 54

&t=1m32s and &t=92 are equivalent.

@sovalyeler
Copy link
Author

Yes I actually know the official way. However, I've been using another user script called yt-url-at-time which turns current time into clickable link that adds timestamp as an anchor link to URL.(Easier to bookmark longer videos.) Thank you for the fix.

@cyfung1031
Copy link
Collaborator

@sovalyeler I have updated that script and hope the author will update it.

See https://greasyfork.org/scripts/35760-yt-url-at-time/discussions/220601

https://github.com/cyfung1031/userscript-supports/raw/main/revised-35760-yt-url-at-time.user.js

@sovalyeler
Copy link
Author

Thanks a lot!

@cyfung1031 cyfung1031 changed the title Timestamps [BUG] YouTube Timestamp Anchor URL Jan 5, 2024
@sovalyeler
Copy link
Author

Just recently realized that Youtube ignores precise timestamp(Alt+Click) w/ "&t=". Ex: https://www.youtube.com/watch?v=4Wg-RQpcpUU&t=115.735294
Upon refreshing the page, timestamp gets removed. Can you update the script please?

@cyfung1031
Copy link
Collaborator

cyfung1031 commented Jan 16, 2024

Just recently realized that Youtube ignores precise timestamp(Alt+Click) w/ "&t=". Ex: https://www.youtube.com/watch?v=4Wg-RQpcpUU&t=115.735294 Upon refreshing the page, timestamp gets removed. Can you update the script please?

I have checked that this is not caused by my script.
YouTube itself removes it.
From my understanding, &t=115.735294 is not a recognized format used in YouTube.
it should be an integer or with s (&t=115 or &t=115s)

Note: YouTube engine removes all unrecognized query string in the link automatically. I believe this can be turned off by the experimental flag setting though.

You should ask the author of that script to update.

Remarks

Oh, you mean this script

OK. updated now.

@sovalyeler
Copy link
Author

sovalyeler commented Jan 16, 2024

Thank you again for the update. And yes, w/ the official/new way Youtube does remove precise timestamp. Just for reference, it seems that Youtube does recognize old(non-official) "precise" timestamp format.
e.g. https://www.youtube.com/watch?v=0AULTavdeGc#t=6m42s https://www.youtube.com/watch?v=0AULTavdeGc#t=402.359408
These timestamps load different frames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants