Index: popups.js
===================================================================
--- popups.js	(revision 15)
+++ popups.js	(working copy)
@@ -717,7 +717,7 @@
       var link = css[type][file];
       // Does the page already contain this stylesheet?
       if (!$('link[href='+ $(link).attr('href') + ']').length) {
-        $('head').append(link);
+        //$('head').append(link);
         Popups.addedCSS.push(link); // Keep a list, so we can remove them later.
       }
     }
@@ -733,12 +733,17 @@
   var inlines = [];
   for (var type in js) {
     if (type != 'setting') {
+      var Reg_jquery = new RegExp('jquery');
+      var Reg_drupal = new RegExp('drupal');
       for (var file in js[type]) {
         if (type == 'inline') {
           inlines.push($(js[type][file]).text());
         }
         else {
-          scripts.push($(js[type][file]).attr('src'));
+          var src = $(js[type][file]).attr('src');
+          if (!Reg_jquery.test(src) && !Reg_drupal.test(src)) {
+            scripts.push(src);
+          }
         }
       }
     }
