Check if you are using jQuery or Prototype

if (window.$$ === window.jQuery) console.log('jQuery'); else if ( typeof Prototype !== "undefined" ) { console.log('Prototype'); }