diff --git sites/all/modules/contrib/nodejs/nodejs.admin.inc sites/all/modules/contrib/nodejs/nodejs.admin.inc
index ae8a6c6..b9b9c2d 100644
--- sites/all/modules/contrib/nodejs/nodejs.admin.inc
+++ sites/all/modules/contrib/nodejs/nodejs.admin.inc
@@ -35,6 +35,14 @@
     '#required' => TRUE,
     '#description' => t('The port of the Node.js server.'),
   );
-
+  $description = t("Enter one page per line as Drupal paths. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", array('%blog' => 'blog', '%blog-wildcard' => 'blog/*', '%front' => '<front>'));
+  $form['server']['nodejs_pages'] = array(
+    '#type' => 'textarea',
+    '#title' => t('Pages on which to enable nodejs'),
+    '#default_value' => variable_get('nodejs_pages', ''),
+    '#required' => TRUE,
+    '#description' => $description,
+  );
+  
   return system_settings_form($form);
 }
diff --git sites/all/modules/contrib/nodejs/nodejs.js sites/all/modules/contrib/nodejs/nodejs.js
index 9d2c681..d9fcdf6 100644
--- sites/all/modules/contrib/nodejs/nodejs.js
+++ sites/all/modules/contrib/nodejs/nodejs.js
@@ -62,7 +62,6 @@
   if (typeof io === 'undefined') {
      return false;
   }
-  console.log(url, typeof io);
   Drupal.Nodejs.socket = io.connect(url, {'connect timeout': Drupal.settings.nodejs.connectTimeout});
   Drupal.Nodejs.socket.on('connect', function() {
     Drupal.Nodejs.sendAuthMessage();
diff --git sites/all/modules/contrib/nodejs/nodejs.module sites/all/modules/contrib/nodejs/nodejs.module
index 33125cd..40f0b6d 100644
--- sites/all/modules/contrib/nodejs/nodejs.module
+++ sites/all/modules/contrib/nodejs/nodejs.module
@@ -182,31 +182,33 @@
  * Implements hook_init().
  */
 function nodejs_init() {
+  $path = drupal_get_path_alias($_GET['q']);
+  if(drupal_match_path($path, variable_get('nodejs_pages', ''))) {
+    register_shutdown_function(array('nodejs', 'sendMessages'));
+    $_SESSION['nodejs_config'] = $nodejs_config = nodejs_get_config();
 
-  register_shutdown_function(array('nodejs', 'sendMessages'));
-  $_SESSION['nodejs_config'] = $nodejs_config = nodejs_get_config();
-
-  if (isset($nodejs_config['serviceKey'])) {
-    unset($nodejs_config['serviceKey']);
-  }
-  $socket_io_config = nodejs_get_socketio_js_config($nodejs_config);
+    if (isset($nodejs_config['serviceKey'])) {
+      unset($nodejs_config['serviceKey']);
+    }
+    $socket_io_config = nodejs_get_socketio_js_config($nodejs_config);
 
-  $hackity_hack =<<<JS
+    $hackity_hack =<<<JS
 //--><!]]>
 </script>
 <script type="text/javascript" src="{$socket_io_config['path']}"></script>
 <script type="text/javascript">
 <!--//--><![CDATA[//><!--]]
 JS;
-  drupal_add_js($hackity_hack, 'inline', 'header');
-  drupal_add_js(drupal_get_path('module', 'nodejs') . '/nodejs.js', 'module', 'footer');
-  if (isset($nodejs_config)) {
-    foreach ($nodejs_config as $key => $value) {
-      drupal_add_js(array('nodejs' => array($key => $value)), 'setting');
+    drupal_add_js($hackity_hack, 'inline', 'header');
+    drupal_add_js(drupal_get_path('module', 'nodejs') . '/nodejs.js', 'module', 'footer');
+    if (isset($nodejs_config)) {
+      foreach ($nodejs_config as $key => $value) {
+        drupal_add_js(array('nodejs' => array($key => $value)), 'setting');
+      }
+    }
+    foreach (nodejs_get_js_handlers() as $handler_file) {
+      drupal_add_js($handler_file, 'file', 'footer', FALSE, TRUE);
     }
-  }
-  foreach (nodejs_get_js_handlers() as $handler_file) {
-    drupal_add_js($handler_file, 'file', 'footer', FALSE, TRUE);
   }
 }
 
