<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Opera Mini Browser Detection Using Javascript]]></title><description><![CDATA[<p dir="auto">I have written a javascript code for my website to detect if its running on an Opera Mini browser on mobile devices. Since Opera Mini has a data saving feature, when it is enabled it sometimes doesn't load the site properly, hence I want to display a message by detecting whether the browser used is Opera Mini.</p>
<p dir="auto">The code posted below works perfectly for Opera Mini on iOS but it doesn't work on Android. Any suggestions to make the code also work for Opera Mini on Android?</p>
<pre><code>&lt;script type="text/javascript"&gt;
 function o(){
   var isMobile = {
    Opera: function() {
        return navigator.userAgent.match(/Opera Mini/i);
                      },
                  };
     if( isMobile.Opera() ) alert('If you are using Opera Mini please disable Data Savings Mode to Have a pleasant browsing experience :)');
             }
 window.onload = o;
&lt;/script&gt;
</code></pre>
]]></description><link>https://forums.opera.com/topic/39468/opera-mini-browser-detection-using-javascript</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 04:51:32 GMT</lastBuildDate><atom:link href="https://forums.opera.com/topic/39468.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Apr 2020 05:45:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Opera Mini Browser Detection Using Javascript on Thu, 02 Apr 2020 22:52:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi @conrick</p>
<p dir="auto">In my case the code below does the trick.</p>
<pre><code>window.onload = function(){
    if (navigator.userAgent.indexOf("Opera Mini") !== -1)
        alert("blah blah");
};
</code></pre>
<p dir="auto">Depending on what geographic areas you target, you may want to reconsider adjusting your site's mobile version to Extreme Data Savings limits, though.</p>
<p dir="auto">Regards<br />
Kacper</p>
]]></description><link>https://forums.opera.com/post/205002</link><guid isPermaLink="true">https://forums.opera.com/post/205002</guid><dc:creator><![CDATA[kaniolek]]></dc:creator><pubDate>Thu, 02 Apr 2020 22:52:21 GMT</pubDate></item></channel></rss>