Commit Graph

5927 Commits

Author SHA1 Message Date
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 820ec69916
fix load/store of publishing auth secrets for reuse 2018-04-30 13:14:03 -04:00
Raymond Hill 2da6d9a638
make Firefox dev build auto-update 2018-04-30 13:07:13 -04:00
Raymond Hill 2c00b70e55
new revision for dev build 2018-04-30 13:03:13 -04:00
Raymond Hill efe68e0f9c
fix https://www.reddit.com/r/firefox/comments/8a5e0e/if_you_find_firefox_for_android_slow_disable/dy7q6w2/ 2018-04-30 13:00:12 -04:00
Raymond Hill a43b553020
import translation work from https://crowdin.com/project/ublock 2018-04-30 08:42:39 -04:00
Raymond Hill 04e3995528
make Firefox dev build auto-update 2018-04-29 11:16:07 -04:00
Raymond Hill 1c4285f540
bring install infor up to date 2018-04-29 11:12:43 -04:00
Raymond Hill aaaffc8e7a
new revision for dev build 2018-04-29 11:12:04 -04:00
Raymond Hill cc5dcfb072
import translation work from https://crowdin.com/project/ublock 2018-04-29 09:12:37 -04:00
Raymond Hill 674c3c6079
fix https://github.com/uBlockOrigin/uBlock-issues/issues/17 2018-04-29 09:07:12 -04:00
Raymond Hill f79c6ced20
fix comments 2018-04-28 15:42:23 -04:00
Raymond Hill dc61b8a992
load/save secret tokens to/from env variable 2018-04-28 15:38:33 -04:00
Raymond Hill a0972d7a5f
make Firefox dev build auto-update 2018-04-28 14:21:11 -04:00
Raymond Hill fba09ef63e
new revision for dev build 2018-04-28 14:17:16 -04:00
Raymond Hill 8e8e06e3e7
import translation work from https://crowdin.com/project/ublock 2018-04-28 14:16:15 -04:00
Raymond Hill 350f590ac0
rename Firefox package from uBlock0.webext.xpi to uBlock0.firefox.xpi 2018-04-28 10:08:55 -04:00
Raymond Hill e37f6ee666
don't publish a package for webext 2018-04-27 15:03:20 -04:00
Raymond Hill f90ec9c957
import translation work from https://crowdin.com/project/ublock 2018-04-27 15:01:53 -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 d9e52b4052
rename "debian" target to more accurate "webext" 2018-04-27 12:42:49 -04:00
Raymond Hill 2b460da748
rename "debian" target to more accurate "webext" 2018-04-27 12:39:43 -04:00
Raymond Hill 0bf2f27d87
rename "webext" target to more accurate "firefox" 2018-04-27 12:38:09 -04:00
Raymond Hill c9b14e201a
rename "webext" target to more accurate "firefox" 2018-04-27 12:37:33 -04:00
Raymond Hill c6c60ca658
fix py script for new template location 2018-04-27 12:28:59 -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 d0c1c7c4c9
add link to issue tracker in dashboard's 'About' 2018-04-27 08:44:25 -04:00
Raymond Hill b24ab59e5a
add debian platform and remove firefox/legacy platform 2018-04-27 08:42:54 -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
Raymond Hill 8bab825f28
new revision for stable release 2018-04-25 06:41:52 -04:00
Raymond Hill f940bc02f0
import translationwork from https://crowdin.com/project/ublock 2018-04-25 06:40:35 -04:00
Raymond Hill fbc5e6d26c
fix https://github.com/uBlockOrigin/uBlock-issues/issues/22 2018-04-24 23:21:54 -04:00
Raymond Hill ca6ecd7c18
make Firefox dev build auto-update 2018-04-24 17:25:08 -04:00
Raymond Hill f59311b8aa
new revision for release candidate 2018-04-24 17:15:49 -04:00
Raymond Hill 4585287187
fix build script for Opera 2018-04-24 17:15:18 -04:00
Raymond Hill 427d0fd0ff
fix https://github.com/uBlockOrigin/uBlock-issues/issues/21 2018-04-24 17:12:41 -04:00
Raymond Hill 9a209c33c6
make Firefox dev build auto-update 2018-04-24 06:15:28 -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 fa3b76eb22
new revision for dev build 2018-04-24 05:57:22 -04:00
Raymond Hill 10a4a6465e
fix #3639 2018-04-24 05:48:28 -04:00
Raymond Hill adcc8c1a27
make Firefox dev build auto-update 2018-04-23 17:47:55 -04:00
Raymond Hill b0791dcffc
new revision for release candidate 2018-04-23 17:38:30 -04:00
Raymond Hill 75b148b307
upgrade to CodeMirror 5.37 2018-04-23 17:30:28 -04:00
Martin Vobruba 26979d89bd Change URL for CZ/SK filters (#3719)
See tomasko126/easylistczechandslovak#138
2018-04-23 16:23:05 -04:00