GithubHelp home page GithubHelp logo

cloudflare-apps / a-better-browser Goto Github PK

View Code? Open in Web Editor NEW
110.0 14.0 61.0 366 KB

Let users know when their browser needs an upgrade!

Home Page: https://www.cloudflare.com/apps/a-better-browser

License: The Unlicense

JavaScript 87.91% CSS 12.09%
javascript cloudflare cloudflare-apps

a-better-browser's Introduction

A Better Browser – Cloudflare App

Giving Cloudflare site owners a way to promote upgrading their old Internet Explorer browser.

Usage

Install the dependencies with npm install

  • npm start Watch for file changes and compile them.
  • npm run build Compiles your JavaScript and CSS once for release.

How to add a language

  • Fork this repository
  • Edit translations.js and your language in alphabetical order (leave English at the top)
  • Commit your changes, preferably in one commit
  • Make a pull request

Please do not change increase version or minify the file (we will do that ourselves).

License

The contents are under the public domain. See LICENSE for more information.

a-better-browser's People

Contributors

aminrpg avatar andreimarcu avatar bluet avatar chris-ath avatar dade88 avatar dlackty avatar girlbossrush avatar hendrikrust avatar hvaskjer avatar igormp avatar kaseneac avatar laurim avatar liesislukas avatar logue avatar lxyu avatar michaelokgb avatar nbajanca avatar pencoyd avatar pusewicz avatar rakannimer avatar richardotvos avatar robinvandervliet avatar rschaerer avatar saren-arterius avatar scotteadams avatar tjfogarty avatar tonyztan avatar vovansystems avatar xpaw avatar ysugiura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

a-better-browser's Issues

Message shown in wrong language

Expected result:

For Taiwan (Traditional Chinese) users, the result of window.navigator.language || window.navigator.userLanguage || 'en' is zh-TW and the message should be ['你正在使用過時的瀏覽器。', '詳細資訊 »'] according to

const [messageLabel, moreLabel] = translations[language] || translations[language.substring(0, 2)] || translations.en
and
'zh-tw': ['你正在使用過時的瀏覽器。', '詳細資訊 »']
.

Actual result:

2018-12-19 08-41-39

Cause:

Firefox, Chrome, Safari and Opera has different behaviors in language related variables.

  IE6 IE7 IE8 Firefox Chrome Safari Opera
navigator.language undefined zh-TW zh-TW
navigator.userLanguage zh-tw undefined zh-tw
navigator.browserLanguage zh-tw undefined zh-tw
navigator.systemLanguage zh-tw undefined undefined

License

@theaqua We probably should add a license in the repo. Perhaps public domain?

Firefox ESR exclude

We have many users who at work simply do not have a choice it what browser version they are using. Firefox has ESR which I believe should be excluded. While it may not have the latest features it is still a supported and secured browser. Currently there is no way to exclude an ESR release from detection. Current Firefox ESR releas eis 45.7.

Contribution guides

Hey, @xPaw, I think we need to add contribution guides for new languages. For example, what (new line in translations, new item in list, version) update and where (links to files).

ABetterBrowser banner is not (or only intermittently) displayed for IE8

CloudFlare support suggested I report this to you.

I defined the CloudFlare aBetterBrowser app for IE 8.0 and below, and tested it from an IE8 browser on Wndows XP. Although the section of the source code for a very simple html reply includes the abetterbrowser script, the black abetterbrowser banner is not displayed. The following screenshot, taken 3+ weeks ago, includes page source, rendered page, and proof of IE8. Repeating the display today gives the same result.

abetterbrowser banner does not display

You can test this yourself by visiting website www.abtuk.org.uk for which the abetterbrowser CloudFlare app is, and will remain, enabled for IE8 and below. The black abetterbrowser banner is not displayed. This website has only 1 page, containing a single link (a clickable image).

Further: If that link is clicked, this takes the visitor to multi-page website www.biodanza4me.com which is in the same CloudFlare account and for which the abetterbrowser app is also enabled for IE8 and below. The black abetterbrowser banner appears intermittently on the pages of this website - I have not yet been able to discern a pattern for the [non-]display of the banner.

During all my testing I did not click the link in the black abetterbrowser banner, nor did I click the big X (to dismiss it).

Regards,
Pete

Windows 10 Microsoft Edge 39.14986.1000.0

Hi, i have in my Cloudflare "A Better Browser" setup for Windows Browser Highest version "10". Running the site on Windows 10 Microsoft Edge 39.14986.1000.0, A Better Browser recognize Edge as old Browser...

Thank you..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.