Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [PoC] Log LibreJS reportsnative-messaging-app | Yuchen Pei | 2023-10-27 | 5 | -1/+71 |
| | | | | | | | | | | - run ./build.sh - install the built librejs.xpi as a temporary extension[1] - check the librejs version is 7.21.2 - load some sites e.g. <https://fsf.org>, <https://archive.org>, and the reports should be logged into /tmp/librejs.log [1] https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/ | ||||
* | New version release | Yuchen Pei | 2023-09-17 | 3 | -4/+9 |
| | |||||
* | Fixing bypassing Function("..."). | Yuchen Pei | 2023-09-17 | 1 | -1/+1 |
| | | | | | | | | | | | | | It is similar to eval(). See, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/Function As a prior art, another extension did the blank ban of Function(): https://addons.mozilla.org/en-US/firefox/addon/noeval-disable-eval/ So let's ban it as well. Bug reported at https://lists.gnu.org/archive/html/bug-librejs/2023-09/msg00000.html | ||||
* | changing license definition to json | Yuchen Pei | 2022-10-13 | 5 | -699/+456 |
| | | | | and reuse it in the manual | ||||
* | fixing a few problems with @license / @license-end regexes | Yuchen Pei | 2022-10-13 | 2 | -11/+36 |
| | | | | | | | - trailing whitespace, including newlines are consumed by the opneing regex (added a test case) - added a test case for /* @license ... */ ... /* @license-end */ | ||||
* | let -> const in tests | Yuchen Pei | 2022-10-13 | 1 | -61/+61 |
| | |||||
* | `// @license` should be at the beginning of a line (mod whitespace) | Yuchen Pei | 2022-10-13 | 2 | -2/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the following will be processed for @license / @license-end method: // foo.js // // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0 // document.getElementById('bar'); // // @license-end function foo(x, y) { console.log(x + y); } $ node ./utitlities/check-script foo.js [ true, '// // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0\n' + "// document.getElementById('bar');\n" + '// // @license-end\n' + 'function foo(x, y) {\n' + ' console.log(x + y);\n' + '}\n', '\n' + 'Recognized license: "GNU General Public License (GPL) version 3".\n' + 'Script appears to be trivial.' ] | ||||
* | minor comment fix | Yuchen Pei | 2022-10-12 | 1 | -6/+3 |
| | |||||
* | refactoring: clean up main_background | Yuchen Pei | 2022-09-27 | 1 | -89/+81 |
| | |||||
* | refactoring ResponseHandler | Yuchen Pei | 2022-09-27 | 1 | -16/+16 |
| | |||||
* | Refactoring response handler to improve readability | Yuchen Pei | 2022-09-27 | 3 | -23/+43 |
| | |||||
* | A better fix for bugs #58131 | Yuchen Pei | 2022-09-27 | 2 | -14/+19 |
| | |||||
* | simplify process(handler) | Yuchen Pei | 2022-09-27 | 1 | -21/+22 |
| | | | | the only filter has a pre and a post function | ||||
* | minor renaming | Yuchen Pei | 2022-09-27 | 2 | -2/+2 |
| | |||||
* | disable contactfinder tests by default | Yuchen Pei | 2022-09-27 | 2 | -39/+41 |
| | | | | It tends to time out. Also moved injectContactFinder | ||||
* | minor camelcase renaming | Yuchen Pei | 2022-09-26 | 1 | -5/+5 |
| | |||||
* | refactoring editHtml. | Yuchen Pei | 2022-09-26 | 1 | -83/+100 |
| | | | | Separating out functions. | ||||
* | refactor: remove redundant result() in checkScriptAndUpdateReport | Yuchen Pei | 2022-09-26 | 1 | -19/+14 |
| | |||||
* | typo about returns string or pair in checkScriptAndUpdateReport | Yuchen Pei | 2022-09-26 | 1 | -9/+7 |
| | |||||
* | adding a node script to check a js file | Yuchen Pei | 2022-09-26 | 1 | -0/+40 |
| | |||||
* | acorn update breaks librejs | Yuchen Pei | 2022-09-23 | 1 | -1/+1 |
| | | | | also, acorn-loose is not used | ||||
* | fixing a typo | Yuchen Pei | 2022-09-23 | 1 | -1/+1 |
| | |||||
* | shellcheck build.sh | Yuchen Pei | 2022-09-23 | 1 | -3/+4 |
| | |||||
* | typos | Yuchen Pei | 2022-09-23 | 2 | -2/+2 |
| | |||||
* | fixing a bug introduced in 136cb7354a7. | Yuchen Pei | 2022-09-23 | 1 | -4/+10 |
| | | | | | | - the base url of the weblabel page should be the its own url unless set. otherwise the content script may use the url of the current page that references the weblabels page. | ||||
* | refactor editHtml | Yuchen Pei | 2022-09-22 | 2 | -38/+33 |
| | |||||
* | update copyright in license_definitions | Yuchen Pei | 2022-09-22 | 1 | -0/+1 |
| | |||||
* | move fname_data.json to common | Yuchen Pei | 2022-09-22 | 2 | -1/+1 |
| | |||||
* | Separating out script and license checking routines to common/checks | Yuchen Pei | 2022-09-22 | 3 | -374/+404 |
| | |||||
* | moving some modules to common/ | Yuchen Pei | 2022-09-22 | 5 | -7/+7 |
| | |||||
* | clean up external license checking a bit | Yuchen Pei | 2022-09-22 | 3 | -8/+17 |
| | |||||
* | refactor getScript with better names | Yuchen Pei | 2022-09-22 | 1 | -17/+16 |
| | | | | also moved list manager check out of licenseRead | ||||
* | refactor: clean up addReportEntry. | Yuchen Pei | 2022-09-22 | 1 | -52/+50 |
| | | | | also some smaller functions. | ||||
* | refactor: const instead of let | Yuchen Pei | 2022-09-22 | 1 | -19/+12 |
| | |||||
* | refactor: use set | Yuchen Pei | 2022-09-22 | 1 | -4/+4 |
| | |||||
* | refactoring getScript | Yuchen Pei | 2022-09-21 | 1 | -6/+6 |
| | |||||
* | update copyright in pattern_utils | Yuchen Pei | 2022-09-21 | 1 | -0/+1 |
| | |||||
* | refactoring get_script | Yuchen Pei | 2022-09-21 | 1 | -20/+20 |
| | | | | - index was a confusing arg | ||||
* | refactor license_read | Yuchen Pei | 2022-09-21 | 1 | -53/+53 |
| | |||||
* | clean up legacy_license_check | Yuchen Pei | 2022-09-21 | 2 | -16/+12 |
| | |||||
* | added some comments for various checks | Yuchen Pei | 2022-09-20 | 1 | -0/+3 |
| | |||||
* | clean up fullEvaluate | Yuchen Pei | 2022-09-20 | 1 | -48/+61 |
| | |||||
* | clean up checks for reserved objects | Yuchen Pei | 2022-09-20 | 1 | -23/+26 |
| | |||||
* | adding tests of calls to reserved objects. | Yuchen Pei | 2022-09-20 | 1 | -5/+12 |
| | |||||
* | Updating copyright to files touched in the previous commits. | Yuchen Pei | 2022-09-20 | 7 | -0/+7 |
| | |||||
* | adding a test for prefs default | Yuchen Pei | 2022-07-29 | 1 | -1/+14 |
| | |||||
* | fixing a bug introduced in commit b98cb70b1bc | Yuchen Pei | 2022-07-29 | 1 | -1/+2 |
| | | | | bug effect: no default subject and body shown for prefs | ||||
* | clean up bg/ListManager.js | Yuchen Pei | 2022-07-29 | 1 | -21/+15 |
| | |||||
* | cleainig externallicenses done | Yuchen Pei | 2022-07-29 | 1 | -13/+12 |
| | |||||
* | clean up bg/externalicenses.js sans optimizedocument | Yuchen Pei | 2022-07-29 | 1 | -33/+15 |
| | | | | fixing a bug introduced in the previous commit too |