Question: I have this query:

```
SELECT queue.first_dealer, queue.second_dealer, queue.status
FROM queue
WHERE queue.status = 3
AND queue.first_dealer = $user_id
OR queue.second_dealer = $user_id
AND queue.status = 3
ORDER BY id DESC
LIMIT 5

```

But sometimes the first\_dealer or the second\_dealer can be the same, I want to skip to the next records if they are the same.

Answer: 
this is the Line you have to comment out:

```
 var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50....

```

Joomla 2.5 /libraries/joomla/html/\*/behavior.php 
Line xxx comment it out

Joomla 3.x /libraries/cms/html/behavior.php
Line 287 comment it out
If you use a template only approach to removing javascript - some components still force the addition of code.

So - far the only reliable solution I have found is utilizing a plugin to block js - JSS - CSS control:
<http://extensions.joomla.org/extensions/extension/core-enhancements/performance/js-css-control>