Improves Belgian eJustice Justel website

Latest Version

Version
0.2.2024.0519
Update
May 20, 2024
Size
222KiB
Developer
Category
Users
463
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Storage
UnlimitedStorage
See more

Better Justel Extension

# Better Juportal

## Concept

This browser extension (available for Chrome on https://chrome.google.com/webstore/detail/better-justel/jjknlnihcjeefjgdacaanbiedamibimp and for Firefox on https://addons.mozilla.org/fr/firefox/addon/better-justel/) takes the information publicly available on Justel (https://www.ejustice.just.fgov.be/loi/loi.htm), the Belgian database of consolidated legislation, and displays it in a more user-friendly experience.

## Features

- The page on which each act is displayed is divided in three panes : the upper pane containing general information on the act; the left pane with a table of content; and the right pane displaying the content of the act. Each pane can be resized by hovering the mouse on the dividing line and dragging it.
- In the info pane, the icon of a disk allows to download and automatically name the consolidated version of the act in PDF. The link \"Clear database\" removes the act from the offline database. The link \"Disable extension\" shows the original text of the act, without the extension.
- The left pane displays the internal structure of the acte based on its headings (Title, Chapter, Section, etc.) and allows to jump immediately to the relevant part of the act by clicking on an article. The table of content can be fully collapsed or expanded with two different buttons.
- In the right pane, the hierarchical level of each heading is reflected by appropriate styling. The content of each article is also analysed. The text is indented to make appear more clearly the internal structure (§, 1°, a), hyphen, etc.). The number of each article is shown in bold. Subparagraphs (alénas) are also automatically numbered in the margin of the article.
- When text is selected within an article in the right page, a popup window appears and allows to highlight the text (in yellow, green, blue or red) or to underline it (in violet). To edit an existing highlight, click on it : the color of it can be changed by clicking on another color, or deleted by clicking on the white circle. A comment can also be inserted. The popup window can be closed by clicking elsewhere in the right pane. When a comment is added to highlighted text, this text is displayed in italic.
- Highlights are stored in the local storage of the browser and are restored the next time the same act is displayed. Saved highlights can be managed with the commands available in the popup window shown when clicking on the icon of the extension. They can be exported in JSON format and imported again by pasting the content of the JSON file in the relevant input box. A daily backup to Dropbox can also be set up (access is limited to the app folder in Dropbox, no access to the rest of the Dropbox is granted).
- Acts displayed are automatically stored in the browser local storage. When visited again, the act loads much quicker (which is useful for very long texts such as the Code of Economic Law), unless it has been updated in the online database in the meanwhile. Stored acts can also be consulted offline: when no internet access is available, a user browsing to the ELI URL of a stored act will automatically be redirected to the offline version of it. The online or offline character of the text displayed is mentioned on top of the left pane. The list of stored acts can also be consulted by clicking on the icon of the extension (they are listed in chronological order). Highlights are also displayed and are editable when in offline mode.

## Known bugs and limitations

- For the time being, the extension only works with the French version of Justel, to the exclusion of the Dutch version.
- The HTML of some acts available on Justel is faulty and cannot therefore be displayed correctly.
- This extension is still under development and may therefore still contain bugs or errors. Do not rely on it and always double-check the content of an act in official sources.
- Do not hesitate to report any problem or suggested improvement, and/or to contribute to the source code.

## Credits

This extension was written by Rafaël Jafferali. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see .

This extension was inspired by the very thorough userscript written by Naja Melan .

It makes use of the following open source libraries :

- dom-anchor-text-position 5.0.0 and dom-anchor-text-quote 4.0.2 , packaged by judell
- download.js 4.2
- Dropbox SDK
- jquery 3.6.1
- jquery UI 1.21.1
- jquery resizable plugin 0.35
- jsTree 3.3.12

