Prevent JS from showing on specific pages I've got a Javascript that I'd been able to post on every page using Drupal_add_js, and everything was fine till my client's needs changed.

Now I need to show that same JS script on every site page except one node type, and one specific URL and I dont know how to do this.
I'd prefer to do it the Drupal way rather than use JS Injector if I can.

Any help is appreciated!
Thanks
Steph
Following your logic, something along the lines of...

$mgo=menu_get_object();
if ((isset($mgo) &amp;&amp; $mgo-&gt;type=='TYPE') || $_GET['q']=='PATH') {
  ;
} else {
  drupal_add_js(...);
}


...where you are doing your drupal_add_js(...) should do it.  I think this does it cleaner, but it's late in the logic day here:

$mgo=menu_get_object();
if ((isset($mgo) &amp;&amp; $mgo-&gt;type!='TYPE') &amp;&amp; $_GET['q']!='PATH') {
  drupal_add_js(...);
}


ADDITION:

$mgo=menu_get_object();
if (isset($mgo) &amp;&amp; $mgo-&gt;type=='products') || strpos($_GET['q'], 'user/preference_center/ratings_reviews/')===0) {
  ; // do nothing
} else {
  drupal_add_js(....);
}


will add js only if you are not looking at a product node or not in a path that starts with user/preference_center/ratings_reviews/ BUT please note that if what is after user/preference_center/ratings_reviews is a node, this won't work because that path is actually node/#, so you will have to then do...

$mgo=menu_get_object();
if (isset($mgo) &amp;&amp; $mgo-&gt;type=='products') || strpos(drupal_get_path_alias(), 'user/preference_center/ratings_reviews/')===0) {
  ; // do nothing
} else {
  drupal_add_js(....);
}


..instead.