1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 18:32:45 +01:00
uBlock/platform
Raymond Hill 869a653fdf
Output scriptlet logging information to the logger
This commit brings the following changes to the logger:

All logging output generated by injected scriptlets are now sent to
the logger, the developer console will no longer be used to log
scriptlet logging information.

When the logger is not opened, the scriplets will not output any
logging information.

The goal with this new approach is to allow filter authors to
more easily assess the working of scriptlets without having to
go through scriptlet parameters to enable logging.

Consequently all the previous ways to tell scriptlets to log
information are now obsolete: if the logger is opened, the
scriptlets will log information to the logger.

Another benefit of this approach is that the dev tools do not
need to be open to obtain scriptlets logging information.

Accordingly, new filter expressions have been added to the logger:
"info" and "error". Selecting the "scriptlet" expression will also
keep the logging information from scriptlets.

A new button has been added to the logger (not yet i18n-ed): a
"volume" icon, which allows to enable verbose mode. When verbose
mode is enabled, the scriptlets may choose to output more
information regarding their inner working.

The entries in the logger will automatically expand on mouse hover.
This allows to scroll through entries which text does not fit into
a single row.

Clicking anywhere on an entry in the logger will open the detailed
view when applicable.

Generic information/errors will now be rendered regardless of which
tab is currently selected in the logger (similar to how tabless
entries are already being rendered).
2024-01-25 12:20:38 -05:00
..
browser Rewrite static filtering parser 2023-01-23 16:53:18 -05:00
chromium Add support to toggle no-scripting switch with keyboard shortcut 2024-01-12 12:01:23 -05:00
common Output scriptlet logging information to the logger 2024-01-25 12:20:38 -05:00
dig Change official description in source code top comment 2023-12-04 12:10:34 -05:00
firefox Add missing entries in manifest for new toggle-javascript command 2024-01-12 17:34:59 -05:00
mv3 [mv3] Fix conversion of :xpath procedural filters 2024-01-22 10:57:48 -05:00
nodejs Change official description in source code top comment 2023-12-04 12:10:34 -05:00
npm Change official description in source code top comment 2023-12-04 12:10:34 -05:00
opera Add missing entries in manifest for new toggle-javascript command 2024-01-12 17:34:59 -05:00
safari Clarify that the code base was really old and obsolete 2019-09-22 09:57:38 -04:00
thunderbird Modify manifest.json for other platforms 2023-10-14 13:55:46 -04:00