Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
/ wei_warning Public archive

Warning banner if a user's browser supports Web Environment Integrity (WEI), can be embedded on websites to nudge people to switch to a better browser.

License

Notifications You must be signed in to change notification settings

eylenburg/wei_warning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Web Environment Integrity browser check & warning banner

If a visitor is using a WEI-enabled browser (e.g. Chrome, Edge, Chromium) they will get a full-page warning that their browser is harmful, with a link to the FSF's explanation of why WEI is bad and download links to various browsers that oppose WEI (currently: Firefox, Safari, Brave, Pale Moon, GNOME Web).

The user has to close the warning banner to view the website content.

How to use:
Just copy the content of wei_check and paste it into the body of your website's source code.

Possible enhancements:

Technical:

  • Easier wary of embedding, e.g. by linking an external resource rather than having to paste the code to each webpage.
  • Check directly for WEI API functionality rather than indirectly via the the user agent
  • Set a cookie to dismiss the banner for a certain amount of time, so that you can have the banner on every single webpage without annoying your visitors too much.
  • Recommended browsers should depend the visitor's OS (e.g. don't mention Safari on non-Apple devices).

Non-technical:

  • Concise and easy to understand explanation why WEI is bad and you should feel bad, rather than just linking to the FSF.
  • Make it look more professional, like one of these "you need to deactivate your adblocker" warnings.
  • Spread the word, until this is visible on a significant number of websites and even your great-grandma decides to install Firefox.

Pull Requests are very welcome! I have no tech background and I'm not quite sure how to implement these enhancements.

About

Warning banner if a user's browser supports Web Environment Integrity (WEI), can be embedded on websites to nudge people to switch to a better browser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages