OLD | NEW |
| 1 {% block head %} |
| 2 <script src="/js/vendor/bowser.js"></script> |
| 3 <script> |
| 4 if (bowser instanceof Object && bowser.samsungBrowser) |
| 5 { |
| 6 // hide the Adblock Browser banner |
| 7 document |
| 8 .getElementById("content") |
| 9 .classList.remove("ua-android"); |
| 10 |
| 11 // change the Android install link to Samsung Browser |
| 12 document |
| 13 .getElementById("install-android") |
| 14 .href = "https://play.google.com/store/apps/details?id=org.adblockplus.a
dblockplussbrowser"; |
| 15 } |
| 16 else |
| 17 { |
| 18 // hide TOS message and install button for not-samsung android browsers |
| 19 document.getElementById("terms-message").style.display = "none"; |
| 20 document.getElementById("install").style.display = "none"; |
| 21 } |
| 22 </script> |
| 23 {% endblock %} |
| 24 |
1 <? include index ?> | 25 <? include index ?> |
OLD | NEW |