arunbhardwaj / LeetHub-2.0

Automatically sync your leetcode solutions to your github account - with some updates to keep it working
https://chrome.google.com/webstore/detail/leethub-v2/mhanfgfagplhgemhjfeolkkdidbakocm
MIT License
242 stars 18 forks source link

Fix detection of LeetCode V2 using improved document query logic #52

Closed aystream closed 4 months ago

aystream commented 7 months ago

Enhanced the function isLeetCodeV2 to more accurately determine if the current page is a version of LeetCode. The function now checks for the presence of specific root elements and body classes that indicate whether the page is using Chakra UI light or dark themes, as well as the presence of the "__next" root element. This ensures a more reliable and precise detection of LeetCode's version and UI themes, improving the overall functionality of the script.

Issue: #51

hovanhoa commented 7 months ago

it worked for me. Thank you, @aystream !

abhinav7sinha commented 7 months ago

@arunbhardwaj can you pls merge?

sidhant-khamankar commented 6 months ago

Is the owner alive or somebody has created leethub3 extension

raphaelheinz commented 6 months ago

Is the owner alive or somebody has created kleethub3 extension

@sidhant-khamankar I have created Leethub-3.0 because owner is not responding. Leethub-3.0 is working with the new "dynamic" UI. Please check https://github.com/raphaelheinz/LeetHub-3.0/

sidhant-khamankar commented 6 months ago

ok thanks