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