<feed xmlns='http://www.w3.org/2005/Atom'>
<title>librejs.git, branch native-messaging-app</title>
<subtitle>Mirror of LibreJS at https://git.savannah.gnu.org/cgit/librejs.git
</subtitle>
<id>https://g.ypei.me/librejs.git/atom?h=native-messaging-app</id>
<link rel='self' href='https://g.ypei.me/librejs.git/atom?h=native-messaging-app'/>
<link rel='alternate' type='text/html' href='https://g.ypei.me/librejs.git/'/>
<updated>2023-10-27T12:38:11+00:00</updated>
<entry>
<title>[PoC] Log LibreJS reports</title>
<updated>2023-10-27T12:38:11+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>id@ypei.org</email>
</author>
<published>2023-10-27T12:38:11+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/librejs.git/commit/?id=8ee5aba1bd932f248297f8de3eb7bbcdae601bb4'/>
<id>urn:sha1:8ee5aba1bd932f248297f8de3eb7bbcdae601bb4</id>
<content type='text'>
- 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. &lt;https://fsf.org&gt;, &lt;https://archive.org&gt;, and
  the reports should be logged into /tmp/librejs.log

[1] https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/
</content>
</entry>
<entry>
<title>New version release</title>
<updated>2023-09-17T07:46:20+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>id@ypei.org</email>
</author>
<published>2023-09-17T07:46:20+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/librejs.git/commit/?id=8926cb68f45ab3dc0bd7bc7eed2cd40c4cc437cd'/>
<id>urn:sha1:8926cb68f45ab3dc0bd7bc7eed2cd40c4cc437cd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixing bypassing Function("...").</title>
<updated>2023-09-17T07:46:08+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>id@ypei.org</email>
</author>
<published>2023-09-10T02:02:37+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/librejs.git/commit/?id=0e9dc99f56da9f5acdf50382ae6df28218ca512d'/>
<id>urn:sha1:0e9dc99f56da9f5acdf50382ae6df28218ca512d</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>changing license definition to json</title>
<updated>2022-10-13T06:21:56+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-10-13T06:15:23+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/librejs.git/commit/?id=46ecac9ab60b32ccc7b40a668938c84117de1b4d'/>
<id>urn:sha1:46ecac9ab60b32ccc7b40a668938c84117de1b4d</id>
<content type='text'>
and reuse it in the manual
</content>
</entry>
<entry>
<title>fixing a few problems with @license / @license-end regexes</title>
<updated>2022-10-13T04:48:44+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-10-13T04:48:44+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/librejs.git/commit/?id=dbfe1fb86719a18364f24bff57781aeb3262cb90'/>
<id>urn:sha1:dbfe1fb86719a18364f24bff57781aeb3262cb90</id>
<content type='text'>
- trailing whitespace, including newlines are consumed by the opneing
  regex (added a test case)

- added a test case for /* @license ... */ ... /* @license-end */
</content>
</entry>
<entry>
<title>let -&gt; const in tests</title>
<updated>2022-10-13T03:27:08+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-10-13T03:20:07+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/librejs.git/commit/?id=388b1b9218a5f8971b6c1cdeb9cfa67940e1d33e'/>
<id>urn:sha1:388b1b9218a5f8971b6c1cdeb9cfa67940e1d33e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>`// @license` should be at the beginning of a line (mod whitespace)</title>
<updated>2022-10-13T03:14:29+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-10-13T02:55:41+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/librejs.git/commit/?id=fcd816e95e73a78fd24a7e6baef709d7657d265f'/>
<id>urn:sha1:fcd816e95e73a78fd24a7e6baef709d7657d265f</id>
<content type='text'>
Otherwise the following will be processed for @license / @license-end
method:

// foo.js
// // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&amp;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&amp;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.'
]
</content>
</entry>
<entry>
<title>minor comment fix</title>
<updated>2022-10-12T07:37:26+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-10-12T07:37:26+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/librejs.git/commit/?id=88fa677b51b6b1eb814866ea08129a6b7cda9ddb'/>
<id>urn:sha1:88fa677b51b6b1eb814866ea08129a6b7cda9ddb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactoring: clean up main_background</title>
<updated>2022-09-27T03:22:20+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-09-27T03:22:20+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/librejs.git/commit/?id=9bdf30ef02f3f67a7c45e7ac64db3c1ef15340d4'/>
<id>urn:sha1:9bdf30ef02f3f67a7c45e7ac64db3c1ef15340d4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactoring ResponseHandler</title>
<updated>2022-09-27T02:49:27+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-09-27T02:49:27+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/librejs.git/commit/?id=e2230c23e4aa7a74ea34825856acf7edd8a61e04'/>
<id>urn:sha1:e2230c23e4aa7a74ea34825856acf7edd8a61e04</id>
<content type='text'>
</content>
</entry>
</feed>
