Browser - Userscript (user.js)



userscript are javascript script that are stored on the browser side and that can run:


// ==UserScript==
// @name         Hello World
// @namespace    https://datacadamia/
// @version      0.1
// @description  Hello World
// @author       Nico
// @match        *://*/userscript
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    alert('This is the "Hello World UserScript script of');




See doc for tampermonkey

Id: name and namespace

To uniquely identify a user script


Run on which page: match / exclude

The pattern of match and exclude follows the match patterns of chrome extension


  • Run on every page
@match *://*/*
  • Run
    • on https page with the host on the sub-path of article
    • but not when edit is in the subpath

Load a library: require


Local Dev

See how to edit script in your favorite editor (violentmonkey).

Documentation / Reference

Discover More
Card Puncher Data Processing
General Data Protection Regulation (GDPR)

The European Data Protection Regulation is applicable as of May 25th, 2018 in all member states to harmonize data privacy laws across Europe. Under this law, websites need: to explain the usage of...
Javascript - Script

A Javascript script is script file with a js extension. A browser script is a run that is run by the browser where Javascript is: in a page via the script element: in a browser extension created...
Robots Useragent
Web - Scrape

scraping is the extraction of data from a web page. Manual via Automated via a This website can be scrapped without penalty. ...

Share this page:
Follow us:
Task Runner