ArticleslgStudy

computer science

Tampermonkey

Tampermonkey 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 Tampermonkey rather than just read about it. In short: Tampermonkey is a userscript manager that enables the user to add and use userscripts, which are JavaScript programs that can be used to modify web pages. It is available as a browser extension.

Tampermonkey — main illustration
Tampermonkey — illustration

Key takeaways

  • Tampermonkey 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 Tampermonkey to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Tampermonkey from memory before moving on to harder problems.

Reference excerpt

Tampermonkey is a userscript manager that enables the user to add and use userscripts, which are JavaScript programs that can be used to modify web pages. It is available as a browser extension.

History Tampermonkey was first created in May 2010 by Jan Biniok. It first emerged as a Greasemonkey userscript that was wrapped to support Google Chrome. Eventually the code was re-used and published as a standalone extension for Chrome which had more features than Chrome's native script support. In 2011, Tampermonkey was ported to Android, enabling users to use userscripts on Android's internal browser. In January 2013, after the publication of version 2.9, Jan Biniok decided to change Tampermonkey from open source (GPLv3) to closed source (proprietary). By 2019, Tampermonkey had over 10 million users. By 2022 Tampermonkey was one of 33 extensions on the Chrome Web Store to have at least 10 million users.

Chrome manifest V3 In January 2019, Biniok wrote in a Google Groups post that the new Chrome manifest V3 would break the extension. The new manifest would ban remotely accessed code which Tampermonkey is dependent on. The userscripts use code that is created by developers not at Google, rather they are created by third-party developers at places like Userscripts.org and Greasyfork. This code is inserted after the extension is installed, however the manifest requires the code to be present at installation.

Controversy On January 6, 2019, Opera banned the Tampermonkey extension from being installed through the Chrome Web Store, claiming it had been identified as malicious. Later, Bleeping Computer was able to determine that a piece of adware called GOM Player would install the Chrome Web Store version of Tampermonkey and likely utilize the extension to facilitate the injection of ads or other malicious behavior. The site stated, "This does not mean that Tampermonkey is malicious, but rather that a malicious program is utilizing a legitimate program for bad behavior," going on to call Opera's blacklisting the extension for this reason a "strange decision".

See also List of augmented browsing software Greasemonkey

References

External links Tampermonkey website Tampermonkey add-on for Chrome Tampermonkey add-on for Edge Tampermonkey add-on for Firefox Tampermonkey add-on for Opera Tampermonkey add-on for Safari OpenUserJS – Userscript repository Greasy Fork – Userscript repository

Worked examples

Example 1 — a first encounter with Tampermonkey

Start with the simplest possible case. Write down what Tampermonkey 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 Tampermonkey 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 Tampermonkey 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 Tampermonkey

In research
Tampermonkey 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 Tampermonkey 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
Tampermonkey is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2010 software, Google Chrome extensions, Nonfree Firefox WebExtensions, so understanding it makes those chapters shorter.
In everyday life
Look for Tampermonkey 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 “Tampermonkey” →

How to study Tampermonkey in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Tampermonkey 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 Tampermonkey out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Tampermonkey in simple terms?

Tampermonkey is a userscript manager that enables the user to add and use userscripts, which are JavaScript programs that can be used to modify web pages. It is available as a browser extension.

Why does Tampermonkey 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 Tampermonkey?

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 Tampermonkey.

Tags

  • 2010 software
  • Google Chrome extensions
  • Nonfree Firefox WebExtensions

Keep exploring