Yaw-Dev / YT-AntiAdBlock-Bypass

A simple method of bypassing YouTube's AdBlock Detection using Enhancer for YouTube's "Remove Ads" button, featuring a GUI for easy configuration! Does not require the use of any external website like similar tools do.
https://greasyfork.org/en/scripts/477864-youtube-anti-adblock-bypass-via-youtube-enhancer
MIT License
49 stars 5 forks source link

Prettify the code #1

Closed ArjixWasTaken closed 11 months ago

ArjixWasTaken commented 11 months ago

Some small, but imo important, code style improvements.

PS: Why did you do [...document.querySelectorAll('xyz')][0] instead of document.querySelector('xyz')?

ArjixWasTaken commented 11 months ago

Warning: I have not tested the code, this was directly written using GitHub's file editor.

Yaw-Dev commented 11 months ago

the code seems to be working fine, thanks for the contribution. the reason why I did [...document.querySelectorAll('xyz')][0] is simply that I'm new to JS and was trying a few different things out. I had a lot of help on this project by a friend (especially on the gui side of things)

ArjixWasTaken commented 11 months ago

the reason why I did [...document.querySelectorAll('xyz')][0] is simply that I'm new to JS and was trying a few different things out.

Naruhodo, in that case feel free to DM me on discord if you have any questions or need help coding!

(PS: Και 'γω Έλληνας είμαι)

Yaw-Dev commented 11 months ago

the reason why I did [...document.querySelectorAll('xyz')][0] is simply that I'm new to JS and was trying a few different things out.

Naruhodo, in that case feel free to DM me on discord if you have any questions or need help coding!

(PS: Και 'γω Έλληνας είμαι)

Ναι το προσεξα πριν λίγο, ευχαριστω για την βοηθεια.