Commit Graph

7068 Commits

Author SHA1 Message Date
Raymond Hill ad9b34bc7a
Code review of 9d1913a16e
Also eat backslash for `\\`, to allow searching for
literal `\n`, `\t`.
2019-07-07 07:52:37 -04:00
Raymond Hill 7fc31512f2
Make Firefox dev build auto-update 2019-07-07 07:38:13 -04:00
Raymond Hill d802d400fa
New revision for dev build 2019-07-07 07:34:07 -04:00
Raymond Hill 47a5caef54
Fix last newline not being automatically appended
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/657
2019-07-07 06:57:30 -04:00
Raymond Hill 9d1913a16e
Eat backslashes only for common control characters
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/658
2019-07-07 06:29:14 -04:00
Raymond Hill 2acaf3c433
Fix background color of previewed image in logger
Related feedback:
- https://www.reddit.com/r/uBlockOrigin/comments/c9u5xy/
2019-07-06 17:26:35 -04:00
Raymond Hill 0acdd2ab5c
Make Firefox dev build auto-update 2019-07-06 14:01:12 -04:00
Raymond Hill d64f4a2569
New revision for dev build 2019-07-06 13:55:52 -04:00
Raymond Hill 4c201c90e1
Remove strat mime type in scriptlets.js
Related ffedback:
- 6f5aa947fb (commitcomment-34205920)
2019-07-06 13:53:36 -04:00
Raymond Hill 8954175252
Make Firefox dev build auto-update 2019-07-06 13:03:04 -04:00
Raymond Hill 6d2f66fef6
Import translation work from https://crowdin.com/project/ublock 2019-07-06 12:56:27 -04:00
Raymond Hill 7a8cadacc4
New revision for dev build 2019-07-06 12:52:33 -04:00
Raymond Hill 6f5aa947fb
Finalize converting resources.txt into immutable resources
With hindsight, I revised decisions made earlier during
this development cycle:

Un-redirectable scriptlets have been removed from
/web_accessible_resources and instead put in the new
/assets/resources/scriptlets.js, which contains all
scriptlets used for web page injection purpose.

uBO will no longer fetch a remote version of built-in
resources.

Advanced setting `userResourcesLocation` will still be
honoured by uBO, and if set, will be fetched every
time at least one asset is updated.
2019-07-06 12:36:28 -04:00
Raymond Hill 813b390dda
Make Firefox dev build auto-update 2019-07-05 18:30:31 -04:00
Raymond Hill b827cdcad2
New revision for dev build 2019-07-05 18:26:03 -04:00
Raymond Hill ae56c4dfe8
Fix whitelist status evaluation of tabless network requests
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/651

The `behnind-the-scene` context was wrongly used to
evaluate the whitelist status of the context of tabless
network requests. The document origin must be used
instead when it's available.

Additionally, much code has been revisited for better
ES6 syntax compliance.
2019-07-05 17:44:08 -04:00
Raymond Hill 9693d07a6d
Code review of https://github.com/gorhill/uBlock/commit/f930da7ad64a 2019-07-05 12:33:14 -04:00
Raymond Hill f930da7ad6
Fix regression of reverse-lookup of scriptlet filters in logger
Related commit:
- 5552d6717d
2019-07-05 11:44:40 -04:00
Raymond Hill e107b6bcf1
Fix typo in comment 2019-07-05 10:32:19 -04:00
Raymond Hill 5552d6717d
Implement scriptlet token normalization
The goal is to be able to specify a scriptlet token
without the `.js` part at the end, because that part
is essentially redundant with the `+js` part of
the syntax.

When the next stable release is in widespread use
(to determine), scriptlet tokens will have to be
specified without the `.js` part, and with this
commit the logger will already report the normalized
version of scriptlets.

Eventually, when the migration to sans-`.js` is
complete (also to determine), the internal
normalization of the token will be removed and this
will become official syntax.

