Skip to content

nurpa/betterlex-bookmarklet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Better Lex bookmarklet

Better Lex bookmarklet is a tool for improving readability of the online Belgian consolidated legislation. It requires a modern Web browser, such as Firefox.

Installing

See Better Lex updater/installer (en, fr, nl) or, if you are familiar with bookmarklets, grab the latest build on github.

Screenshots

Before After After (dark theme)
title-before title-after title-after-dark
article-before article-after article-after-dark
updates-before updates-after updates-after-dark

Code overview

Here is the structure of this project.

betterlex-bookmarklet
├── bin
│   ├── bookmarklet_fr.js
│   └── bookmarklet_nl.js
├── lib
├── scripts
│   ├── build
│   └── install
├── src
│   ├── main.css
│   ├── main.js
│   ├── translations.json
│   └── utility.js
├── CREDITS
├── LICENSE
└── README.md

How to build the bookmarklet from scratch

Dependencies

  • PHP 5.4 or any newer version
  • Composer, a package manager for PHP
  • spotch, a bookmarklet generator

Download and install dependencies

You can use the following bash script to install the project’s dependencies.

./scripts/install

Build the bookmarklet

Once the dependencies are installed, you just need to run this build script to generate both the French and Dutch versions of the bookmarklet.

./scripts/build

License

This is free/libre software, made available under the terms of the GNU General Public License (GPLv3).