Created
May 13, 2023 03:25
-
-
Save Zerg00s/52e299d2ca38e963d283f78966ee8f97 to your computer and use it in GitHub Desktop.
Hide Links
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
document.addEventListener('DOMContentLoaded', function() { | |
var linksToHide = document.querySelectorAll('a.link-to-hide'); | |
for (var i = 0; i < linksToHide.length; i++) { | |
var linkText = linksToHide[i].textContent || linksToHide[i].innerText; | |
if (linkText === 'Links' || linkText === 'Liens') { | |
linksToHide[i].style.display = 'none'; | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment