Project

General

Profile

User manual (browser extension) » History » Version 19

koszko, 02/25/2022 06:29 PM
update for 1.0

1 1 koszko
# User manual
2
3 19 koszko
**Note: this manual corresponds to old Haketilo version 0.1 and is awaiting an update**
4
5 5 jahoti
{{toc}}
6
7 1 koszko
## Installation
8
9
Instructions for different browsers have been put their respective pages:
10
* [[Installation instructions (Mozilla)]]
11
* [[Installation instructions (Chromium)]]
12
13 12 jahoti
Users who want to install Haketilo from source can also visit [[Building the extension]] page.
14 3 koszko
15 1 koszko
## Understanding the concepts
16 12 jahoti
Haketilo 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 Haketilo (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]].
17 1 koszko
18
## Operating the popup window
19
20 12 jahoti
While browsing with Haketilo installed, a small Haketilo icon will be present in the extension panel (usually located to the right of the url bar). Clicking on this will open the popup.
21 1 koszko
22 15 jahoti
![Haketilo popup](hachette_popup.png)
23 5 jahoti
24 12 jahoti
At the very top and bottom of the popup are two very convenient shortcuts: the page's URL, prominently displayed, and a link to the [[#Using-the-settings|settings page]]. In the centre is the page's status report, containing information on how Haketilo has modified a page. For the above website there is no custom policy set, and so Haketilo 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.
25 5 jahoti
26 15 jahoti
![Haketilo popup on opencores.org](hachette_popup_opencores.png)
27 5 jahoti
28
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.
29
30 15 jahoti
![Haketilo popup with possible patterns list](hachette_popup_possible_patterns.png)
31 5 jahoti
32
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.
33
34 12 jahoti
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 configured repositories for custom scripts compatible with the current page, and list any results. Haketilo comes with `https://api-demo.hachette-hydrilla.org` configured as the default repository to use. This can of course be changed in the settings page.
35 5 jahoti
36 15 jahoti
![Haketilo popup repository query results](hachette_popup_install_scripts.png)
37 5 jahoti
38 6 koszko
Currently, there are very few custom scripts listed in the main Hydrilla instance; if you are lucky enough to find a match, however, click on the "Install" button to its right to install the policy.
39 5 jahoti
40 12 jahoti
In the frame that appears you can select which components you want to install. Note that components might behave improperly if you disable other ones they depend on. As of version 0.1, Haketilo will do nothing to stop you from messing things up ;)
41 5 jahoti
42 15 jahoti
![Haketilo popup importing scripts](hachette_popup_install_scripts_import_frame.png)
43 1 koszko
44 11 jahoti
If you click "Ok", scripts and settings are imported. Voilà! They will appear in the popup on page reload, or can be viewed and managed under the appropriate tabs on the [[#Using-the-settings|settings page]].
45 10 jahoti
46 12 jahoti
Above all else, Haketilo 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 it in the settings page. The injected scripts can also be viewed there or even right in the popup! Like Haketilo 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.
47 5 jahoti
48 15 jahoti
![Haketilo popup viewing currently injected scripts](hachette_popup_injected_scripts.png)
49 8 koszko
50
## Manually importing custom scripts
51 1 koszko
52 8 koszko
Although installation of site fixes and custom content is meant to be convenient through the use of a repository, one can also export and import such payloads to and from JSON files. In fact, all the scripts currently served by the default Hydrilla repository can be downloaded in that format from https://hachette-hydrilla.org/. Most are fixes for js-encumbered websites, but there are also some alternative interfaces for already-functional sites. You can download and install particular scripts one by one or go crazy and just import it all at once from the "All-in-one bundle".
53
54 12 jahoti
After you've downloaded the right .json file, go to Haketilo's settings page (reachable by clicking the button at the bottom of the popup window) and click "Import".
55 8 koszko
56 15 jahoti
![Haketilo settings page with import button](hachette_settings_import_but.png)
57 8 koszko
58
Now, find and choose the .json file with scripts.
59
60 14 jahoti
![selecting bundle.json in file chooser](navigate_scripts_bundle.png)
61 8 koszko
62 12 jahoti
In the frame that appears you can select which components you want to install. Note that components might behave improperly if you disable other ones they depend on. As of version 0.1, Haketilo will do nothing to stop you from messing things up ;)
63 1 koszko
64 14 jahoti
![selecting which components to import from .json file](hachette_settings_import_frame.png)
65 1 koszko
66 11 jahoti
If you click "Ok", scripts and settings are imported. Voilà! They can be viewed and managed under the appropriate tabs on the [[#Using-the-settings|settings page]].
67 10 jahoti
68
## Using the settings
69
70 16 jahoti
As well as allowing you to [[#Manually-importing-custom-scripts|manually import scripts from JSON files]], the settings page provides access to all configurable options available in Haketilo. These are arranged under four tabs, one for each type of item- repository, page (pattern), bag, and script.
71 1 koszko
72 16 jahoti
![the bags tab in the Haketilo settings](haketilo_bags_tab.png)
73
74
Each tab is arranged similarly, with a list of items followed by an "Add ..." button (which opens an empty new item for editing). Besides every item is an edit button, a remove button, and- except for on repositories- an export button, which exports the item and its dependencies to JSON format for download.
75
76
Editing an item will open up a form with appropriate fields. **Changes are not autosaved**; they must be manually committed using the "save" button at the bottom of each form.
77
78
![an edit form, in this case for a repository](haketilo_repo_edit.png)
79
80
Repositories and scripts currently employ relatively simple forms. However, to allow ample space for editing the source code of scripts, the form overflows the page,
81
which requires scrolling down to find the "save" button and avoid losing changes.
82
83
![an edit form for a script, too large to fit on one page](haketilo_script_edit.png)
84
85
Bags can contain scripts and other bags, and opening one to edit it will present alongside the name a list of items contained within. To add new items, click on the "Add scripts" button towards the bottom of the form, select which new items, and click "Ok".
86
87
![the edit form for a bag](haketilo_bag_edit.png)
88
89
![the item selection popup for a bag](haketilo_bag_popup.png)
90
91 18 jahoti
Editing a page is slightly different to other items, even if the form works the same way. Instead of a name, pages have a field for a [[URL patterns|URL pattern]] that they apply to and a field for a payload to inject into them. This payload can be changed by clicking on the "Choose payload" button, which will bring up a popup similar to the one for bags except that only one item is selected at a time. Injecting a payload **will block all scripts that are sent with a page natively**.
92 16 jahoti
93
![the edit form for a page](haketilo_page_edit.png)
94
95
![choosing a payload for a page](haketilo_page_popup.png)
96
97
As well as a list of all available scripts and bags, at the very bottom of the payloads popup there is the option "(None)" for no payload. When selected, this enables an additional checkbox in the editing form, which controls whether or not a the scripts sent with a page natively should be blocked. Script-blocking behavior on URLs without a corresponding page policy listed can also be set, at any time, using the "Toggle policy" button at the bottom of the pages tab.
98
99
![controlling script-blocking behavior in the pages tab](haketilo_edit_script_blocking.png)
100 8 koszko
101
## What to do next
102
103 14 jahoti
You might want to learn about [[Known limitations|current limitations]] of Haketilo. If despite these you like the extension, please spread the word. We'll be also happy to receive some feedback or - if you're a programmer - code contributions. Consider [creating an account](/account/register) on our issue tracker or writing to koszko@koszko.org :)