Add class to <body> if query string is in url
<p>I'm working with woocommerce. When you use the product filters it renders a url with a query string (or what I think is a query string)
<a href="http://www.webdesignui.com/looms/browse/?filtering=1&amp;filter_collection=1481" rel="nofollow">http://www.webdesignui.com/looms/browse/?filtering=1&amp;filter_collection=1481</a></p>

<p>For some reason WooCommerce doesn't change the body class based on the url you are on. It keeps the "archive" as the body class.</p>

<p>I'd like to figure out a way to say, if the url has ?filtering=, add class="filterison". Something like this</p>

<pre><code>&lt;script&gt;
$(document).ready(function() {
    if(url.indexOf('a[href*="/looms/browse/?filtering=1') &gt; -1){
        $("body").addClass("filterison");
    }
});
&lt;/script&gt;
</code></pre>