aboutsummaryrefslogtreecommitdiff
path: root/bg
Commit message (Collapse)AuthorAgeFilesLines
* changing license definition to jsonYuchen Pei2022-10-131-1/+1
| | | | and reuse it in the manual
* Refactoring response handler to improve readabilityYuchen Pei2022-09-272-11/+23
|
* A better fix for bugs #58131Yuchen Pei2022-09-271-1/+3
|
* simplify process(handler)Yuchen Pei2022-09-271-21/+22
| | | | the only filter has a pre and a post function
* moving some modules to common/Yuchen Pei2022-09-221-1/+1
|
* clean up external license checking a bitYuchen Pei2022-09-221-6/+1
|
* Updating copyright to files touched in the previous commits.Yuchen Pei2022-09-202-0/+2
|
* clean up bg/ListManager.jsYuchen Pei2022-07-291-21/+15
|
* cleainig externallicenses doneYuchen Pei2022-07-291-13/+12
|
* clean up bg/externalicenses.js sans optimizedocumentYuchen Pei2022-07-291-33/+15
| | | | fixing a bug introduced in the previous commit too
* clean up bg/ExternalLicenses.jsYuchen Pei2022-07-291-36/+36
|
* fix subresource integrity hash-busting bug by only rewriting external ↵henriquez2022-06-231-1/+1
| | | | scripts if not 'accepted'
* lintingYuchen Pei2022-04-074-49/+50
| | | | | - eslint - also adding eslintrc
* nop whitespace formatting change.Yuchen Pei2022-04-074-54/+54
| | | | | | | | - ran eglot-format using typescript-language-server on all js files in the repo except those under /hash_script/ - verify only whitespace changed: git diff --word-diff-regex=. 62d6a71 62d6a71~1
* Fix infinite loopStef Gijsberts2021-11-101-1/+1
| | | | | | | | | | | | | | | LibreJS got stuck in an infinite loop whenever a <link rel="jslicense"> occured inside a HTML head tag. This was due to a small programming mistake (refer to the git diff for details). It caused Icecat to become unresponsive (tested on Icecat 78.10.0esr). This notably affected users trying to visit lichess.org, and reportedly users trying to visit scratch.mit.edu [0]. [0]: https://lists.gnu.org/archive/html/bug-librejs/2020-06/msg00000.html
* Rename variable `document` to `doc`Stef Gijsberts2021-11-101-5/+5
| | | | | This is done because shadowing the global variable `document` can lead to unexpected results.
* More consistent and efficient blacklisting.hackademix2019-04-121-1/+1
|
* Subdomain wildcard support.hackademix2019-03-261-6/+29
|
* Merge #36 `Correctly decode using the original document charset and force ↵Ruben Rodriguez2019-03-132-30/+51
|\ | | | | | | re-encoding via UTF-8 BOM only when needed.`
| * Sniffing of charset in <meta> tags and BOM.hackademix2019-03-132-8/+47
| |
| * Correctly decode using the original document charset and force re-encoding ↵hackademix2019-03-112-28/+10
| | | | | | | | via UTF-8 BOM only when needed.
* | Fix for large scripts thrashing the black/white lists when added.hackademix2019-03-111-1/+1
| |
* | Fixed inline whitelisting regressions (issue #35).hackademix2019-03-051-1/+8
|/
* Merge #24 `Lenient WebLabels matching (by URL, by id, by name).`Ruben Rodriguez2018-10-031-12/+33
|\
| * WebLabels matching by id made case-insensitive.hackademix2018-09-301-5/+6
| |
| * Lenient WebLabels matching (by URL, by id, by name).hackademix2018-09-291-12/+32
| |
* | Work-around for StreamFilter bug storing cached script in a way that messes ↵hackademix2018-09-281-9/+26
|/ | | | up with encodings later (exacerbated by the license tag fixes).
* Match WebLabels by label rather than by canonical URL.hackademix2018-09-251-16/+17
|
* Adjust directory layout and packaging to allow Storage.js to be shared with ↵hackademix2018-09-132-131/+1
| | | | the settings page in the xpi release.
* Support for batch async list operations.hackademix2018-09-132-35/+62
|
* Internal refactoring of htmlEdit() using idiomatic asynchronous ES for ↵hackademix2018-09-021-2/+3
| | | | better maintainability and fixing problematic Promise usage.
* Fixed weblabels not being checked in whitelisted documents unless they ↵hackademix2018-09-021-5/+29
| | | | precede scripts.
* Moved external licenses check into response pre-processing, in order to ↵hackademix2018-09-011-5/+5
| | | | avoid filterResponse() as much as possible (fixing issue #11)
* WebLabels-based license checking implementation.hackademix2018-08-201-0/+96
|
* Broader detection of UTF-8 encoding in responses.hackademix2018-08-011-1/+1
|
* Uniform conventions for module importing paths.hackademix2018-07-311-1/+1
|
* Refactoring out list management in its own class / bug fixing and ↵hackademix2018-07-311-0/+71
| | | | simplifying UI synchronization.
* Stateful response processing support.hackademix2018-07-311-8/+4
|
* Implement early whitelisting / blacklisting logic.hackademix2018-07-302-7/+46
|
* White/Black lists back-end refactoring, fixing entry truncation on removal ↵hackademix2018-07-291-0/+79
| | | | and possible duplications on addition.
* Refactor and fix HTTP response filtering to touch only scripts, either ↵hackademix2018-07-172-0/+192
external or embedded inside HTML documents and sub-documents.