User manual (browser extension) » History » Version 5
jahoti, 09/11/2021 06:28 AM
Flesh out the popups section (possibly quite badly)
1 | 1 | koszko | # User manual |
---|---|---|---|
2 | |||
3 | 5 | jahoti | {{toc}} |
4 | |||
5 | 1 | koszko | ## Installation |
6 | |||
7 | Instructions for different browsers have been put their respective pages: |
||
8 | * [[Installation instructions (Mozilla)]] |
||
9 | * [[Installation instructions (Chromium)]] |
||
10 | |||
11 | 2 | koszko | Users who want to install Hachette from source can also visit [[Building the extension]] page. |
12 | 3 | koszko | |
13 | 1 | koszko | ## Understanding the concepts |
14 | 5 | jahoti | Hachette combines features of a user script manager and a content blocker. Out of the box, it can be used to block site's javascript, similarly to how NoScript (for example) does it. Once you import custom scripts into Hachette (either from a Hydrilla repository server, from a JSON file, or by typing code in a form in the settings page), it can also inject them into pages as configured using [[URL patterns]]. |
15 | 1 | koszko | |
16 | ## Operating the popup window |
||
17 | |||
18 | 5 | jahoti | While browsing with Hachette installed, a small Hachette icon will be present in the extension panel (usually located to the right of the url bar). Clicking on this will open the popup. |
19 | 1 | koszko | |
20 | ![hachette popup](https://hachettebugs.koszko.org/attachments/download/42/hachette_popup.png) |
||
21 | 5 | jahoti | |
22 | At the very top of the popup, the page's URL is displayed for convenience. In the centre is the page's status report, containing information on how Hachette has modified a page. For the above website there is no custom policy set, and so Hachette simply applies the default policy of blocking scripts; however, where a policy is set for a matching [[URL patterns|URL pattern]], the pattern will be listed and the set policy used instead. |
||
23 | |||
24 | 1 | koszko | ![hachette popup on opencores.org](https://hachettebugs.koszko.org/attachments/download/46/hachette_popup_opencores.png) |
25 | 5 | jahoti | |
26 | Settings can also be modified from the popup. Clicking the "Edit settings for this page" button above the status report will bring up the editor panel. |
||
27 | |||
28 | 1 | koszko | ![hachette popup with possible patterns list](https://hachettebugs.koszko.org/attachments/download/47/hachette_popup_possible_patterns.png) |
29 | 5 | jahoti | |
30 | Policies for [[URL patterns]] matching the current page can be modified by clicking the corresponding buttons on the right-hand side (with any current matched URL pattern bolded), while script-blocking settings for the default policy are modified with the "Toggle policy" button. Note that setting this to " **block** [pages'] own scripts "- the default- will break many websites; this is an unfortunate side effect of bad web design, and we recommend persisting with it where possible. |
||
31 | |||
32 | Where sites break, among other reasons, you might wish to look for ethical fixes prepared by others. This can also be done from the the popup: clicking the "Install scripts for this page" towards the bottom of the main popup view will search all added repositories for custom scripts compatible with the current page, and list any results. |
||
33 | |||
34 | 1 | koszko | ![hachette popup repository query results](https://hachettebugs.koszko.org/attachments/download/44/hachette_popup_install_scripts.png) |
35 | 5 | jahoti | |
36 | Currently, there are very few custom scripts listed in the main Hydrilla instance; if you are lucky enough to find a match, however, clicking on the "Install" button to its right to install the policy. |
||
37 | |||
38 | You will be prompted to select which components to install, with warnings for any that would replace existing data. Use the checkboxes down the left-hand side and the buttons at the top of the popup to alter the selection if desired, and install with the "OK" button or cancel. |
||
39 | |||
40 | 1 | koszko | ![hachette popup importing scripts](https://hachettebugs.koszko.org/attachments/download/45/hachette_popup_install_scripts_import_frame.png) |
41 | 5 | jahoti | |
42 | Above all else, Hachette is designed to put you in control of your web browsing. On pages where a custom policy is applied, buttons on the right-hand side of the popup allow you to view policy [[URL patterns]] or scripts in the settings, or even right in the popup! Like Hachette itself, all scripts distributed as defaults with the extension and published in the Hydrilla repository are free software, which allows you to read, modify and distribute them in source code or compiled form without undue restriction. |
||
43 | |||
44 | 4 | koszko | ![hachette popup viewing currently injected scripts](https://hachettebugs.koszko.org/attachments/download/43/hachette_popup_injected_scripts.png) |