1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 19:02:30 +01:00
Commit Graph

8637 Commits

Author SHA1 Message Date
Raymond Hill
9c3205b37c
Inject procedural cosmetic filterer's code only when needed
The procedural cosmetic filtering code has been split from
the content script code injected unconditionally and will
from now on be injected only when it is needed, i.e. when
there are procedural cosmetic filters to enforce.

The motivation for this is:
https://www.debugbear.com/blog/2020-chrome-extension-performance-report#what-can-extension-developers-do-to-keep-their-extensions-fast

Though uBO's content script injected unconditionally in all
pages/frames is relatively small, I still wanted to further
reduce the amount of content script code injected
unconditionally: The procedural cosmetic filtering code
represents roughly 14KB of code the browser won't have to
parse/execute unconditionally unless there exists procedural
cosmetic filters to enforce for a page or frame.

At the time the above article was published, the total
size of unconditional content scripts injected by uBO was
~101 KB, while after this commit, the total size will be
~57 KB (keeping in mind uBO does not minify and does not
remove comments from its JavaScript code).

Additionally, some refactoring on how user stylesheets are
injected so as to ensure that `:style`-based procedural
filters which are essentially declarative are injected
earlier along with plain, non-procedural cosmetic filters.
2021-02-17 09:12:00 -05:00
Raymond Hill
c6745a0276
Make Firefox dev build auto-update 2021-02-15 07:06:15 -05:00
Raymond Hill
a5a39ff504
Merge branch 'master' of github.com:gorhill/uBlock 2021-02-15 06:58:34 -05:00
Raymond Hill
494db7e11a
New revision for dev build 2021-02-15 06:58:24 -05:00
Raymond Hill
435c91636f
Count allowed/blocked requests for 3rd-party scripts/frames
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/210

Additionally, a small (experimental) widget has been added
to emphasize/de-emphasize rows which have 3rd-party
scripts/frames, so as to more easily identify which rows
are "affected" by 3rd-party scripts and/or frames.

Tooltip localization for the new widget is not available
yet as I want wait for the feature to be fully settled.
2021-02-15 06:52:31 -05:00
Raymond Hill
b8d6f27eb3
Update README.md 2021-02-11 18:04:53 -05:00
Raymond Hill
595383a88f
Update README.md 2021-02-11 18:03:51 -05:00
Raymond Hill
e2b988aed9
Update README.md 2021-02-08 16:15:52 -05:00
Raymond Hill
55365969e5
Add links to uBO in supported browser stores 2021-02-08 16:13:59 -05:00
Raymond Hill
a96b18e1a7
Make Firefox dev build auto-update 2021-02-04 07:05:26 -05:00
Raymond Hill
c2ca7b6852
New revision for dev build 2021-02-04 06:57:00 -05:00
Raymond Hill
3715b32d93
Import translation work from https://crowdin.com/project/ublock 2021-02-04 06:55:25 -05:00
Raymond Hill
de1ed2c519
Replace "EasyList China" with "AdGuard Chinese"
As discussed internally with list maintainers:

- EasyList China doesn't leverage uBO's extended
  filter syntax

- EasyList China's home page is no longer available
  to the public

Additionally, "CJX's EasyList Lite" has been removed
from stock lists, as the list hosted on GitHub is no
longer updated, and "AdGuard Chinese" is the official
list to enable to address all filter issues for
Chinese sites.
2021-02-02 08:30:02 -05:00
Raymond Hill
a66615725e
Make Firefox dev build auto-update 2021-01-31 10:45:47 -05:00
Raymond Hill
09134b275a
New revision for dev build 2021-01-31 10:36:01 -05:00
Raymond Hill
3bb73065e3
Fix broken forward compatibility re. imported lists
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1480

Forward compatiblity was broken due to `externalLists`
being converted into an Array from a string, i.e.
downgrading to uBO 1.32.4 was completely breaking uBO.

This commit restores `externalLists` as a string which
is what older versions of uBO expect.

