Commit Graph

1352 Commits

Author SHA1 Message Date
Raymond Hill 7e5661383a
code review to further lower overhead of updating toolbar icon 2018-05-08 09:43:25 -04:00
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 29bad2afab
typo 2018-04-27 12:49:34 -04:00
Raymond Hill 3a703afef3
add README to `webext` platform 2018-04-27 12:49:11 -04:00
Raymond Hill 2b460da748
rename "debian" target to more accurate "webext" 2018-04-27 12:39:43 -04:00
Raymond Hill c9b14e201a
rename "webext" target to more accurate "firefox" 2018-04-27 12:37:33 -04:00
Raymond Hill e930403635
move template file to a more sensible location 2018-04-27 12:25:29 -04:00
Raymond Hill 08495c42e9
complete "debian" as a target platform 2018-04-27 11:43:35 -04:00
Raymond Hill 443010efdc
remove firefox/legacy platform, it now has its own branch: `firefox-legacy` 2018-04-27 08:40:53 -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
anvakl 4d3a2b5f85 Minor fixes to code (#3720)
* Fix leftovers from old code.

* change changes.procedural.size to changes.procedural.length

changes.procedural is an array so it should be changes.procedural.length
the  code works with changes.procedural.size because (undefined !== 0) is always true.
2018-04-24 06:05:30 -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
Michele Spagnuolo 15ed9abb5b Compress the icon PNGs with zopflipng (#3458) 2018-04-15 06:30:40 -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 efcab145978b: 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 369eb6f6de
Merge branch 'opera-1.15.24' 2018-04-09 12:30:14 -04:00
Raymond Hill e377b3e915
changes needed for releasing uBO/opera 1.15.24 2018-04-09 10:04:32 -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 fd78f9b743
remove experimental pseudo-redirector for the time being 2018-04-02 04:47:24 -04:00
Raymond Hill 8a64ba6f43
code review for 5c15f68 2018-04-01 06:58:20 -04:00
Raymond Hill cb060e54ee
code review for 5c15f685 2018-03-31 19:41:59 -04:00
Raymond Hill 5c15f685f1
add workaround for Firefox's inability to redirect xhr to data: URI 2018-03-31 18:47:56 -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 b42c128213
increase min version of Pale Moon 2018-03-12 09:02:51 -04:00
Raymond Hill 94ebeea314
fix code patching updates.json 2018-02-26 15:32:29 -05:00
Raymond Hill 2c901588c7
fix #3546, #3428 2018-02-26 13:59:16 -05:00
Raymond Hill d2822a8625
fix template as per https://developer.mozilla.org/en-US/Add-ons/Updates 2018-02-24 09:19:43 -05:00
Raymond Hill 0baed3356b
add needed files for self-hosting Firefox dev build of uBO 2018-02-23 10:00:29 -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 1c468035dd
fix #3441 2018-01-16 09:13:51 -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 295cf563ee
add sidebar support for Opera 2018-01-11 09:08:09 -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 098f3baadd
code review: fix regex used to report cosmetic filters in logger 2018-01-08 15:03:55 -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 71009cf83d
update minimum opera version (#3411) 2018-01-07 15:14:32 -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
Raymond Hill fc26b5d227
new revision for dev build 2017-12-31 21:15:22 -05:00
Raymond Hill e675ccf73e
fix improper reporting of internal filter in logger [Firefox] 2017-12-31 21:13:46 -05:00
Raymond Hill d8d1fa5221
new revision for dev build 2017-12-31 16:06:45 -05:00
Raymond Hill 35eaf267e6
new revision for dev build 2017-12-31 08:46:58 -05:00
Raymond Hill 96576df1e4
new revision for dev build 2017-12-30 11:22:03 -05:00
Raymond Hill 93e76ecf5d
new revision for dev build 2017-12-29 20:36:31 -05:00
Raymond Hill ff67cf5ada
new revision for dev build 2017-12-29 15:56:53 -05:00
Raymond Hill a25166be92
new revision for dev build 2017-12-29 08:06:40 -05:00
Raymond Hill 8d4f2a2d11
new revision for dev build 2017-12-28 14:24:04 -05:00
Raymond Hill a9f68fe02f
Fix #3069, and consequently #3374, #3378.
A new filtering class has been created: "static extended filtering".
This new class is an umbrella class for more specialized filtering
engines:
- Cosmetic filtering
- Scriptlet filtering
- HTML filtering

HTML filtering is available only on platforms which support modifying
the response body on the fly, so only Firefox 57+ at the moment.

With the ability to modify the response body, HTML filtering has
been introduced: removing elements from the DOM before the source
data has been parsed by the browser.

A consequence of HTML filtering ability is to bring back script tag
filtering feature.
2017-12-28 13:49:02 -05:00
Raymond Hill 11ccf8e2b9
new revision for dev build 2017-12-22 09:43:28 -05:00
Raymond Hill 904e550fc0
new revision for dev build 2017-12-17 08:15:24 -05:00
Raymond Hill f753952adc
new revision for dev build 2017-12-15 10:10:09 -05:00
Raymond Hill 2ef892c086
new revision for release candidate 2017-12-14 08:26:36 -05:00
gorhill 61a259013c
new revision for release candidate 2017-12-10 15:05:11 -05:00
gorhill 59b6243633
new revision for dev build 2017-12-08 07:15:13 -05:00
gorhill 4b70553263
new revision for dev build 2017-12-07 18:58:04 -05:00
gorhill 916cc3cf78
new revision for release candidate 2017-12-05 14:47:33 -05:00
gorhill 88ce17561f
fix #3321: make uBO the bigger person and walk away from a pointless fight 2017-12-05 14:37:12 -05:00
gorhill e7d5c836d9
new revision for release candidate 2017-12-05 08:43:17 -05:00
gorhill 4f28301736
import fix to https://github.com/gorhill/uMatrix/issues/840 2017-12-05 08:42:26 -05:00
gorhill 061444bfc6
new revision for dev build 2017-11-30 11:39:18 -05:00
gorhill 9b97609204
minor code review 2017-11-30 08:42:31 -05:00
gorhill 5518e2681a
remove obsolete indexedDB transition-related code 2017-11-30 08:31:28 -05:00
gorhill de1768025c
new revision for stable release 2017-11-29 07:20:44 -05:00
gorhill de2ac0a4d2
new revision for release candidate 2017-11-27 14:53:03 -05:00
gorhill 0c2b715e61
new revision for dev build 2017-11-24 00:47:47 -05:00
gorhill 91de400a64
fix https://github.com/uBlockOrigin/uAssets/issues/859#issuecomment-346681469 2017-11-24 00:39:01 -05:00
gorhill 8c424c15b2
new revision for release candidate 2017-11-22 08:05:07 -05:00
gorhill 71e8983a5f
new revision for dev build 2017-11-21 18:09:43 -05:00
Kacper Michajłow ec70c75264 improve DOM inspector (#3254)
* dom-inspector: Improvments

- Fix race between userCSS injection and element highlight resulting in none or not all elements highlighted.
- Fix page being scanned twice resulting in unneeded slowdown.

* dom-inspector: Clear mutationTimer to allow more than one update.

* dom-inspector: Fix procedural filters shown as declarative with expando.
2017-11-21 18:08:32 -05:00
gorhill 1f7243ce55
new revision for dev build 2017-11-21 13:42:18 -05:00
gorhill 848ca6c351
new revision for dev build 2017-11-20 08:46:33 -05:00
gorhill 806032cdc4
improve DOM inspector
- Fix regressions reported in #3159
- Fix #2001
- Fix some item points in #407
2017-11-20 08:42:32 -05:00
gorhill 7e69a75fe8
new revision for dev build 2017-11-16 11:02:54 -05:00
gorhill 387eaa0b21
fix #3185 2017-11-16 10:55:28 -05:00
gorhill 8646b78306
new revision for dev build 2017-11-15 16:35:00 -05:00
gorhill 11cba7b1a7
new revision for dev build 2017-11-14 15:09:28 -05:00
gorhill 374e157b11
fix #3159 2017-11-14 15:03:20 -05:00
gorhill 9c23e4ab67
adjust minimum version to account for usage of Array.from 2017-11-14 08:44:59 -05:00
gorhill fdad94f98b
new revision for dev build 2017-11-13 09:06:32 -05:00
gorhill 77334bf380
new revision for dev build 2017-11-11 08:03:15 -05:00
gorhill aa4cfbf201
use svg version also for favicons, meny entry 2017-11-11 07:55:37 -05:00
gorhill fd5f63d850
fix #3196 2017-11-10 11:36:14 -05:00
gorhill 9e60432860
new revision for dev build 2017-11-10 08:02:36 -05:00
gorhill f7bfcff37a
new revision for dev build 2017-11-09 13:01:35 -05:00
gorhill 8b2c6a6280
new revision for dev build of next iteration 2017-11-05 12:34:58 -05:00
gorhill 6cecd2192e
new revision for dev build 2017-10-31 07:38:54 -04:00
gorhill 7accd6dda9
new revision for dev build 2017-10-29 16:59:22 -04:00
gorhill f639eb9dd7
new revision for dev build 2017-10-28 09:09:56 -04:00
gorhill bbda2a9086
code review: preemptively address https://bugzilla.mozilla.org/show_bug.cgi?id=1408996#c9 2017-10-27 14:22:45 -04:00
gorhill 198f72a912
new revision for dev build 2017-10-26 10:12:09 -04:00
gorhill 8624ba40d5
new revision for dev build 2017-10-25 11:54:54 -04:00
gorhill 2d5e3f38f3
code review: use Map instead of Object 2017-10-25 11:27:16 -04:00
gorhill 2274760275
new revision for dev build 2017-10-24 16:49:18 -04:00
gorhill 23487a643a
prepend vapi-usercss.js to contentscript.js in extension package 2017-10-24 12:40:58 -04:00
gorhill ed5dba432a
fix https://discourse.mozilla.org/t/support-ublock-origin/6746/606 2017-10-24 09:09:10 -04:00
gorhill c7fa91ffb6
new revision for dev build 2017-10-24 07:56:18 -04:00
gorhill 47c7da377e
drop webext-hybrid support 2017-10-23 13:43:45 -04:00
gorhill 2be7bbf6e9
drop webext-hybrid support 2017-10-23 13:39:45 -04:00
gorhill 0503f52b1e
remove unused source code 2017-10-23 13:35:11 -04:00
gorhill 50f3369351
new revision for dev build 2017-10-23 12:54:43 -04:00
gorhill a76f5b15ac
fix https://github.com/gorhill/uBlock/issues/3160#issuecomment-338509997 2017-10-23 12:21:37 -04:00
gorhill 6e18829f02
add to #2984: fix regressions, as per feedback and code review 2017-10-23 09:01:00 -04:00
gorhill ef84e6d8fd
fix https://github.com/gorhill/uBlock/issues/2984#issuecomment-338475886 2017-10-22 12:48:13 -04:00
gorhill 4f7aab695c
fix #3160 2017-10-22 08:59:29 -04:00
gorhill 6112a68faf
fix #2984 2017-10-21 13:43:46 -04:00
gorhill 3e35f10c25
fix #3156 2017-10-21 08:43:45 -04:00
gorhill 39cceec1ed
new revision for dev build 2017-10-19 09:41:40 -04:00
gorhill 392fef1828
new revision for dev build 2017-10-18 15:16:42 -04:00
gorhill eb7bdba47f
fix #3140 2017-10-18 15:00:22 -04:00
gorhill b89dbcce39
new revision for release candidate 2017-10-18 08:45:23 -04:00
gorhill 69241fb3db
new revision for dev build 2017-10-13 09:53:33 -04:00
gorhill 13e643098f
new revision for dev build 2017-10-12 07:57:00 -04:00
gorhill 8c33720d16
fix #3111 2017-10-08 23:47:23 -04:00
gorhill 3d0cdc38b9
new version for stable release 2017-10-08 09:17:50 -04:00
gorhill 6f21d8eef0
new revision for release candidate 2017-10-06 13:49:09 -04:00