## Release history
- Version 0.1.2022.1116 : first version published online.
- Version 0.1.2022.1204 : added auto-numbering of subparagraphs (alinéas).
- Version 0.1.2023.0506 : added autofocus to search input box in popup window
- Version 0.1.2023.0507 : clear button in popup window also deletes highlights; confirmation added before clearing; change toggle Dropbox to enable/disable Dropbox; added overflow to annotations
- Version 0.1.2023.0513 : added compatibility to Firefox
- Version 0.1.2023.0514 : visibility of subparagraphs (alinéas) numbering only visible when hovering with the mouse over the relevant article; display in the toc the number of last article even though it is not properly encoded in the HTML
- Version 0.1.2023.0530 : improves indent of articles (includes numbering starting with I., II., etc.)
- Version 0.1.2023.0722 : for some (as yet) unidentified reason, in the Code of Economic Law, some highlights were sometimes saved under an inexistent article, resulting in a bug when trying to restore the highlights for such statute. A work-around has now been found.
- Version 0.1.2023.0909 : URLs inserted in an annotation will be converted to hyperlinks when the annotation is reopened
- Version 0.1.2023.0910 : daily backup of highlights is confirmed in a status message at the bottom of the page
- Version 0.1.2023.0916 : correction of bugs (stylesheet applicable in offline mode)
- Version 0.1.2023.0917 : improved status message when Dropbox backup done
- Version 0.1.2023.1111 : added an ability to bookmark articles and to display a bookmark bar (just click on the star appearing next to each article when hovering the mouse on the article text). The bookmark bar is draggable and can be minimised.
- Version 0.1.2023.1113 : correction of a bug (incompatibility between jquery UI and jquery resizable).
- Version 0.1.2023.1116 : improvement of CSS (position of bookmark star)
- Versoin 0.1.2023.1118 : adds a possibility to remove a bookmark directly from the bookmark bar by clicking on the star next to the bookmark
- Version 0.1.2023.1209 : solves a bug which prevented saving highlights or bookmars pertaining to an article which was not displayed in the TOC because it was collapsed
- Version 0.2.2024.0519 : update to the new version of Justel and multiple improvements and correction of bugs
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Better Justel", "description": "Improves Belgian eJustice Justel website", "version": "0.2.2024.0519", "icons": { "16": "images/justice_scales_16.png", "32": "images/justice_scales_32.png", "48": "images/justice_scales_48.png", "128": "images/justice_scales_128.png" }, "permissions": [\t"storage",\t"unlimitedStorage" ], "action": {\t"default_icon": {\t "16": "images/justice_scales_16.png",\t "24": "images/justice_scales_24.png",\t "32": "images/justice_scales_32.png" }, "default_popup": "html/popup.html" }, "background": {\t "service_worker": "scripts/background.js" }, "content_scripts": [ { "css": [\t\t"css/jstree.css",\t\t"css/mycss.css" ], "js": [\t\t"scripts/download.js",\t\t"scripts/Dropbox-sdk.min.js",\t\t"scripts/jquery.min.js",\t\t"scripts/jquery-ui.min.js",\t\t"scripts/jquery-resizable.min.js",\t\t"scripts/jstree.min.js",\t\t"scripts/standalone-anchoring.js",\t\t"scripts/content.js" ], "matches": [ "https://www.ejustice.just.fgov.be/cgi_loi/loi_a1.pl*", "https://www.ejustice.just.fgov.be/cgi_loi/article.pl*", "https://www.ejustice.just.fgov.be/cgi_loi/rech.pl*", "https://www.ejustice.just.fgov.be/cgi_loi/rech_res.pl*", "https://www.ejustice.just.fgov.be/cgi_loi/list.pl*", "https://www.ejustice.just.fgov.be/eli/*", "https://www.ejustice.just.fgov.be/loi/loi.htm*" ], "run_at": "document_start" } ], "host_permissions": [\t"https://www.ejustice.just.fgov.be/eli/*" ], "web_accessible_resources": [ { "resources": [ \t\t"css/mycss.css",\t\t"html/offline.html",\t\t"images/fond5.jpg",\t\t"images/jstree_32px.png",\t\t"images/jstree_40px.png",\t\t"images/jstree_throbber.gif",\t\t"images/save.png",\t\t"scripts/util.js"\t ], "matches": [ \t\t"https://www.ejustice.just.fgov.be/*"\t ] } ]}
Read more

Similar Extensions

icon

XNETD Toolbox 2.5 Extension · Productivity 463 0 ★ 2.96MiB

icon

Isabel Security Components add-on Extension · Productivity 463 14 ★ 18.62KiB

icon

AmbientFocus Extension · Productivity 463 3 ★ 4.06MiB

icon

Result Age Limiter for Google Search Extension · Productivity 463 1 ★ 33.47KiB

icon

Content Settings Extension · Accessibility 463 0 ★ 14.8KiB

icon

WACart : Cart Recovery + CMS for Shopify Extension · Productivity 463 0 ★ 79.75KiB

icon

Funny Technology Jokes Extension · Fun 463 0 ★ 60.74KiB

icon

Travel Compare by Olamgo Extension · Social & Communication 463 2 ★ 378KiB

icon

Search Engine Hub Extension · Productivity 463 0 ★ 109KiB

icon

Lexor for Chrome Extension · Productivity 463 1 ★ 417KiB

icon

Second, Minute, Time Converter Extension · Productivity 463 0 ★ 102KiB

icon

Internet of Things to Internet of Thangs Extension · Fun 463 1 ★ 11.5KiB

icon

Safeonweb Browser Extension Extension · Productivity 463 5 ★ 700KiB

icon

Kleinanzeigen Infinite Scroll Extension · Shopping 463 0 ★ 58.05KiB

icon

eID Chrome Extension Extension · Productivity 463 308 ★ 22.78KiB

icon

Set eBay default search parameters Extension · Productivity 463 1 ★ 46.34KiB

icon

Elite ChatGPT Maximizer-Boost Your Efficiency Extension · Productivity 463 2 ★ 589KiB

icon

ResearchPRO Extension · Productivity 463 1 ★ 476KiB

icon

URL Params Editor Pro Max+ Extension · Developer Tools 463 4 ★ 38.89KiB

icon

You will die someday Extension · Productivity 463 0 ★ 1.36MiB

icon

Facts & Opinions - Powered by ChatGPT API Extension · Productivity 463 0 ★ 286KiB

icon

AI Tool Explorer Extension · Productivity 463 0 ★ 99.82KiB

icon

Better Wiki Extension · Productivity 463 2 ★ 14.57KiB

icon

Infinite Palette Extension · Productivity 463 2 ★ 12.0KiB