Filter list maintainers will have to mind that
uAssets is becoming in use beyond uBO (i.e. Brave)
when skipping the `.js` part -- hopefully Brave will
go along with the change here, which is to remove a
bit of tediousness for filter list maintainers.
2019-07-05 10:10:59 -04:00
Raymond Hill 6220e1d3eb
Add missing newline 2019-07-05 08:22:26 -04:00
Raymond Hill 3e1de012a6
Make Firefox dev build auto-update 2019-07-05 08:11:01 -04:00
Raymond Hill 9a6506e585
New revision for dev build 2019-07-05 08:00:50 -04:00
Raymond Hill 3e53963be3
Fix window.open-defuser
Matching logic has been erronesouly reverse.
2019-07-05 07:59:02 -04:00
Raymond Hill a992875c94
Save only modified immediate hidden settings 2019-07-05 07:33:09 -04:00
Raymond Hill 34073b41df
Make Firefox dev build auto-update 2019-07-04 16:04:14 -04:00
Raymond Hill b3ea68a08d
Import translation work from https://crowdin.com/project/ublock 2019-07-04 15:50:20 -04:00
Raymond Hill 8083855aa8
New revision for dev build 2019-07-04 15:48:36 -04:00
Raymond Hill 1fb9845c35
Remove useless code 2019-07-04 14:10:23 -04:00
Raymond Hill f9e680f111
Convert more resources as immutable
Related commit:
- 152cea2dfe
2019-07-04 14:08:56 -04:00
Raymond Hill 3613a67df5
Make Firefox dev build auto-update 2019-07-03 19:33:24 -04:00
Raymond Hill ae789c06b2
New revision for dev build 2019-07-03 19:27:32 -04:00
Raymond Hill 8e245c8919
Convert more resources as immutable
Related commit:
- 152cea2dfe
2019-07-03 19:26:09 -04:00
Raymond Hill 0ba9a35818
Convert more resources as immutable
Related commit:
- 152cea2dfe
2019-07-03 14:33:06 -04:00
Raymond Hill 210e1d0581
Make Firefox dev build auto-update 2019-07-03 10:18:19 -04:00
Raymond Hill 804203cb67
New revision for dev build 2019-07-03 09:57:46 -04:00
Raymond Hill 5672f54663
Import translation work from https://crowdin.com/project/ublock 2019-07-03 09:57:04 -04:00
Raymond Hill caa8e7d35b
Add shell script to copy common files
This shell script will copy files commoon to
all platform into the package.
2019-07-03 09:52:03 -04:00
Raymond Hill 152cea2dfe
Refactor management of injectable resources
This is a first step, the ultimate goal is to remove
the need for resources.txt, or at least to reduce to
only hotfixes or for trivial resources targeting very
specific websites.

Most resources will become immutable, i.e. they will
be part of uBO's code base. Advantages include easier
code maintenance (jshint, syntax highlight), and to
make scriptlets more easy to code review by external
parties (for example extension store reviewers).

TODO:

- More scriptlets need to be imported before next
  release.
- Need to make legacy versions of uBO use a legacy
  version of resources.txt, as all the now obsolete
  scriptlets will have to be removed once uBO's
  next release become widespread.
- Possibly need to add code to load binary
  resources so that they can be injected as
  data: URI. So far it's unclear whether this is
  really needed. For example, this would be needed
  if a xmlhttprequest is redirected to an image
  resource.
2019-07-03 09:47:56 -04:00
Raymond Hill 41636c59fb
Strict-block only if match is anchored to end of hostname
As per feedback from filter list maintainers.
2019-07-02 11:56:27 -04:00
Raymond Hill 9d198a2710
Make Firefox dev build auto-update 2019-07-02 10:14:17 -04:00
Raymond Hill 2e04b75ccf
Import translation work from https://crowdin.com/project/ublock 2019-07-02 09:59:26 -04:00
Raymond Hill 730a83377e
Minor code review re. context menu code
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/151

I have been unsuccessful fixing the above issue, but I will
keep the changes made in the process of trying to fix it.
2019-07-02 09:43:26 -04:00
Raymond Hill b122c83aa3
New revision for dev build 2019-07-02 09:42:05 -04:00
Raymond Hill 7a2bc6c3bb
Make Firefox dev build auto-update 2019-06-30 16:26:42 -04:00
Raymond Hill 47c709e5e7
New revision for dev build 2019-06-30 16:22:07 -04:00
Raymond Hill cdd1aac442
Add convenience link to network resources in logger
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/648
2019-06-30 16:15:19 -04:00
Raymond Hill c97bfb5fba
Make Firefox dev build auto-update 2019-06-30 12:59:15 -04:00
Raymond Hill e2d0fb2507
New revision for dev build 2019-06-30 12:56:10 -04:00
Raymond Hill 2bcf671dae
Put back erroneously removed line
Regression from 1dfdc40e09
2019-06-30 12:54:05 -04:00