Warning.js

Warning.js is a tiny JavaScript library which promotes JavaScript-free browsing and warns users with JavaScript enabled browsers.

Toggle JavaScript to see it in action.

Usage

Include Warning.js in your project's HTML code:

 <script type="text/javascript" src="warning.js" charset="utf-8"></script>

Download

Motivation

Warning.js aims to raise awareness about the possible harms of using JavaScript.

JavaScript is the biggest threat to the security and privacy of users. JavaScript enables devastating security exploits and most invasive tracking of our browsing behaviour. Our best weapon against most of these attacks and tracking is turning JavaScript off and to demand sites to provide functional alternatives not requiring JavaScript - also called graceful degradation.

Most sites don't respect their users security/privacy and require their users to enable JavaScript, we want to show that it is not necessary and that requiring JavaScript is not in the interest of the users - it is really only the interest of the websites. Deploying warning.js demonstrates proudly that it is possible and respectful towards the visitors to not require JavaScript.

Recommended Tools

For Firefox: NoScript
For Chrome/Chromium: Quick JavaScript Switcher
For Safari: JSBlocker

Source Code