Last active
August 29, 2015 14:17
-
-
Save matherton/d462c6af38e9f6f04bd9 to your computer and use it in GitHub Desktop.
JS snippet remove link according if on URL
This file contains 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
if (document.URL.indexOf("PAGE-NAME") >= 0) { | |
$('a[href="/page-name"]').hide(); | |
} | |
/* | |
= is exactly equal | |
!= is not equal | |
^= is starts with | |
$= is ends with | |
*= is contains | |
~= is contains word | |
|= is starts with prefix (i.e., |= "prefix" matches "prefix-...") | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment