bug-librejs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-librejs] compliance


From: Andrew Roffey
Subject: Re: [Bug-librejs] compliance
Date: Thu, 20 Jun 2013 17:59:13 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

On 18/06/13 05:55, MK wrote:
> I installed libreJS on firefox and tested using a local mirror of the
> site. Initially, there was a small librejs icon in the browser frame
> that I could click for more information and the offence was 
> attributed to PrevNext.js.  I added licence info to the file like 
> this:

> <snip>


Hello Mark,

I don't know that much about LibreJS compliance (I know a little
JavaScript, but I only really do GreaseMonkey scripting). But you could
look at an existing website that works with LibreJS as a reference. For
example, I noticed this on the EFF.org website, before all of the other
scripts:


<!--//--><![CDATA[//><!--
/**
 * @licstart The following is the entire license notice for the JavaScript
 * code in this page.
 *
 * Copyright (C) 2013  Electronic Frontier Foundation.
 *
 * The JavaScript code in this page is free software: you can redistribute
 * it and/or modify it under the terms of the GNU General Public License
 * (GNU GPL) as published by the Free Software Foundation, either version 3
 * of the License, or (at your option) any later version.  The code is
 * distributed WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU GPL
 * for more details.
 *
 * As additional permission under GNU GPL version 3 section 7, you may
 * distribute non-source (e.g., minimized or compacted) forms of that code
 * without the copy of the GNU GPL normally required by section 4, provided
 * you include this license notice and a URL through which recipients can
 * access the Corresponding Source.
 *
 * @licend The above is the entire license notice for the JavaScript code
 * in this page.
 */
//--><!]]>
</script>



> But the problem persisted, perhaps because the offending line 
> reported by librejs seemed to be an "onkeypress()" event that was in 
> the html source's <body> tag and not PrevNext.js, so I added the same
> comment in the page (template) header.

You could try something like this:

document.getElementsByTagName("body")[0].addEventListener("keypress",
    yourFunction, false);

... so that it is in the same JS file, and covered by the same license?
Again, I don't really know how LibreJS works that much, but it's worth a
try. :-)

-- 
Andrew Roffey     http://roffey.org
GPG fingerprint   F9E6 E6C4 0080 85F4 0E30 B0D9 7F7B DC7F 9657 B073

Reject loyalty cards - http://nocards.org/essays/discrimination.shtml




reply via email to

[Prev in Thread] Current Thread [Next in Thread]