1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-04 10:09:38 +02:00
Commit Graph

683 Commits

Author SHA1 Message Date
Raymond Hill
89fd76ac39
use image data instead of paths for browser icons
When using paths, platform implementations of setIcon typically
will fetch the resource then convert to image data internally.
It is preferable for uBO to do this conversion itself as it can
be done only once at launch time.

With chromium-based browsers, using image data eliminate the
incessant network traffic to fetch browser icons as reported
in the extension's dev tool, meaning a good chunk of overhead
is eliminated.

Also, use optimal icon sizes, as of now both chromium and firefox
prefers 16px instead of 19px, and 32px instead of 38px.
2018-05-07 19:03:50 -04:00
Raymond Hill
14709d18cf
fix #2809 2018-05-04 08:44:54 -04:00
Raymond Hill
8be1aed04d
guard against future instances of issue fixed in #3721 2018-05-03 09:55:36 -04:00
Rob Wu
b27f23d520 Clear return value of vapi.js content script (#3721)
Upon start-up, uBlock runs all content scripts in manifest.json using
`chrome.tabs.executeScript`. When this API is used, the value of the
last expression is automatically cloned and transferred to the
callback of `chrome.tabs.executeScript`. This is convenient if needed,
and a performance burden otherwise (the latter is the case for uBlock).

There are three content scripts that need to be checked:

- vapi.js
  The last expression is often the vAPI object, and it is relatively
  expensive to clone this object. This commit sets the value of the
  last expression to `void 0` to solve this inefficiency.

- vapi-client.js
  No action needed yet; The last expression is `vAPI.shutdown.add(...)`,
  which has a void return value.

- contentscript.js
  No action needed yet; The last expression is an immediately-invoked
  function expression without return value.
2018-05-01 07:28:21 -04:00
Raymond Hill
08495c42e9
complete "debian" as a target platform 2018-04-27 11:43:35 -04:00
Raymond Hill
3923520b87
remove no longer needed platform-dependent polyfill.js 2018-04-27 08:36:38 -04:00
Raymond Hill
9baf17fa2a
patch firefox/legacy for changes in e5f2e9701d 2018-04-26 12:01:31 -04:00
Raymond Hill
e5f2e9701d
better manage platform-specific code for user-stylesheet support 2018-04-26 11:36:22 -04:00
Raymond Hill
6a0120340c
merge Firefox/webext-specific code into Chromium (see #3716) 2018-04-26 09:12:46 -04:00
Raymond Hill
50d5ab68c8
fix https://github.com/uBlockOrigin/uBlock-issues/issues/9 2018-04-22 14:50:40 -04:00
Raymond Hill
5386558e68
fix https://www.reddit.com/r/uBlockOrigin/comments/8dkvqn/116_broken_loading_custom_filters_from_my_filters/ 2018-04-21 12:34:54 -04:00
Raymond Hill
e2af7c5c55
code review: simplfy devbuild detection using webextFlavor 2018-04-14 06:09:36 -04:00
Raymond Hill
e40a66e294
code review of efcab14597: fix collected errors; replace Promises with callbacks 2018-04-12 17:32:38 -04:00
Raymond Hill
efcab14597
Squashed commit of the following:
commit ab2b328cf1360a751fa1c58b8521f907eeb1ec50
Author: Raymond Hill <rhill@raymondhill.net>
Date:   Thu Apr 12 12:08:30 2018 -0400

    fix #3588

commit c4ae7638dfa5a5c7ddec2f9dd2d2988450082542
Author: Raymond Hill <rhill@raymondhill.net>
Date:   Thu Apr 12 09:08:56 2018 -0400

    detect user stylesheets support from content scripts (#3588)
2018-04-12 12:17:38 -04:00
Raymond Hill
7ca6e8bfb3
code review: not a fan of deep indentation; detect Edge, Safari 2018-04-12 07:29:14 -04:00
Raymond Hill
c34326cf4e
code review: further tuning filter list directives 2018-04-11 06:34:13 -04:00
Raymond Hill
79b4706746
code review: avoid special WebRTC test for non-Chromium browsers (#533) 2018-04-06 13:25:06 -04:00
Raymond Hill
93f49a61d7
add pre-processor directives to filter list compiler (https://github.com/AdguardTeam/AdguardBrowserExtension/issues/917) 2018-04-05 07:29:15 -04:00
Raymond Hill
bf384e2bca
better evaluate vAPI.webextFlavor 2018-04-04 12:42:01 -04:00
Raymond Hill
fe11ff61c8
mind whitelist directives for filterable behind-the-scene requests (#3654) 2018-04-02 09:10:38 -04:00
Raymond Hill
d122b4a607
remove obsolete code 2018-03-31 10:20:44 -04:00
Raymond Hill
b7e5c9af49
make use of Chromium 63's webRequest's new initiator property 2018-03-30 15:30:53 -04:00
Raymond Hill
2c901588c7
fix #3546, #3428 2018-02-26 13:59:16 -05:00
Raymond Hill
267f769da9
new revision for dev build 2018-02-21 07:19:38 -05:00
Raymond Hill
c26d68405a
new revision for dev build 2018-02-18 07:27:32 -05:00
Raymond Hill
16a7ba8f6e
new revision for dev build 2018-02-16 16:55:52 -05:00
Raymond Hill
f98cd53cdc
new revision for dev build 2018-02-16 09:32:49 -05:00
Raymond Hill
7e68061da0
new revision fro dev build 2018-02-15 17:38:24 -05:00
Raymond Hill
e65d710f83
new revision for dev build 2018-02-15 17:28:30 -05:00
Raymond Hill
17930cc778
fix #3474, #2823 2018-02-15 17:25:38 -05:00
Raymond Hill
baf939e2a4
new revision for dev build 2018-02-12 10:28:32 -05:00
Raymond Hill
99ca4ce88a
new revision for dev build 2018-02-05 12:06:24 -05:00
Raymond Hill
d1d96ba30f
new revision for stable release 2018-02-03 12:06:52 -05:00
Raymond Hill
ae4677c0c7
new revision for release candidate 2018-02-03 09:35:29 -05:00
Raymond Hill
026286977e
new revision for release 2018-02-03 07:04:04 -05:00
Raymond Hill
fb4d412cf6
new revision for release 2018-01-31 12:32:07 -05:00
Raymond Hill
568c1d46e4
new revision for release candidate 2018-01-16 09:20:39 -05:00
Raymond Hill
f7d7657293
new revision for release candidate 2018-01-13 09:45:44 -05:00
Raymond Hill
0b684bd419
new revision for release candidate 2018-01-11 11:09:15 -05:00
Raymond Hill
36b1eac88e
fix #3425 (regression from 6cdb20df) 2018-01-10 17:59:07 -05:00
Raymond Hill
d706415890
new revision for dev build 2018-01-10 12:04:56 -05:00
Raymond Hill
6cdb20dffe
improve logger convenience following fix for #2854 2018-01-09 08:08:17 -05:00
Raymond Hill
225bab9550
new revision for dev build 2018-01-08 14:33:25 -05:00
Raymond Hill
689d18c54f
fix #2854 2018-01-08 14:29:39 -05:00
Raymond Hill
233afcdcac
new revision for dev build 2018-01-07 18:04:12 -05:00
Raymond Hill
b7155a0e0f
fix #3408 2018-01-07 17:53:33 -05:00
Raymond Hill
7684bfde53
new revision for dev build 2018-01-05 13:24:53 -05:00
Raymond Hill
fcd2124ad3
new revision for dev build 2018-01-04 18:30:23 -05:00
Raymond Hill
1c1fdde4d2
new revision for dev build 2018-01-03 14:07:57 -05:00
Raymond Hill
9049909d2d
new revision for dev build 2018-01-02 23:22:40 -05:00