<script>
$( document ).ready(function() {
//Change this ID's for the ID's of the pages you'd like to exclude.
var exclude = ["d295a5b5-9761-4e54-a776-76fcbcafdd7e",
"582eee08-77a6-4038-8e92-8c356f1bb64b",
"dcd9aed3-ca05-4f9c-9fb9-4f09b44246e7"];
//Get page id.
var pageId = window.ub.page.id
//Compare pageId to array
if (jQuery.inArray(pageId, exclude)=='-1') {
//ADD YOUR SCRIPT HERE
}
});
</script>
Last active
August 14, 2017 02:22
-
-
Save victorzen/c5aae1a5880fe2be79a92776ee040d7a to your computer and use it in GitHub Desktop.
Exclude pages from Script Manager
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment