title: Change media query using Javascript
body: <p>I want to set media queries manually. I have some <code>JavaScript</code> algorithm that tells me what to choose, suppose it is <code>IsMediaA()</code>.</p>
  
  <pre><code>@media A { display: block; }
  @media B { display: inline-block; }
  </code></pre>
  
  <p>Is it possible to change used media query depending on <code>IsMediaA()</code> value?</p>