aboutsummaryrefslogtreecommitdiff
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* Fixing bypassing Function("...").HEADmasterYuchen Pei2023-09-101-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 jsonYuchen Pei2022-10-133-415/+450
| | | | and reuse it in the manual
* fixing a few problems with @license / @license-end regexesYuchen Pei2022-10-131-11/+24
| | | | | | | - trailing whitespace, including newlines are consumed by the opneing regex (added a test case) - added a test case for /* @license ... */ ... /* @license-end */
* `// @license` should be at the beginning of a line (mod whitespace)Yuchen Pei2022-10-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.' ]
* fixing a typoYuchen Pei2022-09-231-1/+1
|
* typosYuchen Pei2022-09-231-1/+1
|
* update copyright in license_definitionsYuchen Pei2022-09-221-0/+1
|
* move fname_data.json to commonYuchen Pei2022-09-222-1/+833
|
* Separating out script and license checking routines to common/checksYuchen Pei2022-09-222-7/+389
|
* moving some modules to common/Yuchen Pei2022-09-223-0/+552
|
* Updating copyright to files touched in the previous commits.Yuchen Pei2022-09-202-0/+2
|
* fixing a bug introduced in commit b98cb70b1bcYuchen Pei2022-07-291-1/+2
| | | | bug effect: no default subject and body shown for prefs
* clean up common/Storage.jsYuchen Pei2022-07-281-24/+14
|
* clean up common/Test.jsYuchen Pei2022-07-281-8/+6
|
* fixing some mozilla validation warnings when uploading the extensionYuchen Pei2022-07-221-1/+1
|
* lintingYuchen Pei2022-04-072-15/+15
| | | | | - eslint - also adding eslintrc
* nop whitespace formatting change.Yuchen Pei2022-04-072-11/+11
| | | | | | | | - 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 Storage.js throwing exception unless loaded as a module.hackademix2019-04-081-1/+1
|
* Fix for large scripts thrashing the black/white lists when added.hackademix2019-03-111-3/+15
|
* Fixed inline whitelisting regressions (issue #35).hackademix2019-03-051-0/+3
|
* Jasmine-based automated tests suite.hackademix2018-10-021-0/+55
|
* Adjust directory layout and packaging to allow Storage.js to be shared with ↵hackademix2018-09-131-0/+130
the settings page in the xpi release.