Last active
May 25, 2022 12:10
-
-
Save dantetesta/7aaee1480ec0d7cd440fe62b54cf600b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*BY: ASK JARVIS + DANTE TESTA */ | |
| REMOVE AS VARIAÇÕES PRIVADAS EVITANDO APARECER NO FRONT NA LISTA DE PRODUTOS DA VARIAÇÃO | |
| var list = document.querySelectorAll('.linked-variations-buttons li.linked-variations-item'); | |
| for (var i = 0; i < list.length; i++) { | |
| var link = list[i].querySelector('a'); | |
| if (link) { | |
| var href = link.getAttribute('href'); | |
| if (href.indexOf('?') > -1) { | |
| list[i].remove(); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment