ArticleslgStudy

computer science

GNU LibreJS

GNU LibreJS is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand GNU LibreJS rather than just read about it. In short: GNU LibreJS, or simply LibreJS, is a free software web browser extension for Mozilla Firefox-based browsers, written by the GNU Project. Its purpose is to block nonfree nontrivial JavaScript programs and allow free or trivial JS in a user's web browser.

GNU LibreJS — main illustration
GNU LibreJS — illustration

Key takeaways

  • GNU LibreJS belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect GNU LibreJS to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of GNU LibreJS from memory before moving on to harder problems.

Reference excerpt

GNU LibreJS, or simply LibreJS, is a free software web browser extension for Mozilla Firefox-based browsers, written by the GNU Project. Its purpose is to block nonfree nontrivial JavaScript programs and allow free or trivial JS in a user's web browser. The add-on was written to address the so-called "JavaScript Trap" first described by Richard Stallman in 2009, a situation in which many users unknowingly run proprietary software in their web browsers.

Description GNU LibreJS refuses to run nonfree programs that are present in many websites. It is developed as part of the GNU Project by Yuchen Pei and is included by default in the GNU IceCat browser. It can also work with Tor. The add-on allows site whitelisting and has an email address detection system for users to contact page webmasters in order to persuade them into making their JavaScript code compliant with LibreJS. According to the Free Software Foundation, many websites (if not whitelisted) break while using the add-on, due to the pervasiveness of proprietary JavaScript code on the web. Nevertheless, programmer and activist Richard Stallman supports the usage of GNU LibreJS. Criticizing Google, Stallman said, "In general, most Google services require the execution of non-free JavaScript code. If you refuse to do so (for example, by running LibreJS), you will see that you will not be able to use these services."

Reception Klint Finley of Wired, after going without JavaScript for a week, wrote, "The Free Software Foundation launched its Free JavaScript campaign in 2013 to promote websites using only free and open source JavaScript code, or making sites function without it. To help users avoid running proprietary JavaScript, they developed LibreJS, a plugin for the Firefox web browser that blocks most, but not all, JavaScript from running. They also work with engineers to help reduce dependence on proprietary JavaScript." However, the FSF does not use the term "open source" and actively advocates against using it, preferring the term "free software" instead. Cory Doctorow of BoingBoing, discussing Finley's article, said he had used NoScript for years, and got around the problems Finley identified by whitelisting pages with wanted functionality that only works with JavaScript. Websites have been criticized or rated based on whether they work without JavaScript or with LibreJS enabled.

See also

NoScript

References

External links LibreJS on gnu.org

Illustrations

GNU LibreJS illustration
GNU LibreJS illustration

Worked examples

Example 1 — a first encounter with GNU LibreJS

Start with the simplest possible case. Write down what GNU LibreJS claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to GNU LibreJS before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about GNU LibreJS ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of GNU LibreJS

In research
GNU LibreJS appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses GNU LibreJS in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
GNU LibreJS is common in secondary-school and first-year university syllabi. It links to neighbouring topics Free Firefox WebExtensions, GNU Project software, JavaScript, so understanding it makes those chapters shorter.
In everyday life
Look for GNU LibreJS outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “GNU LibreJS” →

How to study GNU LibreJS in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what GNU LibreJS means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain GNU LibreJS out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is GNU LibreJS in simple terms?

GNU LibreJS, or simply LibreJS, is a free software web browser extension for Mozilla Firefox-based browsers, written by the GNU Project. Its purpose is to block nonfree nontrivial JavaScript programs and allow free or trivial JS in a user's web browser.

Why does GNU LibreJS matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study GNU LibreJS?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on GNU LibreJS.

Tags

  • Free Firefox WebExtensions
  • GNU Project software
  • JavaScript
  • Software using the GNU General Public License

Keep exploring