Skip to content

Instantly share code, notes, and snippets.

@matherton
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matherton/d462c6af38e9f6f04bd9 to your computer and use it in GitHub Desktop.
Save matherton/d462c6af38e9f6f04bd9 to your computer and use it in GitHub Desktop.
JS snippet remove link according if on URL
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