loveshdongre / leetcode-enhancer

A cross-browser extension to improve productivity on Leetcode
https://chrome.google.com/webstore/detail/leetcode-enhancer/gcmncppaaebldbkgkcbojghpmpjkdlmp
45 stars 5 forks source link

Add feature to hide acceptance rate in new coding area #28

Closed natzelo closed 1 year ago

natzelo commented 1 year ago

❇️ Added the feature to hide acceptance rate within the new coding area.

Below is a demo gif showing the functionality and UI changes

hide-acceptance-rate-demo

@loveshdongre I would appreciate if you could review the code changes before merging this pull request. Let me know if there are further omissions on this issue 😄

loveshdongre commented 1 year ago

hi @natzelo Just changed the selector a bit, as early spacing was a minor issue and added a less generic selector ssg__qd-splitter-primary-w to reduce the chances of bugs.

const acceptanceDiv = document.querySelector(".ssg__qd-splitter-primary-w div.px-5.py-3.pt-\\[38px\\] div")

Also, appreciate the implementation and efforts you added for visualization. I'll be adding a few more issues related to this, feel free to pick them. Thank you!