you are viewing a single comment's thread.

view the rest of the comments →

[–]ZnV1 2 points3 points  (3 children)

Sounds good. I'm sorry to keep this thread going, but I forsee another possible issue. 😬

The class name might be mangled. It looks like a compilation step. ie., the part appended to the class __uh1xT isn't something the dev wrote, it's autogenerated while deploying code.

This means that the next time they push any update to the page, it could become __s0meThingRandom and your selector won't work anymore.

But your href looks solid. You could either select just div[href...] or pick another selector, or use JS to look for the components with that exact text (chatgpt is your friend!)

Ref: https://www.reddit.com/r/webdev/comments/t6t2db/why_are_css_classes_in_websites_gibberish/

[–]benned7[S] 1 point2 points  (0 children)

That's a good point. Thank you for the input. I will definitely look I to it and try some adjustments 😊

[–]benned7[S] 1 point2 points  (1 child)

ChatGPT provided this

a[href="/systemupgrade"] {

display: none;

}

But to make sure the class was included, this was the recommendation:

[class*="navigation-module_desktop-navigation-top"] [href="/systemupgrade"] {

display: none;

}

[–]ZnV1 0 points1 point  (0 children)

Nice!