A new property `importedLists` has been created to
hold the imported lists as an array, while
`externalLists` will be kept around for a while until
it is completely removed in some future.
2021-01-31 10:30:12 -05:00
Raymond Hill
93ed308741
Make Firefox dev build auto-update 2021-01-30 15:25:26 -05:00
Raymond Hill
d47a9a0d7a
New revision for dev build 2021-01-30 15:19:44 -05:00
Raymond Hill
0390bb8b8a
Fix potential spurious redirection in whitelisted tabless contexts
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1478
2021-01-30 15:08:21 -05:00
Raymond Hill
28b25f5e5a
Import translation work from https://crowdin.com/project/ublock 2021-01-29 10:46:16 -05:00
Raymond Hill
19cb5ce78b
New revision for stable release 2021-01-29 10:37:12 -05:00
Raymond Hill
b40498b947
Make Firefox dev build auto-update 2021-01-28 10:01:14 -05:00
Raymond Hill
d3cb29ff1e
New revision for release candidate 2021-01-28 09:49:24 -05:00
Raymond Hill
3101c5fa22
Upload non-filtered rules to cloud storage
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1472
2021-01-28 09:43:14 -05:00
Raymond Hill
16e74cf68b
Make Firefox dev build auto-update 2021-01-23 09:55:32 -05:00
Raymond Hill
bb5265e94f
New revision for release candidate 2021-01-23 09:48:17 -05:00
Raymond Hill
001f5a6500
Add any-delay to timeout/interval boosters
Using `*` as delay argument will match any
delay.

As per internal feedback from filter list
maintainers.
2021-01-23 09:45:44 -05:00
Raymond Hill
5657bc466c
Make Firefox dev build auto-update 2021-01-22 09:50:42 -05:00
Raymond Hill
97e4dccb00
New revision for stable release 2021-01-22 09:41:05 -05:00
Raymond Hill
40c145d76a
Fix handling of cname-aliased URLs in click-to-load widget
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1455
2021-01-22 09:37:12 -05:00
Raymond Hill
bac7873edd
Make Firefox dev build auto-update 2021-01-21 10:20:54 -05:00
Raymond Hill
fb35ad0350
New revision for release candidate 2021-01-21 10:14:36 -05:00
Raymond Hill
0934779f4b
Improve neutered adsbygoogle scriptlet 2021-01-21 10:13:16 -05:00
Raymond Hill
e9863f7787
Make Firefox dev build auto-update 2021-01-21 08:55:19 -05:00
Raymond Hill
b1a3d28649
New revision for release candidate 2021-01-21 08:41:22 -05:00
Raymond Hill
174731851e
Minor fine tuning of some default parameters 2021-01-21 08:40:10 -05:00
Raymond Hill
b79052de3d
Import translation work from https://crowdin.com/project/ublock 2021-01-21 08:36:08 -05:00
Raymond Hill
7d902eaf11
Make Firefox dev build auto-update 2021-01-16 10:46:03 -05:00
Raymond Hill
4aa80c27a1
New revision for dev build 2021-01-16 10:41:39 -05:00
Raymond Hill
6eb1246508
Add userSettings entry to managed storage
The managed `userSettings` entry is an array of entries,
where each entry is a name/value pair encoded into an array
of strings.

The first item in the entry array is the name of a setting,
and the second item is the stringified value for the
setting.

This is a more convenient way for administrators to set
specific user settings. The settings set through
`userSettings` policy will always be set at uBO launch
time.
2021-01-16 10:35:56 -05:00
Raymond Hill
2f4952e769
Raise minimum version of dev build as well
Related feedback:
- fee756dea0 (r45819566)
2021-01-10 12:53:42 -05:00
Raymond Hill
fee756dea0
Make Firefox dev build auto-update 2021-01-10 12:45:18 -05:00
Raymond Hill
649b3480e0
Add "toOverwrite.filters" entry as managed storage property
The new entry is an array of strings, each representing a
distinct line, and all entries are used to populate the
"My filters" pane.

This offers an more straightforward way for administrators
to specify a list of custom filters to use for all
installations.
2021-01-10 12:31:31 -05:00
Raymond Hill
055f37d765
New revision for dev build 2021-01-10 12:15:02 -05:00
Raymond Hill
ecabc6d12c
Raise minimal version numbers 2021-01-10 12:14:07 -05:00
Raymond Hill
114012ae11
Add ability to lookup effective context from store of frames
Content scripts can't properly look up effective context
for sandboxed frames. This commit add ability to extract
effective context from already existing store of frames
used for each tab.
2021-01-10 11:56:27 -05:00
Raymond Hill
37c9f966ac
Make Firefox dev build auto-update 2021-01-08 13:20:44 -05:00
Raymond Hill
9166fcb3a9
New revision for dev build 2021-01-08 13:17:46 -05:00
Raymond Hill
03e1b16961
Fix content script's broken context lookup from sandboxed anonymous frames 2021-01-08 13:12:48 -05:00
Raymond Hill
5fa873960f
Listen to load events on window, not document
Related feedback:
- 0f330c7359 (r45774155)
2021-01-08 13:11:09 -05:00