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

Generate potoken and visitordata from sig helper? #10

Open
unixfox opened this issue Aug 9, 2024 · 7 comments
Open

Generate potoken and visitordata from sig helper? #10

unixfox opened this issue Aug 9, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@unixfox
Copy link
Member

unixfox commented Aug 9, 2024

@techmetx11 someone found on how to generate poToken without a browser: https://github.com/YunzheZJU/youtube-po-token-generator

Do you think it would be somewhat possible to integrate this into sig helper project?

Cc @SamantazFox

@unixfox unixfox added the enhancement New feature or request label Aug 9, 2024
@techmetx11
Copy link
Collaborator

techmetx11 commented Aug 9, 2024

The program works by emulating the DOM API, intercepting JavaScript functions, and making a fake ytcfg object for it all to work.
I'm going to figure out how to implement this within the program itself, It'll be a bit difficult since I have to somehow do it with QuickJS (rather than conveniently doing it within node.js)

@techmetx11 techmetx11 self-assigned this Aug 9, 2024
@unixfox
Copy link
Member Author

unixfox commented Aug 9, 2024

Yeah. I have looked too bad there is no way to use the npm library jsdom directly in rust.

There is a lookalike library in rust but it's probably incomplete: https://github.com/spider-rs/jsdom

@techmetx11
Copy link
Collaborator

techmetx11 commented Aug 9, 2024

I've decided to just make inv_sig_helper run a extractor script written in Node.JS, and parse and return (maybe cache aswell) the result back to the users
This means it'll be the slowest operation in the whole program, so I hope it'll only be ran occassionally or so

@unixfox
Copy link
Member Author

unixfox commented Aug 9, 2024

Won't this make building for cross platform more difficult? How are you going to achieve this?

I was wondering if we could instead run the jsdom library using node from rust: https://austinpoor.com/blog/js-in-rs

@techmetx11
Copy link
Collaborator

Won't this make building for cross platform more difficult? How are you going to achieve this?

I was wondering if we could instead run the jsdom library using node from rust: https://austinpoor.com/blog/js-in-rs

Nevermind, I'll figure out how to use Deno's runtime, although that means we'll have 2 JS interpreters inside the program

@unixfox
Copy link
Member Author

unixfox commented Aug 10, 2024

@techmetx11 can you give us your matrix username? We would like to invite you to a private room for more in depth info about this implementation

@techmetx11
Copy link
Collaborator

@techmetx11 can you give us your matrix username? We would like to invite you to a private room for more in depth info about this implementation

@techmetx11:digitalprivacy.diy

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

No branches or pull requests

2 participants