diff options
Diffstat (limited to 'data/extensions/jsr@javascriptrestrictor')
125 files changed, 0 insertions, 33667 deletions
diff --git a/data/extensions/jsr@javascriptrestrictor/LICENSES/CC-BY-4.0.txt b/data/extensions/jsr@javascriptrestrictor/LICENSES/CC-BY-4.0.txt deleted file mode 100644 index 13ca539..0000000 --- a/data/extensions/jsr@javascriptrestrictor/LICENSES/CC-BY-4.0.txt +++ /dev/null @@ -1,156 +0,0 @@ -Creative Commons Attribution 4.0 International - - Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. - -Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. - -Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. - -Creative Commons Attribution 4.0 International Public License - -By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. - -Section 1 – Definitions. - - a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. - - c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. - - d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. - - e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. - - f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. - - g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. - - h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. - - i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. - - j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. - - k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. - -Section 2 – Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: - - A. reproduce and Share the Licensed Material, in whole or in part; and - - B. produce, reproduce, and Share Adapted Material. - - 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. - - 3. Term. The term of this Public License is specified in Section 6(a). - - 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. - - 5. Downstream recipients. - - A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. - - B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. - - 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). - -b. Other rights. - - 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this Public License. - - 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. - -Section 3 – License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified form), You must: - - A. retain the following if it is supplied by the Licensor with the Licensed Material: - - i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of warranties; - - v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; - - B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and - - C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. - - 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. - - 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. - -Section 4 – Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; - - b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and - - c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. -For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. - -Section 5 – Disclaimer of Warranties and Limitation of Liability. - - a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. - - b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. - - c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. - -Section 6 – Term and Termination. - - a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or - - 2. upon express reinstatement by the Licensor. - - c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. - - d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. - - e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. - -Section 7 – Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. - -Section 8 – Interpretation. - - a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. - - c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. - - d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. - -Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. - -Creative Commons may be contacted at creativecommons.org. diff --git a/data/extensions/jsr@javascriptrestrictor/LICENSES/CC-BY-ND-4.0.txt b/data/extensions/jsr@javascriptrestrictor/LICENSES/CC-BY-ND-4.0.txt deleted file mode 100644 index 09a21c7..0000000 --- a/data/extensions/jsr@javascriptrestrictor/LICENSES/CC-BY-ND-4.0.txt +++ /dev/null @@ -1,154 +0,0 @@ -Creative Commons Attribution-NoDerivatives 4.0 International - - Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. - -Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. - -Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. - -Creative Commons Attribution-NoDerivatives 4.0 International Public License - -By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-NoDerivatives 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. - -Section 1 – Definitions. - - a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. - - b. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. - - c. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. - - d. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. - - e. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. - - f. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. - - g. Licensor means the individual(s) or entity(ies) granting rights under this Public License. - - h. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. - - i. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. - - j. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. - -Section 2 – Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: - - A. reproduce and Share the Licensed Material, in whole or in part; and - - B. produce and reproduce, but not Share, Adapted Material. - - 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. - - 3. Term. The term of this Public License is specified in Section 6(a). - - 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. - - 5. Downstream recipients. - - A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. - - B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. - - 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this Public License. - - 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. - -Section 3 – License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material, You must: - - A. retain the following if it is supplied by the Licensor with the Licensed Material: - - i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of warranties; - - v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; - - B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and - - C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. - - 2. For the avoidance of doubt, You do not have permission under this Public License to Share Adapted Material. - - 3. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. - - 4. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. - -Section 4 – Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database, provided You do not Share Adapted Material; - - b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and - - c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. -For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. - -Section 5 – Disclaimer of Warranties and Limitation of Liability. - - a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. - - b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. - - c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. - -Section 6 – Term and Termination. - - a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or - - 2. upon express reinstatement by the Licensor. - - c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. - - d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. - - e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. - -Section 7 – Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. - -Section 8 – Interpretation. - - a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. - - c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. - - d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. - -Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. - -Creative Commons may be contacted at creativecommons.org. diff --git a/data/extensions/jsr@javascriptrestrictor/LICENSES/CC0-1.0.txt b/data/extensions/jsr@javascriptrestrictor/LICENSES/CC0-1.0.txt deleted file mode 100644 index 0e259d4..0000000 --- a/data/extensions/jsr@javascriptrestrictor/LICENSES/CC0-1.0.txt +++ /dev/null @@ -1,121 +0,0 @@ -Creative Commons Legal Code - -CC0 1.0 Universal - - CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE - LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN - ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS - INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES - REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS - PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM - THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED - HEREUNDER. - -Statement of Purpose - -The laws of most jurisdictions throughout the world automatically confer -exclusive Copyright and Related Rights (defined below) upon the creator -and subsequent owner(s) (each and all, an "owner") of an original work of -authorship and/or a database (each, a "Work"). - -Certain owners wish to permanently relinquish those rights to a Work for -the purpose of contributing to a commons of creative, cultural and -scientific works ("Commons") that the public can reliably and without fear -of later claims of infringement build upon, modify, incorporate in other -works, reuse and redistribute as freely as possible in any form whatsoever -and for any purposes, including without limitation commercial purposes. -These owners may contribute to the Commons to promote the ideal of a free -culture and the further production of creative, cultural and scientific -works, or to gain reputation or greater distribution for their Work in -part through the use and efforts of others. - -For these and/or other purposes and motivations, and without any -expectation of additional consideration or compensation, the person -associating CC0 with a Work (the "Affirmer"), to the extent that he or she -is an owner of Copyright and Related Rights in the Work, voluntarily -elects to apply CC0 to the Work and publicly distribute the Work under its -terms, with knowledge of his or her Copyright and Related Rights in the -Work and the meaning and intended legal effect of CC0 on those rights. - -1. Copyright and Related Rights. A Work made available under CC0 may be -protected by copyright and related or neighboring rights ("Copyright and -Related Rights"). Copyright and Related Rights include, but are not -limited to, the following: - - i. the right to reproduce, adapt, distribute, perform, display, - communicate, and translate a Work; - ii. moral rights retained by the original author(s) and/or performer(s); -iii. publicity and privacy rights pertaining to a person's image or - likeness depicted in a Work; - iv. rights protecting against unfair competition in regards to a Work, - subject to the limitations in paragraph 4(a), below; - v. rights protecting the extraction, dissemination, use and reuse of data - in a Work; - vi. database rights (such as those arising under Directive 96/9/EC of the - European Parliament and of the Council of 11 March 1996 on the legal - protection of databases, and under any national implementation - thereof, including any amended or successor version of such - directive); and -vii. other similar, equivalent or corresponding rights throughout the - world based on applicable law or treaty, and any national - implementations thereof. - -2. Waiver. To the greatest extent permitted by, but not in contravention -of, applicable law, Affirmer hereby overtly, fully, permanently, -irrevocably and unconditionally waives, abandons, and surrenders all of -Affirmer's Copyright and Related Rights and associated claims and causes -of action, whether now known or unknown (including existing as well as -future claims and causes of action), in the Work (i) in all territories -worldwide, (ii) for the maximum duration provided by applicable law or -treaty (including future time extensions), (iii) in any current or future -medium and for any number of copies, and (iv) for any purpose whatsoever, -including without limitation commercial, advertising or promotional -purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each -member of the public at large and to the detriment of Affirmer's heirs and -successors, fully intending that such Waiver shall not be subject to -revocation, rescission, cancellation, termination, or any other legal or -equitable action to disrupt the quiet enjoyment of the Work by the public -as contemplated by Affirmer's express Statement of Purpose. - -3. Public License Fallback. Should any part of the Waiver for any reason -be judged legally invalid or ineffective under applicable law, then the -Waiver shall be preserved to the maximum extent permitted taking into -account Affirmer's express Statement of Purpose. In addition, to the -extent the Waiver is so judged Affirmer hereby grants to each affected -person a royalty-free, non transferable, non sublicensable, non exclusive, -irrevocable and unconditional license to exercise Affirmer's Copyright and -Related Rights in the Work (i) in all territories worldwide, (ii) for the -maximum duration provided by applicable law or treaty (including future -time extensions), (iii) in any current or future medium and for any number -of copies, and (iv) for any purpose whatsoever, including without -limitation commercial, advertising or promotional purposes (the -"License"). The License shall be deemed effective as of the date CC0 was -applied by Affirmer to the Work. Should any part of the License for any -reason be judged legally invalid or ineffective under applicable law, such -partial invalidity or ineffectiveness shall not invalidate the remainder -of the License, and in such case Affirmer hereby affirms that he or she -will not (i) exercise any of his or her remaining Copyright and Related -Rights in the Work or (ii) assert any associated claims and causes of -action with respect to the Work, in either case contrary to Affirmer's -express Statement of Purpose. - -4. Limitations and Disclaimers. - - a. No trademark or patent rights held by Affirmer are waived, abandoned, - surrendered, licensed or otherwise affected by this document. - b. Affirmer offers the Work as-is and makes no representations or - warranties of any kind concerning the Work, express, implied, - statutory or otherwise, including without limitation warranties of - title, merchantability, fitness for a particular purpose, non - infringement, or the absence of latent or other defects, accuracy, or - the present or absence of errors, whether or not discoverable, all to - the greatest extent permissible under applicable law. - c. Affirmer disclaims responsibility for clearing rights of other persons - that may apply to the Work or any use thereof, including without - limitation any person's Copyright and Related Rights in the Work. - Further, Affirmer disclaims responsibility for obtaining any necessary - consents, permissions or other rights required for any use of the - Work. - d. Affirmer understands and acknowledges that Creative Commons is not a - party to this document and has no duty or obligation with respect to - this CC0 or use of the Work. diff --git a/data/extensions/jsr@javascriptrestrictor/LICENSES/GFDL-1.3-no-invariants-or-later.txt b/data/extensions/jsr@javascriptrestrictor/LICENSES/GFDL-1.3-no-invariants-or-later.txt deleted file mode 100644 index b51dc2a..0000000 --- a/data/extensions/jsr@javascriptrestrictor/LICENSES/GFDL-1.3-no-invariants-or-later.txt +++ /dev/null @@ -1,149 +0,0 @@ -GNU Free Documentation License -Version 1.3, 3 November 2008 - -Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. <http://fsf.org/> - -Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - -0. PREAMBLE - -The purpose of this License is to make a manual, textbook, or other functional and useful document "free" in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others. - -This License is a kind of "copyleft", which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software. - -We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference. - -1. APPLICABILITY AND DEFINITIONS - -This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein. The "Document", below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as "you". You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law. - -A "Modified Version" of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language. - -A "Secondary Section" is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them. - -The "Invariant Sections" are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none. - -The "Cover Texts" are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words. - -A "Transparent" copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not "Transparent" is called "Opaque". - -Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG. Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only. - -The "Title Page" means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, "Title Page" means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text. - -The "publisher" means any person or entity that distributes copies of the Document to the public. - -A section "Entitled XYZ" means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as "Acknowledgements", "Dedications", "Endorsements", or "History".) To "Preserve the Title" of such a section when you modify the Document means that it remains a section "Entitled XYZ" according to this definition. - -The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License. - -2. VERBATIM COPYING - -You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3. - -You may also lend copies, under the same conditions stated above, and you may publicly display copies. - -3. COPYING IN QUANTITY - -If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects. - -If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages. - -If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public. - -It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document. - -4. MODIFICATIONS - -You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version: - - A. Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission. - B. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this requirement. - C. State on the Title page the name of the publisher of the Modified Version, as the publisher. - D. Preserve all the copyright notices of the Document. - E. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices. - F. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below. - G. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice. H. Include an unaltered copy of this License. - I. Preserve the section Entitled "History", Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section Entitled "History" in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence. - J. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the "History" section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission. - K. For any section Entitled "Acknowledgements" or "Dedications", Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein. - L. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles. - M. Delete any section Entitled "Endorsements". Such a section may not be included in the Modified Version. - N. Do not retitle any existing section to be Entitled "Endorsements" or to conflict in title with any Invariant Section. - O. Preserve any Warranty Disclaimers. - -If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles. - -You may add a section Entitled "Endorsements", provided it contains nothing but endorsements of your Modified Version by various parties--for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard. - -You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one. - -The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version. - -5. COMBINING DOCUMENTS - -You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers. - -The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work. - -In the combination, you must combine any sections Entitled "History" in the various original documents, forming one section Entitled "History"; likewise combine any sections Entitled "Acknowledgements", and any sections Entitled "Dedications". You must delete all sections Entitled "Endorsements". - -6. COLLECTIONS OF DOCUMENTS - -You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects. - -You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document. - -7. AGGREGATION WITH INDEPENDENT WORKS - -A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an "aggregate" if the copyright resulting from the compilation is not used to limit the legal rights of the compilation's users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document. - -If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document's Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate. - -8. TRANSLATION - -Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail. - -If a section in the Document is Entitled "Acknowledgements", "Dedications", or "History", the requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual title. - -9. TERMINATION - -You may not copy, modify, sublicense, or distribute the Document except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, or distribute it is void, and will automatically terminate your rights under this License. - -However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - -Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - -Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, receipt of a copy of some or all of the same material does not give you any rights to use it. - -10. FUTURE REVISIONS OF THIS LICENSE - -The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/copyleft/. - -Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License "or any later version" applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. If the Document specifies that a proxy can decide which future versions of this License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Document. - -11. RELICENSING - -"Massive Multiauthor Collaboration Site" (or "MMC Site") means any World Wide Web server that publishes copyrightable works and also provides prominent facilities for anybody to edit those works. A public wiki that anybody can edit is an example of such a server. A "Massive Multiauthor Collaboration" (or "MMC") contained in the site means any set of copyrightable works thus published on the MMC site. - -"CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0 license published by Creative Commons Corporation, a not-for-profit corporation with a principal place of business in San Francisco, California, as well as future copyleft versions of that license published by that same organization. - -"Incorporate" means to publish or republish a Document, in whole or in part, as part of another Document. - -An MMC is "eligible for relicensing" if it is licensed under this License, and if all works that were first published under this License somewhere other than this MMC, and subsequently incorporated in whole or in part into the MMC, (1) had no cover texts or invariant sections, and (2) were thus incorporated prior to November 1, 2008. - -The operator of an MMC Site may republish an MMC contained in the site under CC-BY-SA on the same site at any time before August 1, 2009, provided the MMC is eligible for relicensing. - -ADDENDUM: How to use this License for your documents - -To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page: - - Copyright (c) YEAR YOUR NAME. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". - -If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the "with...Texts." line with this: - - with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. - -If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those two alternatives to suit the situation. - -If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software. diff --git a/data/extensions/jsr@javascriptrestrictor/LICENSES/GPL-3.0-or-later.txt b/data/extensions/jsr@javascriptrestrictor/LICENSES/GPL-3.0-or-later.txt deleted file mode 100644 index f288702..0000000 --- a/data/extensions/jsr@javascriptrestrictor/LICENSES/GPL-3.0-or-later.txt +++ /dev/null @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see <https://www.gnu.org/licenses/>. - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - <program> Copyright (C) <year> <name of author> - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -<https://www.gnu.org/licenses/>. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -<https://www.gnu.org/licenses/why-not-lgpl.html>. diff --git a/data/extensions/jsr@javascriptrestrictor/LICENSES/MIT.txt b/data/extensions/jsr@javascriptrestrictor/LICENSES/MIT.txt deleted file mode 100644 index c9b44cb..0000000 --- a/data/extensions/jsr@javascriptrestrictor/LICENSES/MIT.txt +++ /dev/null @@ -1,18 +0,0 @@ -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/data/extensions/jsr@javascriptrestrictor/LICENSES/MPL-2.0.txt b/data/extensions/jsr@javascriptrestrictor/LICENSES/MPL-2.0.txt deleted file mode 100644 index d0a1fa1..0000000 --- a/data/extensions/jsr@javascriptrestrictor/LICENSES/MPL-2.0.txt +++ /dev/null @@ -1,373 +0,0 @@ -Mozilla Public License Version 2.0 -================================== - -1. Definitions --------------- - -1.1. "Contributor" - means each individual or legal entity that creates, contributes to - the creation of, or owns Covered Software. - -1.2. "Contributor Version" - means the combination of the Contributions of others (if any) used - by a Contributor and that particular Contributor's Contribution. - -1.3. "Contribution" - means Covered Software of a particular Contributor. - -1.4. "Covered Software" - means Source Code Form to which the initial Contributor has attached - the notice in Exhibit A, the Executable Form of such Source Code - Form, and Modifications of such Source Code Form, in each case - including portions thereof. - -1.5. "Incompatible With Secondary Licenses" - means - - (a) that the initial Contributor has attached the notice described - in Exhibit B to the Covered Software; or - - (b) that the Covered Software was made available under the terms of - version 1.1 or earlier of the License, but not also under the - terms of a Secondary License. - -1.6. "Executable Form" - means any form of the work other than Source Code Form. - -1.7. "Larger Work" - means a work that combines Covered Software with other material, in - a separate file or files, that is not Covered Software. - -1.8. "License" - means this document. - -1.9. "Licensable" - means having the right to grant, to the maximum extent possible, - whether at the time of the initial grant or subsequently, any and - all of the rights conveyed by this License. - -1.10. "Modifications" - means any of the following: - - (a) any file in Source Code Form that results from an addition to, - deletion from, or modification of the contents of Covered - Software; or - - (b) any new file in Source Code Form that contains any Covered - Software. - -1.11. "Patent Claims" of a Contributor - means any patent claim(s), including without limitation, method, - process, and apparatus claims, in any patent Licensable by such - Contributor that would be infringed, but for the grant of the - License, by the making, using, selling, offering for sale, having - made, import, or transfer of either its Contributions or its - Contributor Version. - -1.12. "Secondary License" - means either the GNU General Public License, Version 2.0, the GNU - Lesser General Public License, Version 2.1, the GNU Affero General - Public License, Version 3.0, or any later versions of those - licenses. - -1.13. "Source Code Form" - means the form of the work preferred for making modifications. - -1.14. "You" (or "Your") - means an individual or a legal entity exercising rights under this - License. For legal entities, "You" includes any entity that - controls, is controlled by, or is under common control with You. For - purposes of this definition, "control" means (a) the power, direct - or indirect, to cause the direction or management of such entity, - whether by contract or otherwise, or (b) ownership of more than - fifty percent (50%) of the outstanding shares or beneficial - ownership of such entity. - -2. License Grants and Conditions --------------------------------- - -2.1. Grants - -Each Contributor hereby grants You a world-wide, royalty-free, -non-exclusive license: - -(a) under intellectual property rights (other than patent or trademark) - Licensable by such Contributor to use, reproduce, make available, - modify, display, perform, distribute, and otherwise exploit its - Contributions, either on an unmodified basis, with Modifications, or - as part of a Larger Work; and - -(b) under Patent Claims of such Contributor to make, use, sell, offer - for sale, have made, import, and otherwise transfer either its - Contributions or its Contributor Version. - -2.2. Effective Date - -The licenses granted in Section 2.1 with respect to any Contribution -become effective for each Contribution on the date the Contributor first -distributes such Contribution. - -2.3. Limitations on Grant Scope - -The licenses granted in this Section 2 are the only rights granted under -this License. No additional rights or licenses will be implied from the -distribution or licensing of Covered Software under this License. -Notwithstanding Section 2.1(b) above, no patent license is granted by a -Contributor: - -(a) for any code that a Contributor has removed from Covered Software; - or - -(b) for infringements caused by: (i) Your and any other third party's - modifications of Covered Software, or (ii) the combination of its - Contributions with other software (except as part of its Contributor - Version); or - -(c) under Patent Claims infringed by Covered Software in the absence of - its Contributions. - -This License does not grant any rights in the trademarks, service marks, -or logos of any Contributor (except as may be necessary to comply with -the notice requirements in Section 3.4). - -2.4. Subsequent Licenses - -No Contributor makes additional grants as a result of Your choice to -distribute the Covered Software under a subsequent version of this -License (see Section 10.2) or under the terms of a Secondary License (if -permitted under the terms of Section 3.3). - -2.5. Representation - -Each Contributor represents that the Contributor believes its -Contributions are its original creation(s) or it has sufficient rights -to grant the rights to its Contributions conveyed by this License. - -2.6. Fair Use - -This License is not intended to limit any rights You have under -applicable copyright doctrines of fair use, fair dealing, or other -equivalents. - -2.7. Conditions - -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted -in Section 2.1. - -3. Responsibilities -------------------- - -3.1. Distribution of Source Form - -All distribution of Covered Software in Source Code Form, including any -Modifications that You create or to which You contribute, must be under -the terms of this License. You must inform recipients that the Source -Code Form of the Covered Software is governed by the terms of this -License, and how they can obtain a copy of this License. You may not -attempt to alter or restrict the recipients' rights in the Source Code -Form. - -3.2. Distribution of Executable Form - -If You distribute Covered Software in Executable Form then: - -(a) such Covered Software must also be made available in Source Code - Form, as described in Section 3.1, and You must inform recipients of - the Executable Form how they can obtain a copy of such Source Code - Form by reasonable means in a timely manner, at a charge no more - than the cost of distribution to the recipient; and - -(b) You may distribute such Executable Form under the terms of this - License, or sublicense it under different terms, provided that the - license for the Executable Form does not attempt to limit or alter - the recipients' rights in the Source Code Form under this License. - -3.3. Distribution of a Larger Work - -You may create and distribute a Larger Work under terms of Your choice, -provided that You also comply with the requirements of this License for -the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and the -Covered Software is not Incompatible With Secondary Licenses, this -License permits You to additionally distribute such Covered Software -under the terms of such Secondary License(s), so that the recipient of -the Larger Work may, at their option, further distribute the Covered -Software under the terms of either this License or such Secondary -License(s). - -3.4. Notices - -You may not remove or alter the substance of any license notices -(including copyright notices, patent notices, disclaimers of warranty, -or limitations of liability) contained within the Source Code Form of -the Covered Software, except that You may alter any license notices to -the extent required to remedy known factual inaccuracies. - -3.5. Application of Additional Terms - -You may choose to offer, and to charge a fee for, warranty, support, -indemnity or liability obligations to one or more recipients of Covered -Software. However, You may do so only on Your own behalf, and not on -behalf of any Contributor. You must make it absolutely clear that any -such warranty, support, indemnity, or liability obligation is offered by -You alone, and You hereby agree to indemnify every Contributor for any -liability incurred by such Contributor as a result of warranty, support, -indemnity or liability terms You offer. You may include additional -disclaimers of warranty and limitations of liability specific to any -jurisdiction. - -4. Inability to Comply Due to Statute or Regulation ---------------------------------------------------- - -If it is impossible for You to comply with any of the terms of this -License with respect to some or all of the Covered Software due to -statute, judicial order, or regulation then You must: (a) comply with -the terms of this License to the maximum extent possible; and (b) -describe the limitations and the code they affect. Such description must -be placed in a text file included with all distributions of the Covered -Software under this License. Except to the extent prohibited by statute -or regulation, such description must be sufficiently detailed for a -recipient of ordinary skill to be able to understand it. - -5. Termination --------------- - -5.1. The rights granted under this License will terminate automatically -if You fail to comply with any of its terms. However, if You become -compliant, then the rights granted under this License from a particular -Contributor are reinstated (a) provisionally, unless and until such -Contributor explicitly and finally terminates Your grants, and (b) on an -ongoing basis, if such Contributor fails to notify You of the -non-compliance by some reasonable means prior to 60 days after You have -come back into compliance. Moreover, Your grants from a particular -Contributor are reinstated on an ongoing basis if such Contributor -notifies You of the non-compliance by some reasonable means, this is the -first time You have received notice of non-compliance with this License -from such Contributor, and You become compliant prior to 30 days after -Your receipt of the notice. - -5.2. If You initiate litigation against any entity by asserting a patent -infringement claim (excluding declaratory judgment actions, -counter-claims, and cross-claims) alleging that a Contributor Version -directly or indirectly infringes any patent, then the rights granted to -You by any and all Contributors for the Covered Software under Section -2.1 of this License shall terminate. - -5.3. In the event of termination under Sections 5.1 or 5.2 above, all -end user license agreements (excluding distributors and resellers) which -have been validly granted by You or Your distributors under this License -prior to termination shall survive termination. - -************************************************************************ -* * -* 6. Disclaimer of Warranty * -* ------------------------- * -* * -* Covered Software is provided under this License on an "as is" * -* basis, without warranty of any kind, either expressed, implied, or * -* statutory, including, without limitation, warranties that the * -* Covered Software is free of defects, merchantable, fit for a * -* particular purpose or non-infringing. The entire risk as to the * -* quality and performance of the Covered Software is with You. * -* Should any Covered Software prove defective in any respect, You * -* (not any Contributor) assume the cost of any necessary servicing, * -* repair, or correction. This disclaimer of warranty constitutes an * -* essential part of this License. No use of any Covered Software is * -* authorized under this License except under this disclaimer. * -* * -************************************************************************ - -************************************************************************ -* * -* 7. Limitation of Liability * -* -------------------------- * -* * -* Under no circumstances and under no legal theory, whether tort * -* (including negligence), contract, or otherwise, shall any * -* Contributor, or anyone who distributes Covered Software as * -* permitted above, be liable to You for any direct, indirect, * -* special, incidental, or consequential damages of any character * -* including, without limitation, damages for lost profits, loss of * -* goodwill, work stoppage, computer failure or malfunction, or any * -* and all other commercial damages or losses, even if such party * -* shall have been informed of the possibility of such damages. This * -* limitation of liability shall not apply to liability for death or * -* personal injury resulting from such party's negligence to the * -* extent applicable law prohibits such limitation. Some * -* jurisdictions do not allow the exclusion or limitation of * -* incidental or consequential damages, so this exclusion and * -* limitation may not apply to You. * -* * -************************************************************************ - -8. Litigation -------------- - -Any litigation relating to this License may be brought only in the -courts of a jurisdiction where the defendant maintains its principal -place of business and such litigation shall be governed by laws of that -jurisdiction, without reference to its conflict-of-law provisions. -Nothing in this Section shall prevent a party's ability to bring -cross-claims or counter-claims. - -9. Miscellaneous ----------------- - -This License represents the complete agreement concerning the subject -matter hereof. If any provision of this License is held to be -unenforceable, such provision shall be reformed only to the extent -necessary to make it enforceable. Any law or regulation which provides -that the language of a contract shall be construed against the drafter -shall not be used to construe this License against a Contributor. - -10. Versions of the License ---------------------------- - -10.1. New Versions - -Mozilla Foundation is the license steward. Except as provided in Section -10.3, no one other than the license steward has the right to modify or -publish new versions of this License. Each version will be given a -distinguishing version number. - -10.2. Effect of New Versions - -You may distribute the Covered Software under the terms of the version -of the License under which You originally received the Covered Software, -or under the terms of any subsequent version published by the license -steward. - -10.3. Modified Versions - -If you create software not governed by this License, and you want to -create a new license for such software, you may create and use a -modified version of this License if you rename the license and remove -any references to the name of the license steward (except to note that -such modified license differs from this License). - -10.4. Distributing Source Code Form that is Incompatible With Secondary -Licenses - -If You choose to distribute Source Code Form that is Incompatible With -Secondary Licenses under the terms of this version of the License, the -notice described in Exhibit B of this License must be attached. - -Exhibit A - Source Code Form License Notice -------------------------------------------- - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at https://mozilla.org/MPL/2.0/. - -If it is not possible or desirable to put the notice in a particular -file, then You may include the notice in a location (such as a LICENSE -file in a relevant directory) where a recipient would be likely to look -for such a notice. - -You may add additional accurate notices of copyright ownership. - -Exhibit B - "Incompatible With Secondary Licenses" Notice ---------------------------------------------------------- - - This Source Code Form is "Incompatible With Secondary Licenses", as - defined by the Mozilla Public License, v. 2.0. diff --git a/data/extensions/jsr@javascriptrestrictor/META-INF/manifest.mf b/data/extensions/jsr@javascriptrestrictor/META-INF/manifest.mf deleted file mode 100644 index 94d12b4..0000000 --- a/data/extensions/jsr@javascriptrestrictor/META-INF/manifest.mf +++ /dev/null @@ -1,622 +0,0 @@ -Manifest-Version: 1.0 - -Name: wrappingS-MCS.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: qqA53JjE+TYeho+MP5s1P/s0PKo= -SHA256-Digest: 2fOx8vYIjLr42nErRd8LyPfjaALGEBGdHL9738YKzi0= - -Name: fp_code_builders.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: enOVevpar0rVgtxwBjPRrx4t0ok= -SHA256-Digest: liUul2BopfhiRjfQU8SU7bNUBtwTVvtoap2NeuGRr9g= - -Name: wrappingS-PT2.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: zISgD0AYwd3aQMpnKaw5dDeWa10= -SHA256-Digest: Hm3Se1IsUlyi1wGkFsQIJVLLiTPJ33wMUU8+RrAFOaw= - -Name: wrappingS-ECMA-DATE.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: yEo+CcmF0tI1jKmw1ib+qUWsYkY= -SHA256-Digest: 5BEsEiE0H7RDC+JzKO3aqKq7Ygi9ThIn9BWdFTu9tA0= - -Name: wrappingS-TEMPORAL.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: pNXlvnu7Ir151PAJ+znc6+hetac= -SHA256-Digest: BAd9Kble0VNtiBQtyJw4QZ+kvhIyvrEUUeYYiOkDYlE= - -Name: wrappingL-CANVAS.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: EeTovI1VAdeK69fBvcykyvssE+Q= -SHA256-Digest: H/AxcTOkk/Sx5iFaqFohnEfLtRerTMV74RazfLTDngo= - -Name: i18n_translate_dom.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: bLeppNH/YlEym1IR2nJUY8iQ/uo= -SHA256-Digest: LMDyVtBpfyoTemLr9Ide2KTzWaHFiYsGMkuLznPZQXc= - -Name: wrappingS-COOP-SCHEDULING.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: /lr28OFTteOeVUgFY/AIngpy+vk= -SHA256-Digest: 8KK3JjPRAnLm3GhP1pWwonvcgWH62rrhQsNZOG0M9+c= - -Name: levels_browser.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 72sdCbsIHyw9EZnYfkZQTR8QCaw= -SHA256-Digest: eTo5q2caJLdrRu6zyrI+sf1nowugn1kMo3ogEckCYiE= - -Name: options.html -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: xbtGs63Urks/exht4foiBxDxLiE= -SHA256-Digest: /RZkI2DC/1jW8dymS/IgpZqRPuE88eqjsyw3kfZ7TTw= - -Name: session_hash.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: WlhKWiWJSerRhkZEN7NoBaxGjeg= -SHA256-Digest: UqgvwO4SIXGucNMzAuZ1we5bFSgmPECQpNBeE+9MWvI= - -Name: fp_detect_background.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: XWh1ta9+Qw7Na2TS7iwcAx4yqYA= -SHA256-Digest: m1696pp2fNTHjkuVqEAf5MRlxXz5P/weYEvgJeXqh1Q= - -Name: update.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: ixU/edeai2hi6I9wNKA4XHE2jmE= -SHA256-Digest: IG1iUU+a4g4c39IABujlw9f6fpfgXYreMH8szf9o8JY= - -Name: fp_report.css -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: pk+urFu6JhMTYXR37S4YLVtJ2Mk= -SHA256-Digest: B9KyS2dub6HCNwuYTd5Vt8Q5qwx8ZQ8iFasCQN4+x+s= - -Name: wrappingS-XR.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 1mKa5M2Z0abxRSgMnKkCIhtJBkQ= -SHA256-Digest: kww1BVH+ddLJT+sBq5+uemc+na9usBSUZklx6OSUlac= - -Name: wrappingS-DM.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: FmTTYvT4UeQBCCmNP4SN2tDN22c= -SHA256-Digest: FVl5WZ5QSGt2FFlB0+5EpU1GiCHzWW3KhFjmuylcNqs= - -Name: wrappingS-SENSOR-LIGHT.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: LIEwX8Tzp3OJtIPsFeyosTMtVGw= -SHA256-Digest: O+nnsHDh80kA9a2aEjqJhicOlZNK/kAY8BfSlGkDmXU= - -Name: wrappingS-HTML.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: Ncx2kus7h/iQyTVSjhpJsoTsO4w= -SHA256-Digest: Wj+Mt70ZbFenafzJRZfQL6RX7u+mh8qulalynS6yzuk= - -Name: ipv4.dat -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: waUG/WsI8tduxf5mrxPmnPqMzUE= -SHA256-Digest: NYsxbG0WecF0+BO7hFlgmAACtDfL8P5PB556Z8iarms= - -Name: popup.css -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: NEHwa2mxPudXCR1cGQOPxKh6eSw= -SHA256-Digest: eEvnjRyVpSq05xZVb/ljOTQBOYT3VrfoTbceVDDqcTc= - -Name: url.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: PfWAOB21Z4zd0bN8QayDBCJvbA4= -SHA256-Digest: F+N+oZfxthJpTNjz7tPVnBPPoTLzH9vjHfi8KIZUryQ= - -Name: farble.wasm -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: y2cmMLiaieIsO/iZcAYNJzPhHTw= -SHA256-Digest: vkhiYJKN6KQYc52l4Y6XhmyiltXE3htOrsGljPSFUq4= - -Name: settings_tweaks.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: dgc+bH56IVAiMNN0Uz7GpdZCd48= -SHA256-Digest: D7cZ14qDJEJ+zupkHerDd4VoOh3iUpQwnQXSV1uusXc= - -Name: code_builders.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: D6fVI/5ycx4mazhB5N/SVi4ngJo= -SHA256-Digest: FcxQDJIE1/QSR2DHyzJQguhU333lj3SBofjq+Lfyw7A= - -Name: options_advanced.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 5e913Elv7D0ZuJDcsBMBH9f/BIQ= -SHA256-Digest: NW5oCuRrwM15d5W+ovQbv9kpt6Hn3tVzfAcNSNazRno= - -Name: wrappingS-HTML-LS.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: uuGnjjKXlhd3UCDmQZ0o7zl6ajk= -SHA256-Digest: WYkyPHeu7lV7piS5kcZTBOI7hSE4y27oT3W+Jtq8IM0= - -Name: ipv6.dat -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: SRhTZIQ2nTeX0GIF/B8e/IuUKpQ= -SHA256-Digest: 9ImunHzGKDZACTknDe86EwUHZv2DS1g9U+ofDC3Pa20= - -Name: fp_report.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: yV1eqpF2rDCc/LKgFcCMph7TMyI= -SHA256-Digest: Spc0x25P0YvgcvTr9NTs0XcfFfbkxgKTWW+vCfqb7SE= - -Name: wrappingS-GP.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: NK97KmTET4u7wUF4XQU67w1Jk7U= -SHA256-Digest: qQ+yXy2jnNvKBzthsLmhy+C14YVkqsHmn7e8IMuv88I= - -Name: wrappingS-DOM.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: nJIBZPRY3w8sJUiuRHg62r/8VN0= -SHA256-Digest: VVmEwaVhsNJ6sWW3jSdEY1ibpd5FpZKMlnsJn0QmSLI= - -Name: options_init.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: tV+QFUmbo81Z7jB1IGEnl+cO5ZE= -SHA256-Digest: fyTvllNuszakdtR+gLB1hbwX0RpakoMk1A6JWIMacEs= - -Name: wrappingS-SENSOR-GYRO.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: vL5HoORoJh94qB4uL8pqkbQoDss= -SHA256-Digest: QGliCFp/N1qLT8cQgtk7F/VGLC7QfcV6WUz7/TyX7sA= - -Name: tweaks_gui.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: ZfuO6OyqMhbMdyZhhwsmNVeqMEs= -SHA256-Digest: SR8tPdfgZkBoDtXkpR71ZxfaZb1dAOHOF7neWYeKUr8= - -Name: wrappingS-H-C.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 2v6H5AJ1s72J5brdOYApMQ8EJCY= -SHA256-Digest: FsFNzSNMiS8gkjpUZmwoKOvHE4mGroVMol/jgY+ks+M= - -Name: wrappingS-VR.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: v4hsrgzpijh9Yt5vhaObXYYTf94= -SHA256-Digest: 6rCIUQbouuzjt7vTy1F9QA+bgR+eC44llkvotIlBDyQ= - -Name: wrappingS-WEBGL.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: R2RCVUAMhmlZwsqUTWZJnAm1yA4= -SHA256-Digest: xlvbfsr8seDN0H/92fwnjEWJX0lwyLSjLVXFs5Bz6CU= - -Name: wrappingS-EME.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: pbiv/FUmMdAN4e0KhGJ38gD/Wx0= -SHA256-Digest: xHARra6k01hIuGv/jxao1EjEbWZ8Oz4PR1KmgNiZI0c= - -Name: manifest.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: uvlYv12p24P53NYJjv/9nrQx3kU= -SHA256-Digest: cBjmC2tOu3mekzwSC9+O4jjRvqDVj/nN1T/vHjRX+8k= - -Name: wrappingS-NET.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: Uxrdfzl6CMJdUvVOztLx7fFSEj4= -SHA256-Digest: gD5IFirVoRX1gkUjPTRyUwBQr4rfBwL3WPBN1IxLfNM= - -Name: options_advanced.html -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: BAtmM2uaPsAxfgYwnpfjxNMZ8aQ= -SHA256-Digest: 7ry3J/BfxQss5w1O/da9jVMpZQB9/Izz35nzqobfdQM= - -Name: wrappingS-BE.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 7uYDTTpUaaAf9C1SwpW3pj9O0LI= -SHA256-Digest: DV1R7+O7n6yBAMmfmOs9ZJVGNSWNIc2b3/R6HOVjUec= - -Name: options.css -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: /oKuSHP/fiuvd5Ue70wNOu4CmrU= -SHA256-Digest: njL2GVBrLnclpdMUSCcQ1lj5LMGgXEnIFCAPQALPRy4= - -Name: level_cache.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: fYGvZBThvPTsAc+JG+s7x2ti/GM= -SHA256-Digest: Tq6LhU1KtwW3hKpByBEyWc/Za9+YXwh0oTLPFH5PBlw= - -Name: background.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: wbttq2l8eV6/PDqrlIcm5bhjuUk= -SHA256-Digest: 95VInAN+d3aWqy+9+StLSRP+7UBZeX57a2OQ01tM2gU= - -Name: wrappingS-HTML5.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: yztXzw5G3Bo9TwjcEn46P8fG0as= -SHA256-Digest: 1iwQ0YJX4XhPpS1iYQ3UOmocthk6uHVg1MOF0YG1Iqw= - -Name: wrappingS-NP.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: hJ/LXoVaOy4EZDDOWjoYLEuZ5XY= -SHA256-Digest: evVoVl5uK1B5qI5Ns7Hqsb+NkFKOBlgPgMO4sQKX30k= - -Name: fp_report.html -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: r8NMaD77xe69NlcQI39r1CQikqM= -SHA256-Digest: yGrhz8hxTg19ct+Z1HlTIz6wTd870eU61UIq6Up2Bcs= - -Name: wrappingS-WEBA.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: mCqLG7sAMseBZfrTxT6K0E7JDto= -SHA256-Digest: M06g1kH18JuULaIe5L/MI1EOHJ5TgcLQiFGraO+L3uE= - -Name: wrappingS-ECMA-ARRAY.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: jtEO9liQLV6kPM4wRndhMeaw40E= -SHA256-Digest: TnT9yzyMlsarwjULoUXLOPZbKaYzvSU+v7i/4yq5lcA= - -Name: wrappingS-IDLE.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: l/El60UR6r+bDygEE5EejDK8dPU= -SHA256-Digest: Y5DI2oTaBtvSuY0KlIchsWmOCtT0r92fRLoqn5do5ts= - -Name: http_shield_common.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: kNZPvYvIu8/q73uhpv5i/624hsU= -SHA256-Digest: Z66jza7VW2NytbRsq6kkXe5duIvmb5hml8ZPS/I5UYY= - -Name: wrappingS-HRT.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: qr12WhfyOQ1th499AXJAwwnHbSU= -SHA256-Digest: taVFbL4rKgxaCCyd2lE4dqKz0uKEpQPKjHR/lhB0yfE= - -Name: popup.html -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: n8Hhi6u4c4yUZLlNm39GKgYwsmA= -SHA256-Digest: rAH3KyTOyRCsB29mYXnOhyqMWPfoVXm2HGLcw4iU3sE= - -Name: wrappingS-SENSOR-MAGNET.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: jEncy21tXs/Dw8IftLOcXx5Gnd8= -SHA256-Digest: JOG1OoUuXUUcmcV17NsLMaPQnuCPw3/7a+RKtV5n6nQ= - -Name: levels.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: YkJ1DosAEkuWAz33CUfRQCO/Lm0= -SHA256-Digest: b/GliwyApuaAt7ew1YZUuvWCt6i5X8wGxAqJgl6YHVQ= - -Name: wrappingS-MEDIA-CAPABILITIES.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 7JVRWoX9fvE4NotwPrs5YJYGIKg= -SHA256-Digest: VX/1I5t0+GEEsAYdYASMQ0VupRF9Kqdow8HlVzjlrNE= - -Name: options_nbs.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: h3P/IZQ4cvzytOYh2Smz4XFHE3Y= -SHA256-Digest: +nuxi7EKQMGCwuViCJHydualO/at8yiwR3qA5dQ6h78= - -Name: common.css -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: tsJdSEfI36fh9oUoVdK6/Qdwa6U= -SHA256-Digest: rcYP9iT2tHm7PgxGQv2ZcMfuoONRlHM/QCifNdNMJ2A= - -Name: options.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: ZmVXI+04j43I67Tks5qqmA7iV2Y= -SHA256-Digest: Mqc7QBRBNcQDK5aHUcjehzYpeha53KxX/ZA9/nW2I78= - -Name: wrappingS-ECMA-SHARED.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: ojT9vwkjOPnrQvSONZ2Lbk+T+sM= -SHA256-Digest: miT/l8cjdvq0XW3EoSMybEGpZ/rQ34XzYrZOkMVa1B0= - -Name: crc16.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: T97r2grez4dAiyuKv/vLo6Yd0yk= -SHA256-Digest: a0IfR18X0joyJvCPY2UKRvvBgdbg7e+VENaaiAix4Vg= - -Name: alea.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 5O2DZ0bvydRHS9mNry4GicStzOw= -SHA256-Digest: kU+HKcdrshA3zzIH1wFWtkw1lw/2O6El8UCFSOvLxEc= - -Name: fp_levels.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: ab0GNDLJWyq/GOdtKprjMaBurg0= -SHA256-Digest: 0KoPeNXhguHjT7W7MX4wCgFu9y+szxxnw00BQERv9AA= - -Name: options_domains.html -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: tfMnBf9B40KLpMCoCfsB3PS4qJY= -SHA256-Digest: Cs6IADD2nqzzQ439pRMBOTDiEWosVaAwO/aIr1A0mlw= - -Name: wrappingS-SENSOR.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: Q6VYuBsZC8melxGIMOKL855B2Tk= -SHA256-Digest: z2Ws0UPu+eOGD7zUg/HrrZdPJqNd+tA8a+O+xXfHk+s= - -Name: http_shield_firefox.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 6lb3fXUX+vYdv/Xj7E3Gh3J3OAc= -SHA256-Digest: azcLJExqs0Z+OTIEk+2C5UdOqQtkQdAJG+pp7D7Dlp8= - -Name: wrappingS-GEO.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: XQONgEBYJMmXIC1tG7KweYzgB7s= -SHA256-Digest: 8Cl+DoQUK/Jwa1pN57tNEiJJgUbTneJkGK0xzGH5aRY= - -Name: document_start.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: wRuY5bCWKLee/hpzbpg4nAhaXKY= -SHA256-Digest: +xBQLcJ+YBE9lbT7uYnZZzWBiy3tSiRFahLjCZU10/A= - -Name: options_domains.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: rt3zMuBXLMcgJDwR66J+U33XvLQ= -SHA256-Digest: sIEEO9iCXMLPUvJ31XO++cfCKMmVjKWmygNeFXyzyaQ= - -Name: wrappingS-BATTERY-CR.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: QGDEWVL+YpIt+1MgZfD6PFogKac= -SHA256-Digest: IMddUyyCdrp1T8Z+fqDMD65CgzAGbUVZnX7igl+cez4= - -Name: wrappingS-SENSOR-ORIENT.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 5deLl6e4r0RRTVn3xaSoVYjG8eI= -SHA256-Digest: sRGEaTas+cBbo5T5veBwAd8LYyHvg+S8Gq/+Y6DT1aY= - -Name: helpers.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: lhUkzuVBLgx/ygDLjqJdbZM5UIk= -SHA256-Digest: mc3tNDv6msWf5/b0Hzs66vG78Vyd1r5TN3P277V8NO8= - -Name: wrappingL-SENSOR.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: vYJq0a3K9xaICF1z/wWK5FdQBRs= -SHA256-Digest: CStPywwRq2VS4fTjQX6Ed9RpMfkHgLegs0hzvjqukzA= - -Name: popup.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: k/euU58Xyw+LpovE7AiiDBIKxf4= -SHA256-Digest: 289n2AXInS/MZh3h0PKTPlLrcxjiOQw+nmQmTP1ZWVM= - -Name: wrappingS-SENSOR-ACCEL.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: LzcVqb+rbXhEw+ncVRAhWqxBhcc= -SHA256-Digest: sLCl5v5TFB6WJgkS2i80W5SaPijM5XtQ60ufq3mKvds= - -Name: wrappingS-NFC.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: KbdOKYQNqXEWbISUVdHnvfhYyKc= -SHA256-Digest: xHWrw+WAmLKW4I9z/0JKEUz6DN65KgfmSvp4bODNvpw= - -Name: wrappingS-AJAX.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 1W/XsBl537cHjDGZrrQrc99Xhv0= -SHA256-Digest: RHPSC8EA/zuyvq7wYzkyWjA9CuHhh/5oL5k13qfMH5U= - -Name: wrapping.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: R2RJB7gjqH1S9EBlaD9QiQscc04= -SHA256-Digest: 8vTPjlp92h2Jy/DaOIAfTumDU72O1LQClH/oKJDRm80= - -Name: img/icon-512.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 8A+OqREyU5uPYaOlNzniGauDst4= -SHA256-Digest: kltvUYdQoDVZjVBuzjyvPOqWQHILeGS/YRpCCmaHvdo= - -Name: img/icon-16.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: KJr3cioJVlOZeFN8MmKuZeXPLDo= -SHA256-Digest: va7y6fe656lxphwmphFlO6IZARzUUbZywAs3nDu7vJ8= - -Name: img/icon-64.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: eyK7DY2xw58Th8+nNZbzdwqLbuc= -SHA256-Digest: Yxel5v3nXBt7QpQRuNiZvuwVv13ssvs6S1aZUPWbLfw= - -Name: img/icon-48.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: cbZYEa/OHHuAFkk6xXU14gXfuW0= -SHA256-Digest: 0NBsv3Z8kb1K0hUKJ0Uz4aEjuIWM2i5N+KjD0fGCK40= - -Name: img/icon-38.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: kxG2j1Os8WGFMdblvCQqFcXOOFQ= -SHA256-Digest: fvFyI+G0hOVKjzbOAieqlfEdojX07upx0SZ+UzzSEv0= - -Name: img/logo.svg -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: MAC5HsuRIriIbiTdzvKU9yXaDxM= -SHA256-Digest: 1E9mKXOt5nhS6B1jLal3AlTx8E2Eu0cwuJhOp49BoTA= - -Name: img/icon-128.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 8B8R+b7j9d/jTOWLr9Vd5ad7Kms= -SHA256-Digest: wlWmfIkqnj1AmEIN/aOf4S7D4t7VXTxKpHzjLvpLlgQ= - -Name: img/icon-256.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: QfitxJlPICDa47LOLx7tpsFRjnE= -SHA256-Digest: rxW8kBZmzU598uulbmt0/+8nqQ5QJLvcD0qinUFRm4I= - -Name: img/icon-19.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: zPOZTw/GlVfLlnu1ZjS1VXr3BY8= -SHA256-Digest: g0txYGv8CXX7aQMq5OJoSvJfXIENs/RzqlFb/w+CoYI= - -Name: img/icon-32.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: G0is2ZkT2onAEVptZg+CGgb7hMk= -SHA256-Digest: 1/kyBDDIZpOKVZ0Z4pRVa38ssnCT1ABJIwbOHCdrI70= - -Name: img/icon-96.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 3sGba/XswnppYsaIvfTwz53/kG8= -SHA256-Digest: jUEMyBE/uHZNePtPcexlRJJG3t/GK+iliO2DG6Yl/mA= - -Name: lib/sha256.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: gD41L2w5Df8fUa/G7hFq54BXjaw= -SHA256-Digest: ENvJL72y7Tk5wW6pxybHZT9ex9/bAQyZBEBCaMtCSgg= - -Name: fp_config/groups-lvl_0.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: tM7YSIGu2lT7KPlQTzIv/olpuJQ= -SHA256-Digest: PRWuiq+beNrdL7ZvGhZKV4ys/YaXWGt+AL2gcxP9Fb0= - -Name: fp_config/wrappers-lvl_0_1.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: Pgolf0CBR/pJJapNrVwY4Z1+nus= -SHA256-Digest: SeynVsnuZtz3mWJnErfRkWb/vQ1Ur4g1J43vK69So5s= - -Name: fp_config/groups-lvl_1.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 9l5nDa6C5LH3m7x0TeR/VAb9qIE= -SHA256-Digest: kideCOUQOvNn2lFfQ2qX+N0Ei9uSeZiiX/tli9sVPAc= - -Name: fp_config/schema/groups-schema.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: cRyyq4R4rb0S9acniPSio9N9IVc= -SHA256-Digest: Pppil6fKHlXc6ODUeqacNR6ECGrFnLt7zPZ2aAzdmR8= - -Name: fp_config/schema/wrappers-schema.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: sT48AMsi88DRPJXIN+KMG5G9B7o= -SHA256-Digest: s5Znx+0YIoLeF6kaZUiIKx3ULTsIsnyO4yjGQHxDZos= - -Name: _locales/en/messages.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: eqI/z1pljoBYwj+K85yUwQ3haE0= -SHA256-Digest: 3FegKBCH6v567F6UQGMvI12POS9KZPsh60KABPmarfE= - -Name: _locales/pt_BR/messages.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: zHILGsJQ8c2OD4WtF2MDbpHe5w4= -SHA256-Digest: 5IgvFyxQQ/Y4VENI4zlpwYn7zsTBpMYjUaNOJPSXUWY= - -Name: _locales/fr/messages.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: FLMqd0ViUyp1nei/LDAtDZdFDk8= -SHA256-Digest: dwGtlxxiw2k1RQV+tWBqDjWKIbRmEZs7UvX9w1SeK3Y= - -Name: _locales/cs/messages.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: gPmRzVPX4sUpJVNUBxRthptQuIU= -SHA256-Digest: cYzSTVVKX2NRGeCGSPzlvYy/IGYvy9SSQZHyKTc9j7U= - -Name: _locales/ru/messages.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: fuoMpYQ7p1TlmdvAkVIpRuBusCg= -SHA256-Digest: eISVQf1mW8BCr01+97mpnFU5IDZbpFJj+koRA0C/sfA= - -Name: _locales/pl/messages.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: iQohMk3v0v9Kz0uE/YTWC40QukM= -SHA256-Digest: US4aQ5Kx4clO+4JVLrN8TD90lh/WODZNm76qFWKqiDI= - -Name: _locales/fi/messages.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: B4ZRnJ/aDP1uRwsEcuGmim5PhQc= -SHA256-Digest: /t84+mxYSVUlbPsgNQi5bNNifXo4/8bXZHGI9xBp7iI= - -Name: nscl/common/CachedStorage.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: PyKWB74AhdYufTt5ycFH5oxNwG4= -SHA256-Digest: hzV03Ki6oMod8uqM0YTbZuUmxbG/SU4uGxQtWGR6f4E= - -Name: nscl/common/sha256.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: Mc6KpU114RI0vBf8fgeOpvd4NQs= -SHA256-Digest: P+mIm+OaI9QNrtKR0hUC/tuHcGzs3NmuAxVmk2yafGQ= - -Name: nscl/common/log.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: MTDbdNJVuKNYF3U+zHB3o4Mk4Ek= -SHA256-Digest: htnNTrimeTxwO+cudrIpbiTY66WV5MMWVJ8fTdBh5tY= - -Name: nscl/common/SyncMessage.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: mYlOq9QU3Yb49a2wiRdgn1rqlmc= -SHA256-Digest: m8fTTGTOSfadn+llZfXiyKB94oDKe4dQQZ3RFtNAtvQ= - -Name: nscl/common/tld.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: FKnzjnnzBtIDYwx8AynXGvXV3e0= -SHA256-Digest: qhNoQKpsCIxxM7axO1AFU5LLuTbpJsBDGoigUCng+J0= - -Name: nscl/common/uuid.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: EotG41puoKWqhp2Ph4mL5WSJ37w= -SHA256-Digest: jeVLN3a6Rk9X1gabGoRfZS/Nu81YXrnQP6Po5NeCtOI= - -Name: nscl/common/SyncMessage/request.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: +YUS2vR4q7BmdNVG7CJU8fm5ApU= -SHA256-Digest: yKfL7lJsE09cOIGGpA1peFWFMT29NrOuvF4KhDqV3jU= - -Name: nscl/common/SyncMessage/response.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: w9zbLomHb3KI23r5hYrPiEqsKu4= -SHA256-Digest: QrSvFDgPxoWZjYq0w4ZgWS2/FR1cRwry2F2XP47TOYM= - -Name: nscl/content/patchWindow.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: t94zb3UniPQu9E7ofb8oZc099mM= -SHA256-Digest: Vk8P92hGntF0hhog4I206McLd++Ezzk9ZvAFvpQwtpw= - -Name: nscl/lib/browser-polyfill.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: zfSg4LFfyXjg9QtA5oEt4rX1+GQ= -SHA256-Digest: kKI8ay2xqAigQmfqwvQg6QVN7FWzDy4x6kdEsIo1T3g= - -Name: nscl/service/TabCache.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: FVNJpilxvd/8A+bhZCn4x9y2muM= -SHA256-Digest: SGE86goASUOVlUhp+hMzj8iddsdSnFLleQ3SqKD0USk= - -Name: nscl/service/DocStartInjection.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: //Lw2v3Kp4QNQ6YeO/DStD5UAxg= -SHA256-Digest: +8bxKKUlAiJtdnHec3V5vBXvzWQ25RQf2UUFj96bK4c= - -Name: nscl/service/NavCache.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: YXNaV4J+JCgBLI/Ivvypi8p6a6w= -SHA256-Digest: Wam1X7hpjMAmxnwEZXWypa2qz4QiHMXwc/Zkec6U3Ec= - -Name: LICENSES/CC-BY-4.0.txt -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: QtZJTVExeCZ4ncIGTGRA8NREg3Y= -SHA256-Digest: 1VdTnfaOdxzB7tzJHRP3D8qTDlCNEe7cr6SxXbSeN0Q= - -Name: LICENSES/MPL-2.0.txt -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 1+PtWsFJrB4tLg9Nr/CBwdr+8cA= -SHA256-Digest: Pz2eACSxkhsGfW9/iN60pgy+enjnbGTj8df8O3ebnQQ= - -Name: LICENSES/CC0-1.0.txt -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: gtpHL20A3F8KZR8z67Mgqpx7CNA= -SHA256-Digest: ogEPNDSH0/dhiv/lT3ifVIdgIzHAqNA/SemnxUfPBJk= - -Name: LICENSES/GFDL-1.3-no-invariants-or-later.txt -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: n0tOh7YGx5Xi/xJlIv7CVUb7M18= -SHA256-Digest: 0CSWLx9JZsECtA2f2cyDSj8LPBOXtBREt815JWQNySk= - -Name: LICENSES/GPL-3.0-or-later.txt -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: MaPUYLs8fZiEUYfHFqMNuBxEthU= -SHA256-Digest: OXLcl0T2SZ8Pmy2/dmlvKuetivmyPd5m1q+Gyd+zaYY= - -Name: LICENSES/CC-BY-ND-4.0.txt -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: qubAfBNgLC6jZ29X/XVKrC8laqg= -SHA256-Digest: Sp1GXpga5r3n8Rerv7DiTyzBgg6ZpH775YWT+lxD+ik= - -Name: LICENSES/MIT.txt -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: wJVbU1Gx3K/dC5uy1+hP4OPXMco= -SHA256-Digest: y1rtspbFJG0fIukJn5JaZRRvnw1rTuu6l/0nps27qy0= - -Name: META-INF/cose.manifest -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: +WihLUXUaQkfBO/uQigia67P4d0= -SHA256-Digest: Y9CWj7I7ME6qekQoNsPqdo85k/womSlOLRitEW05M/M= - -Name: META-INF/cose.sig -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: M977i49TmTelSIEDfhvGuTG52aM= -SHA256-Digest: BW0NK3lZmos/PR0pYI1y1uTcWjklC+h+ww7zYVN2aWU= - diff --git a/data/extensions/jsr@javascriptrestrictor/META-INF/mozilla.rsa b/data/extensions/jsr@javascriptrestrictor/META-INF/mozilla.rsa Binary files differdeleted file mode 100644 index c4332cf..0000000 --- a/data/extensions/jsr@javascriptrestrictor/META-INF/mozilla.rsa +++ /dev/null diff --git a/data/extensions/jsr@javascriptrestrictor/META-INF/mozilla.sf b/data/extensions/jsr@javascriptrestrictor/META-INF/mozilla.sf deleted file mode 100644 index c613fc7..0000000 --- a/data/extensions/jsr@javascriptrestrictor/META-INF/mozilla.sf +++ /dev/null @@ -1,4 +0,0 @@ -Signature-Version: 1.0 -SHA1-Digest-Manifest: NjfJ3yXis+3Nqzofzq+uLs+2oUo= -SHA256-Digest-Manifest: l7ZLRFFf7TfzsPPsdOuyQfKvgqN3N+fddTLH+zEBw2U= - diff --git a/data/extensions/jsr@javascriptrestrictor/_locales/cs/messages.json b/data/extensions/jsr@javascriptrestrictor/_locales/cs/messages.json deleted file mode 100644 index d43f800..0000000 --- a/data/extensions/jsr@javascriptrestrictor/_locales/cs/messages.json +++ /dev/null @@ -1,1622 +0,0 @@ -{ - "extensionName": { - "message": "JShelter", - "description": "Jméno rozšíření. Prosím nepřekládat pokud není patřičně zdůvodněno." - }, - "extensionDescription": { - "message": "Rozšíření pro zvýšení bezpečnosti a soukromí uživatele prohlížeče.", - "description": "Description of the extension." - }, - "javascriptShield": { - "message": "JavaScriptový štít", - "description": "The name of the JavaScript Shield displayed at multiple places" - }, - "networkBoundaryShield": { - "message": "Štít pro ochranu hranice sítě", - "description": "The name of the Network Boundary Shield displayed at multiple places" - }, - "NBSgloballyOff": { - "message": "Štít pro ochranu hranice sítě je úplně deaktivovaný", - "description": "Informs the user that NBS is globally disabled, displayed e.g. in popup" - }, - "fingerprintDetector": { - "message": "Detektor získávání otisku prohlížeče", - "description": "The name of the Fingerprint Detector displayed at multiple places" - }, - "FPDgloballyOff": { - "message": "Detektor získávání otisku prohlížeče je úplně deaktivovaný", - "description": "Informs the user that FPD is globally disabled, displayed e.g. in popup" - }, - "globalSettings": { - "message": "Globální nastavení", - "description": "The button in the popup that opens options page" - }, - "settingsForDomain": { - "message": "Nastavení pro doménu", - "description": "The text in the popup that introduces the context of the information in the popup" - }, - - "refreshPage": { - "message": "Obnov stránku", - "description": "The button in the popup that refreshes the currently displayed page" - }, - "modifyJSSPopup": { - "message": "Upravit", - "description": "The button in the popup that tweaks JSS" - }, - "descriptionMore": { - "message": "(více…)", - "description": "Used for example in the popup in the description text of the currently applied level when JShelter gives user the option to get more information about the level." - }, - "descriptionLess": { - "message": "(skryj…)", - "description": "Used for example in the popup in the description text of the currently applied level when JShelter gives user the option to get less information about the level." - }, - "nameDescriptionSeparator": { - "message": " — ", - "description": "Used for example in the popup to separate the current JSS level from its description." - }, - "detailTweaksOfJSShieldForThisSite": { - "message": "Podrobná nastavení JavaScriptového štítu", - "description": "Button in the popup that allows to tweak JSS." - }, - "wrappers": { - "message": "Skupiny volání", - "description": "Column headding in the popup detailed JSS shield" - }, - "levelOfDefense": { - "message": "Úroveň aplikované ochrany", - "description": "Column headding in the popup detailed JSS shield" - }, - "numberOfCalls": { - "message": "Počet volání API", - "description": "Column headding in the popup detailed JSS shield" - }, - "FingerprintQualityLabel": { - "message": "⤷ Počet API zneužitelných pro tvorbu otisku prohlížeče volaných stránkou: ", - "description": "This text is displayed in the popup as additional information from FPD" - }, - "popupDefaultLevelHelpText": { - "message": "Nastav úroveň ochrany pro tuto stránku na globálně nastavenou výchozí úroveň.", - "description": "This text is displayed in the popup as a tooltip for the Default level button" - }, - "defaultLevelSelection": { - "message": "Výchozí úroveň ($levelName$)", - "description": "This text is displayed as the default level in the popup", - "placeholders": { - "levelName": { - "content": "$1", - "description": "Translated name of the default level used by the user", - "example": "Recommended, see the keys JSSL*Name like JSSL2Name" - } - } - }, - "ShieldOffSlider": { - "message": "Vyp.", - "description": "Displayed in sliders that control activation of shields in popup and options, keep the text short to prevent overflow" - }, - "ShieldOnSlider": { - "message": "Zap.", - "description": "Displayed in sliders that control activation of shields in popup and options, keep the text short to prevent overflow" - }, - - "jssgroupUnprotected": { - "message": "Bez ochrany", - "description": "Displayed during JSS level tweaking in case the API group is completely disabled" - }, - "jssgroupPoor": { - "message": "Slabá", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupLow": { - "message": "Nízká", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupMedium": { - "message": "Střední", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupHigh": { - "message": "Vysoká", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupLittleLies": { - "message": "Drobné lži", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupStrict": { - "message": "Přísná", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupConfuse": { - "message": "Zmatení", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupFake": { - "message": "Falešné", - "description": "Displayed during JSS level tweaking for InstalledBrowserPlugins and possibly more (in the future)" - }, - "jssgroupAddFake": { - "message": "Přidej falešné", - "description": "Displayed during JSS level tweaking for Connected cameras and microphones and possibly more (in the future)" - }, - "jssgroupAsk": { - "message": "Ptej se", - "description": "Displayed during JSS level tweaking for XHR and possibly more (in the future)" - }, - "jssgroupBlock": { - "message": "Blokace", - "description": "Displayed during JSS level tweaking for XHR and possibly more (in the future)" - }, - "jssgroupRemove": { - "message": "Odstraň", - "description": "Displayed during JSS level tweaking for several API groups" - }, - - "jssgroupTimePrecision": { - "message": "Přesnost měření času" - }, - "jssgroupTimePrecisionDescription": { - "message": "Znesnadňuje a brání útokům a získávání otisku prohlížeče vyžadující přesné měření času.", - "description": "Displayed at various places" - }, - "jssgroupTimePrecisionDescription2": { - "message": "Omezuje přesnost časových značek dostupných v API jako je $apis$. Časové značky Geolocation API jsou také změněny, pokud je zároveň aktivní ochrana „$jssgroupPhysicalLocationGeolocation$“.", - "description": "Displayed at various places", - "placeholders": { - "apis": { - "content": "Date, Performance, Gamepad API, Web VR API a v rámci událostí", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - }, - "jssgroupPhysicalLocationGeolocation": { - "content": "$1", - "description": "Translated version of the jssgroupPhysicalLocationGeolocation string" - } - } - }, - "jssgroupTimePoorDescription": { - "message": "Zaokrouhluje čas na setiny sekundy (1.230)", - "description": "Explains the protection to the user" - }, - "jssgroupTimeLowDescription": { - "message": "Zaokrouhluje čas na desetiny sekundy (1.200)", - "description": "Explains the protection to the user" - }, - "jssgroupTimeHighDescription": { - "message": "Přidává šum do desetinných míst (1.451)", - "description": "Explains the protection to the user" - }, - - "jssgroupLocallyRenderedImages": { - "message": "Lokálně generované obrázky", - "description": "htmlcanvaselement group" - }, - "jssgroupLocallyRenderedImagesDescription": { - "message": "Chrání před získáváním otisku prohlížeče založeném na generování obrázků lokální grafickou kartou (Canvas fingerprinting), nebo získávání informací o chování grafické karty.", - "description": "Displayed at various places, try to keep canvas in English or make sure that the user can understand that the protection is about the Canvas API" - }, - "jssgroupLocallyRenderedImagesDescription2": { - "message": "Funkce $apis$ vrací modifikované informace.", - "description": "Displayed at various places", - "placeholders": { - "apis": { - "content": "canvas.toDataURL(), canvas.toBlob(), CanvasRenderingContext2D.getImageData(), OffscreenCanvas.convertToBlob() a WebGLRenderingContext.readPixels", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupLocallyRenderedImagesDescription3": { - "message": "Výsledky $apis$ jsou modifikovány jen s určitou pravděpodobností.", - "description": "Displayed after jssgroupLocallyRenderedImagesDescription2", - "placeholders": { - "apis": { - "content": "CanvasRenderingContext2D.isPointInStroke() a CanvasRenderingContext2D.isPointInPath()", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupLocallyRenderedImagesLittleLiesDescription": { - "message": "Drobně upravuje generované obrázky tak, aby vizuálně vypadaly stejně, ale přesné hodnoty se lišily v závislosti na doméně a sezení. Cílem je znemožnit, či ztížit Canvas fingerprinting.", - "description": "Consider keeping reference to Canvas fingerprinting in English" - }, - "jssgroupLocallyRenderedImagesStrictDescription": { - "message": "Vrací bílé obrázky. Plátno (canvas) WebGL vrací prázdné pole. Nechrání před Canvas fingerprintingem.", - "description": "Consider keeping reference to Canvas fingerprinting in English" - }, - - "jssgroupLocallyGeneratedAudio": { - "message": "Lokálně generované zvuky", - "description": "audiobuffer group" - }, - "jssgroupLocallyGeneratedAudioDescription": { - "message": "Chrání před získáváním informací o schopnostech generování zvuku, např. zvukovou kartou, které lze využit např. pro vytváření otisků prohlížeče založeném na analýze generovaného audia (audio fingerprinting).", - "description": "Try to keep reference to audio fingerprinting" - }, - "jssgroupLocallyGeneratedAudioDescription2": { - "message": "Modifikuje výsledky funkcí $apis$.", - "placeholders": { - "apis": { - "content": "AudioBuffer.getChannelData(), AudioBuffer.copyFromChannel(), AnalyserNode.getByteTimeDomainData(), AnalyserNode.getFloatTimeDomainData(), AnalyserNode.getByteFrequencyData() a AnalyserNode.getFloatFrequencyData()", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupLocallyGeneratedAudioLittleLiesDescription": { - "message": "Přidává drobný šum k amplitudě tak, aby byl zvuk pro člověka podobný původnímu zvuku. Přesné hodnoty se však liší na různých doménách a v rámci různých sezení. Cílem je chránit před Audio fingerprintingem, nebo jej alespoň udělat těžším.", - "description": "Consider keeping reference to Audio fingerprinting in English" - }, - "jssgroupLocallyGeneratedAudioStrictDescription": { - "message": "Zvuková data jsou nahrazené bílým šumem, který se liší podle navštívené domény a v rámci různých sezení Cílem je omezit informace, které unikají o zvukovém hardware a zároveň zkomplikovat získávání otisku prohlížeče (Audio fingerprinting).", - "description": "Consider keeping reference to Audio fingerprinting in English" - }, - - "jssgroupGraphicCardInformation": { - "message": "Informace o grafické kartě", - "description": "webgl group" - }, - "jssgroupGraphicCardInformationDescription": { - "message": "Podvrhnout informace o grafické kartě, např. pro ztížení získávání otisku prohlížeče." - }, - "jssgroupGraphicCardInformationDescription2": { - "message": "Funkce $api$ vrací modifikované hodnoty pro vybrané parametry.", - "placeholders": { - "api": { - "content": "WebGLRenderingContext.getParameter()", - "description": "Keep the names of the API" - } - } - }, - "jssgroupGraphicCardInformationDescription3": { - "message": "$apis$ vrací modifikované výsledky.", - "placeholders": { - "apis": { - "content": "WebGLRenderingContext functions .getFramebufferAttachmentParameter(), .getActiveAttrib(), .getActiveUniform(), .getAttribLocation(), .getBufferParameter(), .getProgramParameter(), .getRenderbufferParameter(), .getShaderParameter(), .getShaderPrecisionFormat(), .getTexParameter(), .getUniformLocation(), .getVertexAttribOffset(), .getSupportedExtensions() a .getExtension()", - "description": "Keep the names of the API but translate the punctuation and conjunctions" - } - } - }, - "jssgroupGraphicCardInformationLittleLiesDescription": { - "message": "Nahraď původní hodnoty rozumnými čísly, nebo náhodnými řetězci, které se liší podle navštívené domény a napříč sezeními. Cílem je omezit informace o grafickém hardware a zároveň ztížit získávání otisku prohlížeče." - }, - "jssgroupGraphicCardInformationStrictDescription": { - "message": "Vrať prázdné hodnoty (null, prázdné řetězce). Pozor, toto nastavení nebrání získávání otisku prohlížeče." - }, - - "jssgroupInstalledBrowserPlugins": { - "message": "Nainstalované rozšiřující moduly prohlížeče", - "description": "plugins group" - }, - "jssgroupInstalledBrowserPluginsDescription": { - "message": "Chraň před tvorbou otisku prohlížeče založenou na seznamu nainstalovaných rozšiřujících modulů prohlížeče." - }, - "jssgroupInstalledBrowserPluginsDescription2": { - "message": "Tato ochrana se neuplatňuje pokud prohlížeč vrací prázdný seznam rozšiřujících modulů, nebo tento seznam obsahuje pouze pět modulů specifikovaných HTML living standard. Takže se tato ochrana neuplatňuje v moderních prohlížečích.", - "description": "The protection is not applied in modern browsers" - }, - "jssgroupInstalledBrowserPluginsLittleLiesDescription": { - "message": "Přidej dva falešné moduly.", - "description": "" - }, - "jssgroupInstalledBrowserPluginsFakeDescription": { - "message": "Vrať pouze dva falešné moduly.", - "description": "" - }, - "jssgroupInstalledBrowserPluginsStrictDescription": { - "message": "Nevracej žádný modul.", - "description": "" - }, - - "jssgroupConnectedCamerasAndMicrophones": { - "message": "Připojené kamery a mikrofóny" - }, - "jssgroupConnectedCamerasAndMicrophonesDescription": { - "message": "Braň před tvorbou otisku prohlížeče založené na informacích o připojených zařízeních typu kamera a mikrofón." - }, - "jssgroupConnectedCamerasAndMicrophonesDescription2": { - "message": "Funkce $api$ vrací upravené výsledky.", - "placeholders": { - "api": { - "content": "MediaDevices.enumerateDevices()", - "description": "Keep the names of the API" - } - } - }, - "jssgroupConnectedCamerasAndMicrophonesLittleLiesDescription": { - "message": "Náhodně změní pořadí zařízení. Skutečná zařízení jsou označená jinými identifikátory na různých doménách a napříč sezeními." - }, - "jssgroupConnectedCamerasAndMicrophonesAddFakeDescription": { - "message": "Přidá 0-4 zařízení a změní pořadí. Skutečná zařízení jsou označená jinými identifikátory na různých doménách a napříč sezeními.", - "description": "" - }, - "jssgroupConnectedCamerasAndMicrophonesStrictDescription": { - "message": "Nevrací žádné informace o připojených zařízeních.", - "description": "" - }, - - "jssgroupHardware": { - "message": "Informace o operační paměti a procesoru", - "description": "hardware group" - }, - "jssgroupHardwareDescription": { - "message": "Podvrhni hardwarové informace o množství operační paměti a procesorů." - }, - "jssgroupHardwareDescription2": { - "message": "API $apis$ vrací modifikované hodnoty.", - "placeholders": { - "apis": { - "content": "navigator.deviceMemory a navigator.hardwareConcurrency", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupHardwareLowDescription": { - "message": "Vrací náhodnou platnou hodnotu mezi minimální a skutečnou hodnotou. Návratová hodnota se liší na různých navštívených doménách a napříč sezeními." - }, - "jssgroupHardwareMediumDescription": { - "message": "Vrací náhodnou platnou hodnotu mezi minimální a 8. Návratová hodnota se liší na různých navštívených doménách a napříč sezeními." - }, - "jssgroupHardwareHighDescription": { - "message": "Vrací 4 pro navigator.deviceMemory a 2 pro navigator.hardwareConcurrency.", - "description": "Keep the names of the APIs in English" - }, - - "jssgroupNetworkConditions": { - "message": "Stav sítě", - "description": "net group" - }, - "jssgroupNetworkConditionsDescription": { - "message": "Blokování přístupu k informacím o stavu sítě, např. pro omezení získávání informací pro tvorbu otisku prohlížeče a zamezení zneužití informací pro sledování vzorů chování uživatele při přístupu k sítím, např. pro zjištění, jestli je uživatel doma, v práci, nebo cestuje.", - "description": "" - }, - "jssgroupNetworkConditionsRemoveDescription": { - "message": "Odeber API NetworkInformation", - "description": "Keep the name of the API in English" - }, - - "jssgroupXMLHttpRequestRequests": { - "message": "Přenosy dat pomocí XMLHttpRequest (XHR)", - "description": "Keep the name of the API in English" - }, - "jssgroupXMLHttpRequestRequestsDescription": { - "message": "Filtruje spolehlivé přenosy informací na server pomocí API XHR." - }, - "jssgroupXMLHttpRequestRequestsDescription2": { - "message": "Pozor, API XHR se naprosto běžně používá pro nezávadné přenosy. Zároveň mějte na paměti, že tato volba neřeší obdobná API, jako jsou $apis$, která dovolují přenos dat k serveru. Pokud si nejste jisti, že víte, co děláte, ponechte tuto skupinu neaktivní. JShelter nadále poskytuje úpravy XHR pro experimentální použití. Pro blokování přenosů dat potřebných pro tvorbu otisku prohlížeče zapněte „Detektor získávání otisků prohlížeče“.", - "placeholders": { - "apis": { - "content": "API Fetch, SSE, WebRTC a WebSockets", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupXMLHttpRequestRequestsAskDescription": { - "message": "Zeptej se před vykonáním každého požadavku pomocí XHR", - "description": "Keep the name of the API in English" - }, - "jssgroupXMLHttpRequestRequestsBlockDescription": { - "message": "Blokuj všechny požadavky pomocí XHR", - "description": "Keep the name of the API in English" - }, - - "jssgroupArrays": { - "message": "API ArrayBuffer", - "description": "arrays group" - }, - "jssgroupArraysDescription": { - "message": "Ochrana před zneužitím API ArrayBuffer, např. pro zamezení zneužití pro tvorbu postranních kanálů k útokům na operační paměť (nebo alespoň znesnadní takové útoky).", - "description": "" - }, - "jssgroupArraysShift": { - "message": "Posun" - }, - "jssgroupArraysShiftDescription": { - "message": "Posune indexy polí pro znesnadnění detekce hranice stránek v operační paměti." - }, - "jssgroupArraysRandomize": { - "message": "Náhodné" - }, - "jssgroupArraysRandomizeDescription": { - "message": "Náhodně prohází prvky pole v paměti, což je pomalejší než posun, ale účinější." - }, - - "jssgroupSharedArraysBuffer": { - "message": "API SharedArrayBuffer", - "description": "shared_array group" - }, - "jssgroupSharedArraysBufferDescription": { - "message": "Ochrana před zneužitím API SharedArrayBuffer, např. pro zamezení zneužití pro tvorbu postranních kanálů (nebo alespoň znesnadní takové útoky).", - "description": "" - }, - "jssgroupSharedArraysBufferMediumDescription": { - "message": "Náhodně zpomalí zprávy jako prevence tvorby vysoce přesných časovačů", - "description": "" - }, - "jssgroupSharedArraysBufferStrictDescription": { - "message": "Blokování SharedArrayBuffer", - "description": "" - }, - - "jssgroupWebWorker": { - "message": "API WebWorker", - "description": "webworker group, keep the name of the API in English" - }, - "jssgroupWebWorkerDescription": { - "message": "Chraň před zneužitím WebWorkerů", - "description": "Keep the name of the API in English" - }, - "jssgroupWebWorkerDescription2": { - "message": "Workeři poskytují bohatá API, která např. umožňují nainstalovat odposlouchávání dat pro navštívenou stránku komukoliv, kdo může do stránky vložit JavaScriptový kód. Vyšší úrovně ochrany odstraňují tuto možnost. Pozor na to, že Workeři jsou běžně používání i pro účely, které nejsou pro uživatele škodlivé, např. pro umožnění práce s webovou aplikací offline, během interaktivního vyhledávání, dočasného kešování informací, např. při přehrávání multimédií apod.", - "description": "Try to keep the reference to the Worker in English" - }, - "jssgroupWebWorkerLowDescription": { - "message": "Náhodně zpomalí komunikaci s WebWorkery, aby se zabránilo jejich zneužití pro tvorbu časovačů s velkou přesností. Zachovává plné možnosti Workerů včetně jejich přístupu k originálním API (bez úpravy JShelterem). Používejte jen s nejvyšší opatrností.", - "description": "Try to keep the reference to the Worker in English" - }, - "jssgroupWebWorkerStrictDescription": { - "message": "Rozbije WebWorkers tak, že nevykonávají žádnou činnost. Pro stránku se však tato volba tváří tak že prohlížeč Workery podporuje a tak nemohou jednoduše poskytnout náhradní řešení (které některé stránky poskytují). Tato volba pomáhá proti tvorbě unikátního otisku prohlížeče.", - "description": "Try to keep the reference to the Worker in English" - }, - "jssgroupWebWorkerRemoveDescription": { - "message": "Odstraň podporu WebWorkerů z prohlížeče. To je snadno detekovatelné stránkou, takže tato volba zvyšuje možnosti tvorby unikátního otisku prohlížeče. Na druhou stranu tato volba dává stránkám možnost nasazení náhradního řešení, která nemají rizika původního API.", - "description": "Try to keep the reference to the Worker in English" - }, - - "jssgroupPhysicalLocationGeolocation": { - "message": "Umístění v prostoru (geolokace)" - }, - "jssgroupPhysicalLocationGeolocationDescription": { - "message": "Omezuje množství informací poskytovaných Geolocation API.", - "description": "Displayed at various places, keep the name of the API in the English" - }, - "jssgroupPhysicalLocationGeolocationDescription2": { - "message": "Mění pozici pro různé domény různě. Pro každé sezení reportuje stejnou lokaci pro každou jednotlivou doménu.", - "description": "Displayed at various places" - }, - "jssgroupGeolocationTimestampOnly": { - "message": "Jen časové značky", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationTimestampOnlyDescription": { - "message": "Poskytuje přesnou pozici (použitelné pokud potřebujete poskytnout přesnou polohu a zároveň chcete chránit časové značky při aktivní ochraně „$jssgroupTimePrecision$“)", - "description": "Explains the protection to the user", - "placeholders": { - "jssgroupTimePrecision": { - "content": "$1", - "example": "Translated string of the jssgroupTimePrecision" - } - } - }, - "jssgroupGeolocationVillage": { - "message": "Vesnice", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationVillageDescription": { - "message": "Poloha přesná na stovky metrů.", - "description": "Explains the protection to the user" - }, - "jssgroupGeolocationTown": { - "message": "Město", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationTownDescription": { - "message": "Poloha přesná na kilometry.", - "description": "Explains the protection to the user" - }, - "jssgroupGeolocationRegion": { - "message": "Oblast", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationRegionDescription": { - "message": "Poloha přesná na desítky kilometrů.", - "description": "Explains the protection to the user" - }, - "jssgroupGeolocationLongDistance": { - "message": "Velká oblast", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationLongDistanceDescription": { - "message": "Poloha přesná na stovky kilometrů.", - "description": "Explains the protection to the user" - }, - "jssgroupGeolocationRemoveDescription": { - "message": "Deaktivuj API.", - "description": "Explains the protection to the user" - }, - - "jssgroupPhysicalEnvironmentSensors": { - "message": "Senzory okolního prostředí", - "description": "physical_environment group" - }, - "jssgroupPhysicalEnvironmentSensorsDescription": { - "message": "Omezuje množství informací poskytovaných ze senzorů zkoumající stav prostředí obklopující zařízení jako je magnetometr a akcelerometr.", - "description": "Consider replacing Magnetometer and Accelerometer with localized version of the sensor" - }, - "jssgroupPhysicalEnvironmentSensorsDescription2": { - "message": "Informace poskytované blokovanými senzory mohou být zneužity pro mnoho účelů včetně získávání otisku okolního prostředí, sledování polohy uživatele, detekce blízkých zařízení, odhadu akcí uživatele, které se zařízením provádí a mnoho dalších. Ale údaje poskytované senzory mohou být potřeba pro užitečné aplikace jako je navigace, hry a další, pokud jsou tyto aplikace závislé na údajích poskytovaných senzory. Např. některé aplikace využívají orientaci zařízení pro ovládání akcí poskytovaných aplikací." - }, - "jssgroupPhysicalEnvironmentSensorsHighDescription": { - "message": "Simuluje statické zařízení, které poskytuje konzistentní data, která se liší napříč doménami a sezeními." - }, - - "jssgroupUserIdleDetection": { - "message": "Detekce aktivity uživatele", - "description": "useridle group" - }, - "jssgroupUserIdleDetectionDescription": { - "message": "API Idle Detection detekuje neaktivního uživatele a uzamčenou obrazovku zařízení.", - "description": "Try to keep the name of the API in English" - }, - "jssgroupUserIdleDetectionDescription2": { - "message": "Webové aplikace mohou tyto informace použít např. pro zjištění zda uživateli zobrazovat notifikace. Tyto informace však mohou být zneužity ke sledování aktivity uživatele a korelaci stavu napříč doménami." - }, - "jssgroupUserIdleConfuseDescription": { - "message": "Vždy vrací informací, že je uživatel aktivní a obrazovka není uzamčená." - }, - "jssgroupUserIdleBlockDescription": { - "message": "Automaticky odmítá provést akci bez zobrazení výzvy uživateli." - }, - "jssgroupUserIdleRemoveDescription": { - "message": "Odstraní API." - }, - "jssgroupCoopschedule": { - "message": "Plánovač úloh", - "description": "coopschedule group" - }, - "jssgroupCoopscheduleDescription": { - "message": "API Cooperative Scheduling patřící mezi API Background Tasks může naplánovat výpočetně náročné úlohy na dobu, kdy nebudou způsobovat prodlevy detekovatelné uživatelem nebo v jiných úlohách sdílejících stejnou smyčku událostí.", - "description": "Try to keep the names of the APIs in English" - }, - "jssgroupCoopscheduleDescription2": { - "message": "Toto API umožňuje získat přístup k informacím o vytížení prohlížeče jinými úlohami." - }, - "jssgroupCoopscheduleConfuseDescription": { - "message": "Upravuje informace, aby zmátl nepřítele." - }, - - "jssgroupGamepads": { - "message": "Gamepady", - "description": "gamepads group" - }, - "jssgroupGamepadsDescription": { - "message": "Blokuje přístup stránek k informacím o připojených gamepadech." - }, - "jssgroupGamepadsDescription2": { - "message": "Informace o připojených gamepadech může být zneužita při tvorbě otisku prohlížeče. Webové stránky obvykle nepotřebují znát informace o připojených gamepadech, pokud se nejedná o specializované, obvykle herní, aplikace." - }, - "jssgroupGamepadsStrictDescription": { - "message": "Skryj všechny gamepady." - }, - - "jssgroupVirtualAndAugmentedRealityDevices": { - "message": "Zařízení virtuální a rozšířené reality", - "description": "vr group (also includes XR API)" - }, - "jssgroupVirtualAndAugmentedRealityDevicesDescription": { - "message": "Zamezí webovým aplikacím ke zjišťování informací o displejích virtuální a rozšířené reality." - }, - "jssgroupVirtualAndAugmentedRealityDevicesDescription2": { - "message": "Informace o připojených zařízeních virtuální a rozšířené reality může být zneužita při tvorbě otisku prohlížeče. Webové stránky obvykle nepotřebují znát informace o takových připojených zařízeních, pokud se nejedná o specializované aplikace." - }, - "jssgroupVirtualAndAugmentedRealityDevicesStrictDescription": { - "message": "Skryj všechna zařízení." - }, - "jssgroupMultimediaPlayback": { - "message": "Multimediální kodeky", - "description": "playback group" - }, - "jssgroupMultimediaPlaybackDescription": { - "message": "Zamezí aplikacím k přístupu k informacím o instalovaných kodecích, schopnostech kódovat a dekódovat multimédia a výkonu." - }, - "jssgroupMultimediaPlaybackDescription2": { - "message": "Informace poskytované API mohou být zneužity na tvorbu otisku prohlížeče. Tato ochrana by měla být aktivována pro stránky, které nezpracovávají audio a video. Aplikace zpracovávající audio, nebo video mohou být ochranou rozbité." - }, - "jssgroupMultimediaPlaybackLittleLiesDescription": { - "message": "S pravděpodobností 12,5% reportuj kódovací a dekódovací mechanismus jako nepodporovaný." - }, - "jssgroupMultimediaPlaybackStrictDescription": { - "message": "Reportuj všechny kódovací a dekódovací mechanismy jako nepodporované." - }, - "jssgroupMultimediaPlaybackBlockDescription": { - "message": "Nevracej žádné informace." - }, - - "jssgroupUnreliableTransfersToServerBeacons": { - "message": "Nespolehlivé přenosy na server", - "description": "analytics group" - }, - "jssgroupUnreliableTransfersToServerBeaconsDescription": { - "message": "Zabraňuje nespolehlivým přenosům na server, nazývané také jako beacons, nebo majáky." - }, - "jssgroupUnreliableTransfersToServerBeaconsDescription2": { - "message": "Tyto přenosy jsou typicky zneužívané pro analytické účely, ale občas mohou být vyžadované pro správnou funkčnost e-shopů a jiných služeb." - }, - "jssgroupUnreliableTransfersToServerBeaconsDescription3": { - "message": "Brání stránkám ve využití API Beacon.", - "description": "Keep the name of the API" - }, - "jssgroupUnreliableTransfersToServerBeaconsBlockDescription": { - "message": "Blokuje datové přenosy pomocí API Beacon. V rámci volání se neprovádí žádná akce." - }, - - "jssgroupHardwareBattery": { - "message": "Stav baterie", - "description": "battery group" - }, - "jssgroupHardwareBatteryDescription": { - "message": "Odstraňuje podporu API Battery Status, které je zneužívané pro tvorbu otisku prohlížeče.", - "description": "Try to keep the reference to the English name of the API" - }, - "jssgroupHardwareBatteryRemoveDescription": { - "message": "Odstraní API" - }, - - "jssgroupPersistentIdentifierOfTheBrowserTab": { - "message": "Trvalý identifikátor panelu prohlížeče", - "description": "windowname group" - }, - "jssgroupPersistentIdentifierOfTheBrowserTabDescription": { - "message": "Na rozdíl od jiných částí prostředí prohlížeče se vlastnost window.name neresetuje během načítání stránky. Důsledkem je, že si může stránka do této vlastnosti uložit jedinečný identifikátor, nebo neškodná a užitečná data.", - "description": "Try to keep reference to window.name." - }, - "jssgroupPersistentIdentifierOfTheBrowserTabDescription2": { - "message": "Toto API poskytuje možnost identifikace panelu prohlížeče napříč doménami v rámci jednoho sezení." - }, - "jssgroupPersistentIdentifierOfTheBrowserTabStrictDescription": { - "message": "Vymaž obsah vlastnosti window.name při přechodu na jinou službu (změna eTLD+1) během načítání stránky. Tato volba nebrání většině neškodných využití API a zároveň znemožňuje zneužití pro útoky identifikující stejný panel prohlížeče napříč doménami.", - "description": "Try to keep reference to window.name and eTLD+1" - }, - "jssgroupPersistentIdentifierOfTheBrowserTabFirefox88": { - "message": "$BROWSER$ a již obsahuje tuto ochranu.", - "placeholders": { - "browser": { - "content": "Firefox 88" - } - } - }, - - "jssgroupNFC": { - "message": "Near Field Communication (NFC)", - "description": "nfc group" - }, - "jssgroupNFCDescription": { - "message": "Near Field Communication (NFC) umožňuje bezdrátovou komunikaci mezi dvěma velmi blízkými zařízeními, obvykle maximálně jednotky centimetru. Komunikace probíhá na základě standardu ISO/IEC 18092 na frekvenci 13.56 MHz.", - "description": "Keep the technical references" - }, - "jssgroupNFCDescription2": { - "message": "API NFC může být zneužito pro zjištění informací o zařízeních v těsné blízkosti." - }, - "jssgroupNFCRemoveDescription": { - "message": "Odstraň API" - }, - - "jssgroupWASM": { - "message": "Urychlení pomocí WebAssembly", - "description": "webassembly group" - }, - "jssgroupWASMDescription": { - "message": "Urychlí úpravy nutné pro aplikaci drobných lží do obrázků a audia pomocí WebAssembly.", - "description": "Keep reference to WebAssembly" - }, - "jssgroupWASMDescription2": { - "message": "Tato volba má význam jen pokud je ochrana „$CANVAS$“ nebo „$AUDIO$“ nastavená na úroveň „$LITTLElies$“.", - "placeholders": { - "canvas": { - "content": "$1", - "example": "Translation of jssgroupLocallyRenderedImages" - }, - "audio": { - "content": "$2", - "example": "Translation of jssgroupLocallyGeneratedAudio" - }, - "littlelies": { - "content": "$3", - "example": "Translation of jssgroupLittleLies" - } - } - }, - "jssgroupWASMDescription3": { - "message": "Kód ve WebAssembly generuje stejné úpravy jako originální kód, takže je aktivace této volby bezpečná z pohledu ochrany před získávání otisku prohlížeče." - }, - "jssgroupWASMDisabled": { - "message": "Vypnuto" - }, - "jssgroupWASMDisabledDescription": { - "message": "Urychlení pomocí WebAssembly není aplikováno, používá se pomalejší JavaScript." - }, - "jssgroupWASMPassive": { - "message": "Pasivní" - }, - "jssgroupWASMPassiveDescription": { - "message": "Povol urychlení pomocí WebAssembly, ale využij původní (pomalejší) implementaci, pokud nemůže být kód ve WebAssembly vložen." - }, - "jssgroupWASMActive": { - "message": "Aktivní" - }, - "jssgroupWASMActiveDescription": { - "message": "Upravuje direktivu 'wasm-unsafe-eval' Content-Security Policy (CSP), aby umožnil vložení kódu ve WebAssembly v případech, kdy CSP navštívené stránky brání v aplikaci rychlejší implementace." - }, - "jssgroupWASMActiveDescription2": { - "message": "Inicializace modulů WebAssembly je kontrolováno CSP navštívené stránky v prohlížečích založených na Chromiu." - }, - "jssgroupWASMActiveDescription3": { - "message": "Výhoda tohoto nastavení je, že výpočty běží rychleji na všech stránkách." - }, - "jssgroupWASMActiveDescription4": { - "message": "Nevýhodou tohoto nastavení je zvýšené rizika spuštění kódu ve WebAssembly, kterému by za normálních okolností zabránila CSP stránky, např. pokud je stránka samotná zranitelná útokem nazývaným cross-site scripting. Toto nastavení také může interagovat s jinými rozšířeními prohlížeče, které mohou modifikace CSP vrátit zpět." - }, - "jssgroupWASMEnabled": { - "message": "Zapnuto" - }, - "jssgroupWASMEnabledDescription": { - "message": "Urychlení pomocí WebAssembly je aplikováno." - }, - "JShelterOptions": { - "message": "Hlavní nastavení JShelteru", - "description": "Title of the main options page" - }, - "mainSettings": { - "message": "Hlavní nastavení", - "description": "Displayed in options in the navigation bar" - }, - "JShelterOptionsJSSFineTune": { - "message": "Detaily Javascriptového štítu: nastavení pro konkrétní domény", - "description": "Title of the JS Shield details options page" - }, - "jSSShieldDetails": { - "message": "Detail JS štítu", - "description": "Displayed in options in the navigation bar, try to keep JS shield abbreviated to keep the text short" - }, - "JShelterOptionsAdvanced": { - "message": "Expertní nastavení JShelteru", - "description": "Title of the expert options page" - }, - "advancedOptions": { - "message": "Expertní nastavení", - "description": "Displayed in options in the navigation bar" - }, - "externalLinks": { - "message": "Webové odkazy", - "description": "Displayed in options in the navigation bar" - }, - "ExternalLinksSeparator": { - "message": ":", - "description": "Displayed in options in the navigation bar, for example after external links" - }, - "threatModel": { - "message": "Uvažované hrozby", - "description": "Displayed in options in the navigation bar" - }, - "fAQ": { - "message": "Časté dotazy", - "description": "Displayed in options in the navigation bar" - }, - "testPage": { - "message": "Testovací stránka", - "description": "Displayed in options in the navigation bar" - }, - "permissions": { - "message": "Požadovaná oprávnění", - "description": "Displayed in options in the navigation bar" - }, - "sourceCode": { - "message": "Zdrojový kód", - "description": "Displayed in options in the navigation bar" - }, - "issueTracker": { - "message": "Sledování chyb", - "description": "Displayed in options in the navigation bar" - }, - "credits": { - "message": "Autoři", - "description": "Displayed in options in the navigation bar" - }, - - "ExampleDomainsText": { - "message": "příklad.com nebo cokoliv.example.com", - "description": "Displayed in text inputs that expect a domain" - }, - "ButtonSignExpandOneCharacterDown": { - "message": "⤵", - "description": "A button caption that can be used generically by JShelter, it should contain a single character that intuitively tells the user that by clicking the button, more information will be shown" - }, - "ButtonSave": { - "message": "Ulož", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonRestore": { - "message": "Obnov", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonRestoreLevel": { - "message": "Obnov úroveň $LEVELNAME$", - "description": "A button caption that can be used generically by JShelter", - "placeholders": { - "levelName": { - "content": "$1", - "example": "Level name of the level to be restored, for example, Default" - } - } - }, - "ButtonEdit": { - "message": "Uprav", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonRemove": { - "message": "Odstraň", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonSaveCustomLevel": { - "message": "Ulož vlastní úroveň", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonCancel": { - "message": "Storno", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonAddNewLevel": { - "message": "Přidej novou úroveň", - "description": "A button caption that can be used generically by JShelter" - }, - "addToList": { - "message": "Přidej do seznamu", - "description": "A button caption that can be used generically by JShelter, atm it is displayed in JSS advanced options page" - }, - "saveAll": { - "message": "Ulož vše", - "description": "A button caption that can be used generically by JShelter, atm it is displayed in JSS advanced options page" - }, - "deleteAll": { - "message": "Smaž vše", - "description": "A button caption that can be used generically by JShelter, atm it is displayed in JSS advanced options page" - }, - "ManageWhitelist": { - "message": "Spravuj seznam domén s výjimkou ⤵", - "description": "A button caption that can be used generically by JShelter, e.g. to fine-tune NBS and FPD; Please indicate that the list would appear below (the arrow at the end)." - }, - "HideWhitelist": { - "message": "Skrýj seznam domén s výjimkou ⤵", - "description": "A button caption that can be used generically by JShelter, e.g. to fine-tune NBS and FPD; Please indicate that the list is located below (the arrow at the end)." - }, - "ButtonDisableForDomain": { - "message": "<strong>$DISABLE$</strong> $FORTHEDOMAIN$", - "description": "A button caption that can be used generically by JShelter, e.g. in the options; if necessary, edit the structure of the message but make sure to emhasize the disablement. Translate the placeholders.", - "placeholders": { - "disable": { - "content": "Vypnout", - "description": "Please translate" - }, - "forTheDomain": { - "content": "pro doménu", - "description": "Please translate" - } - } - }, - "ButtonEnableForSelectedDomains": { - "message": "<strong>$ENABLE$</strong> $FORTHEDOMAIN$", - "description": "A button caption that can be used generically by JShelter, e.g. in the options; if necessary, edit the structure of the message but make sure to emhasize the enablement. Translate the placeholders.", - "placeholders": { - "enable": { - "content": "Povol", - "description": "Please translate" - }, - "forTheDomain": { - "content": "pro vybrané domény", - "description": "Please translate" - } - } - }, - "ManageWhitelistDescription": { - "message": "Uvedená doménová jména jsou zpracovávaná v rámci hierarchie doménových jmen, takže uvedením <strong>example.com</strong> také vypnete štít pro <strong>news.example.com</strong>.", - "description": "Information text that can be used generically by JShelter, e.g. in options to explain the exception list of NBS and FPD." - }, - - "javascriptShieldDescription": { - "message": "<p>$PARAGRAPH1$</p><p>$PARAGRAPH2$</p><ul><li>$REDUCTION$</li><li>$FAKE$</li><li>$HIDE$</li></ul><p>$BLOGS$</p>", - "description": "This is the description of JSS shown in options. Please do not modify the template string in the message but translate the paragraphs in the placeholders section. If you find necessary, you can remove or add paragraphs but please keed all paragraphs in the jss_description class.", - "placeholders": { - "paragraph1": { - "content": "Javascriptový štít upravuje chování prostředí interpretu JavaScriptu, které je dostupné navštíveným stránkám. JShelter poskytuje falešné informace, aby zmátl skripty získávající otisky prohlížečů, nebo zabránil útokům zneužívající JavaScript, nebo je alespoň učinil složitějšími.", - "description": "Paragraph 1, please translate this text." - }, - "paragraph2": { - "content": "Javascriptový štít se skládá z wraperů, malých kusů kódu, které modifikují původní chování JavaScriptových API (funkcí nebo vlastností) definovaných standardy. Chování většiny wraperů obvykle spadá do jedné z následujících kategorií:", - "description": "Paragraph 2, please translate this text." - }, - "reduction": { - "content": "Omezení přesnosti: Původní hodnota je příliš přesná, což ve většině případů použití není potřeba. Javascriptový štít upravuje poskytované hodnoty takovým způsobem, aby obvyklé neškodné použití nebylo ovlivněno.", - "description": "UL item 1, please translate this text." - }, - "fake": { - "content": "Falešné hodnoty: Některé wrapery poskytují falešné informace, většinou se tak děje pro zmatení skriptů tvořících otisk prohlížeče. Některé wrapery poskytují možné údaje, které však nejsou založeny na skutečných datech. Další wrapery upravují skutečné hodnoty malými změnami, které typicky nejsou detekovatelné člověkem, ale jsou významné pro skript počítající otisk prohlížeče. Takové změny JShelter aplikuje různě na různých navštívených doménách a v různých sezeních, takže provozovatelé různých domén nemohou použít přečtené informace ke spojení prohlížeče. Např. wrapery pro plátno canvas upravují obrázek tak, aby stejné pokyny vedly k různým výsledkům na různých doménách a v různých sezeních.", - "description": "UL item 2, please translate this text." - }, - "hide": { - "content": "Skrytí informací: Některá API poskytují informace, které nejsou obvykle potřeba a mohou být ukryté před většinou stránek. V závislosti na API, Javascriptový štít vrací chybu, prázdnou hodnotu, nebo úplně blokuje API.", - "description": "UL item 3, please translate this text." - }, - "blogs": { - "content": "Pro více informací se podívejte na naše blogové příspěvky o <a href='https://jshelter.org/fingerprinting/'>protiopatřením před získáváním otisku prohlížeče</a> a <a href='https://jshelter.org/farbling/'>metodě drobných lží</a>.", - "description": "Last paragraph, please translate this text, keep the URLs to the English version unless a translation exists on the web." - } - } - }, - "JavascriptShieldLevelsMainLevelOptionHeading": { - "message": "Tvorba vlastních úrovní ochrany a nastavení výchozí úrovně", - "description": "A heading in the options above the configuration of the default JSS level and the possibility to list existing levels and create own levels." - }, - "addCustomLevel": { - "message": "Přidej vlastní úroveň", - "description": "A button caption, the button creates a custom JSS level." - }, - - "JSSL0Name": { - "message": "Vypnout JavaScriptový štít", - "description": "The name of JSS L0 that is used at various places in the UI" - }, - "JSSL0Description": { - "message": "JavaScriptová APIs nejsou chráněná. Vypněte JavaScriptový štít jen pokud 1. věříte provozovateli zobrazené stránky a chete mu (a všem nepřátelům, kteří mohli vložit kód do stránky) dát přístup ke všem API podporovaných prohlížečem, nebo 2. pokud JavaScriptový štít nechcete používat, ale chcete využívat jiné ochranné mechanismy JShelteru.", - "description": "The description of JSS L0 that is used at various places in the UI" - }, - "JSSL1Name": { - "message": "Bez ochrany před tvorbou otisku prohlížeče", - "description": "The name of JSS L1 that is used at various places in the UI" - }, - "JSSL1Description": { - "message": "Uplatňuje bezpečnostní opatření, které nejspíše nerozbijí chování stránky, ale nechrání před tvorbou otisku prohlížeče. Vypíná API, která nejsou obvyklými stránkami využívaná. Použijte tuto úroveň pokud Detektor získávání otisku prohlížeče hlásí, že stránka volala nízký počet API zneužívaných pro tvorbu otisku prohlížeče, věříte provozovateli stránek nebo si myslíte, že JShelter příliš zpomaluje zobrazené stránky, nebo je rozbíjí, a vaše touha zobrazit stránky je tak vysoká, že nechcete chránit před tvorbou otisku prohlížeče.", - "description": "The description of JSS L1 that is used at various places in the UI, see also FingerprintQualityLabel label for the origin of 'The description of JSS L1 that is used at various places in the UI, see also FingerprintQualityLabel label for the origin of 'the page called a low number of APIs misued for fingerprinting''" - }, - "JSSL2Name": { - "message": "Doporučená", - "description": "The name of JSS L2 that is used at various places in the UI" - }, - "JSSL2Description": { - "message": "Snaží se prohlížeč upravit tak, aby vypadal rozdílně na stránkách různých domén. Uplatňuje bezpečnostní opatření, která obvykle nerozbíjejí stránky. Drobně upravuje výsledky volání API různými způsoby na stránkách různých domén tak, aby otisk prohlížeče sestavený na různých doménách byl jiný. Hodnoty zneužívané pro vytváření otisku prohlížeče se také liší s každým spuštěním prohlížeče. Pokud potřebujete získat jiný otisk prohlížeče bez restartu prohlížeče, zkuste použít anonymní mód. Mějte na paměti, že i když se odhlásíte od používání služby, smažete cookies, změníte adresu IP, upravené API poskytnou možnost výpočtu stejného otisku prohlížeče. Restartujte prohlížeč pokud chcete změnit svůj otisk prohlížeče. Pokud nevíte jakou úroveň ochrany zvolit, zvolte tuto.", - "description": "The description of JSS L1 that is used at various places in the UI" - }, - "JSSL3Name": { - "message": "Přísná", - "description": "The name of JSS L3 that is used at various places in the UI" - }, - "JSSL3Description": { - "message": "Zapíná všechny ochrany, kterou nejsou považovány za experimentální. Obalená API vrací falešné hodnoty. Některá API jsou úplně odstraněná, další poskytují smysluplné, ale neobvyklé hodnoty. Některá API vrací bezvýznamné hodnoty. Tato úroveň dovolí výpočet stabilního otisku prohlížeče, protože volání jednotlivých API obvykle vrací stejné hodnoty na všech webech a ve všech sezeních. Použijte tuto úroveň pokud chcete omezit množství informací poskytnutých vašim prohlížečem. Pokud se bojíte získávání otisku prohlížeče,zapněte Detektor získávání otisku prohlížeče.", - "description": "The description of JSS L2 that is used at various places in the UI" - }, - "JSSLexperimentalName": { - "message": "Experimentální", - "description": "The name of JSS experimental level that is used at various places in the UI" - }, - "JSSLexperimentalDescription": { - "message": "Stejné volby jako o přísné úrovně ochrany s dodatečnými úpravami (včetně API, o kterých je známo, že jejich úpravy běžně rozbíjejí stránky, a API, která nefungují dostatečně dobře). Tuto úroveň používejte jen pro experimenty s JShelterem. Pro běžné prohlížení použijte Doporučenou, nebo Přísnou úroveň s aktivním Detektorem získávání otisku prohlížeče.", - "description": "The description of JSS experimental level that is used at various places in the UI" - }, - - "omittedAPIsHeading": { - "message": "Jako ochranu před tvorbou otisku prohlížeče, JShelter nevytváří neexistující vlastnosti. Tento prohlížeč nepodporuje:", - "description": "This message is displayed while giving the possibility to create a new level or edit existing levels in options" - }, - "newLevelsNotRecommended": { - "message": "Nedoporučujeme tvorbu vlastních úrovní ochrany a změnu konfigurace pokud používáte JShelter jako ochranu před tvorbou otisku prohlížeče. Přečtěte si <a href=\"$FAQURL$\">FAQ</a> a náš <a href=\"$PAPERURL$\">článek</a>. V případě, že se vaše nastavení bude lišit od nastavení jiných uživatelů, usnadňujete vaši identifikaci v budoucnu.", - "placeholders": { - "faqurl": { - "content": "https://jshelter.org/faq/" - }, - "paperurl": { - "content": "https://arxiv.org/abs/2204.01392" - } - }, - "description": "This message is displayed while creating a new level in options. Make sure that you keep correct HTML markup" - }, - - "formlabelName": { - "message": "Jméno:", - "description": "Used in forms whenever a name should be enered (atm new level name)" - }, - "formlabelDescription": { - "message": "Popis:", - "description": "Used in forms whenever a description should be enered (atm new level description)" - }, - - "customLevelAlreadyExistsItWillBeOverridden": { - "message": "Vlastní úroveň $CUSTOMNAME$ již existuje a bude přepsána.", - "description": "Alert message shown during level editing, translate the message but not the placeholder", - "placeholders": { - "customName": { - "content": "$1", - "example": "User provided value, any text", - "description": "The level name that is about to be overwritten" - } - } - }, - "customLevelWereNotUpdated": { - "message": "Vlastní úrovně nebyly aktualizovány, prosím opakujte akci později.", - "description": "The configuration with the chaged or new level was not saved because of unknown reason." - }, - "NewLevelMissingNameOrDescription": { - "message": "Jak jméno, tak popis úrovně ochrany jsou povinné, prosím vyplňte obě pole.", - "description": "User did not supply all mandatory fields for a JSS level" - }, - "JSSeditLevelHeading": { - "message": "Úprava úrovně $LEVELNAME$", - "description": "Heading shown during JSS tweaking (edit level form)", - "placeholders": { - "levelName": { - "content": "$1", - "example": "User provided value, any text", - "description": "The level name that is about to be overwritten, do not translate" - } - } - }, - "JSSaddLevelHeading": { - "message": "Tvorba nové úrovně zabezpečení", - "description": "Form heading during creation of a new level. You likely want to use the same or very similar value as ButtonAddNewLevel translation string." - }, - - "javaScriptShieldPerWebsiteConfiguration": { - "message": "Nastavení Javascriptového štítu pro jednotlivé navštívené domény", - "description": "Displayed in JSS advanced options page" - }, - "setJavaScriptShieldForWebsite": { - "message": "Nastav JavaScriptový štít pro doménu:", - "description": "Displayed in JSS advanced options page" - }, - "aListOfWebsiteWithRedefinedJavaScriptShield": { - "message": "Seznam domén s vlastní konfigurací Javascriptového štítu:", - "description": "Displayed in JSS advanced options page" - }, - "JSSAdvancedConfirmOverwrite": { - "message": "Nastavení pro doménu $DOMAIN$ již existuje a bude přepsáno.", - "description": "Displayed in JSS advanced options page", - "placeholders": { - "domain": { - "content": "$1", - "example": "The domain whose settings are about to be overwritten, like example.com" - } - } - }, - "LevelAndDescription": { - "message": "$LEVELNAME$: $LEVELSHORTDESCRIPTION$", - "description": "Displayed in options pages in select elements to give the user an idea what level to apply by listing both its name and a short description", - "placeholders": { - "levelName": { - "content": "$1", - "example": "Name of the level" - }, - "levelShortDescription": { - "content": "$2", - "example": "Short description of the level" - } - } - }, - - "doNotModifyThisConfiguration": { - "message": "POZOR! Neměňte tuto konfiguraci, pokud nevíte, co děláte.", - "description": "Displayed in expert settings" - }, - "JShelterFullConfiguration": { - "message": "Plné nastavení JShelteru v textové podobě", - "description": "Displayed in expert settings, label for the full extension configuration in textarea" - }, - "ExpertLoadCurrentlyStoredConfiguration": { - "message": "Načíst aktuálně uložené nastavení", - "description": "Displayed in expert settings, button that loads current configuration to the textarea" - }, - "ExpertOverwriteConfiguration": { - "message": "Přepiš nastavení (přepíše uložené nastavení tím, které je zobrazené na této stránce)", - "description": "Displayed in expert settings, button that stores the current configuration permanently" - }, - "ExpertResetConfiguration": { - "message": "Vrať se k výchozímu nastavení (odstraní všechno lokální nastavení)", - "description": "Displayed in expert settings, button that reset to the configuration that we ship (factory reset)" - }, - "ExpertUndoConfiguration": { - "message": "Zpět (zapomeň poslední přepis konfigurace)", - "description": "Displayed in expert settings, button that restores the configuration to the previous (back button)" - }, - "JSSBuiltinExceptions": { - "message": "Vestavěné úpravy pro JavaScriptový štít", - "description": "Displayed in expert settings, heading for the table of built-in tweaks" - }, - "JSSBuiltinExceptionsDomain": { - "message": "Doména", - "description": "Displayed in expert settings, heading in the table of built-in tweaks" - }, - "JSSBuiltinExceptionsLevels": { - "message": "Úrovně", - "description": "Displayed in expert settings, heading in the table of built-in tweaks" - }, - "JSSBuiltinExceptionsLevelsSeparator": { - "message": ", ", - "description": "Displayed in expert settings, separator for levels displayed" - }, - "JSSBuiltinExceptionsChanges": { - "message": "Změny", - "description": "Displayed in expert settings, heading in the table of built-in tweaks" - }, - "JSSBuiltinExceptionsReason": { - "message": "Vysvětlení", - "description": "Displayed in expert settings, heading in the table of built-in tweaks" - }, - - "protectionConfigurationOptionActivatedOn": { - "message": "Zapnuto", - "description": "Displayed during NBS and FPD configuration when the option is activated (on)" - }, - "protectionConfigurationOptionActivatedOff": { - "message": "Vypnuto", - "description": "Displayed during NBS and FPD configuration when the option is deactivated (off)" - }, - "shieldNotifications": { - "message": "Notifikace", - "description": "Displayed as a text label during NBS and FPD configuration when the user can activate or deactivate notifications" - }, - "NBSDescription": { - "message": "<p>$PARAGRAPH1$</p><p>$PARAGRAPH2$</p><p>$PARAGRAPH3$</p>", - "description": "This is the description of NBS shown in options. Please do not modify the template string in the message but translate the paragraphs in the placeholders section. If you find necessary, you can remove or add paragraphs.", - "placeholders": { - "paragraph1": { - "content": "Štít pro ochranu hranice sítě znemožňuje navštíveným stránkám zneužít prohlížeč jako mezičlánek mezi veřejným Internetem a lokální sítí. Podívejte se na <a href='https://jshelter.org/localportscanning/'>náš příspěvek na blogu</a> a <a href='https://www.forcepoint.com/sites/default/files/resources/files/report-attacking-internal-network-en_0.pdf'>zprávu společnosti Force Point</a> pro příklady útoků, kterým Štít pro ochranu hranice sítě brání. Štít pro ochranu hranice sítě využívá WebRequest API, takže zachycuje všechny odchozí požadavky.", - "description": "Paragraph 1, please translate this text, keep the URLs or replace them to a translated version of the targets." - }, - "paragraph2": { - "content": "Obvykle byste měli nechat Štít pro ochranu hranice sítě vyhledávat podezřelé požadavky v celém provozu. Ale některé stránky vyžadují interakci mezi veřejným Internetem a lokální sítí, např. Štít pro ochranu hranice sítě může rozbít některé Intranetové informační systémy. Uživatelé JShelteru také nahlásili zvýšené množství falešných poplachů v kombinací s filtrovacími programy modifikujícími odpovědi DNS. Pokud takový program používáte, ujistěte se, že DNS vrací 0.0.0.0 pro blokované domény.", - "description": "Paragraph 2, please translate this text." - }, - "paragraph3": { - "content": "Chování Štítu pro ochranu hranice sítě může být globálně nastaveno níže. Štít pro ochranu hranice sítě může také být vypnutý pro jednotlivé domény s využitím seznamu výjimek. Domény do tohoto seznamu mohou být přidány s využitím okna dostupného pro každou navštívenou stránku po kliknutí na ikonu JShelteru nastavením <i>přepínače označeného Štít pro ochranu hranice sítě</i> nebo ručně níže po kliknutí na <i>Spravuj seznam domén s výjimkou</i>. Uvedením domény do tohoto seznamu také vypnete Štít pro ochranu hranice sítě na všech jejich poddoménách. Abyste deaktivovali Štít pro ochranu hranice sítě pro konkrétní doménu, vložte tuto doménu do seznamu (vynechte „www“, ale zahrňte všechny nadřazené domény jako je „.cz“).", - "description": "Paragraph 3, please translate this text, note that <i>Manage exception list</i> refers to the ManageWhitelist string." - } - } - }, - "NBSHttpProxyDNSAPINote": { - "message": "Pokud používáte HTTP proxy, Štít pro ochranu hranice sítě chrání síť této proxy, protože proxy provádí HTTP dotazy. JShelter zamezuje úniku DNS dotazů tak, že v případě využití HTTP proxy neresolvuje DNS domény pro detekci možných dotazů do místní sítě. I tak v takovém případě bere Štít v úvahu IP adresy přímo vložené v URL. Takže Štít pro ochranu hranice sítě chrání síť použité proxy, ale jen částečně.", - "description": "This note is appended to NBS description in Firefox, see https://pagure.io/JShelter/webextension/issue/41 for the context of the issue" - }, - - "nbsBlocking": { - "message": "Blokace", - "description": "Displayed during NBS configuration, label for a configuration option" - }, - "nbsBlockingDescription": { - "message": "Blokuje požadavky, které se snaží přistupovat k místní síti.", - "description": "Displayed during NBS configuration, basic explanation of the configuration option" - }, - "nbsBlockingDescription2": { - "message": "Doporučujeme ponechat toto nastavení aktivní.", - "description": "Displayed during NBS configuration, further explanation of the configuration option" - }, - "nbsBlockingOffDescription": { - "message": "Závadné požadavky neblokovány.", - "description": "Displayed during NBS configuration, further explanation of the selected configuration level" - }, - "nbsBlockingOnDescription": { - "message": "Závadné požadavky blokovány.", - "description": "Displayed during NBS configuration, further explanation of the selected configuration level" - }, - "NBSNotificationsDescription": { - "message": "Povolení nebo zakázání notifikací o podezřelém dění, nebo blokovaných požadavcích.", - "description": "Displayed in NBS options, globaly disables or enables notifications" - }, - "NBSNotificationsDescription2": { - "message": "V případě, že povolíte notifikace: s aktivním blokováním budete upozorněni notifikací o blokacích, bez aktivního blokování budete ve stejných situacích informování o podezřelé aktivitě, která blokována nebude.", - "description": "Displayed in NBS options, globaly disables or enables notifications" - }, - "NBSNotificationsOffDescription": { - "message": "Notifikace vypnuty.", - "description": "Displayed in NBS options, notifications about blocked requests are globally disabled" - }, - "NBSNotificationsOnDescription": { - "message": "Notifikace zapnuty.", - "description": "Displayed in NBS options, notifications about blocked requests are globally enabled" - }, - "NBSBlockedTitle": { - "message": "Štít pro ochranu hranice sítě zablokoval podezřelé požadavky!", - "description": "Title of the notifications that is displayed when NBS actually blocks requests" - }, - "NBSDetectedTitle": { - "message": "Štít pro ochranu hranice sítě detekoval podezřelé požadavky!", - "description": "Title of the notifications that is displayed when NBS detects a suspicious requests but does not block them because blocking is disabled" - }, - "NBSBlockedMessageMultipleTargets": { - "message": "Počet blokovaných požadavků\nod $ORIGIN$,\nkteré se směřovaly do místní\nsítě: $COUNT$.", - "description": "The message shown when the page contacted multiple targets in the local network. Produce short lines.", - "placeholders": { - "origin": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - }, - "count": { - "content": "$2", - "description": "A positive number, do not translate", - "example": "5" - } - } - }, - "NBSDetectedMessageMultipleTargets": { - "message": "Počet detekovaných požadavků\nod $ORIGIN$,\nkteré se odešly do místní\nsítě: $COUNT$.", - "description": "The message shown when the page contacted multiple targets in the local network. Produce short lines.", - "placeholders": { - "origin": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - }, - "count": { - "content": "$2", - "description": "A positive number, do not translate", - "example": "5" - } - } - }, - "NBSBlockedMessageWithTarget": { - "message": "Blokovaných požadavků: $COUNT$\nod $ORIGIN$\nna $TARGET$.", - "description": "The message shown when the page contacted single target in the local network. Produce short lines.", - "placeholders": { - "origin": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - }, - "target": { - "content": "$2", - "description": "IP address (maybe domain), do not translate", - "example": "10.0.0.1" - }, - "count": { - "content": "$3", - "description": "A positive number, do not translate", - "example": "5" - } - } - }, - "NBSDetectedMessageWithTarget": { - "message": "Detekovaných požadavků: $COUNT$\nod $ORIGIN$\nna $TARGET$.", - "description": "The message shown when the page contacted single target in the local network. Produce short lines.", - "placeholders": { - "origin": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - }, - "target": { - "content": "$2", - "description": "IP address (maybe domain), do not translate", - "example": "10.0.0.1" - }, - "count": { - "content": "$3", - "description": "A positive number, do not translate", - "example": "5" - } - } - }, - "NBSBlockedHostTitle": { - "message": "Štít pro ochranu hranice sítě zablokoval podezřelý stroj!", - "description": "Title of the notifications that is displayed when NBS blocks future requests by a host in Chromium-based browsers" - }, - "NBSDetectedHostTitle": { - "message": "Štít pro ochranu hranice sítě detekoval podezřelý stroj!", - "description": "Title of the notifications that is displayed when NBS detects suspicious requests by a host in Chromium-based browsers but does not block them because blocking is disabled" - }, - "NBSBlockedHost": { - "message": "Všechny další požadavky od $HOST$ budou blokovány.", - "description": "The message shown in Chromium-based browsers when NBS starts blocking a host.", - "placeholders": { - "host": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - } - } - }, - "NBSDetectedHost": { - "message": "Zapněte blokování požadavků pro blokování všech požadavků od $HOST$ do místní sítě.", - "description": "The message shown in Chromium-based browsers when NBS detects a suspicious host.", - "placeholders": { - "host": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - } - } - }, - - "MV3DevmodeRequired": { - "message": "Kvůli omezením způsobených <a href=\"$MV3URL$\" target=\"_blank\">Googlím Manifestem V3</a> nemůže JShelter a další rozšíření prohlížeče pracovat správně v prohlížečích založených na Chromiu (včetně vašeho prohlížeče) než zapnete <em>režim pro vývojáře</em> na stránce <strong>chrome://extensions</strong> (<a href=\"$INFOURL$\" target=\"_blank\">více informací o tomto režimu na stránkách Google pro vývojáře</a>).", - "placeholders": { - "mv3url": { - "content": "https://jshelter.org/mv3/" - }, - "infourl": { - "content": "https://developer.chrome.com/docs/extensions/reference/api/userScripts#chrome_versions_prior_to_138_developer_mode_toggle" - } - }, - "description": "This message is displayed as an alert in popup and options when development mode is disabled. Make sure that you keep correct HTML markup" - }, - "MV3AllowUserScriptsRequired": { - "message": "Kvůli omezením způsobených <a href=\"$MV3URL$\" target=\"_blank\">Googlím Manifestem V3</a> nemůže JShelter a další rozšíření prohlížeče pracovat správně v prohlížečích založených na Chromiu (včetně vašeho prohlížeče) než zapnete <em>uživatelské skripty</em> na stránce JShelteru dostupné z <strong>chrome://extensions</strong> (<a href=\"$INFOURL$\" target=\"_blank\">více informací o tomto režimu na stránkách Google pro vývojáře</a>).", - "placeholders": { - "mv3url": { - "content": "https://jshelter.org/mv3/" - }, - "infourl": { - "content": "https://developer.chrome.com/docs/extensions/reference/api/userScripts#chrome_versions_138_and_newer_allow_user_scripts_toggle" - } - }, - "description": "This message is displayed as an alert in popup and options when development mode is disabled. Make sure that you keep correct HTML markup" - }, - - "MV3BrokenFeatures": { - "message": "Kvůli omezením způsobených <a href=\"$MV3URL$\" target=\"_blank\">Googlím Manifestem V3</a> nejsou dostupné některé části JShelteru (např. Štít pro ochranu hranice sítě a Detektor získávání otisku prohlížeče v blokujícím režimu) v nejnovějších prohlížečích založených na Chromiu (včetně vašeho), některé části JShelteru mohou pracovat s nižší spolehlivostí než dříve a než stále pracují ve Firefoxu.", - "placeholders": { - "mv3url": { - "content": "https://jshelter.org/mv3/" - } - }, - "description": "This message is displayed as an alert near features broken by Manifest V3. Make sure that you keep correct HTML markup" - }, - - "FPDDescription": { - "message": "<p>$PARAGRAPH1$</p><p>$PARAGRAPH2$</p><p>$PARAGRAPH3$</p>", - "description": "This is the description of FPDBS shown in options. Please do not modify the template string in the message but translate the paragraphs in the placeholders section. If you find necessary, you can remove or add paragraphs.", - "placeholders": { - "paragraph1": { - "content": "Detektor získávání otisku prohlížeče poskytuje mechanismus, který informuje uživatele o aktivitách webových stránek, které mohou směřovat k získání otisku prohlížeče. Detektor také může zabránit stránkám v přenosu otisku prohlížeče k serveru, pokud se tak uživatel rozhodne. Podívejte se na <a href='https://jshelter.org/fpdetection/'>náš příspěvek na blogu</a> nebo článek <a href='https://arxiv.org/pdf/1905.01051.pdf'>shrnující výzkum v oblasti získávání a používání otisků prohlížeče</a> pro bližší popis tématu.", - "description": "Paragraph 1, please translate this text, keep the URLs or replace them to a translated version of the targets." - }, - "paragraph2": { - "content": "Zapnutý detektor může zobrazit upozornění kdykoliv navštívíte stránku s podezřelým chováním. Detektor měří počet volaných API zneužívaných k tvorbě otisku prohlížeče na každé navštívené stránce. Na základě heuristiky nad voláními a jejich obsahem vyhodnocuje, míru závažnosti volaných API z pohledu tvorby otisku prohlížeče. Tato míra závažnosti je zobrazená jako barva ikony JShelteru a také v okně zobrazeném po kliknutí na tuto ikonu (stavové okno). V případě vysoké závažnosti můžete být upozorněni notifikací. JShelter umožňuje zobrazit detaily aktivit vedoucích k tvorbě otisku prohlížeče formou zprávy. Tuto zprávu můžete získat kliknutím na stavové okno nebo kliknutím na upozornění o možném získání otisku prohlížeče navštívenou stránkou.", - "description": "Paragraph 2, please translate this text." - }, - "paragraph3": { - "content": "Výchozí chování Detektoru získávání otisku prohlížeče můžete upravit. Blokující chování cílí na zamezení stránky v předání otisku prohlížeče ven z prohlížeče. Detektor získávání otisku prohlížeče blokuje všechny odchozí požadavky protokolem HTTP a maže úložiště v prohlížeči poté, co detekuje volání vysokého množství API zneužívaných k tvorbě otisku prohlížeče. <strong>Blokace všech odchozích požadavků HTTP obvykle rozbíjí chování webových stránek</strong>. Při rozbití stránek důvěryhodných doménách byste měli tyto domény zařadit mezi výjimky. Vypnutí detektoru ve stavovém okně přidá navštívenou doménu do seznamu výjimek. Domény uvedené v seznamu výjimek nejsou detektorem vyhodnocované ani blokované. Výjimky můžete spravovat níže.", - "description": "Paragraph 3, please translate this text." - } - } - }, - - "fpdBehavior": { - "message": "Chování", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorDescription": { - "message": "Specifikuje chování modulu.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorPassive": { - "message": "Pasivní", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorPassiveDescription": { - "message": "Zobrazuje počet API zneužitelných pro tvorbu otisku prohlížeče volaných stránkou jako barvu v ikoně rozšíření.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorLimitedBlocking": { - "message": "Omezené blokování", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorBlockingDescription": { - "message": "Detektor reaguje na stránky volající velké množství API zneužitelných pro tvorbu otisku prohlížeče.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorBlockingDescription2": { - "message": "• Znemožní stránce další komunikaci přes síť, aby se zabránilo úniku vytvořeného otisku prohlížeče.", - "description": "Additional information to fpdBehaviorLimitedBlockingDescription" - }, - "fpdBehaviorLimitedBlockingDescription3": { - "message": "• Smaže úložiště <strong>specifikovaná níže</strong> stránky v prohlížeči, aby se předešlo možnému částečnému uložení otisku prohlížeče v těchto úložištích. (Nevyžaduje žádná další povolení.)", - "description": "Additional information to fpdBehaviorLimitedBlockingDescription" - }, - "fpdBehaviorLimitedBlockingDescription4": { - "message": "• Maže se: <strong>localStorage, sessionStorage, JS cookies, IndexedDB, keše, window.name</strong>", - "description": "Additional information to fpdBehaviorLimitedBlockingDescription" - }, - "fpdBehaviorBlockingDescriptionWarning": { - "message": "POZOR: Tato volba může znemožnit správné chování některých stránek.", - "description": "Additional information to fpdBehaviorLimitedBlockingDescription" - }, - "fpdBehaviorFullBlocking": { - "message": "Úplné blokování", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorFullBlockingDescription3": { - "message": "• Maže <strong>všechny</strong> dostupné mechanismy pro uložení dat. (Vyžaduje oprávnění BrowsingData.)", - "description": "Additional information to fpdBehaviorBlockingDescription" - }, - "fpdBehaviorFullBlockingDescription4": { - "message": "• maže: <strong>localStorage, sessionStorage, cookies, IndexedDB, keše, window.name, fileSystems, WebSQL, serviceWorkers</strong>", - "description": "Additional information to fpdBehaviorBlockingDescription" - }, - "fpdNotificationsDescription": { - "message": "Zapíná a vypíná notifikace o detekci chování umožňující tvorbu otisku prohlížeče a o blokaci požadavků HTTP.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdNotificationsDescription2": { - "message": "POZOR: Doporučujeme zapnout notifikace, pokud zvolíte blokující chování detektoru.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdNotificationsOffDescription": { - "message": "Notifikace jsou vypnuté.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdNotificationsOnDescription": { - "message": "Notifikace jsou zapnuté.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdDetection": { - "message": "Detekce", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDescription": { - "message": "Upravuje nastavení heuristiky, která poskytuje hranice ovlivňující zda je stránka považovaná za takovou, která volala příliš mnoho API zneužitelných pro tvorbu otisku prohlížeče.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDefault": { - "message": "Výchozí", - "description": "Option shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDefaultDescription": { - "message": "Doporučené nastavení pro většinu uživatelů.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDefaultDescription2": { - "message": "• Velmi malé množství mylné detekce aktivit směřujících k tvorbě otisku prohlížeče (zaměřuje se na jasné případy tvorby otisku prohlížeče, což vede k velmi malému množství zbytečně blokovaných stránek).", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDefaultDescription3": { - "message": "• Přijatelné množství neodhalených pokusu o tvorbu otisku prohlížeče (některé skripty pro tvorbu otisku prohlížeče se mohou vyhnout detekci).", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdStrict": { - "message": "Přísná", - "description": "Option shown in options during configuaration of the parameters of FPD" - }, - "fpdStrictDescription": { - "message": "Snížený práh detekce pořizování otisku prohlížeče pro obezřetnější uživatele. Raději blokuj, než bys nechal někoho projít.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdStrictDescription2": { - "message": "• Nižší množství neodhalených pokusu o tvorbu otisku prohlížeče (detekuje pokusy o získání otisku prohlížeče u více stránek)", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdStrictDescription3": { - "message": "• Zvýšené riziko nesprávné detekce získávání otisku prohlížeče (blokuje hraniční případy)", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "FPDSeverityNone": { - "message": "Žádné nebo zanedbatelné", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "FPDSeverityLow": { - "message": "Nízký", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "FPDSeverityModerate": { - "message": "Střední", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "FPDSeverityHigh": { - "message": "Vysoký", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "FPDSeverityVeryHigh": { - "message": "Velmi vysoký", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "fpdBlockingSubsequent": { - "message": "Budu blokovat další požadavky HTTP.", - "description": "Shown in a notification when FPD starts blocking HTTP requests" - }, - "fpdClickNotificationDetails": { - "message": "Pro více informací klikni na notifikaci.", - "description": "Shown in a notification when FPD detects a suspicious activity but is not configured to block" - }, - "fpdNotificationMessage": { - "message": "$MESSAGE$\n\nStránka: $PAGETITLE$\nDoména: $DOMAIN$", - "description": "Constructs the full message for the notification when FPD detects suspicious activity", - "placeholders": { - "message": { - "content": "$1", - "example": "Blocking all subsequent requests.", - "description": "Translated fpdBlockingSubsequent or fpdClickNotificationDetails" - }, - "pagetitle": { - "content": "$2", - "example": "JShelter test page", - "description": "The content of the title element of the fingerprinting page (in case it is long, only the start of the string)" - }, - "domain": { - "content": "$3", - "example": "example.com", - "description": "The domain of the visited page or IP address (taken from the URL bar)" - } - } - }, - "fpdNotificationTitle": { - "message": "Stránka se může pokoušet o vytvoření otisku prohlížeče!", - "description": "" - }, - "FPDReportTitle": { - "message": "Zpráva Detektoru získávání otisku prohlížeče", - "description": "Title of a fingeprint report" - }, - "FPDReportDescriptionPara1": { - "message": "Tato zpráva obsahuje seznam všech koncových bodů, ke kterým přistoupila zobrazená stránka a které jsou považovány JShelterem za relevantní pro získávání otisku prohlížeče. Detektoru získávání otisku prohlížeče používá tato data při rozhodování, zda je stránka podezřelá ze sbírání dat pro výpočet otisku prohlížeče.", - "description": "Explanation text in the report, it can be shown by clicking on the help icon" - }, - "FPDReportDescriptionPara2": { - "message": "Detektor získávání otisku prohlížeče zpracovává volání API ve skupinách podle jejich sémantiky. Toto okno ukazuje počet detekovaných volání jednotlivých API. Výchozí zobrazení ukazuje jen skupiny, které stránka nejméně jednou využila. Pokud stránka nevyužila žádné API, toto okno může být prázdné. Pokud chcete vidět všechny API monitorované Detektorem získávání otisku prohlížeče, klikněte $STARTTAG$ sem $ENDTAG$", - "description": "Explanation text in the report, it can be shown by clicking on the help icon", - "placeholders": { - "starttag": { - "content": "<span id='unhideAll'>", - "description": "Please keep the tag as is, do not translate" - }, - "endtag": { - "content": "</span>", - "description": "Please keep the tag as is, do not translate" - } - } - }, - "FPDReportDescriptionPara3": { - "message": "Data z této zprávy můžete exportovat do formátu JSON. Exportovaná data zahrnují použité váhy nastavené jednotlivým API a jejich skupinám ($NOTE1$). Dále zahrnují využité API a využité argumenty ($NOTE2$).", - "description": "Explanation text in the report, it can be shown by clicking on the help icon", - "placeholders": { - "note1": { - "content": "<i>fpd_evaluation_statistics</i>", - "description": "Please keep as is, do not translate" - }, - "note2": { - "content": "<i>fpd_access_logs</i>", - "description": "Please keep as is, do not translate" - } - } - }, - "FPDReportShowDetails": { - "message": "Zobraz detaily", - "description": "Button caption" - }, - "FPDReportHideDetails": { - "message": "Skryj detaily", - "description": "Button caption" - }, - "FPDReportTrackCallers": { - "message": "Zjisti volající skripty", - "description": "Button caption. The purpose of the button is to reload the page while injecting additional scripts that track the location of the callers. This functionality needs to be on demand as it is performance heavy." - }, - "FPDReportTrackCallersRestart": { - "message": "Znovu spusť zjišťování volajících skriptů", - "description": "Button caption. The purpose of the button is to reload the page while injecting additional scripts that track the location of the callers. This functionality needs to be on demand as it is performance heavy." - }, - "FPDReportTrackCallersWaiting": { - "message": "Zjišťuji volající skripty. Prosím, počkejte chvíli.", - "description": "Text displayed inside FPD report to explain what is happening." - }, - "FPDReportTrackCallersFailed": { - "message": "Není možné zjistit volající skripty kvůli chybě. $errorFromBrowser$", - "description": "Prefix strings that intoroduces an error strings generated by the browser. Shown when action started by clicking on button with text of FPDReportTrackCallers failed.", - "placeholders": { - "errorFromBrowser": { - "content": "$1", - "description": "An error message generated by the browser. Do not translate.", - "example": "Error: Invalid tab ID: 16" - } - } - }, - "FPDReportForgetTraces": { - "message": "Nezobrazuj současné volající", - "description": "Button caption" - }, - "FPDReportRefresh": { - "message": "Aktualizuj zprávu", - "description": "Button caption" - }, - "FPDReportExportJSON": { - "message": "Exportuj úplnou zprávu jako JSON", - "description": "Button caption" - }, - "FPDReportMissingData": { - "message": "CHYBA: Nemám data a nemůžu vytvořit zprávu! Pokuste se znovu načíst stránku a znovu otevřít zprávu.", - "description": "Text shown if the windows cannot communicate with the internals of the extension" - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/_locales/en/messages.json b/data/extensions/jsr@javascriptrestrictor/_locales/en/messages.json deleted file mode 100644 index f5e7922..0000000 --- a/data/extensions/jsr@javascriptrestrictor/_locales/en/messages.json +++ /dev/null @@ -1,1625 +0,0 @@ -{ - "extensionName": { - "message": "JShelter", - "description": "Name of the extension. Please, do not translate unless properly justified." - }, - "extensionDescription": { - "message": "Extension for increasing security and privacy level of the user.", - "description": "Description of the extension." - }, - "javascriptShield": { - "message": "JavaScript Shield", - "description": "The name of the JavaScript Shield displayed at multiple places" - }, - "networkBoundaryShield": { - "message": "Network Boundary Shield", - "description": "The name of the Network Boundary Shield displayed at multiple places" - }, - "NBSgloballyOff": { - "message": "Network Boundary Shield is globally disabled", - "description": "Informs the user that NBS is globally disabled, displayed e.g. in popup" - }, - "fingerprintDetector": { - "message": "Fingerprint Detector", - "description": "The name of the Fingerprint Detector displayed at multiple places" - }, - "FPDgloballyOff": { - "message": "Fingerprint Detector is globally disabled", - "description": "Informs the user that FPD is globally disabled, displayed e.g. in popup" - }, - "globalSettings": { - "message": "Global settings", - "description": "The button in the popup that opens options page" - }, - "settingsForDomain": { - "message": "Settings for domain", - "description": "The text in the popup that introduces the context of the information in the popup" - }, - - "refreshPage": { - "message": "Refresh page", - "description": "The button in the popup that refreshes the currently displayed page" - }, - "modifyJSSPopup": { - "message": "Modify", - "description": "The button in the popup that tweaks JSS" - }, - "descriptionMore": { - "message": "(more…)", - "description": "Used for example in the popup in the description text of the currently applied level when JShelter gives user the option to get more information about the level." - }, - "descriptionLess": { - "message": "(less…)", - "description": "Used for example in the popup in the description text of the currently applied level when JShelter gives user the option to get less information about the level." - }, - "nameDescriptionSeparator": { - "message": " — ", - "description": "Used for example in the popup to separate the current JSS level from its description." - }, - "detailTweaksOfJSShieldForThisSite": { - "message": "Detail tweaks of JS shield for this site", - "description": "Button in the popup that allows to tweak JSS." - }, - "wrappers": { - "message": "Groups of APIs", - "description": "Column headding in the popup detailed JSS shield" - }, - "levelOfDefense": { - "message": "Level of defense", - "description": "Column headding in the popup detailed JSS shield" - }, - "numberOfCalls": { - "message": "Number of calls", - "description": "Column headding in the popup detailed JSS shield" - }, - "FingerprintQualityLabel": { - "message": "⤷ The number of APIs misusable for fingerprinting called by the page: ", - "description": "This text is displayed in the popup as additional information from FPD" - }, - "popupDefaultLevelHelpText": { - "message": "Set the global default level as the JavaScript Shield level for this page.", - "description": "This text is displayed in the popup as a tooltip for the Default level button" - }, - "defaultLevelSelection": { - "message": "Default level ($levelName$)", - "description": "This text is displayed as the default level in the popup", - "placeholders": { - "levelName": { - "content": "$1", - "description": "Translated name of the default level used by the user", - "example": "Recommended, see the keys JSSL*Name like JSSL2Name" - } - } - }, - "ShieldOffSlider": { - "message": "OFF", - "description": "Displayed in sliders that control activation of shields in popup and options, keep the text short to prevent overflow" - }, - "ShieldOnSlider": { - "message": "ON", - "description": "Displayed in sliders that control activation of shields in popup and options, keep the text short to prevent overflow" - }, - - "jssgroupUnprotected": { - "message": "Unprotected", - "description": "Displayed during JSS level tweaking in case the API group is completely disabled" - }, - "jssgroupPoor": { - "message": "Poor", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupLow": { - "message": "Low", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupMedium": { - "message": "Medium", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupHigh": { - "message": "High", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupLittleLies": { - "message": "Little lies", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupStrict": { - "message": "Strict", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupConfuse": { - "message": "Confuse", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupFake": { - "message": "Fake", - "description": "Displayed during JSS level tweaking for InstalledBrowserPlugins and possibly more (in the future)" - }, - "jssgroupAddFake": { - "message": "Add fake", - "description": "Displayed during JSS level tweaking for Connected cameras and microphones and possibly more (in the future)" - }, - "jssgroupAsk": { - "message": "Ask", - "description": "Displayed during JSS level tweaking for XHR and possibly more (in the future)" - }, - "jssgroupBlock": { - "message": "Block", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupRemove": { - "message": "Remove", - "description": "Displayed during JSS level tweaking for several API groups" - }, - - "jssgroupTimePrecision": { - "message": "Time precision" - }, - "jssgroupTimePrecisionDescription": { - "message": "Prevent attacks and fingerprinting techniques relying on precise time measurement (or make them harder).", - "description": "Displayed at various places" - }, - "jssgroupTimePrecisionDescription2": { - "message": "Limit the precision of high-resolution time stamps $apis$. Timestamps provided by the Geolocation API are wrapped as well if you enable \"$jssgroupPhysicalLocationGeolocation$\" protection.", - "description": "Displayed at various places", - "placeholders": { - "apis": { - "content": "(Date, Performance, events, Gamepad API, and Web VR API)", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - }, - "jssgroupPhysicalLocationGeolocation": { - "content": "$1", - "description": "Translated version of the jssgroupPhysicalLocationGeolocation string" - } - } - }, - "jssgroupTimePoorDescription": { - "message": "Round time to hundredths of a second (1.230)", - "description": "Explains the protection to the user" - }, - "jssgroupTimeLowDescription": { - "message": "Round time to tenths of a second (1.200)", - "description": "Explains the protection to the user" - }, - "jssgroupTimeHighDescription": { - "message": "Randomize decimal digits with noise (1.451)", - "description": "Explains the protection to the user" - }, - - "jssgroupLocallyRenderedImages": { - "message": "Locally rendered images", - "description": "htmlcanvaselement group" - }, - "jssgroupLocallyRenderedImagesDescription": { - "message": "Protect against canvas fingerprinting or leaking information on the rendering capabilities of the graphic card.", - "description": "Displayed at various places, try to keep canvas in English or make sure that the user can understand that the protection is about the Canvas API" - }, - "jssgroupLocallyRenderedImagesDescription2": { - "message": "Functions $apis$ return modified image data.", - "description": "Displayed at various places", - "placeholders": { - "apis": { - "content": "canvas.toDataURL(), canvas.toBlob(), CanvasRenderingContext2D.getImageData(), OffscreenCanvas.convertToBlob(), and WebGLRenderingContext.readPixels", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupLocallyRenderedImagesDescription3": { - "message": "$apis$ are modified to lie with probability.", - "description": "Displayed after jssgroupLocallyRenderedImagesDescription2", - "placeholders": { - "apis": { - "content": "CanvasRenderingContext2D.isPointInStroke() and CanvasRenderingContext2D.isPointInPath()", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupLocallyRenderedImagesLittleLiesDescription": { - "message": "Apply small modifications to read image data so that the images look the same, but the precise values differ based on the visited domain and across sessions. The goal is to prevent Canvas fingerprinting or at least make it harder.", - "description": "Consider keeping reference to Canvas fingerprinting in English" - }, - "jssgroupLocallyRenderedImagesStrictDescription": { - "message": "Read white images (from WebGL canvas read an empty array). This option does not protect from Canvas fingerprinting.", - "description": "Consider keeping reference to Canvas fingerprinting in English" - }, - - "jssgroupLocallyGeneratedAudio": { - "message": "Locally generated audio", - "description": "audiobuffer group" - }, - "jssgroupLocallyGeneratedAudioDescription": { - "message": "Protect against leaking information on the rendering capabilities of the audio card that can be used, for example, in audio fingerprinting.", - "description": "Try to keep reference to audio fingerprinting" - }, - "jssgroupLocallyGeneratedAudioDescription2": { - "message": "Functions $apis$ return modified data.", - "placeholders": { - "apis": { - "content": "AudioBuffer.getChannelData(), AudioBuffer.copyFromChannel(), AnalyserNode.getByteTimeDomainData(), AnalyserNode.getFloatTimeDomainData(), AnalyserNode.getByteFrequencyData(), and AnalyserNode.getFloatFrequencyData()", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupLocallyGeneratedAudioLittleLiesDescription": { - "message": "Add small amplitude noise so that the sound is similar to the original to a human. The precise values differ based on the visited domain and across sessions. The goal is to prevent Audio fingerprinting or at least make it harder.", - "description": "Consider keeping reference to Audio fingerprinting in English" - }, - "jssgroupLocallyGeneratedAudioStrictDescription": { - "message": "Sound data are replaced by white noise that differs based on the visited domain and across sessions. The goal is to limit leaks on audio hardware and at the same time make Audio fingerprinting harder.", - "description": "Consider keeping reference to Audio fingerprinting in English" - }, - - "jssgroupGraphicCardInformation": { - "message": "Graphic card information", - "description": "webgl group" - }, - "jssgroupGraphicCardInformationDescription": { - "message": "Spoof details of your graphic card usable, for example, to make fingerprinting harder." - }, - "jssgroupGraphicCardInformationDescription2": { - "message": "Function $api$ returns modified or bottom values for certain parameters.", - "placeholders": { - "api": { - "content": "WebGLRenderingContext.getParameter()", - "description": "Keep the names of the API" - } - } - }, - "jssgroupGraphicCardInformationDescription3": { - "message": "$apis$ return modified values.", - "placeholders": { - "apis": { - "content": "WebGLRenderingContext functions .getFramebufferAttachmentParameter(), .getActiveAttrib(), .getActiveUniform(), .getAttribLocation(), .getBufferParameter(), .getProgramParameter(), .getRenderbufferParameter(), .getShaderParameter(), .getShaderPrecisionFormat(), .getTexParameter(), .getUniformLocation(), .getVertexAttribOffset(), .getSupportedExtensions(), and .getExtension()", - "description": "Keep the names of the API but translate the punctuation and conjunctions" - } - } - }, - "jssgroupGraphicCardInformationLittleLiesDescription": { - "message": "Generate reasonable numbers or random strings that differ on the visited domain and across sessions. The goal is to limit leaks on graphic cards and at the same time make fingerprinting harder." - }, - "jssgroupGraphicCardInformationStrictDescription": { - "message": "Return bottom values (null, empty strings). Note that this option does not prevent fingerprinting." - }, - - "jssgroupInstalledBrowserPlugins": { - "message": "Installed browser plugins", - "description": "plugins group" - }, - "jssgroupInstalledBrowserPluginsDescription": { - "message": "Protect against plugin fingerprinting." - }, - "jssgroupInstalledBrowserPluginsDescription2": { - "message": "The protection is not applied if your browser returns an empty list or the five PDF plugin viewers specified by the living HTML standard. Hence the protection is not applied in modern browsers.", - "description": "The protection is not applied in modern browsers" - }, - "jssgroupInstalledBrowserPluginsLittleLiesDescription": { - "message": "Edit current plugins and add two fake plugins.", - "description": "" - }, - "jssgroupInstalledBrowserPluginsFakeDescription": { - "message": "Return two fake plugins.", - "description": "" - }, - "jssgroupInstalledBrowserPluginsStrictDescription": { - "message": "Hide all plugins.", - "description": "" - }, - - "jssgroupConnectedCamerasAndMicrophones": { - "message": "Connected cameras and microphones" - }, - "jssgroupConnectedCamerasAndMicrophonesDescription": { - "message": "Prevent fingerprinting based on the multimedia devices connected to the computer." - }, - "jssgroupConnectedCamerasAndMicrophonesDescription2": { - "message": "Function $api$ is modified to return empty or modified result.", - "placeholders": { - "api": { - "content": "MediaDevices.enumerateDevices()", - "description": "Keep the names of the API" - } - } - }, - "jssgroupConnectedCamerasAndMicrophonesLittleLiesDescription": { - "message": "Randomize the order of the devices. The existing devices are not linkable on different domains and across sessions." - }, - "jssgroupConnectedCamerasAndMicrophonesAddFakeDescription": { - "message": "Add 0-4 fake devices and randomize the order. The existing devices are not linkable on different domains and across sessions.", - "description": "" - }, - "jssgroupConnectedCamerasAndMicrophonesStrictDescription": { - "message": "Return an empty list of devices.", - "description": "" - }, - - "jssgroupHardware": { - "message": "Device memory and CPU", - "description": "hardware group" - }, - "jssgroupHardwareDescription": { - "message": "Spoof hardware information on the amount of RAM and CPU count." - }, - "jssgroupHardwareDescription2": { - "message": "Getters $apis$ return modified values.", - "placeholders": { - "apis": { - "content": "navigator.deviceMemory and navigator.hardwareConcurrency", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupHardwareLowDescription": { - "message": "Return random valid value between the minimum and the real value. The returned value differs based on the visited domains and across sessions." - }, - "jssgroupHardwareMediumDescription": { - "message": "Return random valid value between minimum and 8. The returned value differs based on the visited domains and across sessions." - }, - "jssgroupHardwareHighDescription": { - "message": "Return 4 for navigator.deviceMemory and 2 for navigator.hardwareConcurrency.", - "description": "Keep the names of the APIs in English" - }, - - "jssgroupNetworkConditions": { - "message": "Network conditions", - "description": "net group" - }, - "jssgroupNetworkConditionsDescription": { - "message": "Disable access to network information to limit fingerprinting and remove the possibility of observing patterns in accessed networks to learn if the user is at home, work, or travel.", - "description": "" - }, - "jssgroupNetworkConditionsRemoveDescription": { - "message": "Disable NetworkInformation API", - "description": "Keep the name of the API in English" - }, - - "jssgroupXMLHttpRequestRequests": { - "message": "XMLHttpRequest (XHR) data transfers", - "description": "Keep the name of the API in English" - }, - "jssgroupXMLHttpRequestRequestsDescription": { - "message": "Filter reliable XHR requests to the server." - }, - "jssgroupXMLHttpRequestRequestsDescription2": { - "message": "Note that XHR requests are broadly employed for benign purposes and that $apis$ are not blocked. All provide similar and some even better means of communication with servers. We recommend activating the Fingerprint Detector instead of XHR wrappers for practical usage. JShelter keeps the wrapper as it is useful for some users mainly for experimental reasons.", - "placeholders": { - "apis": { - "content": "Fetch, SSE, WebRTC, and WebSockets APIs", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupXMLHttpRequestRequestsAskDescription": { - "message": "Ask before executing an XHR request", - "description": "Keep the name of the API in English" - }, - "jssgroupXMLHttpRequestRequestsBlockDescription": { - "message": "Block all XHR requests", - "description": "Keep the name of the API in English" - }, - - "jssgroupArrays": { - "message": "ArrayBuffer API", - "description": "arrays group" - }, - "jssgroupArraysDescription": { - "message": "Protect against ArrayBuffer exploitation, for example, to prevent side-channel attacks on memory layout (or make them harder).", - "description": "" - }, - "jssgroupArraysShift": { - "message": "Shift" - }, - "jssgroupArraysShiftDescription": { - "message": "Shift indexes to make memory page boundaries detection harder." - }, - "jssgroupArraysRandomize": { - "message": "Randomize" - }, - "jssgroupArraysRandomizeDescription": { - "message": "Use random mapping of array indexing to memory. This option is more effective but slower compared to shifting." - }, - - "jssgroupSharedArraysBuffer": { - "message": "SharedArrayBuffer API", - "description": "shared_array group" - }, - "jssgroupSharedArraysBufferDescription": { - "message": "Protect against SharedArrayBuffer exploitation, for example, to prevent side-channel attacks on memory layout (or make them harder).", - "description": "" - }, - "jssgroupSharedArraysBufferMediumDescription": { - "message": "Randomly slow messages to prevent high-resolution timers", - "description": "" - }, - "jssgroupSharedArraysBufferStrictDescription": { - "message": "Block SharedArrayBuffer", - "description": "" - }, - - "jssgroupWebWorker": { - "message": "WebWorker API", - "description": "webworker group, keep the name of the API in English" - }, - "jssgroupWebWorkerDescription": { - "message": "Protect against WebWorker exploitation", - "description": "Keep the name of the API in English" - }, - "jssgroupWebWorkerDescription2": { - "message": "Workers provide powerful APIs that, for example, allow installing an invisible proxy to the browser. Higher levels remove that possibility. Note that benign sites use workers to provide offline work capabilities, search, caching during multimedia playbacks, etc.", - "description": "Try to keep the reference to the Worker in English" - }, - "jssgroupWebWorkerLowDescription": { - "message": "Randomly slow messages to prevent high-resolution timers but keep WebWorker support. This option does not prevent Workers from accessing original APIs. Use with caution.", - "description": "Try to keep the reference to the Worker in English" - }, - "jssgroupWebWorkerStrictDescription": { - "message": "Make WebWorkers inoperable. Use this to prevent sites from learning that the browser does not support WebWorkers. However, this prevents sites to deploy workarounds for missing WebWorker support that some sites provide.", - "description": "Try to keep the reference to the Worker in English" - }, - "jssgroupWebWorkerRemoveDescription": { - "message": "Remove WebWorkers support from the browser. This is easily detectable by web pages and improves the fingerprintability of the browser but at the same time gives the page the possibility to deploy code that compensates for the missing WebWorker support.", - "description": "Try to keep the reference to the Worker in English" - }, - - "jssgroupPhysicalLocationGeolocation": { - "message": "Physical location (geolocation)" - }, - "jssgroupPhysicalLocationGeolocationDescription": { - "message": "Limit the information on real-world position provided by Geolocation API.", - "description": "Displayed at various places, keep the name of the API in the English" - }, - "jssgroupPhysicalLocationGeolocationDescription2": { - "message": "Use domain hash for the position spoofing so the position will be the same at one domain for the whole session.", - "description": "Displayed at various places" - }, - "jssgroupGeolocationTimestampOnly": { - "message": "Timestamp-only", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationTimestampOnlyDescription": { - "message": "Provide accurate data (use when you really need to provide the exact location and you want to protect geolocation timestamps via \"$jssgroupTimePrecision$\" protection)", - "description": "Explains the protection to the user", - "placeholders": { - "jssgroupTimePrecision": { - "content": "$1", - "example": "Translated string of the jssgroupTimePrecision" - } - } - }, - "jssgroupGeolocationVillage": { - "message": "Village", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationVillageDescription": { - "message": "Use accuracy of hundreds of meters.", - "description": "Explains the protection to the user" - }, - "jssgroupGeolocationTown": { - "message": "Town", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationTownDescription": { - "message": "Use accuracy of kilometers.", - "description": "Explains the protection to the user" - }, - "jssgroupGeolocationRegion": { - "message": "Region", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationRegionDescription": { - "message": "Use accuracy of tens of kilometers.", - "description": "Explains the protection to the user" - }, - "jssgroupGeolocationLongDistance": { - "message": "Long distance", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationLongDistanceDescription": { - "message": "Use accuracy of hundreds of kilometers.", - "description": "Explains the protection to the user" - }, - "jssgroupGeolocationRemoveDescription": { - "message": "Completely remove geolocation services.", - "description": "Explains the protection to the user" - }, - - "jssgroupPhysicalEnvironmentSensors": { - "message": "Physical environment sensors", - "description": "physical_environment group" - }, - "jssgroupPhysicalEnvironmentSensorsDescription": { - "message": "Limit the information provided by physical environment sensors like Magnetometer or Accelerometer.", - "description": "Consider replacing Magnetometer and Accelerometer with localized version of the sensor" - }, - "jssgroupPhysicalEnvironmentSensorsDescription2": { - "message": "Such information can be misused for multiple purposes, including environment fingerprinting, user location tracking, detection of nearby devices, estimation of the user action performed with the device, and many others. However, the readings can be useful for applications like navigation, gaming, and others. For example, some applications can use the orientation of the device to control the actions inside the application." - }, - "jssgroupPhysicalEnvironmentSensorsHighDescription": { - "message": "Emulate stationary device that provides different sensor readings on different domains and across sessions." - }, - - "jssgroupUserIdleDetection": { - "message": "User idle detection", - "description": "useridle group" - }, - "jssgroupUserIdleDetectionDescription": { - "message": "The Idle Detection API can detect inactive users and locked screens.", - "description": "Try to keep the name of the API in English" - }, - "jssgroupUserIdleDetectionDescription2": { - "message": "The intention of the API is to provide web applications the information of user inactivity, for example, not to show notifications while the user is inactive. However, the information can be misused to track the activity of the user and for correlating changes in the state across domains." - }, - "jssgroupUserIdleConfuseDescription": { - "message": "Always return active user with an unlocked screen." - }, - "jssgroupUserIdleBlockDescription": { - "message": "Do not show prompts and automatically decline." - }, - "jssgroupUserIdleRemoveDescription": { - "message": "Remove the API." - }, - - "jssgroupCoopschedule": { - "message": "Idle period task scheduling", - "description": "coopschedule group" - }, - "jssgroupCoopscheduleDescription": { - "message": "The Cooperative Scheduling of Background Tasks API can schedule background tasks such that they do not introduce delays to other high-priority tasks that share the same event loop.", - "description": "Try to keep the names of the APIs in English" - }, - "jssgroupCoopscheduleDescription2": { - "message": "The API leaks information about the other tasks running in the browser as it leaks information on currently scheduled tasks, vsync deadlines, user-interaction and so on." - }, - "jssgroupCoopscheduleConfuseDescription": { - "message": "Modify the available information to confuse adversaries." - }, - - "jssgroupGamepads": { - "message": "Gamepads", - "description": "gamepads group" - }, - "jssgroupGamepadsDescription": { - "message": "Prevent websites from accessing and learning information on local gamepads." - }, - "jssgroupGamepadsDescription2": { - "message": "The information can be misused for browser fingerprinting. At the same time, the user needs access to gamepads only on specialized websites." - }, - "jssgroupGamepadsStrictDescription": { - "message": "Hide all gamepads." - }, - - "jssgroupVirtualAndAugmentedRealityDevices": { - "message": "Virtual and augmented reality devices", - "description": "vr group (also includes XR API)" - }, - "jssgroupVirtualAndAugmentedRealityDevicesDescription": { - "message": "Prevent websites from accessing and learning information on local virtual and augmented reality displays." - }, - "jssgroupVirtualAndAugmentedRealityDevicesDescription2": { - "message": "The information can be misused for browser fingerprinting. At the same time, the user needs access to virtual and augmented reality devices only on specialized websites." - }, - "jssgroupVirtualAndAugmentedRealityDevicesStrictDescription": { - "message": "Hide all devices." - }, - - "jssgroupMultimediaPlayback": { - "message": "Multimedia playback", - "description": "playback group" - }, - "jssgroupMultimediaPlaybackDescription": { - "message": "Prevent websites from accessing and learning information on locally installed codecs and encoding/decoding capabilities and performance." - }, - "jssgroupMultimediaPlaybackDescription2": { - "message": "The information provided by the API can be misused for browser fingerprinting. You should enable the protection for sites that do not process audio or video. The protection can break sites processing audio or video." - }, - "jssgroupMultimediaPlaybackLittleLiesDescription": { - "message": "Report a codec/encryption mechanism as unsupported with 12.5% probability." - }, - "jssgroupMultimediaPlaybackStrictDescription": { - "message": "Report all codecs/encryption mechanisms as unsupported." - }, - "jssgroupMultimediaPlaybackBlockDescription": { - "message": "Do not return any information at all." - }, - - "jssgroupUnreliableTransfersToServerBeacons": { - "message": "Unreliable transfers to server (beacons)", - "description": "analytics group" - }, - "jssgroupUnreliableTransfersToServerBeaconsDescription": { - "message": "Prevent unreliable transfers to server (beacons)." - }, - "jssgroupUnreliableTransfersToServerBeaconsDescription2": { - "message": "Such transfers are typically misused for analytics but occasionally may be used by online retailers or other pages." - }, - "jssgroupUnreliableTransfersToServerBeaconsDescription3": { - "message": "Prevent sending information through Beacon API.", - "description": "Keep the name of the API" - }, - "jssgroupUnreliableTransfersToServerBeaconsBlockDescription": { - "message": "Block data transfers through this API. Performs no action." - }, - - "jssgroupHardwareBattery": { - "message": "Battery Status API", - "description": "battery group" - }, - "jssgroupHardwareBatteryDescription": { - "message": "Removes Battery Status API support that is being misused for fingerprinting.", - "description": "Try to keep the reference to the English name of the API" - }, - "jssgroupHardwareBatteryRemoveDescription": { - "message": "Remove the API" - }, - - "jssgroupPersistentIdentifierOfTheBrowserTab": { - "message": "Persistent identifier of the browser tab", - "description": "windowname group" - }, - "jssgroupPersistentIdentifierOfTheBrowserTabDescription": { - "message": "Unlike the other parts of the environment, window.name property is not reset during page load. Consequently, a page might store a unique identifier of the tab to the property or other benign data.", - "description": "Try to keep reference to window.name." - }, - "jssgroupPersistentIdentifierOfTheBrowserTabDescription2": { - "message": "This API allows cross-site identification in one tab and browser session." - }, - "jssgroupPersistentIdentifierOfTheBrowserTabStrictDescription": { - "message": "Clear window.name values when moving do a different service (eTLD+1 domain change) during page reload. This does not interfere with most benign purposes while preventing the cross-site re-identification attack.", - "description": "Try to keep reference to window.name and eTLD+1" - }, - "jssgroupPersistentIdentifierOfTheBrowserTabFirefox88": { - "message": "$BROWSER$ and above already protects you.", - "placeholders": { - "browser": { - "content": "Firefox 88" - } - } - }, - - "jssgroupNFC": { - "message": "Near Field Communication (NFC)", - "description": "nfc group" - }, - "jssgroupNFCDescription": { - "message": "Near Field Communication (NFC) enables wireless communication between two devices at close proximity, usually less than a few centimeters. NFC is an international standard (ISO/IEC 18092) defining an interface and protocol for simple wireless interconnection of closely coupled devices operating at 13.56 MHz." - }, - "jssgroupNFCDescription2": { - "message": "The API can be misused to learn information about other devices in the proximity.", - "description": "Keep the technical references" - }, - "jssgroupNFCRemoveDescription": { - "message": "Remove the API" - }, - - "jssgroupWASM": { - "message": "WebAssembly speed-up", - "description": "webassembly group" - }, - "jssgroupWASMDescription": { - "message": "Speed up the little-lies modifications of locally generated images and audio by WebAssembly.", - "description": "Keep reference to WebAssembly" - }, - "jssgroupWASMDescription2": { - "message": "This option takes effect when the level of \"$canvas$\" or \"$audio$\" is set to \"$littlelies$\" only.", - "placeholders": { - "canvas": { - "content": "$1", - "example": "Translation of jssgroupLocallyRenderedImages" - }, - "audio": { - "content": "$2", - "example": "Translation of jssgroupLocallyGeneratedAudio" - }, - "littlelies": { - "content": "$3", - "example": "Translation of jssgroupLittleLies" - } - } - }, - "jssgroupWASMDescription3": { - "message": "The WebAssembly code generates the same modifications as the not accelerated version, so it is a safe option to activate when concerned about fingerprinting." - }, - "jssgroupWASMDisabled": { - "message": "Disabled" - }, - "jssgroupWASMDisabledDescription": { - "message": "Do not create little lies in WebAssembly, use slower JavaScript." - }, - "jssgroupWASMPassive": { - "message": "Passive" - }, - "jssgroupWASMPassiveDescription": { - "message": "Enable WebAssembly to create little lies but fall back to the default slower implementation if the WebAssembly module cannot be injected." - }, - "jssgroupWASMActive": { - "message": "Active" - }, - "jssgroupWASMActiveDescription": { - "message": "Loosen the 'wasm-unsafe-eval' Content Security Policy (CSP) directive to allow WebAssembly execution where the CSP of the visited page would otherwise prevent it." - }, - "jssgroupWASMActiveDescription2": { - "message": "The initialization of WebAssembly modules is subject to the CSP of the visited page in Chromium-based browsers." - }, - "jssgroupWASMActiveDescription3": { - "message": "The benefit of this option is that the modifications run faster on all pages." - }, - "jssgroupWASMActiveDescription4": { - "message": "However, by enabling this option, you increase the risk of being a victim of a vulnerability that would have been otherwise prevented by the CSP, such as cross-site scripting vulnerabilities. Moreover, this option might interfere with other installed extensions that modify the CSP header." - }, - "jssgroupWASMEnabled": { - "message": "Enabled" - }, - "jssgroupWASMEnabledDescription": { - "message": "Create little lies in WebAssembly." - }, - - "JShelterOptions": { - "message": "JShelter main settings", - "description": "Title of the main options page" - }, - "mainSettings": { - "message": "Main settings", - "description": "Displayed in options in the navigation bar" - }, - "JShelterOptionsJSSFineTune": { - "message": "Javascript Shield details: per domain protections", - "description": "Title of the JS Shield details options page" - }, - "jSSShieldDetails": { - "message": "JS Shield details", - "description": "Displayed in options in the navigation bar, try to keep JS shield abbreviated to keep the text short" - }, - "JShelterOptionsAdvanced": { - "message": "JShelter expert options", - "description": "Title of the expert options page" - }, - "advancedOptions": { - "message": "Expert options", - "description": "Displayed in options in the navigation bar" - }, - "externalLinks": { - "message": "External links", - "description": "Displayed in options in the navigation bar" - }, - "ExternalLinksSeparator": { - "message": " »", - "description": "Displayed in options in the navigation bar, for example after external links" - }, - "threatModel": { - "message": "Threat model", - "description": "Displayed in options in the navigation bar" - }, - "fAQ": { - "message": "FAQ", - "description": "Displayed in options in the navigation bar" - }, - "testPage": { - "message": "Test page", - "description": "Displayed in options in the navigation bar" - }, - "permissions": { - "message": "Permissions", - "description": "Displayed in options in the navigation bar" - }, - "sourceCode": { - "message": "Source code", - "description": "Displayed in options in the navigation bar" - }, - "issueTracker": { - "message": "Issue tracker", - "description": "Displayed in options in the navigation bar" - }, - "credits": { - "message": "Credits", - "description": "Displayed in options in the navigation bar" - }, - - "ExampleDomainsText": { - "message": "example.com or en.example.com", - "description": "Displayed in text inputs that expect a domain" - }, - "ButtonSignExpandOneCharacterDown": { - "message": "⤵", - "description": "A button caption that can be used generically by JShelter, it should contain a single character that intuitively tells the user that by clicking the button, more information will be shown" - }, - "ButtonSave": { - "message": "Save", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonRestore": { - "message": "Restore", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonRestoreLevel": { - "message": "Restore level $LEVELNAME$", - "description": "A button caption that can be used generically by JShelter", - "placeholders": { - "levelName": { - "content": "$1", - "example": "Level name of the level to be restored, for example, Default" - } - } - }, - "ButtonEdit": { - "message": "Edit", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonSaveCustomLevel": { - "message": "Save custom level", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonAddNewLevel": { - "message": "Add new level", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonCancel": { - "message": "Cancel", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonRemove": { - "message": "Remove", - "description": "A button caption that can be used generically by JShelter" - }, - "addToList": { - "message": "Add to list", - "description": "A button caption that can be used generically by JShelter, atm it is displayed in JSS advanced options page" - }, - "saveAll": { - "message": "Save all", - "description": "A button caption that can be used generically by JShelter, atm it is displayed in JSS advanced options page" - }, - "deleteAll": { - "message": "Delete all", - "description": "A button caption that can be used generically by JShelter, atm it is displayed in JSS advanced options page" - }, - "ManageWhitelist": { - "message": "Manage exception list ⤵", - "description": "A button caption that can be used generically by JShelter, e.g. to fine-tune NBS and FPD; Please indicate that the list would appear below (the arrow at the end)." - }, - "HideWhitelist": { - "message": "Hide exception list ⤵", - "description": "A button caption that can be used generically by JShelter, e.g. to fine-tune NBS and FPD; Please indicate that the list is located below (the arrow at the end)." - }, - "ButtonDisableForDomain": { - "message": "<strong>$DISABLE$</strong> $FORTHEDOMAIN$", - "description": "A button caption that can be used generically by JShelter, e.g. in the options; if necessary, edit the structure of the message but make sure to emhasize the disablement. Translate the placeholders.", - "placeholders": { - "disable": { - "content": "Disable", - "description": "Please translate" - }, - "forTheDomain": { - "content": "for the domain", - "description": "Please translate" - } - } - }, - "ButtonEnableForSelectedDomains": { - "message": "<strong>$ENABLE$</strong> $FORTHEDOMAIN$", - "description": "A button caption that can be used generically by JShelter, e.g. in the options; if necessary, edit the structure of the message but make sure to emhasize the enablement. Translate the placeholders.", - "placeholders": { - "enable": { - "content": "Enable", - "description": "Please translate" - }, - "forTheDomain": { - "content": "for the selected domains", - "description": "Please translate" - } - } - }, - "ManageWhitelistDescription": { - "message": "Please note that these domain names are checked within the domain hierarchy, so giving the exception to <strong>example.com</strong> does also allow <strong>news.example.com</strong> to bypass the shield.", - "description": "Information text that can be used generically by JShelter, e.g. in options to explain the exception list of NBS and FPD." - }, - - "javascriptShieldDescription": { - "message": "<p>$PARAGRAPH1$</p><p>$PARAGRAPH2$</p><ul><li>$REDUCTION$</li><li>$FAKE$</li><li>$HIDE$</li></ul><p>$BLOGS$</p>", - "description": "This is the description of JSS shown in options. Please do not modify the template string in the message but translate the paragraphs in the placeholders section. If you find necessary, you can remove or add paragraphs.", - "placeholders": { - "paragraph1": { - "content": "JavaScript Shield modifies the behavior of the JavaScript environment available for the visited webpage. JShelter provides fake information to confuse fingerprinters or make webpage triggered attacks impossible or harder.", - "description": "Paragraph 1, please translate this text." - }, - "paragraph2": { - "content": "JavaScript Shield internally consists of wrappers, small pieces of code that modify the original behavior of a JavaScript API (a function or a property) defined by standards. The behavior of most of the wrappers can be divided into several categories:", - "description": "Paragraph 2, please translate this text." - }, - "reduction": { - "content": "Precision reduction: The original value is too precise for most use cases. JavaScript Shield modifies the values so that typical and benign use cases are not affected.", - "description": "UL item 1, please translate this text." - }, - "fake": { - "content": "Provide fake information: Some wrappers provide fake information mostly to confuse fingerprinters. Some wrappers provide plausible readings that are not based on the original value. Other wrappers modify the readings with small deviations that are typically not detectable for a human but significant for a fingerprinter. JShelter applies such deviations differently in each session and for each domain so that an observer operating several domains cannot use the information to link the browser. For example, canvas wrappers modify the image so that the same instructions produce different results on different domains and in different sessions.", - "description": "UL item 2, please translate this text." - }, - "hide": { - "content": "Hide information: Some APIs provide information that is not generally needed and can be hidden from most pages. Depending on the API, JavaScript Shield might return an error, an empty value, or block the API completely.", - "description": "UL item 3, please translate this text." - }, - "blogs": { - "content": "See our blog posts for more information on <a href='https://jshelter.org/fingerprinting/'>browser fingerprinting counter-measures</a> and <a href='https://jshelter.org/farbling/'>little lies</a>.", - "description": "Last paragraph, please translate this text, keep the URLs to the English version unless a translation exists on the web." - } - } - }, - "JavascriptShieldLevelsMainLevelOptionHeading": { - "message": "Create custom levels and set the default level", - "description": "A heading in the options above the configuration of the default JSS level and the possibility to list existing levels and create own levels." - }, - "addCustomLevel": { - "message": "Add custom level", - "description": "A button caption, the button creates a custom JSS level." - }, - - "JSSL0Name": { - "message": "Turn JavaScript Shield off", - "description": "The name of JSS L0 that is used at various places in the UI" - }, - "JSSL0Description": { - "message": "JavaScript APIs are not wrapped. Use this level if you (1) trust the operator of the visited page(s) and you want to give them access to full APIs supported by the browser as well as the adversaries that might have injected code to the trusted pages, or (2) if you do not like JavaScript Shield but you want to apply other protection mechanisms.", - "description": "The description of JSS L0 that is used at various places in the UI" - }, - "JSSL1Name": { - "message": "Turn fingerprinting protection off", - "description": "The name of JSS L1 that is used at various places in the UI" - }, - "JSSL1Description": { - "message": "Apply security counter-measures that are likely not to break web pages but do not defend against fingerprinting. Disable APIs that are not commonly used. Use this level if Fingerprint Detector reports that the page called a low number of APIs misused for fingerprinting, you trust the visited service, and/or you think that the protection makes the page slow or broken and your temptation to use the service is so high that you do not want to be protected.", - "description": "The description of JSS L1 that is used at various places in the UI, see also FingerprintQualityLabel label for the origin of 'the page called a low number of APIs misused for fingerprinting'" - }, - "JSSL2Name": { - "message": "Recommended", - "description": "The name of JSS L2 that is used at various places in the UI" - }, - "JSSL2Description": { - "message": "Make the browser appear differently on distinct visited domains. Apply security counter-measures that are likely not to break web pages. Slightly modify the results of API calls differently on different domains so that the cross-site fingerprint is not stable. The values misused to generate fingerprints also differ with each browser restart. Try incognito mode if you need a different fingerprint for the same website without restart. Remember that even if you log out from a site, clear your cookies, and change your IP address, the modified APIs will provide a way to compute the same fingerprint. Restart your browser if you want to change your fingerprint. If in doubt, use this level.", - "description": "The description of JSS L1 that is used at various places in the UI" - }, - "JSSL3Name": { - "message": "Strict", - "description": "The name of JSS L3 that is used at various places in the UI" - }, - "JSSL3Description": { - "message": "Enable all non-experimental protection. The wrapped APIs return fake values. Some APIs are blocked completely, while others provide meaningful but rare values. Some return meaningless values. This level will make you fingerprintable because the results of API calls are generally modified in the same way on all websites and in each session. Use this level if you want to limit the information provided by your browser. If you are worried about fingerprinters, make sure the Fingerprint Detector is activated.", - "description": "The description of JSS L2 that is used at various places in the UI" - }, - "JSSLexperimentalName": { - "message": "Experimental", - "description": "The name of JSS experimental level that is used at various places in the UI" - }, - "JSSLexperimentalDescription": { - "message": "Strict level protections with additional wrappers enabled (including APIs known to regularly break webpages and APIs that do not work perfectly). Use this level if you want to experiment with JShelter. Use Recommended or Strict level with active Fingerprint Detector for your regular activities.", - "description": "The description of JSS experimental level that is used at various places in the UI" - }, - - "omittedAPIsHeading": { - "message": "Note that for fingerprintability prevention, JShelter does not wrap objects that are not defined. Your browser does not support:", - "description": "This message is displayed while giving the possibility to create a new level or edit existing levels in options" - }, - "newLevelsNotRecommended": { - "message": "We do not recommend creating your own levels and changing configuration if you are concerned about browser fingerprinting. Please read <a href=\"$FAQURL$\">FAQ</a> and our <a href=\"$PAPERURL$\">paper</a>. By diverging from the configuration of other users, you make your re-identification easier.", - "placeholders": { - "faqurl": { - "content": "https://jshelter.org/faq/" - }, - "paperurl": { - "content": "https://arxiv.org/abs/2204.01392" - } - }, - "description": "This message is displayed while creating a new level in options. Make sure that you keep correct HTML markup" - }, - - "formlabelName": { - "message": "Name:", - "description": "Used in forms whenever a name should be enered (atm new level name)" - }, - "formlabelDescription": { - "message": "Description:", - "description": "Used in forms whenever a description should be enered (atm new level description)" - }, - - "customLevelAlreadyExistsItWillBeOverridden": { - "message": "Custom level $CUSTOMNAME$ already exists. It will be overridden.", - "description": "Alert message shown during level editing, translate the message but not the placeholder", - "placeholders": { - "customName": { - "content": "$1", - "example": "User provided value, any text", - "description": "The level name that is about to be overwritten, do not translate" - } - } - }, - "customLevelWereNotUpdated": { - "message": "Custom levels were not updated. Please try again later.", - "description": "The configuration with the chaged or new level was not saved because of unknown reason." - }, - "NewLevelMissingNameOrDescription": { - "message": "Both Name and Description of the level are mandatory. Please provide both.", - "description": "User did not supply all mandatory fields for a JSS level" - }, - "JSSeditLevelHeading": { - "message": "Edit level $LEVELNAME$", - "description": "Heading shown during JSS tweaking (edit level form)", - "placeholders": { - "levelName": { - "content": "$1", - "example": "User provided value, any text", - "description": "The level name that is about to be overwritten, do not translate" - } - } - }, - "JSSaddLevelHeading": { - "message": "Add new level", - "description": "Form heading during creation of a new level. You likely want to use the same or very similar value as ButtonAddNewLevel translation string." - }, - - "javaScriptShieldPerWebsiteConfiguration": { - "message": "JavaScript Shield per-website configuration", - "description": "Displayed in JSS advanced options page" - }, - "setJavaScriptShieldForWebsite": { - "message": "Set JavaScript Shield for website:", - "description": "Displayed in JSS advanced options page" - }, - "aListOfWebsiteWithRedefinedJavaScriptShield": { - "message": "A list of websites with redefined JavaScript Shield:", - "description": "Displayed in JSS advanced options page" - }, - "JSSAdvancedConfirmOverwrite": { - "message": "Settings for domain $DOMAIN$ already exist and will be overridden.", - "description": "Displayed in JSS advanced options page", - "placeholders": { - "domain": { - "content": "$1", - "example": "The domain whose settings are about to be overwritten, like example.com" - } - } - }, - "LevelAndDescription": { - "message": "$LEVELNAME$: $LEVELSHORTDESCRIPTION$", - "description": "Displayed in options pages in select elements to give the user an idea what level to apply by listing both its name and a short description", - "placeholders": { - "levelName": { - "content": "$1", - "example": "Name of the level" - }, - "levelShortDescription": { - "content": "$2", - "example": "Short description of the level" - } - } - }, - - "doNotModifyThisConfiguration": { - "message": "BEWARE! Do not modify this configuration unless you know what you are doing.", - "description": "Displayed in expert settings" - }, - "JShelterFullConfiguration": { - "message": "Full JShelter configuration in the text", - "description": "Displayed in expert settings, label for the full extension configuration in textarea" - }, - "ExpertLoadCurrentlyStoredConfiguration": { - "message": "Load currently stored configuration", - "description": "Displayed in expert settings, button that loads current configuration to the textarea" - }, - "ExpertOverwriteConfiguration": { - "message": "Overwrite configuration (stores the displayed configuration permanently)", - "description": "Displayed in expert settings, button that stores the current configuration permanently" - }, - "ExpertResetConfiguration": { - "message": "Reset the configuration (remove all custom changes)", - "description": "Displayed in expert settings, button that reset to the configuration that we ship (factory reset)" - }, - "ExpertUndoConfiguration": { - "message": "Undo (discard last configuration override)", - "description": "Displayed in expert settings, button that restores the configuration to the previous (back button)" - }, - "JSSBuiltinExceptions": { - "message": "Built-in tweaks for JavaScript Shield", - "description": "Displayed in expert settings, heading for the table of built-in tweaks" - }, - "JSSBuiltinExceptionsDomain": { - "message": "Domain", - "description": "Displayed in expert settings, heading in the table of built-in tweaks" - }, - "JSSBuiltinExceptionsLevels": { - "message": "Levels", - "description": "Displayed in expert settings, heading in the table of built-in tweaks" - }, - "JSSBuiltinExceptionsLevelsSeparator": { - "message": ", ", - "description": "Displayed in expert settings, separator for levels displayed" - }, - "JSSBuiltinExceptionsChanges": { - "message": "Changes", - "description": "Displayed in expert settings, heading in the table of built-in tweaks" - }, - "JSSBuiltinExceptionsReason": { - "message": "Reason", - "description": "Displayed in expert settings, heading in the table of built-in tweaks" - }, - - "protectionConfigurationOptionActivatedOn": { - "message": "On", - "description": "Displayed during NBS and FPD configuration when the option is activated (on)" - }, - "protectionConfigurationOptionActivatedOff": { - "message": "Off", - "description": "Displayed during NBS and FPD configuration when the option is deactivated (off)" - }, - "shieldNotifications": { - "message": "Notifications", - "description": "Displayed as a text label during NBS and FPD configuration when the user can activate or deactivate notifications" - }, - "NBSDescription": { - "message": "<p>$PARAGRAPH1$</p><p>$PARAGRAPH2$</p><p>$PARAGRAPH3$</p>", - "description": "This is the description of NBS shown in options. Please do not modify the template string in the message but translate the paragraphs in the placeholders section. If you find necessary, you can remove or add paragraphs.", - "placeholders": { - "paragraph1": { - "content": "Network Boundary Shield prevents visited web pages from using the browser as a proxy between the public Internet and local network. See <a href='https://jshelter.org/localportscanning/'>our blog post</a> and <a href='https://www.forcepoint.com/sites/default/files/resources/files/report-attacking-internal-network-en_0.pdf'>Force Point report</a> for examples of attacks handled by the Network Boundary Shield. The protection encapsulates the WebRequest API, so it captures all outgoing requests.", - "description": "Paragraph 1, please translate this text, keep the URLs or replace them to a translated version of the targets." - }, - "paragraph2": { - "content": "Generally, you want Network Boundary Shield to block all suspicious requests. However, some pages can be broken because they require interaction between the public Internet and the local network. For example, the Network Boundary Shield might break some Intranet information systems. JShelter users also reported increased false positives when using DNS-based filtering programs. If you use one, make sure that DNS returns 0.0.0.0 for the blocked domains.", - "description": "Paragraph 2, please translate this text." - }, - "paragraph3": { - "content": "Network Boundary Shield default behavior can be globally adjusted by the settings below. Network Boundary Shield can also be completely disabled per domain by the exception list. Domains can be allowed to make cross-network requests via <i>Network Boundary Shield switch</i> in the popup window or manually via the <i>Manage exception list</i> option. Remember that adding a domain to the exception list also allows its subdomains to make cross-network requests. To selectively deactivate Network Boundary Shield, insert the domains to the exception list (excluding \"www\" but including all other domains, e.g., \".com\").", - "description": "Paragraph 3, please translate this text, note that <i>Manage exception list</i> refers to the ManageWhitelist string." - } - } - }, - "NBSHttpProxyDNSAPINote": { - "message": "If you are using an HTTP proxy, NBS would protect the local network of the proxy instead of your network as the proxy performs the HTTP requests to the destinations. To prevent DNS leaks of your queries initiated from this computer, Network Boundary Shield does not resolve the DNS domains to detect possible cross-network boundary requests. However, the Network Boundary Shield protects the local network of the proxy for directly embedded IP addresses. Hence, Network Boundary Shield protects the local network of the proxy only partially.", - "description": "This note is appended to NBS description in Firefox, see https://pagure.io/JShelter/webextension/issue/41 for the context of the issue" - }, - - "nbsBlocking": { - "message": "Blocking", - "description": "Displayed during NBS configuration, label for a configuration option" - }, - "nbsBlockingDescription": { - "message": "Block requests that are trying to access your local network.", - "description": "Displayed during NBS configuration, basic explanation of the configuration option" - }, - "nbsBlockingDescription2": { - "message": "NOTE: We recommend having request blocking turned on in most cases.", - "description": "Displayed during NBS configuration, further explanation of the configuration option" - }, - "nbsBlockingOffDescription": { - "message": "Requests blocking turned off.", - "description": "Displayed during NBS configuration, further explanation of the selected configuration level" - }, - "nbsBlockingOnDescription": { - "message": "Requests blocking turned on.", - "description": "Displayed during NBS configuration, further explanation of the selected configuration level" - }, - "NBSNotificationsDescription": { - "message": "Turn on/off notifications about suspicious requests or requests being blocked.", - "description": "Displayed in NBS options, globaly disables or enables notifications" - }, - "NBSNotificationsDescription2": { - "message": "In case you enable the notifications: if the blocking is on, you will be notified about blocked requests; if the blocking is off, you will be notified about suspicious requests without any attempt to prevent them.", - "description": "Displayed in NBS options, globaly disables or enables notifications" - }, - "NBSNotificationsOffDescription": { - "message": "Blocking notifications turned off.", - "description": "Displayed in NBS options, notifications about blocked requests are globally disabled" - }, - "NBSNotificationsOnDescription": { - "message": "Blocking notifications turned on.", - "description": "Displayed in NBS options, notifications about blocked requests are globally enabled" - }, - "NBSBlockedTitle": { - "message": "Network Boundary Shield blocked suspicious requests!", - "description": "Title of the notifications that is displayed when NBS actually blocks requests" - }, - "NBSDetectedTitle": { - "message": "Network Boundary Shield detected suspicious requests!", - "description": "Title of the notifications that is displayed when NBS detects a suspicious requests but does not block them because blocking is disabled" - }, - "NBSBlockedMessageMultipleTargets": { - "message": "Count of blocked requests\nby $ORIGIN$\nthat attempted to access local\nnetwork: $COUNT$.", - "description": "The message shown when the page contacted multiple targets in the local network. Produce short lines.", - "placeholders": { - "origin": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - }, - "count": { - "content": "$2", - "description": "A positive number, do not translate", - "example": "5" - } - } - }, - "NBSDetectedMessageMultipleTargets": { - "message": "Count of detected requests\nby $ORIGIN$\nthat accessed local\nnetwork: $COUNT$.", - "description": "The message shown when the page contacted multiple targets in the local network. Produce short lines.", - "placeholders": { - "origin": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - }, - "count": { - "content": "$2", - "description": "A positive number, do not translate", - "example": "5" - } - } - }, - "NBSBlockedMessageWithTarget": { - "message": "Blocked requests: $COUNT$\nfrom $ORIGIN$\nto $TARGET$.", - "description": "The message shown when the page contacted single target in the local network. Produce short lines.", - "placeholders": { - "origin": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - }, - "target": { - "content": "$2", - "description": "IP address (maybe domain), do not translate", - "example": "10.0.0.1" - }, - "count": { - "content": "$3", - "description": "A positive number, do not translate", - "example": "5" - } - } - }, - "NBSDetectedMessageWithTarget": { - "message": "Detected requests: $COUNT$\nfrom $ORIGIN$\nto $TARGET$.", - "description": "The message shown when the page contacted single target in the local network. Produce short lines.", - "placeholders": { - "origin": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - }, - "target": { - "content": "$2", - "description": "IP address (maybe domain), do not translate", - "example": "10.0.0.1" - }, - "count": { - "content": "$3", - "description": "A positive number, do not translate", - "example": "5" - } - } - }, - "NBSBlockedHostTitle": { - "message": "Network Boundary Shield blocked a host!", - "description": "Title of the notifications that is displayed when NBS blocks future requests by a host in Chromium-based browsers" - }, - "NBSDetectedHostTitle": { - "message": "Network Boundary Shield detected a suspicious host!", - "description": "Title of the notifications that is displayed when NBS detects suspicious requests by a host in Chromium-based browsers but does not block them because blocking is disabled" - }, - "NBSBlockedHost": { - "message": "All future HTTP requests from $HOST$ will be blocked.", - "description": "The message shown in Chromium-based browsers when NBS starts blocking a host.", - "placeholders": { - "host": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - } - } - }, - "NBSDetectedHost": { - "message": "To block HTTP requests from $HOST$ enable blocking.", - "description": "The message shown in Chromium-based browsers when NBS detects a suspicious host.", - "placeholders": { - "host": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - } - } - }, - - "MV3DevmodeRequired": { - "message": "Due to severe limitations imposed by <a href=\"$MV3URL$\" target=\"_blank\">Google's Manifest V3</a>, JShelter and other browser extensions cannot work anymore on Chromium-based browsers (including yours) unless you switch on the <em>Developer mode</em> in <strong>chrome://extensions</strong> (<a href=\"$INFOURL$\" target=\"_blank\">more information on Google's developers site</a>).", - "placeholders": { - "mv3url": { - "content": "https://jshelter.org/mv3/" - }, - "infourl": { - "content": "https://developer.chrome.com/docs/extensions/reference/api/userScripts#chrome_versions_prior_to_138_developer_mode_toggle" - } - }, - "description": "This message is displayed as an alert in popup and options when development mode is disabled. Make sure that you keep correct HTML markup" - }, - "MV3AllowUserScriptsRequired": { - "message": "Due to severe limitations imposed by <a href=\"$MV3URL$\" target=\"_blank\">Google's Manifest V3</a>, JShelter and other browser extensions cannot work anymore on Chromium-based browsers (including yours) unless you switch on the <em>Allow User Scripts</em> toggle on the JShelter page accessible from <strong>chrome://extensions</strong> (<a href=\"$INFOURL$\" target=\"_blank\">more information on Google's developers site</a>).", - "placeholders": { - "mv3url": { - "content": "https://jshelter.org/mv3/" - }, - "infourl": { - "content": "https://developer.chrome.com/docs/extensions/reference/api/userScripts#chrome_versions_138_and_newer_allow_user_scripts_toggle" - } - }, - "description": "This message is displayed as an alert in popup and options when development mode is disabled. Make sure that you keep correct HTML markup" - }, - - "MV3BrokenFeatures": { - "message": "Due to severe limitations imposed by <a href=\"$MV3URL$\" target=\"_blank\">Google's Manifest V3</a>, some JShelter features (e.g. Network Boundary Shield and Fingerprinting Detection in Blocking Mode) won't work on recent Chromium-based browsers (including yours), and other ones might be less reliable than they were in the past and still are on Firefox.", - "placeholders": { - "mv3url": { - "content": "https://jshelter.org/mv3/" - } - }, - "description": "This message is displayed as an alert near features broken by Manifest V3. Make sure that you keep correct HTML markup" - }, - - "FPDDescription": { - "message": "<p>$PARAGRAPH1$</p><p>$PARAGRAPH2$</p><p>$PARAGRAPH3$</p>", - "description": "This is the description of FPD shown in options. Please do not modify the template string in the message but translate the paragraphs in the placeholders section. If you find necessary, you can remove or add paragraphs.", - "placeholders": { - "paragraph1": { - "content": "Fingerprint Detector provides a mechanism that informs users about fingerprinting activity on visited web pages. The detector can also prevent web pages from extracting browser fingerprints if a user chooses to do so. See <a href='https://jshelter.org/fpdetection/'>our blog post</a> or <a href='https://arxiv.org/pdf/1905.01051.pdf'>Browser Fingerprinting: A survey</a> for a closer description of browser fingerprinting.", - "description": "Paragraph 1, please translate this text, keep the URLs or replace them to a translated version of the targets." - }, - "paragraph2": { - "content": "By enabling the detector, you will be notified whenever it detects that the visited page has called a high number of APIs misused for fingerprinting. The detector counts and evaluates the called APIs for each page visit according to our heuristics. The number of called APIs misused for fingerprinting is presented to you by the badge color of the JShelter icon and in the popup window. You can receive a notification if the page calls a high number of fingerprinting APIs. You can see details about the fingerprinting activity by generating a fingerprint report. You can access it via a popup window or by clicking directly on the notification.", - "description": "Paragraph 2, please translate this text." - }, - "paragraph3": { - "content": "The default behavior of Fingerprint Detector can be adjusted to your liking. You can choose \"blocking\" behavior, which is a counter-measure against leaking your fingerprint. In this case, the Fingerprint Detector blocks all HTTP requests and cleans browser storages when it computes that the page calls a high number of fingerprinting APIs. Since <strong>this action generally breaks web pages</strong>, we recommend creating an exception list for trusted domains. Switching off the detector for a domain in the popup window will add the domain to the exception list. This domain will not be evaluated or blocked in the future. You can manage all the exceptions below.", - "description": "Paragraph 3, please translate this text." - } - } - }, - - "fpdBehavior": { - "message": "Behavior", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorDescription": { - "message": "Specify the preferred behavior of the module.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorPassive": { - "message": "Passive", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorPassiveDescription": { - "message": "Use extension icon badge color to signalize the number of the APIs called by the visited page that can be misused for fingerprinting.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorLimitedBlocking": { - "message": "Limited Blocking", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorBlockingDescription": { - "message": "Allow the extension to react whenever a page calls a high number of APIs misusable for fingerprinting.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorBlockingDescription2": { - "message": "• Interrupt network traffic for the page to prevent possible fingerprint leakage.", - "description": "Additional information to fpdBehaviorBlockingDescription" - }, - "fpdBehaviorLimitedBlockingDescription3": { - "message": "• Clear <strong>some</strong> browser storage of the page to remove possibly cached fingerprint. (No additional permissions required.)", - "description": "Additional information to fpdBehaviorLimitedBlockingDescription" - }, - "fpdBehaviorLimitedBlockingDescription4": { - "message": "• Clearing: <strong>localStorage, sessionStorage, JS cookies, IndexedDB, caches, window.name</strong>", - "description": "Additional information to fpdBehaviorLimitedBlockingDescription" - }, - "fpdBehaviorBlockingDescriptionWarning": { - "message": "NOTE: Blocking behavior may break some functionality on fingerprinting websites.", - "description": "Additional information to fpdBehaviorLimitedBlockingDescription" - }, - "fpdBehaviorFullBlocking": { - "message": "Full Blocking", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorFullBlockingDescription3": { - "message": "• Clear <strong>all</strong> available storage mechanisms of the page where fingerprint may be cached. (Requires BrowsingData permission.)", - "description": "Additional information to fpdBehaviorBlockingDescription" - }, - "fpdBehaviorFullBlockingDescription4": { - "message": "• Clearing: <strong>localStorage, sessionStorage, cookies, IndexedDB, caches, window.name, fileSystems, WebSQL, serviceWorkers</strong>", - "description": "Additional information to fpdBehaviorBlockingDescription" - }, - "fpdNotificationsDescription": { - "message": "Turn on/off notifications about fingerprinting detection and HTTP requests blocking.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdNotificationsDescription2": { - "message": "NOTE: We recommend having notifications turned on for blocking behavior.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdNotificationsOffDescription": { - "message": "Detection/blocking notifications turned off.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdNotificationsOnDescription": { - "message": "Detection/blocking notifications turned on.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdDetection": { - "message": "Detection", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDescription": { - "message": "Adjust heuristic thresholds which determine the severity of the number of called APIs misusable for fingerprinting.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDefault": { - "message": "Default", - "description": "Option shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDefaultDescription": { - "message": "Recommended setting for most users.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDefaultDescription2": { - "message": "• Very low number of false positive detections (focus on clear fingerprinting cases, very low number of unreasonably blocked sites).", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDefaultDescription3": { - "message": "• Acceptable amount of false negative detections (some fingerprinting websites may get around detection).", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdStrict": { - "message": "Strict", - "description": "Option shown in options during configuaration of the parameters of FPD" - }, - "fpdStrictDescription": { - "message": "Optional setting for more cautious users.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdStrictDescription2": { - "message": "• Lower number of false negative detections (also detects websites with less excessive fingerprinting)", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdStrictDescription3": { - "message": "• Higher probability of false positive detections (in edge cases benign websites may be falsely blocked)", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "FPDSeverityNone": { - "message": "None or negligible", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "FPDSeverityLow": { - "message": "Low", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "FPDSeverityModerate": { - "message": "Moderate", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "FPDSeverityHigh": { - "message": "High", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "FPDSeverityVeryHigh": { - "message": "Very High", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "fpdBlockingSubsequent": { - "message": "Blocking all subsequent requests.", - "description": "Shown in a notification when FPD starts blocking HTTP requests" - }, - "fpdClickNotificationDetails": { - "message": "Click the notification for more details.", - "description": "Shown in a notification when FPD detects a suspicious activity but is not configured to block" - }, - "fpdNotificationMessage": { - "message": "$MESSAGE$\n\nPage: $PAGETITLE$\nHost: $DOMAIN$", - "description": "Constructs the full message for the notification when FPD detects suspicious activity", - "placeholders": { - "message": { - "content": "$1", - "example": "Blocking all subsequent requests.", - "description": "Translated fpdBlockingSubsequent or fpdClickNotificationDetails" - }, - "pagetitle": { - "content": "$2", - "example": "JShelter test page", - "description": "The content of the title element of the fingerprinting page (in case it is long, only the start of the string)" - }, - "domain": { - "content": "$3", - "example": "example.com", - "description": "The domain of the visited page or IP address (taken from the URL bar)" - } - } - }, - "fpdNotificationTitle": { - "message": "Fingerprinting activity detected!", - "description": "Title of a notification" - }, - "FPDReportTitle": { - "message": "Fingerprint Detector Report", - "description": "Title of a fingeprint report" - }, - "FPDReportDescriptionPara1": { - "message": "This report lists all JavaScript API endpoints accessed by the web page and considered relevant for browser fingerprinting. Fingerprint Detector (FPD) uses this data to decide whether the page may be collecting a browser fingerprint.", - "description": "Explanation text in the report, it can be shown by clicking on the help icon" - }, - "FPDReportDescriptionPara2": { - "message": "FPD processes API calls in groups based on their semantic properties. This window shows the detected number of API calls on the visited page. The default view shows only groups accessed at least once. This way, the report can be empty if the page does not access any fingerprintable API. If you want to see all APIs monitored by FPD, click $STARTTAG$ here $ENDTAG$", - "description": "Explanation text in the report, it can be shown by clicking on the help icon", - "placeholders": { - "starttag": { - "content": "<span id='unhideAll'>", - "description": "Please keep the tag as is, do not translate" - }, - "endtag": { - "content": "</span>", - "description": "Please keep the tag as is, do not translate" - } - } - }, - "FPDReportDescriptionPara3": { - "message": "You can export the full FPD Report that contains all the data collected and used by FPD to evaluate the page. This comprehensive report shows the weights assigned to the groups/endpoints ($NOTE1$). It also lists all accessed API endpoints with corresponding arguments ($NOTE2$).", - "description": "Explanation text in the report, it can be shown by clicking on the help icon", - "placeholders": { - "note1": { - "content": "<i>fpd_evaluation_statistics</i>", - "description": "Please keep as is, do not translate" - }, - "note2": { - "content": "<i>fpd_access_logs</i>", - "description": "Please keep as is, do not translate" - } - } - }, - "FPDReportShowDetails": { - "message": "Show details", - "description": "Button caption" - }, - "FPDReportHideDetails": { - "message": "Hide details", - "description": "Button caption" - }, - "FPDReportTrackCallers": { - "message": "Track calling scripts", - "description": "Button caption. The purpose of the button is to reload the page while injecting additional scripts that track the location of the callers. This functionality needs to be on demand as it is performance heavy." - }, - "FPDReportTrackCallersRestart": { - "message": "Restart tracking calling scripts", - "description": "Button caption. The purpose of the button is to reload the page while injecting additional scripts that track the location of the callers. This functionality needs to be on demand as it is performance heavy." - }, - "FPDReportTrackCallersWaiting": { - "message": "Detection of calling scripts in progress. Wait a moment, please.", - "description": "Text displayed inside FPD report to explain what is happening." - }, - "FPDReportTrackCallersFailed": { - "message": "Cannot track calling scripts due to an error. $errorFromBrowser$", - "description": "Prefix strings that intoroduces an error strings generated by the browser. Shown when action started by clicking on button with text of FPDReportTrackCallers failed.", - "placeholders": { - "errorFromBrowser": { - "content": "$1", - "description": "An error message generated by the browser. Do not translate.", - "example": "Error: Invalid tab ID: 16" - } - } - }, - "FPDReportForgetTraces": { - "message": "Hide current callers", - "description": "Button caption" - }, - "FPDReportRefresh": { - "message": "Refresh report", - "description": "Button caption" - }, - "FPDReportExportJSON": { - "message": "Export full FPD Report as JSON", - "description": "Button caption" - }, - "FPDReportMissingData": { - "message": "ERROR: Missing data, cannot create a report! Try to reload the page and reopen the report.", - "description": "Text shown if the windows cannot communicate with the internals of the extension" - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/_locales/fi/messages.json b/data/extensions/jsr@javascriptrestrictor/_locales/fi/messages.json deleted file mode 100644 index 0274a43..0000000 --- a/data/extensions/jsr@javascriptrestrictor/_locales/fi/messages.json +++ /dev/null @@ -1,356 +0,0 @@ -{ - "extensionName": { - "message": "JShelter", - "description": "Name of the extension. Please, do not translate unless properly justified." - }, - "extensionDescription": { - "message": "Laajennus käyttäjän turvallisuuden ja yksityisyyden tason lisäämiseksi.", - "description": "Description of the extension." - }, - "javascriptShield": { - "message": "JavaScript Shield -kilpi", - "description": "The name of the JavaScript Shield displayed at multiple places" - }, - "networkBoundaryShield": { - "message": "Verkkorajakilpi" - }, - "NBSgloballyOff": { - "message": "Verkkorajakilpi on laajamittaisesti poistettu käytöstä" - }, - "fingerprintDetector": { - "message": "Sormenjälkitunnistin" - }, - "FPDgloballyOff": { - "message": "Sormenjälkitunnistin on laajamittaisesti poistettu käytöstä" - }, - "JSSLexperimentalDescription": { - "message": "Tiukat suojaukset lisäkääreillä (mukaan lukien API:t, joiden tiedetään rikkovan säännöllisesti verkkosivuja, ja API:t, jotka eivät toimi täydellisesti). Käytä tätä tasoa, jos haluat kokeilla JShelteriä. Käytä Suositeltu- tai Tiukka-tasoa aktiivisen Sormenjälkitunnistimen kanssa säännöllisiin toimintoihisi." - }, - "NBSBlockedTitle": { - "message": "Verkkorajakilpi esti epäilyttävät pyynnöt!" - }, - "NBSDetectedTitle": { - "message": "Verkkorajakilpi havaitsi epäilyttäviä pyyntöjä!" - }, - "NBSBlockedHostTitle": { - "message": "Verkkorajakilpi esti isännän!" - }, - "NBSDetectedHostTitle": { - "message": "Verkkorajakilpi havaitsi epäilyttävän isännän!" - }, - "FPDReportTitle": { - "message": "Sormenjälkitunnistimen raportti" - }, - "FPDReportDescriptionPara1": { - "message": "Tämä raportti luettelee kaikki JavaScript API -päätepisteet, joihin verkkosivu on päässyt ja joita pidetään selaimen sormenjälkien määrittämisen kannalta olennaisina. Sormenjälkitunnistin käyttää näitä tietoja päättääkseen, kerääkö sivu selaimen sormenjälkeä." - }, - "NBSHttpProxyDNSAPINote": { - "message": "Jos käytät HTTP-välityspalvelinta, Verkkorajakilpi suojaa välityspalvelimen paikallista verkkoa verkkosi sijaan, koska välityspalvelin suorittaa HTTP-pyynnöt kohteisiin. Estääkseen tästä tietokoneesta aloitettujen kyselyjesi DNS-vuodot Verkkorajakilpi ei ratkaise DNS-alueita havaitakseen mahdollisia verkkojen välisiä rajoja koskevia pyyntöjä. Verkkorajakilpi kuitenkin suojaa välityspalvelimen paikallista verkkoa suoraan upotetuille IP-osoitteille. Näin ollen Verkkorajakilpi suojaa välityspalvelimen paikallista verkkoa vain osittain." - }, - "jssgroupXMLHttpRequestRequestsDescription2": { - "message": "Huomaa, että XHR-pyyntöjä käytetään laajalti hyvänlaatuisiin tarkoituksiin ja että $apis$ ei ole estetty. Kaikki tarjoavat samanlaisia ja jotkut jopa parempia viestintätapoja palvelimien kanssa. Käytännön käyttöä varten suosittelemme aktivoimaan Sormenjälkitunnistimen XHR-kääreiden sijaan. JShelter säilyttää kääreen, koska se on hyödyllinen joillekin käyttäjille lähinnä kokeellisissa toimissa.", - "placeholders": { - "apis": { - "content": "Fetch-, SSE-, WebRTC- ja WebSockets-sovellusliittymät" - } - } - }, - "JSSL3Description": { - "message": "Ota koko ei-kokeellinen suojaus käyttöön. Käärityt API:t palauttavat vääriä arvoja. Jotkut sovellusliittymät on estetty kokonaan, kun taas toiset tarjoavat merkityksellisiä mutta harvinaisia arvoja. Jotkut palauttavat merkityksettömiä arvoja. Tämä taso tekee sinusta sormenjäljen ottamisen altis koska API-kutsujen tuloksia muutetaan yleensä samalla tavalla kaikilla verkkosivustoilla ja jokaisessa istunnossa. Käytä tätä tasoa, jos haluat rajoittaa selaimesi tarjoamia tietoja. Jos olet huolissasi sormenjäljeistä, varmista, että Sormenjälkitunnistin on aktivoitu." - }, - "JSSL1Description": { - "message": "Käytä turvatoimia, jotka eivät todennäköisesti riko verkkosivuja, mutta eivät suojaa sormenjälkiä vastaan. Poista käytöstä API:t, joita ei käytetä yleisesti. Käytä tätä tasoa, jos Sormenjälkitunnistin ilmoittaa, että sivu kutsui vähän sovellusliittymiä, joita on käytetty väärin sormenjälkien ottamiseen, luotat vierailltuun palveluun ja/tai uskot, että suojaus hidastaa tai rikkoo sivua ja kiusaus käyttää palvelua on niin suuri, että et halua tulla suojatuksi." - }, - "globalSettings": { - "message": "Yleisesti pätevät asetukset" - }, - "settingsForDomain": { - "message": "Asetukset toimialueelle" - }, - "refreshPage": { - "message": "Virkistä sivu" - }, - "modifyJSSPopup": { - "message": "Muokkaa" - }, - "descriptionMore": { - "message": "(enemmän…)" - }, - "descriptionLess": { - "message": "(vähemmän…)" - }, - "wrappers": { - "message": "API-ryhmät" - }, - "levelOfDefense": { - "message": "Puolustustason" - }, - "numberOfCalls": { - "message": "Kutsuiden määrä" - }, - "FingerprintQualityLabel": { - "message": "⤷ Sivun kutsumien sormenjälkien ottamiseen väärin käytettyjen sovellusliittymien määrä: " - }, - "popupDefaultLevelHelpText": { - "message": "Aseta yleisesti pätevä oletustaso JavaScript Shield -tasoksi tälle sivulle." - }, - "defaultLevelSelection": { - "message": "Oletustaso ($levelName$)", - "description": "This text is displayed as the default level in the popup", - "placeholders": { - "levelName": { - "content": "$1" - } - } - }, - "ShieldOffSlider": { - "message": "Pois päältä" - }, - "ShieldOnSlider": { - "message": "Päälle" - }, - "jssgroupUnprotected": { - "message": "Suojaamaton" - }, - "jssgroupPoor": { - "message": "Heikko" - }, - "jssgroupLow": { - "message": "Matala" - }, - "jssgroupMedium": { - "message": "Keskitaso" - }, - "jssgroupHigh": { - "message": "Korkea" - }, - "jssgroupLittleLies": { - "message": "Pieniä valheita" - }, - "jssgroupStrict": { - "message": "Tiukka" - }, - "jssgroupConfuse": { - "message": "Sekava" - }, - "jssgroupAddFake": { - "message": "Lisää väärennös" - }, - "jssgroupAsk": { - "message": "Kysy" - }, - "jssgroupFake": { - "message": "Väärennetty" - }, - "jssgroupBlock": { - "message": "Estä" - }, - "jssgroupRemove": { - "message": "Poista" - }, - "jssgroupTimePrecision": { - "message": "Ajan tarkkuus" - }, - "jssgroupTimePrecisionDescription": { - "message": "Estä hyökkäykset ja sormenjälkien ottotekniikat tarkan ajanmittauksen avulla (tai vaikeuta niitä)." - }, - "jssgroupLocallyRenderedImagesLittleLiesDescription": { - "message": "Tee pieniä muutoksia kuvatietojen lukemiseen, jotta kuvat näyttävät samalta, mutta tarkat arvot vaihtelevat vieraillun verkkotunnuksen ja istuntojen mukaan. Tavoitteena on estää Canvas-sormenjälkien otto tai ainakin vaikeuttaa sitä." - }, - "nameDescriptionSeparator": { - "message": " — " - }, - "detailTweaksOfJSShieldForThisSite": { - "message": "JS-suojan yksityiskohtaiset säädöt tälle sivustolle" - }, - "jssgroupTimePrecisionDescription2": { - "message": "Rajoita korkearesoluutioisten aikaleimojen tarkkuutta $apis$. Geolocation API:n tarjoamat aikaleimat myös kääritään, jos otat \"$jssgroupPhysicalLocationGeolocation$\" -suojauksen käyttöön.", - "placeholders": { - "apis": { - "content": "(Päivämäärä, suorituskyky, tapahtumat, Gamepad API ja Web VR API)" - }, - "jssgroupPhysicalLocationGeolocation": { - "content": "$1", - "description": "Translated version of the jssgroupPhysicalLocationGeolocation string" - } - } - }, - "jssgroupTimePoorDescription": { - "message": "Pyöristysaika sekunnin sadasosaan (1,230)" - }, - "jssgroupTimeLowDescription": { - "message": "Pyöröaika sekunnin kymmenesosaan (1,200)" - }, - "jssgroupTimeHighDescription": { - "message": "Satunnaista desimaaliluvut kohinalla (1,451)" - }, - "jssgroupLocallyRenderedImages": { - "message": "Paikallisesti hahmonnetut kuvat" - }, - "jssgroupLocallyRenderedImagesDescription": { - "message": "Suojaa kankaan sormenjälkien ottamista tai näytönohjaimen hahmonnointi-kykyjen tietojen vuotamista vastaan." - }, - "jssgroupLocallyRenderedImagesDescription2": { - "message": "Funktiot $apis$ palauttavat muokattuja kuvatietoja.", - "placeholders": { - "apis": { - "content": "canvas.toDataURL(), canvas.toBlob(), CanvasRenderingContext2D.getImageData(), OffscreenCanvas.convertToBlob() ja WebGLRenderingContext.readPixels" - } - } - }, - "jssgroupLocallyRenderedImagesDescription3": { - "message": "$apis$ on muokattu valehtelemaan todennäköisyydellä.", - "placeholders": { - "apis": { - "content": "CanvasRenderingContext2D.isPointInStroke() ja CanvasRenderingContext2D.isPointInPath()" - } - } - }, - "jssgroupLocallyRenderedImagesStrictDescription": { - "message": "Lue valkoisia kuvia (WebGL-kankaalta lue tyhjä taulukko). Tämä vaihtoehto ei suojaa Canvas-sormenjälkien otolta." - }, - "jssgroupLocallyGeneratedAudio": { - "message": "Paikallisesti luotu ääni" - }, - "jssgroupLocallyGeneratedAudioDescription": { - "message": "Suojaa tietovuodosta vastaan äänikortin hahmonnointikyvyksistä, joita voidaan käyttää, esimerkiksi äänen sormenjälkien ottamiseen." - }, - "jssgroupLocallyGeneratedAudioDescription2": { - "message": "Funktiot $apis$ palauttavat muokattuja tietoja.", - "placeholders": { - "apis": { - "content": "AudioBuffer.getChannelData(), AudioBuffer.copyFromChannel(), AnalyserNode.getByteTimeDomainData(), AnalyserNode.getFloatTimeDomainData(), AnalyserNode.getByteFrequencyData() ja AnalyserNode.getFloat()FrequencyData" - } - } - }, - "jssgroupLocallyGeneratedAudioLittleLiesDescription": { - "message": "Lisää pieni amplitudikohina niin, että ääni on samanlainen kuin ihmisen alkuperäinen ääni. Tarkat arvot vaihtelevat vieraillun verkkotunnuksen ja istuntojen mukaan. Tavoitteena on estää äänen sormenjälkien otto tai ainakin vaikeuttaa sitä." - }, - "jssgroupLocallyGeneratedAudioStrictDescription": { - "message": "Äänitiedot korvataan valkoisella kohinalla, joka vaihtelee vieraillun verkkotunnuksen mukaan ja istuntojen välillä. Tavoitteena on rajoittaa äänilaitteiston vuotoja ja samalla tehdä äänen sormenjälkien ottamisesta vaikeampaa." - }, - "jssgroupGraphicCardInformation": { - "message": "Grafiikkakortin tiedot" - }, - "jssgroupGraphicCardInformationDescription": { - "message": "Huijaa näytönohjaimesi yksityistiedot, joita voidaan käyttää, esimerkiksi sormenjälkien ottamisen vaikeuttamiseksi." - }, - "jssgroupGraphicCardInformationDescription2": { - "message": "Funktio $api$ palauttaa tietyille parametreille muokattuja tai alimpia arvoja.", - "placeholders": { - "api": { - "content": "WebGLRenderingContext.getParameter()" - } - } - }, - "jssgroupGraphicCardInformationDescription3": { - "message": "$apis$ palauttaa muokattuja arvoja.", - "placeholders": { - "apis": { - "content": "WebGLRenderingContext-funktiot .getFramebufferAttachmentParameter(), .getActiveAttrib(), .getActiveUniform(), .getAttribLocation(), .getBufferParameter(), .getProgramParameter(), .getRenderbufferParameter(), .getRenderbufferParameter(), .getActiveAttrib(),PrecisionPargetShader. .getTexParameter(), .getUniformLocation(), .getVertexAttribOffset(), .getSupportedExtensions() ja .getExtension()" - } - } - }, - "jssgroupGraphicCardInformationLittleLiesDescription": { - "message": "Luo kohtuullisia lukuja tai satunnaisia merkkijonoja, jotka eroavat vieraillun verkkotunnuksen mukaan ja istuntojen välillä. Tavoitteena on rajoittaa näytönohjainten vuotoja ja samalla vaikeuttaa sormenjälkien ottamista." - }, - "jssgroupGraphicCardInformationStrictDescription": { - "message": "Palauttaa alimpia arvoja (nolla, tyhjät merkkijonot). Huomaa, että tämä asetus ei estä sormenjälkien ottoa." - }, - "jssgroupInstalledBrowserPlugins": { - "message": "Asennetut selain-liitännäiset" - }, - "jssgroupInstalledBrowserPluginsDescription": { - "message": "Suojaa liitännäissormenjälkien ottoa vastaan." - }, - "jssgroupInstalledBrowserPluginsDescription2": { - "message": "Suojausta ei sovelleta, jos selaimesi palauttaa tyhjän luettelon tai elävän HTML-standardin määrittämät viisi PDF-liitännäisten katseluohjelmaa. Siksi suojausta ei sovelleta nykyaikaisissa selaimissa." - }, - "jssgroupInstalledBrowserPluginsLittleLiesDescription": { - "message": "Muokkaa nykyisiä liitännäisiä ja lisää kaksi väärennettyä liitännäistä." - }, - "jssgroupInstalledBrowserPluginsFakeDescription": { - "message": "Palauta kaksi väärennettyä liitännäistä." - }, - "jssgroupInstalledBrowserPluginsStrictDescription": { - "message": "Piilota kaikki liitännäiset." - }, - "jssgroupConnectedCamerasAndMicrophones": { - "message": "Kytketyt kamerat ja mikrofonit" - }, - "jssgroupConnectedCamerasAndMicrophonesDescription": { - "message": "Estä sormenjälkien otto tietokoneeseen kytkettyjen multimedialaitteiden perusteella." - }, - "jssgroupConnectedCamerasAndMicrophonesDescription2": { - "message": "Funktiota $api$ on muokattu palauttamaan tyhjä tai muokattu tulos.", - "placeholders": { - "api": { - "content": "MediaDevices.enumerateDevices()", - "description": "Keep the names of the API" - } - } - }, - "jssgroupConnectedCamerasAndMicrophonesLittleLiesDescription": { - "message": "Satunnaistetaan laitteiden järjestys. Nykyiset laitteet eivät ole linkitettävissä eri verkkotunnuksissa ja istuntojen välillä." - }, - "jssgroupConnectedCamerasAndMicrophonesAddFakeDescription": { - "message": "Lisää 0–4 väärennettyä laittetta aseta niiden järjestys satunnaisesti. Nykyiset laitteet eivät ole linkitettävissä eri verkkotunnuksissa ja istuntojen välillä." - }, - "jssgroupConnectedCamerasAndMicrophonesStrictDescription": { - "message": "Palauta tyhjä laiteluettelo." - }, - "jssgroupHardware": { - "message": "Laitteen muisti ja keskusyksikkö" - }, - "jssgroupHardwareDescription": { - "message": "Huijaa laitteistotiedot RAM-muistin määrästä ja suorittimen lukumäärästä." - }, - "jssgroupHardwareDescription2": { - "message": "Getterit $apis$ palauttavat muokattuja arvoja.", - "placeholders": { - "apis": { - "content": "navigator.deviceMemory and navigator.hardwareConcurrency", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupHardwareLowDescription": { - "message": "Palauta satunnainen kelvollinen arvo vähimmäisarvon ja todellisen arvon välillä. Palautettu arvo vaihtelee vierailtujen verkkotunnusten mukaan ja istuntojen välillä." - }, - "jssgroupHardwareMediumDescription": { - "message": "Palauta satunnainen kelvollinen arvo vähimmäisarvon ja 8:n välillä. Palautettu arvo vaihtelee vierailtujen verkkotunnusten mukaan ja istuntojen välillä." - }, - "jssgroupHardwareHighDescription": { - "message": "Palauta \"4\" navigator.deviceMemory:lle ja \"2\" navigator.hardwareConcurrency:lle." - }, - "jssgroupNetworkConditions": { - "message": "Verkko-ehdot" - }, - "jssgroupNetworkConditionsDescription": { - "message": "Poista pääsy verkkotietoihin käytöstä rajoittaaksesi sormenjälkien ottoa ja poistaaksesi mahdollisuuden havainnoida kuvioita verkoissa, joihin on päästy, saadaksesi selville, onko käyttäjä kotona, töissä vai matkalla." - }, - "jssgroupNetworkConditionsRemoveDescription": { - "message": "Poista NetworkInformation API käytöstä" - }, - "jssgroupXMLHttpRequestRequests": { - "message": "XMLHttpRequest (XHR) -tiedonsiirrot" - }, - "jssgroupXMLHttpRequestRequestsDescription": { - "message": "Suodata luotettavat XHR-pyynnöt palvelimelle." - }, - "jssgroupXMLHttpRequestRequestsBlockDescription": { - "message": "Estä kaikki XHR-pyynnöt" - }, - "jssgroupArraysDescription": { - "message": "Suojaa ArrayBufferin hyödyntämistä vastaan, esimerkiksi estääksesi sivukanavahyökkäykset muistiasetteluun (tai vaikeuttavat niitä)." - }, - "jssgroupXMLHttpRequestRequestsAskDescription": { - "message": "Kysy ennen XHR-pyynnön suorittamista" - }, - "jssgroupSharedArraysBufferDescription": { - "message": "Suojaa SharedArrayBufferin hyödyntämistä vastaan, esimerkiksi estämään sivukanavahyökkäykset muistiasetteluun (tai vaikeuttamaan niitä)." - }, - "jssgroupWebWorkerDescription": { - "message": "Suojaa WebWorkerin hyödyntämistä vastaan" - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/_locales/fr/messages.json b/data/extensions/jsr@javascriptrestrictor/_locales/fr/messages.json deleted file mode 100644 index 07821d6..0000000 --- a/data/extensions/jsr@javascriptrestrictor/_locales/fr/messages.json +++ /dev/null @@ -1,403 +0,0 @@ -{ - "extensionName": { - "message": "JShelter", - "description": "Name of the extension. Please, do not translate unless properly justified." - }, - "extensionDescription": { - "message": "Extension pour augmenter le niveau de sécurité et de confidentialité de l’utilisateur.", - "description": "Description of the extension." - }, - "descriptionMore": { - "message": "(plus...)", - "description": "Used for example in the popup in the description text of the currently applied level when JShelter gives user the option to get more information about the level." - }, - "jssgroupStrict": { - "message": "Strict", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupLow": { - "message": "Bas", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "modifyJSSPopup": { - "message": "modifier", - "description": "The button in the popup that tweaks JSS" - }, - "jssgroupTimePrecision": { - "message": "Précision chronologique" - }, - "refreshPage": { - "message": "Actualiser la page", - "description": "The button in the popup that refreshes the currently displayed page" - }, - "jssgroupPoor": { - "message": "Pauvre", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "networkBoundaryShield": { - "message": "Bouclier de limite de réseau", - "description": "The name of the Network Boundary Shield displayed at multiple places" - }, - "jssgroupMedium": { - "message": "Moyen", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "fingerprintDetector": { - "message": "Détecteur de fingerprinting", - "description": "The name of the Fingerprint Detector displayed at multiple places" - }, - "globalSettings": { - "message": "Paramètres globaux", - "description": "The button in the popup that opens options page" - }, - "jssgroupAddFake": { - "message": "Ajouter un faux", - "description": "Displayed during JSS level tweaking for Connected cameras and microphones and possibly more (in the future)" - }, - "FPDgloballyOff": { - "message": "Détecteur de fingerprinting est globalement désactivé", - "description": "Informs the user that FPD is globally disabled, displayed e.g. in popup" - }, - "numberOfCalls": { - "message": "nombre d'appels", - "description": "Column headding in the popup detailed JSS shield" - }, - "jssgroupFake": { - "message": "Faux", - "description": "Displayed during JSS level tweaking for InstalledBrowserPlugins and possibly more (in the future)" - }, - "ShieldOnSlider": { - "message": "MARCHE", - "description": "Displayed in sliders that control activation of shields in popup and options, keep the text short to prevent overflow" - }, - "jssgroupBlock": { - "message": "Bloquer", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "settingsForDomain": { - "message": "Paramètres du domaine", - "description": "The text in the popup that introduces the context of the information in the popup" - }, - "jssgroupUnprotected": { - "message": "Non protégé", - "description": "Displayed during JSS level tweaking in case the API group is completely disabled" - }, - "nameDescriptionSeparator": { - "message": " — ", - "description": "Used for example in the popup to separate the current JSS level from its description." - }, - "jssgroupRemove": { - "message": "Soustraire", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "popupDefaultLevelHelpText": { - "message": "Définir le niveau global par défaut comme le niveau du JavaScript sur cette page.", - "description": "This text is displayed in the popup as a tooltip for the Default level button" - }, - "jssgroupTimePrecisionDescription": { - "message": "Préviens les attaques et techniques de fingerprinting dépendant d'un timing précis (ou les rends difficiles).", - "description": "Displayed at various places" - }, - "wrappers": { - "message": "Groupes d'APIs", - "description": "Column headding in the popup detailed JSS shield" - }, - "NBSgloballyOff": { - "message": "Bouclier de limite de réseau est globalement activé", - "description": "Informs the user that NBS is globally disabled, displayed e.g. in popup" - }, - "FingerprintQualityLabel": { - "message": "⤷Le nombre d'APIs a mauvaise utilisation pour le fingerprinting appelé par la page : ", - "description": "This text is displayed in the popup as additional information from FPD" - }, - "jssgroupHigh": { - "message": "Haut", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "levelOfDefense": { - "message": "Niveau de défense", - "description": "Column headding in the popup detailed JSS shield" - }, - "jssgroupConfuse": { - "message": "Confondre", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "detailTweaksOfJSShieldForThisSite": { - "message": "Détail des réglages du bouclier JS pour ce site", - "description": "Button in the popup that allows to tweak JSS." - }, - "defaultLevelSelection": { - "message": "Niveau par défaut ($levelName$)", - "description": "This text is displayed as the default level in the popup", - "placeholders": { - "levelName": { - "content": "$1", - "description": "Translated name of the default level used by the user", - "example": "Recommended, see the keys JSSL*Name like JSSL2Name" - } - } - }, - "ShieldOffSlider": { - "message": "ARRÊT", - "description": "Displayed in sliders that control activation of shields in popup and options, keep the text short to prevent overflow" - }, - "descriptionLess": { - "message": "(moins...)", - "description": "Used for example in the popup in the description text of the currently applied level when JShelter gives user the option to get less information about the level." - }, - "javascriptShield": { - "message": "Bouclier JavaScript", - "description": "The name of the JavaScript Shield displayed at multiple places" - }, - "jssgroupLittleLies": { - "message": "Petits mensonges", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupAsk": { - "message": "Demander", - "description": "Displayed during JSS level tweaking for XHR and possibly more (in the future)" - }, - "jssgroupGraphicCardInformationDescription2": { - "message": "Fonction $api$ retourne des values modifiées ou basses pour certain paramètres.", - "placeholders": { - "api": { - "content": "WebGLRenderingContext.getParameter()", - "description": "Keep the names of the API" - } - } - }, - "jssgroupGraphicCardInformationDescription3": { - "message": "$apis$ retourne des valeurs modifiées.", - "placeholders": { - "apis": { - "content": "WebGLRenderingContext functions .getFramebufferAttachmentParameter(), .getActiveAttrib(), .getActiveUniform(), .getAttribLocation(), .getBufferParameter(), .getProgramParameter(), .getRenderbufferParameter(), .getShaderParameter(), .getShaderPrecisionFormat(), .getTexParameter(), .getUniformLocation(), .getVertexAttribOffset(), .getSupportedExtensions(), et .getExtension()", - "description": "Keep the names of the API but translate the punctuation and conjunctions" - } - } - }, - "jssgroupLocallyRenderedImages": { - "message": "Images générées localement", - "description": "htmlcanvaselement group" - }, - "jssgroupTimePrecisionDescription2": { - "message": "Limite la précision d'horodatage haute résolution des $apis$. Horodatage produit par API de Géolocalisation sont enveloppés aussi si vous activés la protection \"$jssgroupPhysicalLocationGeolocation$\".", - "description": "Displayed at various places", - "placeholders": { - "jssgroupPhysicalLocationGeolocation": { - "content": "$1", - "description": "Translated version of the jssgroupPhysicalLocationGeolocation string" - }, - "apis": { - "content": "(Date, Performance, événements, Gamepad API, et Web VR API)", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupTimePoorDescription": { - "message": "Temps arrondis a la centième seconde (1.230)", - "description": "Explains the protection to the user" - }, - "jssgroupLocallyRenderedImagesLittleLiesDescription": { - "message": "Appliquez de petites modifications aux données d'image lue pour que ces images apparaisses similaires, mais que la value précise diffère en fonction du domaine visité et a travers sessions. Le but est de prévenir le fingerprinting de Canvas ou au moins le rendre plus difficile.", - "description": "Consider keeping reference to Canvas fingerprinting in English" - }, - "jssgroupTimeLowDescription": { - "message": "Temps arrondit au dixième de seconde (1.200)", - "description": "Explains the protection to the user" - }, - "jssgroupLocallyGeneratedAudioLittleLiesDescription": { - "message": "Ajouter un bruit de faible amplitude pour que le son soit similaire a l'original à un humain. La value précise diffère en fonction du domaine visité et a travers les sessions. Le but est de prévenir le fingerprinting audio ou au moins le rendre plus difficile.", - "description": "Consider keeping reference to Audio fingerprinting in English" - }, - "jssgroupGraphicCardInformation": { - "message": "Information de la carte graphique", - "description": "webgl group" - }, - "jssgroupLocallyGeneratedAudioStrictDescription": { - "message": "La data audio est remplacée par du bruit blanc qui varie en fonction du domaine visité et a travers les sessions. Le but est de limiter les fuites sur le hardware audio et en même temps rendre le fingerprinting audio plus difficile.", - "description": "Consider keeping reference to Audio fingerprinting in English" - }, - "jssgroupLocallyGeneratedAudioDescription": { - "message": "Protège contre la fuite d'information sur les capacités de la carte audio qui peuvent être utilisés, par exemple, en fingerprinting audio.", - "description": "Try to keep reference to audio fingerprinting" - }, - "jssgroupLocallyRenderedImagesDescription2": { - "message": "Fonctions $apis$ génères des données d'image modifié.", - "description": "Displayed at various places", - "placeholders": { - "apis": { - "content": "canvas.toDataURL(), canvas.toBlob(), CanvasRenderingContext2D.getImageData(), OffscreenCanvas.convertToBlob(), et WebGLRenderingContext.readPixels", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupLocallyRenderedImagesDescription": { - "message": "Protège contre le fingerprinting de canvas ou la fuite d'information sur les capacités d’interprétation de la carte graphique.", - "description": "Displayed at various places, try to keep canvas in English or make sure that the user can understand that the protection is about the Canvas API" - }, - "jssgroupLocallyRenderedImagesDescription3": { - "message": "Les $apis$ sont modifiées pour mentir avec probabilité.", - "description": "Displayed after jssgroupLocallyRenderedImagesDescription2", - "placeholders": { - "apis": { - "content": "CanvasRenderingContext2D.isPointInStroke() et CanvasRenderingContext2D.isPointInPath()", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupLocallyGeneratedAudio": { - "message": "Audio généré localement", - "description": "audiobuffer group" - }, - "jssgroupGraphicCardInformationDescription": { - "message": "Parodier les détails utiles de votre carte graphique, par exemple, pour rendre le fingerprinting plus difficile." - }, - "jssgroupLocallyRenderedImagesStrictDescription": { - "message": "Lire images blanches (à partir du canevas WebGL, lisez un tableau vide). Cette option ne protège pas contre le fingerprinting de Canevas.", - "description": "Consider keeping reference to Canvas fingerprinting in English" - }, - "jssgroupTimeHighDescription": { - "message": "Randomiser les chiffres décimaux avec du bruit (1.451)", - "description": "Explains the protection to the user" - }, - "jssgroupLocallyGeneratedAudioDescription2": { - "message": "Fonctions $apis$ produit la data modifiée.", - "placeholders": { - "apis": { - "content": "AudioBuffer.getChannelData(), AudioBuffer.copyFromChannel(), AnalyserNode.getByteTimeDomainData(), AnalyserNode.getFloatTimeDomainData(), AnalyserNode.getByteFrequencyData(), et AnalyserNode.getFloatFrequencyData()", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupGraphicCardInformationLittleLiesDescription": { - "message": "Générez des nombres raisonnable ou des chaînes aléatoires qui différent selon le domaine visité et entre sessions. L'objectif étant de limiter les fuites des cartes graphiques tout en même temp rendre le fingerprinting plus difficile." - }, - "jssgroupNetworkConditions": { - "message": "Conditions du réseau", - "description": "net group" - }, - "jssgroupInstalledBrowserPlugins": { - "message": "Plugins de navigateur installés", - "description": "plugins group" - }, - "jssgroupXMLHttpRequestRequests": { - "message": "XMLHttpRequest (XHR) transfère de data", - "description": "Keep the name of the API in English" - }, - "jssgroupHardwareMediumDescription": { - "message": "Randomiser une value valide entre le minimum et 8. La value générée diffère en fonction des domaines visité et a travers sessions." - }, - "jssgroupInstalledBrowserPluginsLittleLiesDescription": { - "message": "Éditez les plugins courant et ajouter deux faux plugins." - }, - "jssgroupConnectedCamerasAndMicrophonesLittleLiesDescription": { - "message": "Randomisez l'ordre des appareils. Les appareils existant ne peuvent pas être liés sur différent domaines et a travers les sessions." - }, - "jssgroupXMLHttpRequestRequestsBlockDescription": { - "message": "Bloquer toutes demandes XHR", - "description": "Keep the name of the API in English" - }, - "jssgroupHardware": { - "message": "Appareil mémoire et CPU", - "description": "hardware group" - }, - "jssgroupInstalledBrowserPluginsStrictDescription": { - "message": "Cacher tous les plugins." - }, - "jssgroupInstalledBrowserPluginsDescription": { - "message": "Protection contre le fingerprinting des plugin." - }, - "jssgroupInstalledBrowserPluginsDescription2": { - "message": "La protection n’est pas appliquée si votre navigateur génère une liste vide ou les cinq plugins PDF spécifiés par le standard HTML vivant. Ainsi, la protection n’est pas appliquée dans un navigateur moderne.", - "description": "The protection is not applied in modern browsers" - }, - "jssgroupConnectedCamerasAndMicrophonesStrictDescription": { - "message": "Générer une liste vide d'appareils." - }, - "jssgroupHardwareDescription": { - "message": "Parodier l'information hardware concernant la quantité de RAM et le nombre de CPU." - }, - "jssgroupHardwareDescription2": { - "message": "Les $apis$ Getters génères des values modifiées.", - "placeholders": { - "apis": { - "content": "navigator.deviceMemory et navigator.hardwareConcurrency", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupArrays": { - "message": "ArrayBuffer API", - "description": "arrays group" - }, - "jssgroupXMLHttpRequestRequestsAskDescription": { - "message": "Demander avant d’exécuter une demande XHR", - "description": "Keep the name of the API in English" - }, - "jssgroupInstalledBrowserPluginsFakeDescription": { - "message": "Générer deux faux plugins." - }, - "jssgroupXMLHttpRequestRequestsDescription": { - "message": "Filtrer les demandes XHR reliable au server." - }, - "jssgroupNetworkConditionsDescription": { - "message": "Désactiver l’accès a l'information du réseau pour limiter le fingerprinting et enlever la possibilité d'observer les motifs d’accès au réseau pour apprendre si l'usager est a la maison, au travail ou en voyage." - }, - "jssgroupHardwareHighDescription": { - "message": "Génère 4 pour navigator.deviceMemory et 2 pour navigator.hardwareConcurrency.", - "description": "Keep the names of the APIs in English" - }, - "jssgroupXMLHttpRequestRequestsDescription2": { - "message": "Notez que les demandes XHR sont largement utilisé a des fin bénin et que les $apis$ no sont pas bloqués. Tous on des moyen similaires et certains même mieux pour communique avec le serveur. On vous recommande d'activer le Détecteur de Fingerprinting a la place des wrappers XHR pour un usage pratique. JShelter garde le wrapper parce-qu'il est utile a certains usager pour des raison expérimentales.", - "placeholders": { - "apis": { - "content": "Fetch, SSE, WebRTC, et WebSockets APIs", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupNetworkConditionsRemoveDescription": { - "message": "Désactiver NetworkInformation API", - "description": "Keep the name of the API in English" - }, - "jssgroupConnectedCamerasAndMicrophonesDescription2": { - "message": "La fonction $api$ est modifiée pour générer un résulta vide ou modifié.", - "placeholders": { - "api": { - "content": "MediaDevices.enumerateDevices()", - "description": "Keep the names of the API" - } - } - }, - "jssgroupConnectedCamerasAndMicrophonesDescription": { - "message": "Préviens le fingerprinting basé sur les périphériques multimédia connectés a l'ordinateur." - }, - "jssgroupHardwareLowDescription": { - "message": "Randomiser une value valide entre le minimum et la vrai value. La value générée diffère en fonction des domaines visité et a travers sessions." - }, - "jssgroupConnectedCamerasAndMicrophones": { - "message": "Cameras et microphones connectées" - }, - "jssgroupConnectedCamerasAndMicrophonesAddFakeDescription": { - "message": "Ajouter 0-4 faux appareils et randomiser l'ordre. Les appareils existant ne peuvent plus être liés sur différent domaines et a travers sessions." - }, - "jssgroupSharedArraysBuffer": { - "message": "SharedArrayBuffer API", - "description": "shared_array group" - }, - "jssgroupArraysDescription": { - "message": "Protège contre les exploitation de type ArrayBuffer par exemple, pour prévenir des attaques secondaires sur la disposition de la mémoire (ou le rendre plus difficile)." - }, - "jssgroupArraysRandomize": { - "message": "Randomiser" - }, - "jssgroupArraysShift": { - "message": "Décaler" - }, - "jssgroupGraphicCardInformationStrictDescription": { - "message": "Retourne des valeurs minimales (chaînes nulles et vide). Noter que cette option n’empêche pas le fingerprinting." - }, - "jssgroupArraysShiftDescription": { - "message": "Décale les index pour rendre plus difficile la détection des limites de la page mémoire." - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/_locales/pl/messages.json b/data/extensions/jsr@javascriptrestrictor/_locales/pl/messages.json deleted file mode 100644 index 3081d3e..0000000 --- a/data/extensions/jsr@javascriptrestrictor/_locales/pl/messages.json +++ /dev/null @@ -1,773 +0,0 @@ -{ - "jssgroupGeolocationRegion": { - "message": "Region", - "description": "Displayed during level tweaks" - }, - "descriptionMore": { - "message": "(więcej…)", - "description": "Used for example in the popup in the description text of the currently applied level when JShelter gives user the option to get more information about the level." - }, - "jssgroupGeolocationTown": { - "message": "Miasto", - "description": "Displayed during level tweaks" - }, - "jssgroupStrict": { - "message": "Ścisłe", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupLow": { - "message": "Niskie", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "modifyJSSPopup": { - "message": "Modyfikuj", - "description": "The button in the popup that tweaks JSS" - }, - "ButtonDisableForDomain": { - "message": "<strong>$DISABLE$</strong> $FORTHEDOMAIN$", - "description": "A button caption that can be used generically by JShelter, e.g. in the options; if necessary, edit the structure of the message but make sure to emhasize the disablement. Translate the placeholders.", - "placeholders": { - "disable": { - "content": "Wyłącz", - "description": "Please translate" - }, - "forTheDomain": { - "content": "dla domeny", - "description": "Please translate" - } - } - }, - "refreshPage": { - "message": "Odśwież stronę", - "description": "The button in the popup that refreshes the currently displayed page" - }, - "jssgroupPoor": { - "message": "Słaba", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "JSSBuiltinExceptionsLevelsSeparator": { - "message": ", ", - "description": "Displayed in expert settings, separator for levels displayed" - }, - "jssgroupMedium": { - "message": "Średnie", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupGeolocationVillage": { - "message": "Wieś", - "description": "Displayed during level tweaks" - }, - "ExternalLinksSeparator": { - "message": " »", - "description": "Displayed in options in the navigation bar, for example after external links" - }, - "fingerprintDetector": { - "message": "Wykrywanie fingerprintingu", - "description": "The name of the Fingerprint Detector displayed at multiple places" - }, - "shieldNotifications": { - "message": "Powiadomienia", - "description": "Displayed as a text label during NBS and FPD configuration when the user can activate or deactivate notifications" - }, - "globalSettings": { - "message": "Globalne ustawienia", - "description": "The button in the popup that opens options page" - }, - "JSSBuiltinExceptionsDomain": { - "message": "Domena", - "description": "Displayed in expert settings, heading in the table of built-in tweaks" - }, - "extensionName": { - "message": "JShelter", - "description": "Name of the extension. Please, do not translate unless properly justified." - }, - "jssgroupWASMPassive": { - "message": "Pasywne" - }, - "fAQ": { - "message": "FAQ", - "description": "Displayed in options in the navigation bar" - }, - "permissions": { - "message": "Pozwolenia", - "description": "Displayed in options in the navigation bar" - }, - "FPDgloballyOff": { - "message": "Wykrywanie fingerprintingu jest wyłączone globalnie", - "description": "Informs the user that FPD is globally disabled, displayed e.g. in popup" - }, - "ButtonEnableForSelectedDomains": { - "message": "<strong>$ENABLE$</strong> $FORTHEDOMAIN$", - "description": "A button caption that can be used generically by JShelter, e.g. in the options; if necessary, edit the structure of the message but make sure to emhasize the enablement. Translate the placeholders.", - "placeholders": { - "enable": { - "content": "Włącz", - "description": "Please translate" - }, - "forTheDomain": { - "content": "dla wybranych domen", - "description": "Please translate" - } - } - }, - "fpdDetectionDefault": { - "message": "Domyślne", - "description": "Option shown in options during configuaration of the parameters of FPD" - }, - "numberOfCalls": { - "message": "Liczba wywołań", - "description": "Column headding in the popup detailed JSS shield" - }, - "JSSLexperimentalName": { - "message": "Eksperymentalny", - "description": "The name of JSS experimental level that is used at various places in the UI" - }, - "fpdBehaviorPassive": { - "message": "Pasywne", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "ShieldOnSlider": { - "message": "WŁĄCZ", - "description": "Displayed in sliders that control activation of shields in popup and options, keep the text short to prevent overflow" - }, - "jssgroupBlock": { - "message": "Zablokuj", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "settingsForDomain": { - "message": "Ustawienia dla domeny", - "description": "The text in the popup that introduces the context of the information in the popup" - }, - "fpdStrict": { - "message": "Ścisły", - "description": "Option shown in options during configuaration of the parameters of FPD" - }, - "FPDSeverityLow": { - "message": "Niski", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "jssgroupUnprotected": { - "message": "Niechronione", - "description": "Displayed during JSS level tweaking in case the API group is completely disabled" - }, - "nameDescriptionSeparator": { - "message": " — ", - "description": "Used for example in the popup to separate the current JSS level from its description." - }, - "jssgroupRemove": { - "message": "Usuń", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "extensionDescription": { - "message": "Wtyczka poprawiająca poziom bezpieczeństwa i prywatności użytkownika.", - "description": "Description of the extension." - }, - "JSSBuiltinExceptionsLevels": { - "message": "Poziomy", - "description": "Displayed in expert settings, heading in the table of built-in tweaks" - }, - "wrappers": { - "message": "Grupy API", - "description": "Column headding in the popup detailed JSS shield" - }, - "jssgroupArraysRandomize": { - "message": "Losuj" - }, - "ButtonRestore": { - "message": "Przywróć", - "description": "A button caption that can be used generically by JShelter" - }, - "JSSL3Name": { - "message": "Ścisły", - "description": "The name of JSS L3 that is used at various places in the UI" - }, - "protectionConfigurationOptionActivatedOff": { - "message": "Wyłączone", - "description": "Displayed during NBS and FPD configuration when the option is deactivated (off)" - }, - "ButtonCancel": { - "message": "Anuluj", - "description": "A button caption that can be used generically by JShelter" - }, - "jssgroupHigh": { - "message": "Wysokie", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupWASMActive": { - "message": "Aktywne" - }, - "levelOfDefense": { - "message": "Poziom ochrony", - "description": "Column headding in the popup detailed JSS shield" - }, - "jssgroupArraysShift": { - "message": "Zmiana" - }, - "JSSL2Name": { - "message": "Zalecane", - "description": "The name of JSS L2 that is used at various places in the UI" - }, - "detailTweaksOfJSShieldForThisSite": { - "message": "Szczegółowe ustawienia ochrony JS dla tej strony", - "description": "Button in the popup that allows to tweak JSS." - }, - "protectionConfigurationOptionActivatedOn": { - "message": "Włączone", - "description": "Displayed during NBS and FPD configuration when the option is activated (on)" - }, - "ButtonEdit": { - "message": "Edytuj", - "description": "A button caption that can be used generically by JShelter" - }, - "ShieldOffSlider": { - "message": "WYŁĄCZ", - "description": "Displayed in sliders that control activation of shields in popup and options, keep the text short to prevent overflow" - }, - "ButtonSave": { - "message": "Zapisz", - "description": "A button caption that can be used generically by JShelter" - }, - "fpdBehavior": { - "message": "Zachowanie", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "jssgroupGamepads": { - "message": "Kontrolery do gier", - "description": "gamepads group" - }, - "ButtonSignExpandOneCharacterDown": { - "message": "⤵", - "description": "A button caption that can be used generically by JShelter, it should contain a single character that intuitively tells the user that by clicking the button, more information will be shown" - }, - "jssgroupWASMDisabled": { - "message": "Wyłączono" - }, - "FPDSeverityModerate": { - "message": "Umiarkowany", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "descriptionLess": { - "message": "(mniej…)", - "description": "Used for example in the popup in the description text of the currently applied level when JShelter gives user the option to get less information about the level." - }, - "nbsBlocking": { - "message": "Blokowanie", - "description": "Displayed during NBS configuration, label for a configuration option" - }, - "JSSBuiltinExceptionsChanges": { - "message": "Zmiany", - "description": "Displayed in expert settings, heading in the table of built-in tweaks" - }, - "FPDSeverityNone": { - "message": "Brak", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "javascriptShield": { - "message": "Ochrona JavaScript", - "description": "The name of the JavaScript Shield displayed at multiple places" - }, - "ButtonRemove": { - "message": "Usuń", - "description": "A button caption that can be used generically by JShelter" - }, - "FPDSeverityHigh": { - "message": "Wysoki", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "jssgroupWASMEnabled": { - "message": "Włączono" - }, - "fpdDetection": { - "message": "Wykrywanie", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "jssgroupAsk": { - "message": "Pytaj", - "description": "Displayed during JSS level tweaking for XHR and possibly more (in the future)" - }, - "formlabelDescription": { - "message": "Opis:", - "description": "Used in forms whenever a description should be enered (atm new level description)" - }, - "LevelAndDescription": { - "message": "$LEVELNAME$: $LEVELSHORTDESCRIPTION$", - "description": "Displayed in options pages in select elements to give the user an idea what level to apply by listing both its name and a short description", - "placeholders": { - "levelName": { - "content": "$1", - "example": "Name of the level" - }, - "levelShortDescription": { - "content": "$2", - "example": "Short description of the level" - } - } - }, - "formlabelName": { - "message": "Nazwa:", - "description": "Used in forms whenever a name should be enered (atm new level name)" - }, - "JSSBuiltinExceptionsReason": { - "message": "Powód", - "description": "Displayed in expert settings, heading in the table of built-in tweaks" - }, - "credits": { - "message": "Twórcy", - "description": "Displayed in options in the navigation bar" - }, - "ButtonAddNewLevel": { - "message": "Dodaj nowy poziom", - "description": "A button caption that can be used generically by JShelter" - }, - "jssgroupHardwareBatteryRemoveDescription": { - "message": "Usuń API" - }, - "jssgroupInstalledBrowserPlugins": { - "message": "Zainstalowane wtyczki do przeglądarki", - "description": "plugins group" - }, - "ButtonRestoreLevel": { - "message": "Przywróć poziom $LEVELNAME$", - "description": "A button caption that can be used generically by JShelter", - "placeholders": { - "levelName": { - "content": "$1", - "example": "Level name of the level to be restored, for example, Default" - } - } - }, - "jssgroupLocallyRenderedImages": { - "message": "Lokalnie renderowane obrazy", - "description": "htmlcanvaselement group" - }, - "JShelterOptionsAdvanced": { - "message": "Zaawansowane ustawienia JShelter", - "description": "Title of the expert options page" - }, - "jssgroupVirtualAndAugmentedRealityDevicesStrictDescription": { - "message": "Ukryj wszystkie urządzenia." - }, - "jssgroupPhysicalLocationGeolocation": { - "message": "Fizyczna lokalizacja (geolokalizacja)" - }, - "jssgroupSharedArraysBufferStrictDescription": { - "message": "Blokuj SharedArrayBuffer" - }, - "jssgroupGamepadsStrictDescription": { - "message": "Ukryj wszystkie kontrolery do gier." - }, - "jssgroupInstalledBrowserPluginsStrictDescription": { - "message": "Ukryj wszystkie wtyczki." - }, - "jssgroupUserIdleRemoveDescription": { - "message": "Usuń API." - }, - "fpdBehaviorFullBlocking": { - "message": "Pełne blokowanie", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "saveAll": { - "message": "Zapisz wszystko", - "description": "A button caption that can be used generically by JShelter, atm it is displayed in JSS advanced options page" - }, - "jssgroupGraphicCardInformation": { - "message": "Informacje o karcie graficznej", - "description": "webgl group" - }, - "JShelterOptions": { - "message": "Główne ustawienia JShelter", - "description": "Title of the main options page" - }, - "issueTracker": { - "message": "Śledzenie zgłoszeń", - "description": "Displayed in options in the navigation bar" - }, - "externalLinks": { - "message": "Linki zewnętrzne", - "description": "Displayed in options in the navigation bar" - }, - "jssgroupLocallyRenderedImagesDescription2": { - "message": "Funkcje $apis$ zwracają zmodyfikowane dane obrazów.", - "description": "Displayed at various places", - "placeholders": { - "apis": { - "content": "canvas.toDataURL(), canvas.toBlob(), CanvasRenderingContext2D.getImageData(), OffscreenCanvas.convertToBlob() i WebGLRenderingContext.readPixels", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupGeolocationLongDistance": { - "message": "Duży dystans", - "description": "Displayed during level tweaks" - }, - "deleteAll": { - "message": "Usuń wszystko", - "description": "A button caption that can be used generically by JShelter, atm it is displayed in JSS advanced options page" - }, - "jssgroupLocallyGeneratedAudio": { - "message": "Lokalnie generowane audio", - "description": "audiobuffer group" - }, - "defaultLevelSelection": { - "message": "Domyślny poziom ($levelName$)", - "description": "This text is displayed as the default level in the popup", - "placeholders": { - "levelName": { - "content": "$1", - "description": "Translated name of the default level used by the user", - "example": "Recommended, see the keys JSSL*Name like JSSL2Name" - } - } - }, - "jssgroupUserIdleDetection": { - "message": "Wykrywanie bezczynności", - "description": "useridle group" - }, - "jSSShieldDetails": { - "message": "Szczegóły ochrony JS", - "description": "Displayed in options in the navigation bar, try to keep JS shield abbreviated to keep the text short" - }, - "jssgroupWebWorker": { - "message": "API WebWorker", - "description": "webworker group, keep the name of the API in English" - }, - "JSSaddLevelHeading": { - "message": "Dodaj nowy poziom", - "description": "Form heading during creation of a new level. You likely want to use the same or very similar value as ButtonAddNewLevel translation string." - }, - "testPage": { - "message": "Strona testowa", - "description": "Displayed in options in the navigation bar" - }, - "FPDReportShowDetails": { - "message": "Pokaż szczegóły", - "description": "Button caption" - }, - "FPDReportHideDetails": { - "message": "Ukryj szczegóły", - "description": "Button caption" - }, - "JSSeditLevelHeading": { - "message": "Edytuj poziom $LEVELNAME$", - "description": "Heading shown during JSS tweaking (edit level form)", - "placeholders": { - "levelName": { - "content": "$1", - "description": "The level name that is about to be overwritten, do not translate", - "example": "User provided value, any text" - } - } - }, - "advancedOptions": { - "message": "Ustawienia zaawansowane", - "description": "Displayed in options in the navigation bar" - }, - "sourceCode": { - "message": "Kod źródłowy", - "description": "Displayed in options in the navigation bar" - }, - "jssgroupNetworkConditionsRemoveDescription": { - "message": "Wyłącz API NetworkInformation", - "description": "Keep the name of the API in English" - }, - "addToList": { - "message": "Dodaj do listy", - "description": "A button caption that can be used generically by JShelter, atm it is displayed in JSS advanced options page" - }, - "jssgroupMultimediaPlayback": { - "message": "Odtwarzanie multimediów", - "description": "playback group" - }, - "ButtonSaveCustomLevel": { - "message": "Zapisz własny poziom", - "description": "A button caption that can be used generically by JShelter" - }, - "ExampleDomainsText": { - "message": "example.com lub en.example.com", - "description": "Displayed in text inputs that expect a domain" - }, - "FPDSeverityVeryHigh": { - "message": "Bardzo wysoki", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "jssgroupHardwareBattery": { - "message": "API stanu baterii", - "description": "battery group" - }, - "jssgroupNFCRemoveDescription": { - "message": "Usuń API" - }, - "FPDReportRefresh": { - "message": "Odśwież zgłoszenie", - "description": "Button caption" - }, - "mainSettings": { - "message": "Główne ustawienia", - "description": "Displayed in options in the navigation bar" - }, - "addCustomLevel": { - "message": "Dodaj własny poziom", - "description": "A button caption, the button creates a custom JSS level." - }, - "fpdBehaviorLimitedBlocking": { - "message": "Ograniczone blokowanie", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "JSSL1Name": { - "message": "Wyłącz ochronę przed fingerprintingiem", - "description": "The name of JSS L1 that is used at various places in the UI" - }, - "ManageWhitelist": { - "message": "Zarządzaj listą wyjątków ⤵", - "description": "A button caption that can be used generically by JShelter, e.g. to fine-tune NBS and FPD; Please indicate that the list would appear below (the arrow at the end)." - }, - "jssgroupXMLHttpRequestRequests": { - "message": "Przesyłanie danych XMLHttpRequest (XHR)", - "description": "Keep the name of the API in English" - }, - "jssgroupMultimediaPlaybackStrictDescription": { - "message": "Zgłaszaj wszystkie kodeki i mechanizmy szyfrowania jako niewspierane." - }, - "jssgroupXMLHttpRequestRequestsBlockDescription": { - "message": "Blokuj wszystkie zapytania XHR", - "description": "Keep the name of the API in English" - }, - "NBSBlockedHost": { - "message": "Wszystkie przyszłe zapytania HTTP z $HOST$ zostaną zablokowane.", - "description": "The message shown in Chromium-based browsers when NBS starts blocking a host.", - "placeholders": { - "host": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - } - } - }, - "jssgroupSharedArraysBuffer": { - "message": "API SharedArrayBuffer", - "description": "shared_array group" - }, - "jssgroupWASMEnabledDescription": { - "message": "Twórz małe zakłócenia w WebAssembly." - }, - "nbsBlockingOnDescription": { - "message": "Włączono blokowanie zapytań.", - "description": "Displayed during NBS configuration, further explanation of the selected configuration level" - }, - "NBSNotificationsOffDescription": { - "message": "Wyłączono blokowanie powiadomień.", - "description": "Displayed in NBS options, notifications about blocked requests are globally disabled" - }, - "javaScriptShieldPerWebsiteConfiguration": { - "message": "Ustawienia ochrony JavaScript dla poszczególnych stron", - "description": "Displayed in JSS advanced options page" - }, - "jssgroupConnectedCamerasAndMicrophonesStrictDescription": { - "message": "Zwraca pustą listę urządzeń." - }, - "fpdNotificationsOffDescription": { - "message": "Wyłączono wykrywanie/blokowanie powiadomień.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "NBSDetectedHost": { - "message": "Aby zablokować żądania HTTP z $HOST$ włącz blokowanie.", - "description": "The message shown in Chromium-based browsers when NBS detects a suspicious host.", - "placeholders": { - "host": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - } - } - }, - "jssgroupArrays": { - "message": "API ArrayBuffer", - "description": "arrays group" - }, - "jssgroupXMLHttpRequestRequestsAskDescription": { - "message": "Zapytaj przed wykonaniem zapytania XHR", - "description": "Keep the name of the API in English" - }, - "ExpertUndoConfiguration": { - "message": "Cofnij (przywraca poprzednie ustawienia)", - "description": "Displayed in expert settings, button that restores the configuration to the previous (back button)" - }, - "jssgroupUnreliableTransfersToServerBeaconsDescription3": { - "message": "Zapobiegaj wysyłaniu danych przez API Beacon.", - "description": "Keep the name of the API" - }, - "setJavaScriptShieldForWebsite": { - "message": "Ustaw ochronę JavaScript dla strony:", - "description": "Displayed in JSS advanced options page" - }, - "NBSNotificationsOnDescription": { - "message": "Włączono blokowanie powiadomień.", - "description": "Displayed in NBS options, notifications about blocked requests are globally enabled" - }, - "HideWhitelist": { - "message": "Ukryj listę wyjątków ⤵", - "description": "A button caption that can be used generically by JShelter, e.g. to fine-tune NBS and FPD; Please indicate that the list is located below (the arrow at the end)." - }, - "fpdDetectionDefaultDescription": { - "message": "Zalecane ustawienia dla większości użytkowników.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "JSSL0Name": { - "message": "Wyłącz ochronę JavaScript", - "description": "The name of JSS L0 that is used at various places in the UI" - }, - "jssgroupVirtualAndAugmentedRealityDevices": { - "message": "Urządzenia wirtualnej i rozszerzonej rzeczywistości", - "description": "vr group (also includes XR API)" - }, - "jssgroupTimeHighDescription": { - "message": "Losuj cyfry dziesiętne z szumem (1.451)", - "description": "Explains the protection to the user" - }, - "JSSBuiltinExceptions": { - "message": "Wbudowane ustawienia ochrony JavaScript", - "description": "Displayed in expert settings, heading for the table of built-in tweaks" - }, - "ExpertLoadCurrentlyStoredConfiguration": { - "message": "Załaduj obecnie przechowywaną konfigurację", - "description": "Displayed in expert settings, button that loads current configuration to the textarea" - }, - "jssgroupLocallyGeneratedAudioDescription2": { - "message": "Funkcje $apis$ zwracają zmienione dane.", - "placeholders": { - "apis": { - "content": "AudioBuffer.getChannelData(), AudioBuffer.copyFromChannel(), AnalyserNode.getByteTimeDomainData(), AnalyserNode.getFloatTimeDomainData(), AnalyserNode.getByteFrequencyData(), and AnalyserNode.getFloatFrequencyData()", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "fpdNotificationsOnDescription": { - "message": "Włączono wykrywanie/blokowanie powiadomień.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "jssgroupWebWorkerDescription": { - "message": "Ochrona przed wykorzystywaniem WebWorker", - "description": "Keep the name of the API in English" - }, - "fpdNotificationMessage": { - "message": "$MESSAGE$\n\nStrona: $PAGETITLE$\nHost: $DOMAIN$", - "description": "Constructs the full message for the notification when FPD detects suspicious activity", - "placeholders": { - "message": { - "content": "$1", - "description": "Translated fpdBlockingSubsequent or fpdClickNotificationDetails", - "example": "Blocking all subsequent requests." - }, - "pagetitle": { - "content": "$2", - "description": "The content of the title element of the fingerprinting page (in case it is long, only the start of the string)", - "example": "JShelter test page" - }, - "domain": { - "content": "$3", - "description": "The domain of the visited page or IP address (taken from the URL bar)", - "example": "example.com" - } - } - }, - "nbsBlockingOffDescription": { - "message": "Wyłączono blokowanie zapytań.", - "description": "Displayed during NBS configuration, further explanation of the selected configuration level" - }, - "networkBoundaryShield": { - "message": "Ochrona sieci", - "description": "The name of the Network Boundary Shield displayed at multiple places" - }, - "jssgroupLittleLies": { - "message": "Drobne podmiany", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupConfuse": { - "message": "Podmienianie", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupFake": { - "message": "Fałszowanie", - "description": "Displayed during JSS level tweaking for InstalledBrowserPlugins and possibly more (in the future)" - }, - "jssgroupGraphicCardInformationDescription3": { - "message": "$apis$ zwraca zmodyfikowane wartości.", - "placeholders": { - "apis": { - "content": "WebGLRenderingContext functions .getFramebufferAttachmentParameter(), .getActiveAttrib(), .getActiveUniform(), .getAttribLocation(), .getBufferParameter(), .getProgramParameter(), .getRenderbufferParameter(), .getShaderParameter(), .getShaderPrecisionFormat(), .getTexParameter(), .getUniformLocation(), .getVertexAttribOffset(), .getSupportedExtensions(), and .getExtension()", - "description": "Keep the names of the API but translate the punctuation and conjunctions" - } - } - }, - "jssgroupInstalledBrowserPluginsFakeDescription": { - "message": "Zwróć dwie fałszywe wtyczki." - }, - "jssgroupConnectedCamerasAndMicrophones": { - "message": "Podłączone kamery i mikrofony" - }, - "jssgroupHardware": { - "message": "Pamięć urządzenia i procesor", - "description": "hardware group" - }, - "jssgroupNetworkConditions": { - "message": "Warunek sieci", - "description": "net group" - }, - "jssgroupPhysicalEnvironmentSensors": { - "message": "Czujniki środowiska fizycznego", - "description": "physical_environment group" - }, - "jssgroupGeolocationRemoveDescription": { - "message": "Całkowicie usuń usługi geolokalizacji.", - "description": "Explains the protection to the user" - }, - "jssgroupNFC": { - "message": "Near Field Communication (NFC)", - "description": "nfc group" - }, - "jssgroupWASM": { - "message": "Przyspieszenie WebAssembly", - "description": "webassembly group" - }, - "fpdNotificationTitle": { - "message": "Wykryto próby fingerprintingu!", - "description": "Title of a notification" - }, - "jssgroupTimePrecision": { - "message": "Precyzja czasu" - }, - "threatModel": { - "message": "Model zagrożenia", - "description": "Displayed in options in the navigation bar" - }, - "FPDReportTitle": { - "message": "Raport o próbach fingerprintingu", - "description": "Title of a fingeprint report" - }, - "jssgroupGeolocationTownDescription": { - "message": "Użyj dokładności co do kilometrów.", - "description": "Explains the protection to the user" - }, - "jssgroupInstalledBrowserPluginsLittleLiesDescription": { - "message": "Edytuj aktualne wtyczki i dodaj dwie fałszywe wtyczki." - }, - "jssgroupCoopscheduleConfuseDescription": { - "message": "Modyfikuj dostępne informacje w celu zmylenia adwersarzy." - }, - "doNotModifyThisConfiguration": { - "message": "UWAGA! Nie modyfikuj tej konfiguracji chyba że ty wiesz co robisz.", - "description": "Displayed in expert settings" - }, - "JShelterFullConfiguration": { - "message": "Pełna konfiguracja JShelter w tekście", - "description": "Displayed in expert settings, label for the full extension configuration in textarea" - }, - "ExpertResetConfiguration": { - "message": "Zresetuj konfiguracje (skasuje wszystkie niestandardowe zmiany)", - "description": "Displayed in expert settings, button that reset to the configuration that we ship (factory reset)" - }, - "NBSDetectedTitle": { - "message": "Ochrona Sieci wykryto podejrzane żądania!", - "description": "Title of the notifications that is displayed when NBS detects a suspicious requests but does not block them because blocking is disabled" - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/_locales/pt_BR/messages.json b/data/extensions/jsr@javascriptrestrictor/_locales/pt_BR/messages.json deleted file mode 100644 index 0882630..0000000 --- a/data/extensions/jsr@javascriptrestrictor/_locales/pt_BR/messages.json +++ /dev/null @@ -1,278 +0,0 @@ -{ - "descriptionLess": { - "message": "(menos...)", - "description": "Used for example in the popup in the description text of the currently applied level when JShelter gives user the option to get less information about the level." - }, - "extensionName": { - "message": "JShelter", - "description": "Name of the extension. Please, do not translate unless properly justified." - }, - "extensionDescription": { - "message": "Extensão para aumentar o nível de segurança e privacidade do usuário.", - "description": "Description of the extension." - }, - "refreshPage": { - "message": "Atualizar página", - "description": "The button in the popup that refreshes the currently displayed page" - }, - "modifyJSSPopup": { - "message": "Modificar", - "description": "The button in the popup that tweaks JSS" - }, - "descriptionMore": { - "message": "(mais...)", - "description": "Used for example in the popup in the description text of the currently applied level when JShelter gives user the option to get more information about the level." - }, - "levelOfDefense": { - "message": "Nível de defesa", - "description": "Column headding in the popup detailed JSS shield" - }, - "jssgroupUnprotected": { - "message": "Desprotegido", - "description": "Displayed during JSS level tweaking in case the API group is completely disabled" - }, - "jssgroupMedium": { - "message": "Médio", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupLow": { - "message": "Baixo", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupHigh": { - "message": "Alto", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "settingsForDomain": { - "message": "Configurações do domínio", - "description": "The text in the popup that introduces the context of the information in the popup" - }, - "fingerprintDetector": { - "message": "Detector de impressão digital" - }, - "FPDgloballyOff": { - "message": "Detector de impressão digital está globalmente desativado" - }, - "globalSettings": { - "message": "Configurações gerais" - }, - "javascriptShield": { - "message": "Proteção JavaScript" - }, - "networkBoundaryShield": { - "message": "Barreira de Proteção de Rede" - }, - "NBSgloballyOff": { - "message": "Barreira de Proteção de Rede está globalmente desativada" - }, - "nameDescriptionSeparator": { - "message": " — " - }, - "detailTweaksOfJSShieldForThisSite": { - "message": "Ajustes detalhados do JS Shield para este site" - }, - "wrappers": { - "message": "Grupos de APIs" - }, - "numberOfCalls": { - "message": "Número de chamadas" - }, - "FingerprintQualityLabel": { - "message": "⤷ O número de APIs usadas indevidamente para impressão digital chamadas pela página: " - }, - "popupDefaultLevelHelpText": { - "message": "Defina o nível padrão global como o nível de proteção JavaScript para essa página." - }, - "defaultLevelSelection": { - "message": "Nível padrão ($levelName$)", - "placeholders": { - "levelName": { - "content": "$1" - } - } - }, - "ShieldOffSlider": { - "message": "DESLIGADO" - }, - "ShieldOnSlider": { - "message": "LIGADO" - }, - "jssgroupPoor": { - "message": "Fraco" - }, - "jssgroupLittleLies": { - "message": "Pequenas mensagens" - }, - "jssgroupStrict": { - "message": "Estrito" - }, - "jssgroupConfuse": { - "message": "Confuso" - }, - "jssgroupFake": { - "message": "Falso" - }, - "jssgroupAddFake": { - "message": "Adicionar falso" - }, - "jssgroupAsk": { - "message": "Perguntar" - }, - "jssgroupBlock": { - "message": "Bloquear" - }, - "jssgroupRemove": { - "message": "Remover" - }, - "jssgroupTimePrecision": { - "message": "Precisão de tempo" - }, - "jssgroupTimePrecisionDescription": { - "message": "Impedir ataques e técnicas de impressão digital que dependam da medição precisa de tempo (ou dificultá-los)." - }, - "jssgroupTimePrecisionDescription2": { - "message": "Limite a precisão dos marcadores de tempo com alta resolução $apis$. Os marcadores de data e hora fornecidos pela API de geolocalização também serão agrupados se você ativar a proteção “$jssgroupPhysicalLocationGeolocation$”.", - "placeholders": { - "apis": { - "content": "(Data, desempenho, eventos, API do Gamepad e API de VR da Web)" - }, - "jssgroupPhysicalLocationGeolocation": { - "content": "$1" - } - } - }, - "jssgroupLocallyRenderedImagesDescription": { - "message": "Protege contra o rastreamento de impressões digitais do \"canvas\" ou o vazamento de informações sobre as capacidades de renderização da placa de vídeo." - }, - "jssgroupLocallyRenderedImagesLittleLiesDescription": { - "message": "Aplica pequenas modificações na leitura de imagens de modo que a aparência delas se mantenha a mesma, mas seus valores precisos sejam diferentes com base no domínio visitado e entre sessões. O objetivo é prevenir o rastreamento de impressões digitais do \"Canvas\", ou pelo menos dificultá-lo." - }, - "jssgroupTimePoorDescription": { - "message": "Arredonda o tempo para centésimos de segundo (1.230)" - }, - "jssgroupTimeLowDescription": { - "message": "Arredonda o tempo para décimos de segundo (1.200)" - }, - "jssgroupTimeHighDescription": { - "message": "Randomiza dígitos decimais usando ruído (1.451)" - }, - "jssgroupLocallyRenderedImages": { - "message": "Imagens renderizadas localmente" - }, - "jssgroupLocallyRenderedImagesDescription2": { - "message": "Funções $apis$ retornam dados de imagem modificados.", - "placeholders": { - "apis": { - "content": "canvas.toDataURL(), canvas.toBlob(), CanvasRenderingContext2D.getImageData(), OffscreenCanvas.convertToBlob() e WebGLRenderingContext.readPixels" - } - } - }, - "jssgroupLocallyRenderedImagesDescription3": { - "message": "$apis$ são modificadas para mentir com probabilidade.", - "placeholders": { - "apis": { - "content": "CanvasRenderingContext2D.isPointInStroke() e CanvasRenderingContext2D.isPointInPath()" - } - } - }, - "jssgroupLocallyGeneratedAudioLittleLiesDescription": { - "message": "Adiciona um pequeno ruído de amplitude que altera o som mas o mantém similar ao original para o ouvido humano. Os valores precisos variam com base no domínio visitado e entre sessões. O objetivo é prevenir o rastreamento de impressões digitais de Áudio, ou pelo menos dificultá-lo." - }, - "jssgroupLocallyGeneratedAudio": { - "message": "Áudio gerado localmente" - }, - "jssgroupLocallyGeneratedAudioDescription": { - "message": "Protege contra o vazamento de informações sobre as capacidades de renderização da placa de áudio, que poderiam ser usadas, por exemplo, no rastreamento de impressões digitais por áudio." - }, - "jssgroupLocallyGeneratedAudioDescription2": { - "message": "Funções $apis$ retornam dados modificados.", - "placeholders": { - "apis": { - "content": "AudioBuffer.getChannelData(), AudioBuffer.copyFromChannel(), AnalyserNode.getByteTimeDomainData(), AnalyserNode.getFloatTimeDomainData(), AnalyserNode.getByteFrequencyData() e AnalyserNode.getFloatFrequencyData()" - } - } - }, - "jssgroupLocallyGeneratedAudioStrictDescription": { - "message": "Dados de som são substituídos por ruído branco que varia com base no domínio visitado e entre sessões. O objetivo é limitar o vazamento de informações sobre o hardware de áudio e, ao mesmo tempo, dificultar o rastreamento de impressões digitais de Áudio." - }, - "jssgroupGraphicCardInformation": { - "message": "Informações da placa de vídeo" - }, - "jssgroupGraphicCardInformationDescription2": { - "message": "Função $api$ retorna valores modificados ou vazios para certos parâmetros.", - "placeholders": { - "api": { - "content": "WebGLRenderingContext.getParameter()" - } - } - }, - "jssgroupGraphicCardInformationDescription3": { - "message": "$apis$ retornam valores modificados.", - "placeholders": { - "apis": { - "content": "Funções WebGLRenderingContext .getFramebufferAttachmentParameter(), .getActiveAttrib(), .getActiveUniform(), .getAttribLocation(), .getBufferParameter(), .getProgramParameter(), .getRenderbufferParameter(), .getShaderParameter(), .getShaderPrecisionFormat(), .getTexParameter(), .getUniformLocation(), .getVertexAttribOffset(), .getSupportedExtensions() e .getExtension()" - } - } - }, - "jssgroupConnectedCamerasAndMicrophonesAddFakeDescription": { - "message": "Adiciona de 0 a 4 dispositivos falsos e randomiza a ordem. Os dispositivos existentes não serão vinculáveis em diferentes domínios e entre sessões." - }, - "jssgroupInstalledBrowserPlugins": { - "message": "Plugins de navegador instalados" - }, - "jssgroupGraphicCardInformationStrictDescription": { - "message": "Retorna valores vazios (null, strings vazias). Note que essa opção não previne o rastreamento de impressões digitais." - }, - "jssgroupInstalledBrowserPluginsDescription": { - "message": "Protege contra o rastreamento de impressões digitais de plugin." - }, - "jssgroupInstalledBrowserPluginsLittleLiesDescription": { - "message": "Edita os plugins atuais e adiciona dois plugins falsos." - }, - "jssgroupInstalledBrowserPluginsFakeDescription": { - "message": "Retorna dois plugins falsos." - }, - "jssgroupInstalledBrowserPluginsStrictDescription": { - "message": "Esconde todos os plugins." - }, - "jssgroupConnectedCamerasAndMicrophones": { - "message": "Câmeras e microfones conectados" - }, - "jssgroupConnectedCamerasAndMicrophonesDescription": { - "message": "Previne o rastreamento de impressões digitais baseadas nos dispositivos multimídia conectados ao computador." - }, - "jssgroupConnectedCamerasAndMicrophonesDescription2": { - "message": "Função $api$ é modificada para retornar um resultado vazio ou modificado.", - "placeholders": { - "api": { - "content": "MediaDevices.enumerateDevices()" - } - } - }, - "jssgroupConnectedCamerasAndMicrophonesLittleLiesDescription": { - "message": "Randomiza a ordem dos dispositivos. Os dispositivos existentes não serão vinculáveis em diferentes domínios e entre sessões." - }, - "jssgroupConnectedCamerasAndMicrophonesStrictDescription": { - "message": "Retorna uma lista de dispositivos vazia." - }, - "jssgroupHardwareLowDescription": { - "message": "Retorna um valor válido aleatório entre o valor mínimo e o valor real. O valor retornado varia com base nos domínios visitados e entre sessões." - }, - "jssgroupHardware": { - "message": "Memória e CPU do dispositivo" - }, - "jssgroupHardwareDescription2": { - "message": "Getters $apis$ retornam valores modificados.", - "placeholders": { - "apis": { - "content": "navigator.deviceMemory e navigator.hardwareConcurrency" - } - } - }, - "jssgroupHardwareMediumDescription": { - "message": "Retorna um valor válido aleatório entre o mínimo e 8. O valor retornado varia com base nos domínios visitados e entre sessões." - }, - "jssgroupHardwareHighDescription": { - "message": "Retorna 4 para navigator.deviceMemory e 2 para navigator.hardwareConcurrency." - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/_locales/ru/messages.json b/data/extensions/jsr@javascriptrestrictor/_locales/ru/messages.json deleted file mode 100644 index 6969a38..0000000 --- a/data/extensions/jsr@javascriptrestrictor/_locales/ru/messages.json +++ /dev/null @@ -1,1556 +0,0 @@ -{ - "extensionName": { - "message": "JShelter", - "description": "Name of the extension. Please, do not translate unless properly justified." - }, - "extensionDescription": { - "message": "Расширение для повышения безопасности и приватности пользователя.", - "description": "Description of the extension." - }, - "javascriptShield": { - "message": "Щит JavaScript", - "description": "The name of the JavaScript Shield displayed at multiple places" - }, - "networkBoundaryShield": { - "message": "Щит границ сети", - "description": "The name of the Network Boundary Shield displayed at multiple places" - }, - "NBSgloballyOff": { - "message": "Щит границ сети отключен глобально", - "description": "Informs the user that NBS is globally disabled, displayed e.g. in popup" - }, - "fingerprintDetector": { - "message": "Детектор фингерпринтинга", - "description": "The name of the Fingerprint Detector displayed at multiple places" - }, - "FPDgloballyOff": { - "message": "Детектор фингерпринтинга отключен глобально", - "description": "Informs the user that FPD is globally disabled, displayed e.g. in popup" - }, - "globalSettings": { - "message": "Глобальные настройки", - "description": "The button in the popup that opens options page" - }, - "settingsForDomain": { - "message": "Настройки для домена", - "description": "The text in the popup that introduces the context of the information in the popup" - }, - "refreshPage": { - "message": "Обновить страницу", - "description": "The button in the popup that refreshes the currently displayed page" - }, - "modifyJSSPopup": { - "message": "Изменить", - "description": "The button in the popup that tweaks JSS" - }, - "descriptionMore": { - "message": "(больше…)", - "description": "Used for example in the popup in the description text of the currently applied level when JShelter gives user the option to get more information about the level." - }, - "descriptionLess": { - "message": "(меньше…)", - "description": "Used for example in the popup in the description text of the currently applied level when JShelter gives user the option to get less information about the level." - }, - "nameDescriptionSeparator": { - "message": " — ", - "description": "Used for example in the popup to separate the current JSS level from its description." - }, - "detailTweaksOfJSShieldForThisSite": { - "message": "Подробные настройки щита JS для данного сайта", - "description": "Button in the popup that allows to tweak JSS." - }, - "wrappers": { - "message": "Группы API", - "description": "Column headding in the popup detailed JSS shield" - }, - "levelOfDefense": { - "message": "Уровень защиты", - "description": "Column headding in the popup detailed JSS shield" - }, - "numberOfCalls": { - "message": "Количество вызовов", - "description": "Column headding in the popup detailed JSS shield" - }, - "FingerprintQualityLabel": { - "message": "⤷ Количество API, вызываемых страницей, которые можно использовать для отпечатков пальцев: ", - "description": "This text is displayed in the popup as additional information from FPD" - }, - "popupDefaultLevelHelpText": { - "message": "Задать глобальный уровень щита JavaScript по умолчанию на данной странице.", - "description": "This text is displayed in the popup as a tooltip for the Default level button" - }, - "defaultLevelSelection": { - "message": "Уровень по умолчанию ($levelName$)", - "description": "This text is displayed as the default level in the popup", - "placeholders": { - "levelName": { - "content": "$1", - "example": "Translated name of the default level used by the user" - } - } - }, - "ShieldOffSlider": { - "message": "ВЫКЛ", - "description": "Displayed in sliders that control activation of shields in popup and options, keep the text short to prevent overflow" - }, - "ShieldOnSlider": { - "message": "ВКЛ", - "description": "Displayed in sliders that control activation of shields in popup and options, keep the text short to prevent overflow" - }, - "jssgroupUnprotected": { - "message": "Не защищено", - "description": "Displayed during JSS level tweaking in case the API group is completely disabled" - }, - "jssgroupPoor": { - "message": "Плохой", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupLow": { - "message": "Низкий", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupMedium": { - "message": "Средний", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupHigh": { - "message": "Высокий", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupLittleLies": { - "message": "Малая ложь", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupStrict": { - "message": "Строгий", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupConfuse": { - "message": "Запутать", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupFake": { - "message": "Ложь", - "description": "Displayed during JSS level tweaking for InstalledBrowserPlugins and possibly more (in the future)" - }, - "jssgroupAddFake": { - "message": "Добавлять ложные", - "description": "Displayed during JSS level tweaking for Connected cameras and microphones and possibly more (in the future)" - }, - "jssgroupAsk": { - "message": "Спрашивать", - "description": "Displayed during JSS level tweaking for XHR and possibly more (in the future)" - }, - "jssgroupBlock": { - "message": "Блокировать", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupRemove": { - "message": "Удалять", - "description": "Displayed during JSS level tweaking for several API groups" - }, - "jssgroupTimePrecision": { - "message": "Точность времени" - }, - "jssgroupTimePrecisionDescription": { - "message": "Противодействовать атакам и техникам фингерпринтинга, полагающимся на измерение точного времени (или усложнять их).", - "description": "Displayed at various places" - }, - "jssgroupTimePrecisionDescription2": { - "message": "Ограничивать высокую точность временных меток $apis$. Для временных меток, выдаваемых Geolocation API, также используются обертки при включении защиты \"$jssgroupPhysicalLocationGeolocation$\".", - "description": "Displayed at various places", - "placeholders": { - "apis": { - "content": "(Date, Performance, события, Gamepad API и Web VR API)", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - }, - "jssgroupPhysicalLocationGeolocation": { - "content": "$1", - "description": "Translated version of the jssgroupPhysicalLocationGeolocation string" - } - } - }, - "jssgroupTimePoorDescription": { - "message": "Округлять время до сотых секунды (1.230)", - "description": "Explains the protection to the user" - }, - "jssgroupTimeLowDescription": { - "message": "Округлять время до десятых секунды (1.200)", - "description": "Explains the protection to the user" - }, - "jssgroupTimeHighDescription": { - "message": "Выдавать случайные десятичные числа с шумом (1.451)", - "description": "Explains the protection to the user" - }, - "jssgroupLocallyRenderedImages": { - "message": "Локально отрендеренные изображения", - "description": "htmlcanvaselement group" - }, - "jssgroupLocallyRenderedImagesDescription": { - "message": "Защищать от фингерпринтинга Canvas или утечек информации о возможностях рендеринга графической карты.", - "description": "Displayed at various places, try to keep canvas in English or make sure that the user can understand that the protection is about the Canvas API" - }, - "jssgroupLocallyRenderedImagesDescription2": { - "message": "Функции $apis$ возвращают измененные данные изображения.", - "description": "Displayed at various places", - "placeholders": { - "apis": { - "content": "canvas.toDataURL(), canvas.toBlob(), CanvasRenderingContext2D.getImageData(), OffscreenCanvas.convertToBlob() и WebGLRenderingContext.readPixels", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupLocallyRenderedImagesDescription3": { - "message": "$apis$ изменены, чтобы по возможности выдавать неверные результаты.", - "description": "Displayed after jssgroupLocallyRenderedImagesDescription2", - "placeholders": { - "apis": { - "content": "CanvasRenderingContext2D.isPointInStroke() и CanvasRenderingContext2D.isPointInPath()", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupLocallyRenderedImagesLittleLiesDescription": { - "message": "Вносить небольшие изменения в чтение данных изображения таким образом, чтобы оно выглядело так же, но точные значения отличались для разных посещаемых доменов и между сессиями. Цель — предотвратить фингерпринтинг Canvas или как минимум усложнить его.", - "description": "Consider keeping reference to Canvas fingerprinting in English" - }, - "jssgroupLocallyRenderedImagesStrictDescription": { - "message": "Считывать белые изображения (пустой массив из WebGL canvas). Эта опция не защищает от фингерпринтинга Canvas.", - "description": "Consider keeping reference to Canvas fingerprinting in English" - }, - "jssgroupLocallyGeneratedAudio": { - "message": "Локально сгенерированное аудио", - "description": "audiobuffer group" - }, - "jssgroupLocallyGeneratedAudioDescription": { - "message": "Защищать от утечек информации о возможностях рендеринга звуковой карты, которые могут быть использованы, например, для фингерпринтинга аудио.", - "description": "Try to keep reference to audio fingerprinting" - }, - "jssgroupLocallyGeneratedAudioDescription2": { - "message": "Функции $apis$ возвращают изменения для аудиоданных.", - "placeholders": { - "apis": { - "content": "AudioBuffer.getChannelData(), AudioBuffer.copyFromChannel(), AnalyserNode.getByteTimeDomainData(), AnalyserNode.getFloatTimeDomainData(), AnalyserNode.getByteFrequencyData() и AnalyserNode.getFloatFrequencyData()", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupLocallyGeneratedAudioLittleLiesDescription": { - "message": "Добавлять небольшой шум амплитуды таким образом, чтобы звук не отличался от оригинального для человека. Точные значения отличаются для разных посещаемых доменов и между сессиями. Цель — предотвратить фингерпринтинг аудио или, как минимум, усложнить его.", - "description": "Consider keeping reference to Audio fingerprinting in English" - }, - "jssgroupLocallyGeneratedAudioStrictDescription": { - "message": "Звуковые данные заменяются белым шумом, который отличается для разных посещаемых доменов и между сессиями. Цель — ограничить утечки о звуковом оборудовании и заодно усложнить фингерпринтинг аудио.", - "description": "Consider keeping reference to Audio fingerprinting in English" - }, - "jssgroupGraphicCardInformation": { - "message": "Информация о графической карте", - "description": "webgl group" - }, - "jssgroupGraphicCardInformationDescription": { - "message": "Подменять подробности о вашей графической карте, например, для усложнения фингерпринтинга." - }, - "jssgroupGraphicCardInformationDescription2": { - "message": "Функция $api$ возвращает измененные или минимальные значения для определенных параметров.", - "placeholders": { - "api": { - "content": "WebGLRenderingContext.getParameter()", - "description": "Keep the names of the API" - } - } - }, - "jssgroupGraphicCardInformationDescription3": { - "message": "$apis$ возвращают измененные значения.", - "placeholders": { - "apis": { - "content": "WebGLRenderingContext functions .getFramebufferAttachmentParameter(), .getActiveAttrib(), .getActiveUniform(), .getAttribLocation(), .getBufferParameter(), .getProgramParameter(), .getRenderbufferParameter(), .getShaderParameter(), .getShaderPrecisionFormat(), .getTexParameter(), .getUniformLocation(), .getVertexAttribOffset(), .getSupportedExtensions() и .getExtension()", - "description": "Keep the names of the API but translate the punctuation and conjunctions" - } - } - }, - "jssgroupGraphicCardInformationLittleLiesDescription": { - "message": "Генерировать правдоподобные числа или случайные строки, которые отличаются для разных посещаемых доменов и между сессиями. Цель — ограничить утечки о графических картах и заодно усложнить фингерпринтинг." - }, - "jssgroupGraphicCardInformationStrictDescription": { - "message": "Возвращать минимальные значения (null, пустые строки). Имейте в виду, что данная опция не предотвращает фингерпринтинг." - }, - "jssgroupInstalledBrowserPlugins": { - "message": "Установленные браузерные плагины", - "description": "plugins group" - }, - "jssgroupInstalledBrowserPluginsDescription": { - "message": "Защищать от фингерпринтинга по плагинам." - }, - "jssgroupInstalledBrowserPluginsDescription2": { - "message": "Защита не применяется, если ваш браузер возвращает пустой список или пять плагинов для просмотра PDF, определенных текущим стандартом HTML. Таким образом, данная защита не применяется в современных браузерах.", - "description": "The protection is not applied in modern browsers" - }, - "jssgroupInstalledBrowserPluginsLittleLiesDescription": { - "message": "Изменять текущие плагины и добавлять два ложных." - }, - "jssgroupInstalledBrowserPluginsFakeDescription": { - "message": "Возвращать два ложных плагина." - }, - "jssgroupInstalledBrowserPluginsStrictDescription": { - "message": "Скрывать все плагины." - }, - "jssgroupConnectedCamerasAndMicrophones": { - "message": "Подключенные камеры и микрофоны" - }, - "jssgroupConnectedCamerasAndMicrophonesDescription": { - "message": "Предотвращать фингерпринтинг по мультимедийным устройствам, подключенным к компьютеру." - }, - "jssgroupConnectedCamerasAndMicrophonesDescription2": { - "message": "Функция $api$ изменена и выдает пустой или измененный результат.", - "placeholders": { - "api": { - "content": "MediaDevices.enumerateDevices()", - "description": "Keep the names of the API" - } - } - }, - "jssgroupConnectedCamerasAndMicrophonesLittleLiesDescription": { - "message": "Делать порядок устройств случайным. Существующие устройства не связываются с различными доменами и между сессиями." - }, - "jssgroupConnectedCamerasAndMicrophonesAddFakeDescription": { - "message": "Добавлять 0-4 ложных устройства и делать порядок случайным. Существующие устройства не связываются с различными доменами и между сессиями." - }, - "jssgroupConnectedCamerasAndMicrophonesStrictDescription": { - "message": "Выдавать пустой список устройств." - }, - "jssgroupHardware": { - "message": "Память устройства и процессор", - "description": "hardware group" - }, - "jssgroupHardwareDescription": { - "message": "Подменять аппаратную информацию об объеме ОЗУ и тактовой частоте процессора." - }, - "jssgroupHardwareDescription2": { - "message": "Геттеры $apis$ выдают измененные значения.", - "placeholders": { - "apis": { - "content": "navigator.deviceMemory и navigator.hardwareConcurrency", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupHardwareLowDescription": { - "message": "Выдавать случайное действительное значение между минимумом и реальным значением. Выданное значение отличается для разных посещаемых доменов и между сессиями." - }, - "jssgroupHardwareMediumDescription": { - "message": "Выдавать случайное действительное значение между минимумом и 8. Выданное значение отличается для разных посещаемых доменов и между сессиями." - }, - "jssgroupHardwareHighDescription": { - "message": "Выдавать 4 для navigator.deviceMemory и 2 для navigator.hardwareConcurrency.", - "description": "Keep the names of the APIs in English" - }, - "jssgroupNetworkConditions": { - "message": "Условия работы сети", - "description": "net group" - }, - "jssgroupNetworkConditionsDescription": { - "message": "Отключить доступ к информации о сети, чтобы ограничить фингерпринтинг и убрать возможность вычленения паттернов в доступных сетях для понимания, дома ли пользователь, на работе или в путешествии." - }, - "jssgroupNetworkConditionsRemoveDescription": { - "message": "Отключить NetworkInformation API", - "description": "Keep the name of the API in English" - }, - "jssgroupXMLHttpRequestRequests": { - "message": "Передача данных XMLHttpRequest (XHR)", - "description": "Keep the name of the API in English" - }, - "jssgroupXMLHttpRequestRequestsDescription": { - "message": "Фильтровать достоверные XHR-запросы к серверу." - }, - "jssgroupXMLHttpRequestRequestsDescription2": { - "message": "Имейте в виду, что данные запросы часто выполняются в добросовестных целях, а $apis$ не блокируются. Все они имеют схожие цели в коммуникации с сервером. Для практического использования мы рекомендуем включить детектор фингерпринтинга вместо оберток XHR. JShelter предоставляет данную обертку, поскольку она может быть нужна некоторым пользователям, в основном в экспериментальных целях.", - "placeholders": { - "apis": { - "content": "Fetch, SSE, WebRTC и WebSockets APIs", - "description": "Keep the names of the APIs but translate the punctuation and conjunctions" - } - } - }, - "jssgroupXMLHttpRequestRequestsAskDescription": { - "message": "Спрашивать перед выполнением XHR-запроса", - "description": "Keep the name of the API in English" - }, - "jssgroupXMLHttpRequestRequestsBlockDescription": { - "message": "Блокировать все XHR-запросы", - "description": "Keep the name of the API in English" - }, - "jssgroupArrays": { - "message": "ArrayBuffer API", - "description": "arrays group" - }, - "jssgroupArraysDescription": { - "message": "Защищать от эксплуатации ArrayBuffer, например, для предотвращения (или усложнения) атак по сторонним каналам на участки памяти." - }, - "jssgroupArraysShift": { - "message": "Сдвигать" - }, - "jssgroupArraysShiftDescription": { - "message": "Сдвигать индексы для усложнения обнаружения границ страницы памяти." - }, - "jssgroupArraysRandomize": { - "message": "Делать случайным" - }, - "jssgroupArraysRandomizeDescription": { - "message": "Использовать случайное размещение индексации массивов в памяти. Данная опция более эффективна, но медленнее по сравнению со сдвигом." - }, - "jssgroupSharedArraysBuffer": { - "message": "SharedArrayBuffer API", - "description": "shared_array group" - }, - "jssgroupSharedArraysBufferDescription": { - "message": "Защищать от эксплуатации SharedArrayBuffer, например, для предотвращения (или усложнения) атак по сторонним каналам на участки памяти." - }, - "jssgroupSharedArraysBufferMediumDescription": { - "message": "Замедлять сообщения случайным образом для предотвращения работы таймеров высокой точности" - }, - "jssgroupSharedArraysBufferStrictDescription": { - "message": "Блокировать SharedArrayBuffer" - }, - "jssgroupWebWorker": { - "message": "WebWorker API", - "description": "webworker group, keep the name of the API in English" - }, - "jssgroupWebWorkerDescription": { - "message": "Защищать от эксплуатации WebWorker", - "description": "Keep the name of the API in English" - }, - "jssgroupWebWorkerDescription2": { - "message": "Worker предоставляет мощные API, которые позволяют, например, устанавливать в браузер невидимые прокси. Высокие уровни предотвращают эти действия. Имейте в виду, что добросовестные сайты с помощью workers предоставляют возможности работы без подключения к Интернету, поиск, кэширование при возпроизведении мультимедиа и т.д.", - "description": "Try to keep the reference to the Worker in English" - }, - "jssgroupWebWorkerLowDescription": { - "message": "Замедлять сообщения случайным образом для предотвращения работы таймеров высокой точности, но сохранять поддержку WebWorker. Данная опция не запрещает Workers доступ к оригинальным API. Используйте ее с осторожностью.", - "description": "Try to keep the reference to the Worker in English" - }, - "jssgroupWebWorkerStrictDescription": { - "message": "Сделать WebWorkers недействующими. Используйте, чтобы не давать сайтам понять, что браузер не поддерживает WebWorkers. Однако данная опция также не даст некоторым сайтам выполнить код для работы без поддержки WebWorker.", - "description": "Try to keep the reference to the Worker in English" - }, - "jssgroupWebWorkerRemoveDescription": { - "message": "Удалить поддержку WebWorkers из браузера. Это легко распознается веб-страницами и усиливает возможность снятия фингерпринта браузера, но также дает возможность странице выполнить код для работы без поддержки WebWorker.", - "description": "Try to keep the reference to the Worker in English" - }, - "jssgroupPhysicalLocationGeolocation": { - "message": "Физическое местоположение (геолокация)" - }, - "jssgroupPhysicalLocationGeolocationDescription": { - "message": "Ограничивать информацию о местоположении в реальном мире, предоставляемую Geolocation API.", - "description": "Displayed at various places, keep the name of the API in the English" - }, - "jssgroupPhysicalLocationGeolocationDescription2": { - "message": "Использовать хэш домена для подмены местоположения, чтобы оно не изменялось для одного домена в течение всей сессии.", - "description": "Displayed at various places" - }, - "jssgroupGeolocationTimestampOnly": { - "message": "Только по временным меткам", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationTimestampOnlyDescription": { - "message": "Предоставлять точные данные (используйте в тех случаях, когда вам по-настоящему нужно предоставить точное местоположение и вы хотите защитить временные метки геолокации с помощью \"$jssgroupTimePrecision$\")", - "description": "Explains the protection to the user", - "placeholders": { - "jssgroupTimePrecision": { - "content": "$1", - "example": "Translated string of the jssgroupTimePrecision" - } - } - }, - "jssgroupGeolocationVillage": { - "message": "Деревня", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationVillageDescription": { - "message": "Использовать точность до сотен метров.", - "description": "Explains the protection to the user" - }, - "jssgroupGeolocationTown": { - "message": "Город", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationTownDescription": { - "message": "Использовать точность до километров.", - "description": "Explains the protection to the user" - }, - "jssgroupGeolocationRegion": { - "message": "Регион", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationRegionDescription": { - "message": "Использовать точность до десятков километров.", - "description": "Explains the protection to the user" - }, - "jssgroupGeolocationLongDistance": { - "message": "Большое расстояние", - "description": "Displayed during level tweaks" - }, - "jssgroupGeolocationLongDistanceDescription": { - "message": "Использовать точность до сотен километров.", - "description": "Explains the protection to the user" - }, - "jssgroupGeolocationRemoveDescription": { - "message": "Полностью удалить сервисы геолокации.", - "description": "Explains the protection to the user" - }, - "jssgroupPhysicalEnvironmentSensors": { - "message": "Физические датчики окружения", - "description": "physical_environment group" - }, - "jssgroupPhysicalEnvironmentSensorsDescription": { - "message": "Ограничивать информацию, предоставляемую физическими датчиками окружения, такими как магнитометр и акселерометр.", - "description": "Consider replacing Magnetometer and Accelerometer with localized version of the sensor" - }, - "jssgroupPhysicalEnvironmentSensorsDescription2": { - "message": "Данная информация может быть недобросовестно использована для различных целей, например фингерпринтинга по окружению, отслеживания геолокации, обнаружения находящихся рядом устройств, оценки действий пользователя на устройстве и многого другого. Однако ее считывание может использоваться в приложениях для навигации, игр и других. Например, некоторые приложения с помощью ориентации устройства управляют действиями внутри них." - }, - "jssgroupPhysicalEnvironmentSensorsHighDescription": { - "message": "Эмулировать стационарное устройство, выдающее разные показания сенсора для различных доменов и между сессиями." - }, - "jssgroupUserIdleDetection": { - "message": "Обнаружение бездействия пользователя", - "description": "useridle group" - }, - "jssgroupUserIdleDetectionDescription": { - "message": "Idle Detection API может обнаружить неактивность пользователя и заблокированный экран.", - "description": "Try to keep the name of the API in English" - }, - "jssgroupUserIdleDetectionDescription2": { - "message": "Намерение данного API — предоставить веб-приложениям информацию о бездействии пользователя, например, чтобы не отображать уведомления при его неактивности. Однако эта информация может быть недобросовестно использована для отслеживания активности пользователя и сопоставления изменений состояния между доменами." - }, - "jssgroupUserIdleConfuseDescription": { - "message": "Всегда выдавать активного пользователя с разблокированным экраном." - }, - "jssgroupUserIdleBlockDescription": { - "message": "Не показывать всплывающие окна и автоматически отклонять." - }, - "jssgroupUserIdleRemoveDescription": { - "message": "Удалить API." - }, - "jssgroupCoopschedule": { - "message": "Планирование задач периода бездействия", - "description": "coopschedule group" - }, - "jssgroupCoopscheduleDescription": { - "message": "Cooperative Scheduling of Background Tasks API может планировать фоновые задачи таким образом, чтобы при выполнении других высокоприоритетных задач, разделяющих тот же событийный цикл, не возникали задержки.", - "description": "Try to keep the names of the APIs in English" - }, - "jssgroupCoopscheduleDescription2": { - "message": "Данный API вызывает утечки информации о других задачах, выполняемых браузером, как и о текущих запланированных задачах, окончании вертикальной синхронизации, взаимодействии пользователя и других." - }, - "jssgroupCoopscheduleConfuseDescription": { - "message": "Изменять доступную информацию, чтобы запутывать злоумышленников." - }, - "jssgroupGamepads": { - "message": "Геймпады", - "description": "gamepads group" - }, - "jssgroupGamepadsDescription": { - "message": "Не давать веб-сайтам получать и изучать информацию о локальных геймпадах." - }, - "jssgroupGamepadsDescription2": { - "message": "Данная информация может быть недобросовестно использована для фингерпринтинга браузера. Вдобавок, доступ к геймпадам нужен пользователю только на специализированных веб-сайтах." - }, - "jssgroupGamepadsStrictDescription": { - "message": "Скрывать все геймпады." - }, - "jssgroupVirtualAndAugmentedRealityDevices": { - "message": "Устройства виртуальной и дополненной реальности", - "description": "vr group (also includes XR API)" - }, - "jssgroupVirtualAndAugmentedRealityDevicesDescription": { - "message": "Не давать веб-сайтам получать и изучать информацию о локальных устройствах виртуальной и дополненной реальности." - }, - "jssgroupVirtualAndAugmentedRealityDevicesDescription2": { - "message": "Даннная информация может быть недобросовестно использована для фингерпринтинга браузера. Вдобавок, доступ к устройствам виртуальной и дополненной реальности нужен пользователю только на специализированных веб-сайтах." - }, - "jssgroupVirtualAndAugmentedRealityDevicesStrictDescription": { - "message": "Скрывать все устройства." - }, - "jssgroupMultimediaPlayback": { - "message": "Воспроизведение мультимедиа", - "description": "playback group" - }, - "jssgroupMultimediaPlaybackDescription": { - "message": "Не давать веб-сайтам получать и изучать информацию о локально установленных кодеках, возможностях кодирования/декодирования и производительности." - }, - "jssgroupMultimediaPlaybackDescription2": { - "message": "Информация, предоставляемая данным API, может быть недобросовестно использована для фингерпринтинга браузера. Вам стоит включать защиту для сайтов, не воспроизводящих аудио или видео. Данная защита может нарушить работу сайтов, воспроизводящих аудио или видео." - }, - "jssgroupMultimediaPlaybackLittleLiesDescription": { - "message": "Сообщать, что кодек/механизм шифрования не поддерживается, с вероятностью 12.5%." - }, - "jssgroupMultimediaPlaybackStrictDescription": { - "message": "Сообщать, что ни один кодек/механизм шифрования не поддерживается." - }, - "jssgroupMultimediaPlaybackBlockDescription": { - "message": "Не сообщать никакую информацию вообще." - }, - "jssgroupUnreliableTransfersToServerBeacons": { - "message": "Недостоверные запросы к серверу (маяки)", - "description": "analytics group" - }, - "jssgroupUnreliableTransfersToServerBeaconsDescription": { - "message": "Предотвращать недостоверные запросы к серверу (маяки)." - }, - "jssgroupUnreliableTransfersToServerBeaconsDescription2": { - "message": "Данные запросы чаще всего недобросовестно применяются для аналитики, но иногда их могут использовать интернет-магазины или другие страницы." - }, - "jssgroupUnreliableTransfersToServerBeaconsDescription3": { - "message": "Предотвращать отправку информации с помощью Beacon API.", - "description": "Keep the name of the API" - }, - "jssgroupUnreliableTransfersToServerBeaconsBlockDescription": { - "message": "Блокировать передачу данных с помощью данного API. Не выполняет никаких действий." - }, - "jssgroupHardwareBattery": { - "message": "Battery Status API", - "description": "battery group" - }, - "jssgroupHardwareBatteryDescription": { - "message": "Удаляет поддержку Battery Status API, которая недобросовестно используется для фингерпринтинга.", - "description": "Try to keep the reference to the English name of the API" - }, - "jssgroupHardwareBatteryRemoveDescription": { - "message": "Удалить API" - }, - "jssgroupPersistentIdentifierOfTheBrowserTab": { - "message": "Постоянный идентификатор вкладки браузера", - "description": "windowname group" - }, - "jssgroupPersistentIdentifierOfTheBrowserTabDescription": { - "message": "В отличие от других компонентов окружения, свойство window.name не сбрасывается во время загрузки страницы. Следовательно, страница может сохранять уникальный идентификатор вкладки в свойство или другие добросовестные данные.", - "description": "Try to keep reference to window.name." - }, - "jssgroupPersistentIdentifierOfTheBrowserTabDescription2": { - "message": "Данный API позволяет совершать межсайтовую идентификацию в одной вкладке и сессии браузера." - }, - "jssgroupPersistentIdentifierOfTheBrowserTabStrictDescription": { - "message": "Очищать значения window.name при переходе на другой сервис (изменение домена eTLD+1) во время перезагрузки страницы. Это действие не препятствует многим добросовестным намерениям и предотвращает атаки межсайтовой реидентификации.", - "description": "Try to keep reference to window.name and eTLD+1" - }, - "jssgroupPersistentIdentifierOfTheBrowserTabFirefox88": { - "message": "$BROWSER$ и выше уже защищает вас.", - "placeholders": { - "browser": { - "content": "Firefox 88" - } - } - }, - "jssgroupNFC": { - "message": "Near Field Communication (NFC)", - "description": "nfc group" - }, - "jssgroupNFCDescription": { - "message": "Near Field Communication (NFC) включает беспроводную связь между двумя устройствами на близком расстоянии, обычно до нескольких сантиметров. NFC — это международный стандарт (ISO/IEC 18092), определяющий интерфейс и протокол для простой беспроводного подключения близко расположенных девайсов, работающее на частоте 13.56 МГц." - }, - "jssgroupNFCDescription2": { - "message": "Данный API может быть недобросовестно использован для получения информации о других устройствах в зоне действия.", - "description": "Keep the technical references" - }, - "jssgroupNFCRemoveDescription": { - "message": "Удалить API" - }, - "jssgroupWASM": { - "message": "Ускорение WebAssembly", - "description": "webassembly group" - }, - "jssgroupWASMDescription": { - "message": "Ускорять изменения типа \"малая ложь\" для локально сгенерированных изображений и аудио с помощью WebAssembly.", - "description": "Keep reference to WebAssembly" - }, - "jssgroupWASMDescription2": { - "message": "Данная опция имеет эффект, если уровни \"$canvas$\" или \"$audio$\" установлены только на \"$littlelies$\".", - "placeholders": { - "canvas": { - "content": "$1", - "example": "Translation of jssgroupLocallyRenderedImages" - }, - "audio": { - "content": "$2", - "example": "Translation of jssgroupLocallyGeneratedAudio" - }, - "littlelies": { - "content": "$3", - "example": "Translation of jssgroupLittleLies" - } - } - }, - "jssgroupWASMDescription3": { - "message": "Код WebAssembly генерирует те же изменения, что и неускоренная версия. Таким образом, эта опция безопасна с точки зрения беспокойства о фингерпринтинге." - }, - "jssgroupWASMDisabled": { - "message": "Выключено" - }, - "jssgroupWASMDisabledDescription": { - "message": "Не создавайте маленькую ложь в WebAssembly, используйте более медленный JavaScript." - }, - "jssgroupWASMPassive": { - "message": "Пассивно" - }, - "jssgroupWASMPassiveDescription": { - "message": "Включить создание малой лжи с помощью WebAssembly, но откатываться на медленную реализацию по умолчанию при невозможности ввести модуль WebAssembly." - }, - "jssgroupWASMActive": { - "message": "Активно" - }, - "jssgroupWASMActiveDescription": { - "message": "Ослабить директиву 'wasm-unsafe-eval' Content Security Policy (CSP), чтобы разрешить выполнение WebAssembly там, где CSP посещаемой страницы иначе этого не позволяет." - }, - "jssgroupWASMActiveDescription2": { - "message": "Инициализация модулей WebAssembly modules подчиняется CSP посещаемой страницы в браузерах, основанных на Chromium." - }, - "jssgroupWASMActiveDescription3": { - "message": "Данная опция полезна тем, что изменения выполняются быстрее на всех страницах." - }, - "jssgroupWASMActiveDescription4": { - "message": "Однако при включении данной опции повышается риск стать жертвой уязвимости, от которой CSP иначе бы защитила — например, межсайтовый скриптинг. Кроме того, данная опция может помешать работе других установленных расширений, изменяющих заголовок CSP." - }, - "jssgroupWASMEnabled": { - "message": "Включено" - }, - "jssgroupWASMEnabledDescription": { - "message": "Создавать малую ложь с помощью WebAssembly." - }, - "JShelterOptions": { - "message": "Основные настройки JShelter", - "description": "Title of the main options page" - }, - "mainSettings": { - "message": "Основные настройки", - "description": "Displayed in options in the navigation bar" - }, - "JShelterOptionsJSSFineTune": { - "message": "Детали щита Javascript: защита для каждого домена", - "description": "Title of the JS Shield details options page" - }, - "jSSShieldDetails": { - "message": "Детали щита JS", - "description": "Displayed in options in the navigation bar, try to keep JS shield abbreviated to keep the text short" - }, - "JShelterOptionsAdvanced": { - "message": "Экспертные настройки JShelter", - "description": "Title of the expert options page" - }, - "advancedOptions": { - "message": "Экспертные настройки", - "description": "Displayed in options in the navigation bar" - }, - "externalLinks": { - "message": "Внешние ссылки", - "description": "Displayed in options in the navigation bar" - }, - "ExternalLinksSeparator": { - "message": " »", - "description": "Displayed in options in the navigation bar, for example after external links" - }, - "threatModel": { - "message": "Модель угроз", - "description": "Displayed in options in the navigation bar" - }, - "fAQ": { - "message": "FAQ", - "description": "Displayed in options in the navigation bar" - }, - "testPage": { - "message": "Тестовая страница", - "description": "Displayed in options in the navigation bar" - }, - "permissions": { - "message": "Разрешения", - "description": "Displayed in options in the navigation bar" - }, - "sourceCode": { - "message": "Исходный код", - "description": "Displayed in options in the navigation bar" - }, - "issueTracker": { - "message": "Баг-трекер", - "description": "Displayed in options in the navigation bar" - }, - "credits": { - "message": "Авторы", - "description": "Displayed in options in the navigation bar" - }, - "ExampleDomainsText": { - "message": "example.com или en.example.com", - "description": "Displayed in text inputs that expect a domain" - }, - "ButtonSignExpandOneCharacterDown": { - "message": "⤵", - "description": "A button caption that can be used generically by JShelter, it should contain a single character that intuitively tells the user that by clicking the button, more information will be shown" - }, - "ButtonSave": { - "message": "Сохранить", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonRestore": { - "message": "Восстановить", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonRestoreLevel": { - "message": "Восстановить уровень $LEVELNAME$", - "description": "A button caption that can be used generically by JShelter", - "placeholders": { - "levelName": { - "content": "$1", - "example": "Level name of the level to be restored, for example, Default" - } - } - }, - "ButtonEdit": { - "message": "Редактировать", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonSaveCustomLevel": { - "message": "Сохранить пользовательский уровень", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonAddNewLevel": { - "message": "Добавить новый уровень", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonCancel": { - "message": "Отмена", - "description": "A button caption that can be used generically by JShelter" - }, - "ButtonRemove": { - "message": "Удалить", - "description": "A button caption that can be used generically by JShelter" - }, - "addToList": { - "message": "Добавить в список", - "description": "A button caption that can be used generically by JShelter, atm it is displayed in JSS advanced options page" - }, - "saveAll": { - "message": "Сохранить все", - "description": "A button caption that can be used generically by JShelter, atm it is displayed in JSS advanced options page" - }, - "deleteAll": { - "message": "Удалить все", - "description": "A button caption that can be used generically by JShelter, atm it is displayed in JSS advanced options page" - }, - "ManageWhitelist": { - "message": "Управление списком исключений ⤵", - "description": "A button caption that can be used generically by JShelter, e.g. to fine-tune NBS and FPD; Please indicate that the list would appear below (the arrow at the end)." - }, - "HideWhitelist": { - "message": "Скрыть список исключений ⤵", - "description": "A button caption that can be used generically by JShelter, e.g. to fine-tune NBS and FPD; Please indicate that the list is located below (the arrow at the end)." - }, - "ButtonDisableForDomain": { - "message": "<strong>$DISABLE$</strong> $FORTHEDOMAIN$", - "description": "A button caption that can be used generically by JShelter, e.g. in the options; if necessary, edit the structure of the message but make sure to emhasize the disablement. Translate the placeholders.", - "placeholders": { - "disable": { - "content": "Отключить", - "description": "Please translate" - }, - "forTheDomain": { - "content": "для домена", - "description": "Please translate" - } - } - }, - "ButtonEnableForSelectedDomains": { - "message": "<strong>$ENABLE$</strong> $FORTHEDOMAIN$", - "description": "A button caption that can be used generically by JShelter, e.g. in the options; if necessary, edit the structure of the message but make sure to emhasize the enablement. Translate the placeholders.", - "placeholders": { - "enable": { - "content": "Включить", - "description": "Please translate" - }, - "forTheDomain": { - "content": "для выбранных доменов", - "description": "Please translate" - } - } - }, - "ManageWhitelistDescription": { - "message": "Пожалуйста, имейте в виду, что данные доменные имена проверяются в соответствии с их иерархией, поэтому добавление в список исключений <strong>example.com</strong> также позволяет <strong>news.example.com</strong> обойти щит.", - "description": "Information text that can be used generically by JShelter, e.g. in options to explain the exception list of NBS and FPD." - }, - "javascriptShieldDescription": { - "message": "<p>$PARAGRAPH1$</p><p>$PARAGRAPH2$</p><ul><li>$REDUCTION$</li><li>$FAKE$</li><li>$HIDE$</li></ul><p>$BLOGS$</p>", - "description": "This is the description of JSS shown in options. Please do not modify the template string in the message but translate the paragraphs in the placeholders section. If you find necessary, you can remove or add paragraphs.", - "placeholders": { - "paragraph1": { - "content": "Щит JavaScript изменяет поведение окружения JavaScript, доступного для посещаемых веб-страниц. JShelter подменяет информацию, чтобы ввести в заблуждение фингерпринтеры или сделать атаки, вызываемые веб-страницей, невозможными или более сложными.", - "description": "Paragraph 1, please translate this text." - }, - "paragraph2": { - "content": "Внутри щит JavaScript состоит из оберток — небольших фрагментов кода, изменяющих оригинальное поведение JavaScript API (функцию или свойство), определенное стандартами. Поведение большинства оберток можно разделить на несколько категорий:", - "description": "Paragraph 2, please translate this text." - }, - "reduction": { - "content": "Снижение точности: оригинальное значение является слишком точным и в большинстве случаев не обязательно для использования. Щит JavaScript изменяет значения таким образом, что обычные и добросовестные случаи использования не затрагиваются.", - "description": "UL item 1, please translate this text." - }, - "fake": { - "content": "Подмена информации: некоторые обертки подменяют информацию в основном для введения в заблуждение фингерпринтеров. Некоторые обертки выдают правдоподобные показания, не основанные на оригинальном значении. Другие обертки наделяют показания небольшими изменениями, обычно незаметными для человека, но значимыми для фингерпринтера. JShelter применяет данные изменения по-разному в каждой сессии и для каждого домена таким образом, что наблюдатель, управляющий несколькими доменами, не может использовать данную информацию для связывания браузера между ними. Например, обертки canvas изменяют изображение таким образом, что одни и те же инструкции выдают разный результат для разных доменов и в разных сессиях.", - "description": "UL item 2, please translate this text." - }, - "hide": { - "content": "Скрытие информации: некоторые API выдают необязательную информацию, которую можно скрыть на большинстве страниц. В зависимости от API щит JavaScript может вернуть ошибку, пустое значение или полностью заблокировать API.", - "description": "UL item 3, please translate this text." - }, - "blogs": { - "content": "Для получения более подробной информации читайте наш пост в блоге о <a href='https://jshelter.org/fingerprinting/'>мерах противодействия фингерпринтингу браузера</a> и <a href='https://jshelter.org/farbling/'>малой лжи</a>.", - "description": "Last paragraph, please translate this text, keep the URLs to the English version unless a translation exists on the web." - } - } - }, - "JavascriptShieldLevelsMainLevelOptionHeading": { - "message": "Создать пользовательские уровни и задать уровень по умолчанию", - "description": "A heading in the options above the configuration of the default JSS level and the possibility to list existing levels and create own levels." - }, - "addCustomLevel": { - "message": "Добавить пользовательский уровень", - "description": "A button caption, the button creates a custom JSS level." - }, - "JSSL0Name": { - "message": "Выключить щит JavaScript", - "description": "The name of JSS L0 that is used at various places in the UI" - }, - "JSSL0Description": { - "message": "Не включены обертки для API JavaScript. Используйте этот уровень, если вы (1) доверяете оператору посещаемого сайта/-ов и хотите дать ему доступ ко всем поддерживаемым браузером API, а также злоумышленникам, которые могут встроить код в доверенные страницы, или (2) если вам не нравится щит JavaScript, но вы хотите применить другие механизмы защиты.", - "description": "The description of JSS L0 that is used at various places in the UI" - }, - "JSSL1Name": { - "message": "Выключить защиту от фингерпринтинга", - "description": "The name of JSS L1 that is used at various places in the UI" - }, - "JSSL1Description": { - "message": "Применять меры противодействия, которые редко могут привести к поломке веб-страниц, но не защищают от фингерпринтинга. Отключить малоиспользуемые API. Используйте этот уровень, если детектор фингерпринтинга сообщает о низкой вероятности фингерпринтинга, вы доверяете посещаемому сервису и/или полагаете, что защита замедляет страницу или ломает ее, и ваше желание пользоваться сервисом гораздо выше желания быть защищенным.", - "description": "The description of JSS L1 that is used at various places in the UI, see also FingerprintQualityLabel label for the origin of 'the page called a low number of APIs misused for fingerprinting'" - }, - "JSSL2Name": { - "message": "Рекомендуемый", - "description": "The name of JSS L2 that is used at various places in the UI" - }, - "JSSL2Description": { - "message": "Изменять представление браузера по-разному для разных посещаемых доменов. Применять меры противодействия, которые редко могут привести к поломке веб-страниц. Слегка изменять результаты вызовов of API по-разному для разных доменов, что делает межсайтовый фингерпринтинг нестабильным. Значения, недобросовестно используемые для фингерпринтинга, также отличаются при каждом перезапуске браузера. Если вам нужен меняющийся фингерпринт для одного и того же веб-сайта без перезапуска, используйте режим инкогнито. Имейте в виду, что даже если вы разлогинитесь с сайта, очистите файлы cookie и измените IP-адрес, модифицированные API все равно дадут способ вычислить такой же фингерпринт. Если вы хотите изменить фингерпринт, перезапустите браузер. Если сомневаетесь, используйте этот уровень.", - "description": "The description of JSS L1 that is used at various places in the UI" - }, - "JSSL3Name": { - "message": "Строгий", - "description": "The name of JSS L3 that is used at various places in the UI" - }, - "JSSL3Description": { - "message": "Включить все неэкспериментальные меры защиты. API с включенными обертками выдают ложные значения. Некоторые API заблокированы полностью, другие выдают осмысленные, но редкие значения. Некоторые выдаваемые значения бессмысленны. Данный уровень может сделать вас уязвимым для фингерпринтинга, поскольку результаты вызовов API в основном изменяются одинаковым образом для всех веб-сайтов и в каждой сессии. Используйте этот уровень, если хотите ограничить объем информации, передаваемой браузером. Если вас волнует фингерпринтинг, убедитесь, что детектор фингерпринтинга включен.", - "description": "The description of JSS L2 that is used at various places in the UI" - }, - "JSSLexperimentalName": { - "message": "Экспериментальный", - "description": "The name of JSS experimental level that is used at various places in the UI" - }, - "JSSLexperimentalDescription": { - "message": "Строгий уровень защиты с включенными дополнительными обертками (включая те API, которые часто ломают страницы и работают неидеально). Используйте этот уровень, если хотите поэкспериментировать с JShelter. Для обычной работы используйте рекомендуемый или строгий уровни с включенным детектором фингерпринтинга.", - "description": "The description of JSS experimental level that is used at various places in the UI" - }, - "omittedAPIsHeading": { - "message": "Имейте в виду, что для предотвращения фингерпринтинга JShelter не использует обертки для объектов, которые не определены. Ваш браузер не поддерживает:", - "description": "This message is displayed while giving the possibility to create a new level or edit existing levels in options" - }, - "newLevelsNotRecommended": { - "message": "Мы не рекомендуем создавать собственные уровни и изменять конфигурацию, если вас волнует фингерпринтинг браузера. Пожалуйста, прочитайте <a href=\"$FAQURL$\">FAQ</a> и наши <a href=\"$PAPERURL$\">документы</a>. Создавая расхождения с конфигурацией других пользователей, вы облегчаете вашу реидентификацию.", - "description": "This message is displayed while creating a new level in options. Make sure that you keep correct HTML markup", - "placeholders": { - "faqurl": { - "content": "https://jshelter.org/faq/" - }, - "paperurl": { - "content": "https://arxiv.org/abs/2204.01392" - } - } - }, - "formlabelName": { - "message": "Название:", - "description": "Used in forms whenever a name should be enered (atm new level name)" - }, - "formlabelDescription": { - "message": "Описание:", - "description": "Used in forms whenever a description should be enered (atm new level description)" - }, - "customLevelAlreadyExistsItWillBeOverridden": { - "message": "Пользовательский уровень $CUSTOMNAME$ уже существует. Он будет перезаписан.", - "description": "Alert message shown during level editing, translate the message but not the placeholder", - "placeholders": { - "customName": { - "content": "$1", - "description": "The level name that is about to be overwritten, do not translate", - "example": "User provided value, any text" - } - } - }, - "customLevelWereNotUpdated": { - "message": "Пользовательские уровни не были обновлены. Пожалуйста, попробуйте позже.", - "description": "The configuration with the chaged or new level was not saved because of unknown reason." - }, - "NewLevelMissingNameOrDescription": { - "message": "Оба поля, \"Название\" и \"Описание\", обязательны для уровня. Пожалуйста, заполните их.", - "description": "User did not supply all mandatory fields for a JSS level" - }, - "JSSeditLevelHeading": { - "message": "Изменить уровень $LEVELNAME$", - "description": "Heading shown during JSS tweaking (edit level form)", - "placeholders": { - "levelName": { - "content": "$1", - "description": "The level name that is about to be overwritten, do not translate", - "example": "User provided value, any text" - } - } - }, - "JSSaddLevelHeading": { - "message": "Добавить новый уровень", - "description": "Form heading during creation of a new level. You likely want to use the same or very similar value as ButtonAddNewLevel translation string." - }, - "javaScriptShieldPerWebsiteConfiguration": { - "message": "Настройки щита JavaScript для веб-сайтов", - "description": "Displayed in JSS advanced options page" - }, - "setJavaScriptShieldForWebsite": { - "message": "Установить щит JavaScript Shield для веб-сайта:", - "description": "Displayed in JSS advanced options page" - }, - "aListOfWebsiteWithRedefinedJavaScriptShield": { - "message": "Список веб-сайтов с установленным щитом JavaScript:", - "description": "Displayed in JSS advanced options page" - }, - "JSSAdvancedConfirmOverwrite": { - "message": "Настройки для домена $DOMAIN$ уже существуют и будут перезаписаны.", - "description": "Displayed in JSS advanced options page", - "placeholders": { - "domain": { - "content": "$1", - "example": "The domain whose settings are about to be overwritten, like example.com" - } - } - }, - "LevelAndDescription": { - "message": "$LEVELNAME$: $LEVELSHORTDESCRIPTION$", - "description": "Displayed in options pages in select elements to give the user an idea what level to apply by listing both its name and a short description", - "placeholders": { - "levelName": { - "content": "$1", - "example": "Name of the level" - }, - "levelShortDescription": { - "content": "$2", - "example": "Short description of the level" - } - } - }, - "doNotModifyThisConfiguration": { - "message": "ОСТОРОЖНО! Не изменяйте эти настройки, если не знаете, что делать.", - "description": "Displayed in expert settings" - }, - "JShelterFullConfiguration": { - "message": "Все настройки JShelter в текстовом виде", - "description": "Displayed in expert settings, label for the full extension configuration in textarea" - }, - "ExpertLoadCurrentlyStoredConfiguration": { - "message": "Загрузить текущие сохраненные настройки", - "description": "Displayed in expert settings, button that loads current configuration to the textarea" - }, - "ExpertOverwriteConfiguration": { - "message": "Перезаписать настройки (сохраняет отображаемые настройки окончательно)", - "description": "Displayed in expert settings, button that stores the current configuration permanently" - }, - "ExpertResetConfiguration": { - "message": "Сбросить настройки (удалить все пользовательские изменения)", - "description": "Displayed in expert settings, button that reset to the configuration that we ship (factory reset)" - }, - "ExpertUndoConfiguration": { - "message": "Отменить (убрать последнюю перезапись настроек)", - "description": "Displayed in expert settings, button that restores the configuration to the previous (back button)" - }, - "protectionConfigurationOptionActivatedOn": { - "message": "Вкл", - "description": "Displayed during NBS and FPD configuration when the option is activated (on)" - }, - "protectionConfigurationOptionActivatedOff": { - "message": "Выкл", - "description": "Displayed during NBS and FPD configuration when the option is deactivated (off)" - }, - "shieldNotifications": { - "message": "Уведомления", - "description": "Displayed as a text label during NBS and FPD configuration when the user can activate or deactivate notifications" - }, - "NBSDescription": { - "message": "<p>$PARAGRAPH1$</p><p>$PARAGRAPH2$</p><p>$PARAGRAPH3$</p>", - "description": "This is the description of NBS shown in options. Please do not modify the template string in the message but translate the paragraphs in the placeholders section. If you find necessary, you can remove or add paragraphs.", - "placeholders": { - "paragraph1": { - "content": "Network Boundary Shield не позволяет посещенным веб-страницам использовать браузер в качестве прокси-сервера между общедоступным Интернетом и локальной сетью. См. <a href='https://jshelter.org/localportscanning/'>наш блог</a> и <a href='https://www.forcepoint.com/sites/default/files/resources/files. /report-attacking-internal-network-en_0.pdf'>Отчет Force Point</a> с примерами атак, отраженных Network Boundary Shield. Защита инкапсулирует API веб-запросов, поэтому он фиксирует все исходящие запросы.", - "description": "Paragraph 1, please translate this text, keep the URLs or replace them to a translated version of the targets." - }, - "paragraph2": { - "content": "Обычно вы хотите заблокировать все подозрительные запросы с помощью щита границ сети. Однако некоторые страницы могут работать некорректно, поскольку требуют взаимодействия между Интернетом и локальной сетью. Например, некоторые информационные системы интранета могут быть заблокированы щитом границ сети. Пользователи JShelter также сообщили об увеличении частоты ложных срабатываний при использовании программ фильтрации по DNS. Если вы используете подобную, убедитесь, что DNS возвращает 0.0.0.0 для заблокированных доменов.", - "description": "Paragraph 2, please translate this text." - }, - "paragraph3": { - "content": "Поведение Network Boundary Shield по умолчанию можно глобально настроить с помощью настроек ниже. Network Boundary Shield также можно полностью отключить для каждого домена с помощью списка исключений. Доменам можно разрешить отправлять межсетевые запросы с помощью <i>переключателя Network Boundary Shield</i> во всплывающем окне или вручную с помощью параметра <i>Управление списком исключений</i>. Помните, что добавление домена в список исключений также позволяет его субдоменам выполнять межсетевые запросы. Чтобы выборочно отключить Network Boundary Shield, добавьте домены в список исключений (за исключением «www», но включая все остальные домены, например «.com»).", - "description": "Paragraph 3, please translate this text, note that <i>Manage exception list</i> refers to the ManageWhitelist string." - } - } - }, - "NBSHttpProxyDNSAPINote": { - "message": "Если вы используете HTTP-прокси, NBS защитит локальную сеть прокси вместо вашей сети, поскольку прокси выполняет HTTP-запросы к назначенному адресу. Для предотвращения утечек DNS ваших запросов, инициированных с данного компьютера, щит границ сети не разрешает доменам DNS обнаруживать возможные межсетевые запросы. Однако щит границ сети защищает локальную сеть прокси для напрямую встроенных IP-адресов. Следовательно, щит границ сети защищает локальную сеть прокси только частично.", - "description": "This note is appended to NBS description in Firefox, see https://pagure.io/JShelter/webextension/issue/41 for the context of the issue" - }, - "nbsBlocking": { - "message": "Блокировка", - "description": "Displayed during NBS configuration, label for a configuration option" - }, - "nbsBlockingDescription": { - "message": "Блокировать запросы, пытающиеся достичь вашей локальной сети.", - "description": "Displayed during NBS configuration, basic explanation of the configuration option" - }, - "nbsBlockingDescription2": { - "message": "ВАЖНО: в большинстве случаев мы рекомендуем включать блокировку запросов.", - "description": "Displayed during NBS configuration, further explanation of the configuration option" - }, - "nbsBlockingOffDescription": { - "message": "Блокировка запросов выключена.", - "description": "Displayed during NBS configuration, further explanation of the selected configuration level" - }, - "nbsBlockingOnDescription": { - "message": "Блокировка запросов включена.", - "description": "Displayed during NBS configuration, further explanation of the selected configuration level" - }, - "NBSNotificationsDescription": { - "message": "Включать/выключать уведомления о подозрительных или заблокированных запросах.", - "description": "Displayed in NBS options, globaly disables or enables notifications" - }, - "NBSNotificationsDescription2": { - "message": "Если уведомления включены: при включенной блокировке вы получите уведомления о заблокированных запросах; при выключенной блокировке вы получите уведомления о подозрительных запросах без попыток их предотвратить.", - "description": "Displayed in NBS options, globaly disables or enables notifications" - }, - "NBSNotificationsOffDescription": { - "message": "Уведомления о блокировке выключены.", - "description": "Displayed in NBS options, notifications about blocked requests are globally disabled" - }, - "NBSNotificationsOnDescription": { - "message": "Уведомления о блокировке включены.", - "description": "Displayed in NBS options, notifications about blocked requests are globally enabled" - }, - "NBSBlockedTitle": { - "message": "Щит границ сети заблокировал подозрительные запросы!", - "description": "Title of the notifications that is displayed when NBS actually blocks requests" - }, - "NBSDetectedTitle": { - "message": "Щит границ сети обнаружил подозрительные запросы!", - "description": "Title of the notifications that is displayed when NBS detects a suspicious requests but does not block them because blocking is disabled" - }, - "NBSBlockedMessageMultipleTargets": { - "message": "Количество заблокированных запросов\nот $ORIGIN$,\nпытавшихся получить доступ\nк локальной сети: $COUNT$.", - "description": "The message shown when the page contacted multiple targets in the local network. Produce short lines.", - "placeholders": { - "origin": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - }, - "count": { - "content": "$2", - "description": "A positive number, do not translate", - "example": "5" - } - } - }, - "NBSDetectedMessageMultipleTargets": { - "message": "Количество обнаруженных запросов\nот $ORIGIN$,\nпытавшихся получить доступ\nк локальной сети: $COUNT$.", - "description": "The message shown when the page contacted multiple targets in the local network. Produce short lines.", - "placeholders": { - "origin": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - }, - "count": { - "content": "$2", - "description": "A positive number, do not translate", - "example": "5" - } - } - }, - "NBSBlockedMessageWithTarget": { - "message": "Заблокированные запросы: $COUNT$\nот $ORIGIN$\nк $TARGET$.", - "description": "The message shown when the page contacted single target in the local network. Produce short lines.", - "placeholders": { - "origin": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - }, - "target": { - "content": "$2", - "description": "IP address (maybe domain), do not translate", - "example": "10.0.0.1" - }, - "count": { - "content": "$3", - "description": "A positive number, do not translate", - "example": "5" - } - } - }, - "NBSDetectedMessageWithTarget": { - "message": "Обнаруженные запросы: $COUNT$\nот $ORIGIN$\nк $TARGET$.", - "description": "The message shown when the page contacted single target in the local network. Produce short lines.", - "placeholders": { - "origin": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - }, - "target": { - "content": "$2", - "description": "IP address (maybe domain), do not translate", - "example": "10.0.0.1" - }, - "count": { - "content": "$3", - "description": "A positive number, do not translate", - "example": "5" - } - } - }, - "NBSBlockedHostTitle": { - "message": "Щит границ сети заблокировал сервер!", - "description": "Title of the notifications that is displayed when NBS blocks future requests by a host in Chromium-based browsers" - }, - "NBSDetectedHostTitle": { - "message": "Щит границ сети обнаружил подозрительный сервер!", - "description": "Title of the notifications that is displayed when NBS detects suspicious requests by a host in Chromium-based browsers but does not block them because blocking is disabled" - }, - "NBSBlockedHost": { - "message": "Все будущие HTTP-запросы от $HOST$ будут заблокированы.", - "description": "The message shown in Chromium-based browsers when NBS starts blocking a host.", - "placeholders": { - "host": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - } - } - }, - "NBSDetectedHost": { - "message": "Чтобы заблокировать HTTP-запросы от $HOST$, включите блокировку.", - "description": "The message shown in Chromium-based browsers when NBS detects a suspicious host.", - "placeholders": { - "host": { - "content": "$1", - "description": "Domain name or IP address, do not translate", - "example": "domainname.example.com" - } - } - }, - "FPDDescription": { - "message": "<p>$PARAGRAPH1$</p><p>$PARAGRAPH2$</p><p>$PARAGRAPH3$</p>", - "description": "This is the description of FPD shown in options. Please do not modify the template string in the message but translate the paragraphs in the placeholders section. If you find necessary, you can remove or add paragraphs.", - "placeholders": { - "paragraph1": { - "content": "Детектор фингерпринтинга предоставляет механизм информарования пользователя об активности фингерпринтинга на посещаемых веб-страницах. Детектор также не дает веб-страницам извлекать фингерпринт браузера по выбору пользователя. Читайте наш <a href='https://jshelter.org/fpdetection/'>пост в блоге</a> или <a href='https://arxiv.org/pdf/1905.01051.pdf'>\"Фингерпринтинг браузера: исследование\"</a> для получения более подробной информации о фингерпринтинге браузера.", - "description": "Paragraph 1, please translate this text, keep the URLs or replace them to a translated version of the targets." - }, - "paragraph2": { - "content": "Если детектор включен, вы будете получать уведомления при обнаружении на веб-странице вызовов большого количества API, недобросовестно используемых для фингерпринтинга. Детектор подсчитывает и оценивает вызванные API для каждого посещения страницы согласно нашей эвристики. Количество вызываемых API, недобросовестно используемых для фингерпринтинга, представлено в виде значка цветом иконки JShelter и во всплывающем окне. При вызове страницей большого количества API фингерпринтинга может появиться уведомление. Вы можете посмотреть подробности об активности фингерпринтинга, сгенерировав отчет о фингерпринтинге. Доступ к нему можно получить во всплывающем окне или нажав прямо на уведомление.", - "description": "Paragraph 2, please translate this text." - }, - "paragraph3": { - "content": "Поведение детектора фингерпринтинга по умолчанию можно настроить в соответствии с предпочтениями. Вы можете выбрать \"блокирующее\" поведение в качестве меры противодействия утечкам фингерпринта. В данном случае детектор фингерпринта блокирует все HTTP-запросы и очищает хранилища браузера при обнаружении вызовов страницей большого количества API фингерпринтинга. Поскольку <strong>данное действие в основном нарушает работу веб-страниц</strong>, мы рекомендуем создать список исключений для доверенных доменов. Выключение детектора для домена во всплывающем окне добавит домен в список исключений. В будущем этот домен не будет обрабатываться или блокироваться. Вы можете управлять всеми исключениями ниже.", - "description": "Paragraph 3, please translate this text." - } - } - }, - "fpdBehavior": { - "message": "Поведение", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorDescription": { - "message": "Указать предпочитаемое поведение модуля.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorPassive": { - "message": "Пассивное", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorPassiveDescription": { - "message": "Использовать цвет значка иконки расширения для сообщения количества вызываемых посещаемой страницей API, которые могут быть недобросовестно используемы для фингерпринтинга.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorLimitedBlocking": { - "message": "Ограниченная блокировка", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorBlockingDescription": { - "message": "Разрешать расширению реагировать при вызове страницей большого количества API, недобросовестно используемых для фингерпринтинга.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorBlockingDescription2": { - "message": "• Прерывать сетевой трафик страницы для предотвращения возможной утечки фингерпринта.", - "description": "Additional information to fpdBehaviorBlockingDescription" - }, - "fpdBehaviorLimitedBlockingDescription3": { - "message": "• Очищать <strong>некоторые</strong> хранилища браузера страницы для удаления возможного кэша фингерпринта. (Дополнительные разрешения не требуются.)", - "description": "Additional information to fpdBehaviorLimitedBlockingDescription" - }, - "fpdBehaviorLimitedBlockingDescription4": { - "message": "• Очищает: <strong>localStorage, sessionStorage, JS cookies, IndexedDB, caches, window.name</strong>", - "description": "Additional information to fpdBehaviorLimitedBlockingDescription" - }, - "fpdBehaviorBlockingDescriptionWarning": { - "message": "ВАЖНО: поведение блокировки может нарушить некоторую функциональность на веб-сайтах с фингерпринтингом.", - "description": "Additional information to fpdBehaviorLimitedBlockingDescription" - }, - "fpdBehaviorFullBlocking": { - "message": "Полная блокировка", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdBehaviorFullBlockingDescription3": { - "message": "• Очищать <strong>все</strong> доступные механизмы хранилищ страницы, где может располагаться кэш фингерпринта. (Требуется разрешение BrowsingData.)", - "description": "Additional information to fpdBehaviorBlockingDescription" - }, - "fpdBehaviorFullBlockingDescription4": { - "message": "• Очищает: <strong>localStorage, sessionStorage, cookies, IndexedDB, caches, window.name, fileSystems, WebSQL, serviceWorkers</strong>", - "description": "Additional information to fpdBehaviorBlockingDescription" - }, - "fpdNotificationsDescription": { - "message": "Включать/выключать уведомления об обнаружении фингерпринтинга и блокировке HTTP-запросов.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdNotificationsDescription2": { - "message": "ВАЖНО: мы рекомендуем включить уведомления для поведения блокировки.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdNotificationsOffDescription": { - "message": "Уведомления об обнаружении/блокировке выключены.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdNotificationsOnDescription": { - "message": "Уведомления об обнаружении/блокировке включены.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdDetection": { - "message": "Обнаружение", - "description": "A label shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDescription": { - "message": "Настроить эвристические пороги, определяющие значительность количества вызываемых API, недобросовестно используемых для фингерпринтинга.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDefault": { - "message": "По умолчанию", - "description": "Option shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDefaultDescription": { - "message": "Рекомендованная настройка для большинства пользователей.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDefaultDescription2": { - "message": "• Очень низкое количество ложноположительных обнаружений (сосредоточиться на явных случаях фингерпринтинга, очень низкое количество неразумно заблокированных сайтов).", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdDetectionDefaultDescription3": { - "message": "• Приемлемое количество ложноположительных обнаружений (некоторые веб-сайты с фингерпринтингом могут обойти обнаружение).", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdStrict": { - "message": "Строгий", - "description": "Option shown in options during configuaration of the parameters of FPD" - }, - "fpdStrictDescription": { - "message": "Опциональная настройка для более осторожных пользователей.", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdStrictDescription2": { - "message": "• Низкое количество ложноотрицательных обнаружений (также обнаруживает веб-сайты с менее избыточным фингерпринтингом)", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "fpdStrictDescription3": { - "message": "• Более высокая вероятность ложноположительных обнаружений (в крайних случаях могут быть ложно заблокированы добросовестные веб-сайты)", - "description": "Text shown in options during configuaration of the parameters of FPD" - }, - "FPDSeverityNone": { - "message": "Отсутствует или незначительна", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "FPDSeverityLow": { - "message": "Низкий", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "FPDSeverityModerate": { - "message": "Умеренный", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "FPDSeverityHigh": { - "message": "Высокий", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "FPDSeverityVeryHigh": { - "message": "Очень высокий", - "description": "The level of the number of detected APIs misusable for fingerprinting" - }, - "fpdBlockingSubsequent": { - "message": "Блокирует все дальнейшие запросы.", - "description": "Shown in a notification when FPD starts blocking HTTP requests" - }, - "fpdClickNotificationDetails": { - "message": "Нажмите на уведомление, чтобы узнать больше подробностей.", - "description": "Shown in a notification when FPD detects a suspicious activity but is not configured to block" - }, - "fpdNotificationMessage": { - "message": "$MESSAGE$\n\nСтраница: $PAGETITLE$\nСервер: $DOMAIN$", - "description": "Constructs the full message for the notification when FPD detects suspicious activity", - "placeholders": { - "message": { - "content": "$1", - "description": "Translated fpdBlockingSubsequent or fpdClickNotificationDetails", - "example": "Blocking all subsequent requests." - }, - "pagetitle": { - "content": "$2", - "description": "The content of the title element of the fingerprinting page (in case it is long, only the start of the string)", - "example": "JShelter test page" - }, - "domain": { - "content": "$3", - "description": "The domain of the visited page or IP address (taken from the URL bar)", - "example": "example.com" - } - } - }, - "fpdNotificationTitle": { - "message": "Обнаружена активность фингерпринтинга!", - "description": "Title of a notification" - }, - "FPDReportTitle": { - "message": "Отчет детектора фингерпринтинга", - "description": "Title of a fingeprint report" - }, - "FPDReportDescriptionPara1": { - "message": "Данный отчет перечисляет все конечные точки JavaScript API, запрашиваемые веб-страницей и считающиеся релевантными для фингерпринтинга браузера. Детектор фингерпринтинга (ДФ) использует эти данные для принятия решения о том, может ли страница собирать фингерпринт браузера.", - "description": "Explanation text in the report, it can be shown by clicking on the help icon" - }, - "FPDReportDescriptionPara2": { - "message": "ДФ обрабатывает вызовы API по группам, основанным на их семантических свойствах. В данном окне показано количество обнаруженных вызовов API на посещаемой странице. По умолчанию показываются только группы, доступ к которым был как минимум один раз. Поэтому отчет может быть пустым, если страница не запрашивала никакие API для фингерпринтинга. Если вы хотите увидеть все API, которые мониторит ДФ, нажмите $STARTTAG$ здесь $ENDTAG$", - "description": "Explanation text in the report, it can be shown by clicking on the help icon", - "placeholders": { - "starttag": { - "content": "<span id='unhideAll'>", - "description": "Please keep the tag as is, do not translate" - }, - "endtag": { - "content": "</span>", - "description": "Please keep the tag as is, do not translate" - } - } - }, - "FPDReportDescriptionPara3": { - "message": "Вы можете экспортировать полный отчет ДФ, содержащий все данные, собранные и использованные ДФ для оценки страницы. Данный всеобъемлющий отчет показывает важность, присвоенную группам/конечным точкам ($NOTE1$). Он также перечисляет все запрошенные конечные точки API с соответствующими аргументами ($NOTE2$).", - "description": "Explanation text in the report, it can be shown by clicking on the help icon", - "placeholders": { - "note1": { - "content": "<i>fpd_evaluation_statistics</i>", - "description": "Please keep as is, do not translate" - }, - "note2": { - "content": "<i>fpd_access_logs</i>", - "description": "Please keep as is, do not translate" - } - } - }, - "FPDReportShowDetails": { - "message": "Показать подробности", - "description": "Button caption" - }, - "FPDReportHideDetails": { - "message": "Скрыть подробности", - "description": "Button caption" - }, - "FPDReportExportJSON": { - "message": "Экспортировать полный отчет ДФ в формате JSON", - "description": "Button caption" - }, - "FPDReportMissingData": { - "message": "ОШИБКА: отсутствуют данные, невозможно создать отчет! Попробуйте перезагрузить страницу и открыть отчет заново.", - "description": "Text shown if the windows cannot communicate with the internals of the extension" - }, - "JSSBuiltinExceptions": { - "message": "Предустановленные твики дляJavaScript Shield" - }, - "FPDReportTrackCallersFailed": { - "message": "Невозможно отслеживать вызывающие сценарии из-за ошибки. $errorFromBrowser$", - "placeholders": { - "errorFromBrowser": { - "content": "$1" - } - } - }, - "MV3BrokenFeatures": { - "message": "Из-за строгих ограничений, налагаемых <a href=\"$MV3URL$\" target=\"_blank\">Google's Manifest V3</a>, некоторые функции JShelter (например, сетевая защита и обнаружение отпечатков пальцев в режиме блокировки) не будут работать на последних браузерах основанных на Chromium (включая ваш), а другие могут быть менее надежными, чем были в прошлом и по-прежнему находятся на Firefox.", - "placeholders": { - "mv3url": { - "content": "https://jshelter.org/mv3/" - } - } - }, - "FPDReportTrackCallersRestart": { - "message": "Перезагрузка отслеживания вызова сценариев" - }, - "JSSBuiltinExceptionsDomain": { - "message": "Домен" - }, - "JSSBuiltinExceptionsLevels": { - "message": "Уровни" - }, - "JSSBuiltinExceptionsLevelsSeparator": { - "message": ", " - }, - "JSSBuiltinExceptionsChanges": { - "message": "Правки" - }, - "JSSBuiltinExceptionsReason": { - "message": "Причина" - }, - "FPDReportTrackCallersWaiting": { - "message": "Обнаружение вызова скрипта в процессе. Подождите, пожалуйста." - }, - "MV3DevmodeRequired": { - "message": "Из-за жестких ограничений, введенных <a href=\"$MV3URL$\" target=\"_blank\">Google's Manifest V3</a>, JShelter и другие расширения браузера не могут больше работать на Chromium-основанные браузеры (включая ваш) если вы не включите <em>Developer mode</em> в <strong>chrome://extensions</strong> (<a href=\"$INFOURL$\" target=\"_blank\">больше информации на сайте разработчиков Google</a>).", - "placeholders": { - "mv3url": { - "content": "https://jshelter.org/mv3/" - }, - "infourl": { - "content": "https://developer.chrome.com/docs/extensions/reference/api/userScripts#chrome_versions_prior_to_138_developer_mode_toggle" - } - } - }, - "FPDReportRefresh": { - "message": "Обновить отчет" - }, - "FPDReportTrackCallers": { - "message": "Отслеживание вызываемых сценариев" - }, - "FPDReportForgetTraces": { - "message": "Скрыть текущих абонентов" - }, - "MV3AllowUserScriptsRequired": { - "message": "Из-за строгих ограничений, налагаемых <a href=\"$MV3URL$\" target=\"_blank\">манифестом Google V3</a>, JShelter и другие расширения браузера больше не могут работать в браузерах на базе Chromium (включая ваш), если вы не включите переключатель <em>Разрешить пользовательские скрипты</em> на странице JShelter, доступной по адресу <strong>chrome://extensions</strong> (<a href=\"$INFOURL$\" target=\"_blank\">дополнительная информация на сайте разработчиков Google</a>).", - "placeholders": { - "mv3url": { - "content": "https://jshelter.org/mv3/" - }, - "infourl": { - "content": "https://developer.chrome.com/docs/extensions/reference/api/userScripts#chrome_versions_138_and_newer_allow_user_scripts_toggle" - } - } - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/alea.js b/data/extensions/jsr@javascriptrestrictor/alea.js deleted file mode 100644 index 50c3861..0000000 --- a/data/extensions/jsr@javascriptrestrictor/alea.js +++ /dev/null @@ -1,167 +0,0 @@ -/** \file -* \brief Random number generator -* -* A port of an algorithm by Johannes Baagøe <baagoe@baagoe.com>, 2010 and -* Tommy Ettinger (tommy.ettinger@gmail.com) -* -* Original code is available at -* http://baagoe.com/en/RandomMusings/javascript/ -* https://github.com/nquinlan/better-random-numbers-for-javascript-mirror -* https://gist.github.com/tommyettinger/46a874533244883189143505d203312c -* -* SPDX-License-Identifier: GPL-3.0-or-later -* SPDX-License-Identifier: MIT -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see <https://www.gnu.org/licenses/>. -* -* \license Original work is under MIT license and in public domain, the derived code is under GPL-3.0-or-later -*/ -// -// Copyright (C) 2010 by Johannes Baagøe <baagoe@baagoe.org> -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -/** - * alea creates a function that is functionally equivalent to Math.random. - * - * That is, successive calls of the returned function return Number values - * with positive sign, greater than or equal to 0 but less than 1, chosen - * pseudo-randomly with approximately uniform distribution over that range. - * - * The internal state of random, and hence the sequence of pseudo-random - * numbers it returns, is determined by the arguments to alea. Two functions - * returned by calls to alea with the same argument values will return exactly - * the same sequence of pseudo-random numbers. String and Number arguments - * should provide repeatable output across platforms. Object arguments[3] - * provide repeatable output on the same platform, but not necessarily on others. - * - * Please call alea() with at least one argument, the implementation with - * nno arguments described by Baagøe was not implemented here. This provides - * easy means to provide somewhat unpredictable numbers, like Math.random does. - * - * Example usage: let module_prng = alea(domainHash, "MyModuleName"); module_prng(); - * - * See more details in the README.md at - * https://github.com/nquinlan/better-random-numbers-for-javascript-mirror - */ -var alea =` -function Alea(...args) { - var mash = new Mash(); - - // Apply the seeding algorithm from Baagoe. - mash.addData(' '); - - for (var i = 0; i < args.length; i++) { - mash.addData(args[i]); - } - this.seed = mash.n | 0; // Create a 32-bit UInt - mash = null; - this.xoring = []; - for (let i = 0; i < 64; i += 8) { - this.xoring.push(parseInt(domainHash.slice(i, i+8), 16) >>> 0); // Store 32-bit unsigned integers - } -} -Alea.prototype = { - current: 0, - stored_random: 0, - random_bits: 0, - next: function() { - this.seed += 0x6D2B79F5; - var t = this.seed; - this.current = (this.current + t) & 7; - t = Math.imul(t ^ t >>> 15, t | 1); - t ^= t + Math.imul(t ^ t >>> 7, t | 61); - return (((t ^ t >>> 14) ^ this.xoring[this.current]) >>> 0); // '>>> 0' casts to unsigned - }, - normalized: function() { - return this.next() / 4294967296; - }, - get_bits: function(count) {// 0 < count <= 32 - if (count === 32) { - return this.next(); - } - else if (count <= this.random_bits) { - let mask = ((1 << count) >>> 0) - 1; - let ret = this.stored_random & mask; - this.stored_random = this.stored_random >>> count; - this.random_bits -= count; - return ret; - } - else { - let needed = count - this.random_bits; - let ret = this.stored_random << needed; - this.random_bits = 32; - this.stored_random = this.next(); - return ret | this.get_bits(needed); - } - } -} - -function impl(...seed) { - var xg = new Alea(...seed); - var prng = xg.normalized.bind(xg); - prng.uint32 = xg.next.bind(xg); - prng.fract53 = function() { - return prng() + (prng() * 0x200000 | 0) * 1.1102230246251565e-16; // 2^-53 - }; - prng.get_bits = xg.get_bits.bind(xg); - return prng; -} - -// Original at https://github.com/nquinlan/better-random-numbers-for-javascript-mirror/blob/master/support/js/Mash.js -function Mash() -{ - this.n = 0xefc8249d; -} -Mash.prototype = { - addData: function(data) { - data = String(data); - for (var i = 0; i < data.length; i++) { - this.addNumber(data.charCodeAt(i)); - } - return this; - }, - addNumber: function(num) { - this.n += num; - var h = 0.02519603282416938 * this.n; - this.n = h >>> 0; - h -= this.n; - h *= this.n; - this.n = h >>> 0; - h -= this.n; - this.n += h * 0x100000000; // 2^32 - return this; - }, - finalize: function() { - return (this.n >>> 0) * 2.3283064365386963e-10; // 2^-32 - } -} -var alea = impl; -` diff --git a/data/extensions/jsr@javascriptrestrictor/background.js b/data/extensions/jsr@javascriptrestrictor/background.js deleted file mode 100644 index 12afcde..0000000 --- a/data/extensions/jsr@javascriptrestrictor/background.js +++ /dev/null @@ -1,155 +0,0 @@ -/** \file - * \brief Main background script - * - * \author Copyright (C) 2019 Libor Polcak - * \author Copyright (C) 2019 Martin Timko - * \author Copyright (C) 2023 Martin Zmitko - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -// depends on /nscl/common/CachedStorage.js - -CachedStorage.init({ - tab_status: {}, - tab_urls: {}, -}); - -function updateBadge(text, tabid) { - actionApi.setBadgeText({text: text, tabId: tabid}); -} - -// get active tab and pass it -var queryInfo = { - active: true, - currentWindow: true -}; - -// get level for updated tab -function tabUpdate(tabid, changeInfo) { - if (changeInfo.status === "loading") { - delete tab_status[tabid]; - } - var url = changeInfo["url"] || tab_urls[tabid]; - if (url === undefined) { - return wrapping_groups.empty_level; - } - let current_level = getCurrentLevelJSON(url); - tab_urls[tabid] = url; - CachedStorage.save(); - return current_level; -} -// on tab reload or tab change, update metadata -browser.tabs.onUpdated.addListener(tabUpdate); // reload tab - -const scriptSrcRegex = /script-src\s/; -// Modify CSP headers to allow WASM execution in page context -function cspRequestProcessor(details) { - // Because this handler fires before configuration for the page is created, - // we need to search for the configuration for that domain now. - let subDomains = extractSubDomains(getEffectiveDomain(details.url)); - let found = false; - for (let domain of subDomains.reverse()) { - if (domain in domains) { - found = true; - if (domains[domain].wasm !== 2) { - return {}; - } - break; - } - } - // If no configuration is found, use the default level. - if (!found && default_level.wasm !== 2) { - return {}; - } - - let modified = false; - let headers = details.responseHeaders; - for (let header of headers) { - let name = header.name.toLowerCase(); - if (name !== "content-security-policy" && - name !== "content-security-policy-report-only" && - name !== "x-webkit-csp") { - continue; - } - let origCSP = header.value; - header.value = header.value.replace(scriptSrcRegex, "script-src 'wasm-unsafe-eval' "); - if (origCSP !== header.value) { - modified = true; - } - } - return modified ? {responseHeaders: headers} : {}; -} -// Attach listener only in chromium where the WASM module is instantiated directly in -// page context, subject to the page's CSP. Code inserted as script tags isn't subject -// to script-src origins, it is, however, subject to the 'unsafe' group of script evaluation rules. -if (typeof browser_polyfill_used !== "undefined" && browser_polyfill_used) { - try { - browser.webRequest.onHeadersReceived.addListener(cspRequestProcessor, - {urls: ["<all_urls>"], - types: ["main_frame", "sub_frame"]}, - ["blocking", "responseHeaders"] - ); - } catch (e) { - console.error(e); - // mv3, can't block! - // TODO: check whether we can do something about this eiter with DNR or new scripting APIs - } -} - -// Communication channels - -/** - * Create a port to popup window - * - * The communication cannels are mostly used because - * browser.runtime.getBackgroundPage() does not work as expected. See - * also https://bugzilla.mozilla.org/show_bug.cgi?id=1329304. - */ -async function connected(port) { - if (port.name === "port_from_popup") { - let current_level = wrapping_groups.empty_level; - try { - // We always send back current level - let [tab] = await browser.tabs.query(queryInfo); - current_level = getCurrentLevelJSON(tab.url); - } catch (e) { - // Stick to the empty_level and ignore the exception - } - port.postMessage(current_level); - port.onMessage.addListener(function(msg) { - port.postMessage(current_level); - }); - } -} -browser.runtime.onConnect.addListener(connected); - -/** - * Listen to detected API calls and update badge accordingly - */ -fpdObservable.add_observer({ - notify: function(api, tabid, type, count) { - let group_name = wrapping_groups.wrapper_map[api]; - if (!group_name) { - return; // The API does not belong to any group - } - let tab_stats = get_or_create(tab_status, tabid, {}); - tab_stats[group_name] = true; - updateBadge(String(Object.keys(tab_stats).length), tabid); - } -}); -browser.tabs.onRemoved.addListener(tabid => delete tab_status[tabid]); diff --git a/data/extensions/jsr@javascriptrestrictor/code_builders.js b/data/extensions/jsr@javascriptrestrictor/code_builders.js deleted file mode 100644 index 1d17849..0000000 --- a/data/extensions/jsr@javascriptrestrictor/code_builders.js +++ /dev/null @@ -1,759 +0,0 @@ -/** \file - * \brief Functions that build code that modifies JS evironment provided to page scripts - * - * \author Copyright (C) 2019 Libor Polcak - * \author Copyright (C) 2021 Giorgio Maone - * \author Copyright (C) 2022 Marek Salon - * \author Copyright (C) 2023 Martin Zmitko - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** - * Create IIFE to wrap the code in closure - */ -function enclose_wrapping(code, ...args) { - return `try{(function(...args) {${code}})(${args});} catch (e) {console.error(e)}`; -} - -/** - * Create wrapping that might be IIFE or a function that is immediately called and also available - * for future. - */ -function enclose_wrapping2(code, name, params, call_with_window) { - if (name === undefined) { - return enclose_wrapping(code); - } - return `function ${name}(${params}) {${code}} - ${name}(${call_with_window ? "window" : ""});` -} - -/** - * Create code containing call of API counting function. - */ -function create_counter_call(wrapper, type) { - let {parent_object, parent_object_property} = wrapper; - let resource = `${parent_object}.${parent_object_property}`; - let args = wrapper.report_args ? "args.map(x => JSON.stringify(x))" : "[]" - return `if (fp_enabled && fp_${type}_count < 1000) { - var stack = undefined; - if (fpdTrackCallers) { - try { - throw new Error("FPDCallerTracker"); - } catch (e) { - stack = e.stack.toString(); - } - } - updateCount(${JSON.stringify(resource)}, "${type}", ${args}, stack); - fp_${type}_count += 1; - }`; -} - -/** - * This function create code (as string) that creates code that can be used to inject (or overwrite) - * a function in the page context. - */ -function define_page_context_function(wrapper) { - let {parent_object, parent_object_property, original_function, replace_original_function} = wrapper; - if (replace_original_function) { - let lastDot = original_function.lastIndexOf("."); - parent_object = original_function.substring(0, lastDot); - parent_object_property = original_function.substring(lastDot + 1); - } - let originalF = original_function || `${parent_object}.${parent_object_property}`; - let code = ` - let originalF = ${originalF}; - var fp_call_count = 0; - let replacementF = function(${wrapper.wrapping_function_args}) { - try { - ${create_counter_call(wrapper, "call")} - } - catch (e) { /* No action: let the wrapper continue uninterupted. TODO: let the user decide? */ }` - - // if apply_if condition is present, we need to wrap for FPD anyhow - if (wrapper.apply_if !== undefined) { - code += ` - if (${wrapper.apply_if}) { - ${wrapper.wrapping_function_body} - } - else { - return originalF.call(this, ${wrapper.wrapping_function_args}); - }` - } - else { - code += `${wrapper.wrapping_function_body}` - } - code += ` - }; - `; - - if (typeof browser_polyfill_used === "undefined") { - code += ` - let innerF = replacementF; - replacementF = function(...args) { - - // prepare callbacks - args = args.map(a => typeof a === "function" ? WrapHelper.pageAPI(a) : a); - - let ret = WrapHelper.forPage(innerF.call(this, ...args)); - if (ret) { - if (ret instanceof xrayWindow.Promise || ret instanceof WrapHelper.unX(xrayWindow).Promise) { - ret = Promise.resolve(ret); - } - try { - ret = WrapHelper.unX(ret); - } catch (e) {} - } - return ret; - }; - `; - } - code += ` - exportFunction(replacementF, ${parent_object}, {defineAs: '${parent_object_property}'}); - ${wrapper.post_replacement_code || ''} - `; - - return enclose_wrapping2(code, wrapper.wrapping_code_function_name, wrapper.wrapping_code_function_params, wrapper.wrapping_code_function_call_window); -} - -/** - * This function creates code that assigns an already defined function to given property. - */ -function generate_assign_function_code(code_spec_obj) { - return `exportFunction(${code_spec_obj.export_function_name}, - ${code_spec_obj.parent_object}, - {defineAs: '${code_spec_obj.parent_object_property}'}); - `; -} - -/** - * This function wraps object properties using WrapHelper.defineProperties(). - */ -function generate_object_properties(code_spec_obj, fpd_only) { - var code = ` - if (!("${code_spec_obj.parent_object_property}" in ${code_spec_obj.parent_object})) { - // Do not wrap an object that is not defined, e.g. because it is experimental feature. - // This should reduce fingerprintability. - return; - } - `; - for (let assign of code_spec_obj.wrapped_objects || []) { - code += `var ${assign.wrapped_name} = window.${assign.original_name};`; - } - code += ` - { - let descriptor = WrapHelper.getDescriptor(${code_spec_obj.parent_object}, "${code_spec_obj.parent_object_property}"); - ` - for (let wrap_spec of code_spec_obj.wrapped_properties) { - // variable name used for distinguishing between different original properties of the same wrapper - var original_property = `originalP_${wrap_spec.property_name}`; - - var counting_wrapper = ` - function(...args) { - ${create_counter_call(code_spec_obj, wrap_spec.property_name)} - - // checks type of underlying wrapper/definition and returns it (no changes to semantics) - if (typeof (${fpd_only ? original_property : wrap_spec.property_value}) === 'function') { - return (${fpd_only ? original_property : wrap_spec.property_value}).bind(this)(...args); - } - else { - return (${fpd_only ? original_property : wrap_spec.property_value}); - } - } - `; - - if (fpd_only) { - code += `var ${original_property} = descriptor["${wrap_spec.property_name}"];`; - } - - code += ` - originalPDF = descriptor["${wrap_spec.property_name}"]; - var fp_${wrap_spec.property_name}_count = 0; - replacementPD = ${counting_wrapper}; - descriptor["${wrap_spec.property_name}"] = replacementPD; - `; - } - code += `WrapHelper.defineProperty(${code_spec_obj.parent_object}, - "${code_spec_obj.parent_object_property}", descriptor); - }`; - return code; -} - -/** - * This function removes a property. - */ -function generate_delete_properties(code_spec_obj) { - var code = ` - `; - for (prop of code_spec_obj.delete_properties) { - code += ` - if ("${prop}" in ${code_spec_obj.parent_object}) { - // Delete only properties that are available. - // The if should be safe to be deleted but it can possibly reduce fingerprintability - WrapHelper.defineProperty( - ${code_spec_obj.parent_object}, - "${prop}", {get: undefined, set: undefined, configurable: false, enumerable: false} - ); - } - ` - } - return code; -} - -/** - * This function generates code that makes an assignment. - */ -function generate_assignement(code_spec_obj) { - return `${code_spec_obj.parent_object}.${code_spec_obj.parent_object_property} = ${code_spec_obj.value};` -} - -/** - * This function builds the wrapping code. - */ -var build_code = function(wrapper, ...args) { - let post_wrapping_functions = { - function_define: define_page_context_function, - function_export: generate_assign_function_code, - object_properties: generate_object_properties, - delete_properties: generate_delete_properties, - assign: generate_assignement, - }; - - let target = `${wrapper.parent_object}.${wrapper.parent_object_property}`; - let code = ""; - - { - // Do not wrap an object that is not defined, e.g. because it is experimental feature. - // This should reduce fingerprintability. - let objPath = [], undefChecks = []; - for (leaf of target.split('.')) { - undefChecks.push( - objPath.length ? `!("${leaf}" in ${objPath.join('.')})` // avoids e.g. Event.prototype.timeStamp from throwing "Illegal invocation" - : `typeof ${leaf} === "undefined"` - ); - objPath.push(leaf); - } - - code += ` - try { - if (${undefChecks.join(" || ")}) return; - } catch (e) { - return; - }`; - } - - for (let {original_name = target, wrapped_name, callable_name} of wrapper.wrapped_objects || []) { - if (original_name !== target) { - code += ` - if (typeof ${original_name} === undefined) return; - `; - } - if (wrapped_name) { - code += `var ${wrapped_name} = window.${original_name};`; - } - if (callable_name) { - code += `var ${callable_name} = WrapHelper.pageAPI(window.${original_name});`; - } - } - code += ` - ${wrapper.helping_code || ''}`; - - if (wrapper.wrapping_function_body){ - code += `${define_page_context_function(wrapper)}`; - } - - let build_post_normal = () => { - if (wrapper["post_wrapping_code"] !== undefined) { - for (code_spec of wrapper["post_wrapping_code"]) { - if (code_spec.apply_if !== undefined) { - code += `if (${code_spec.apply_if}) {` - } - code += post_wrapping_functions[code_spec.code_type](code_spec); - if (code_spec.apply_if !== undefined) { - code += "}"; - } - // if not wrapped because of apply_if condition in post wrapping object, still needs to be wrapped for FPD - if (code_spec.apply_if !== undefined && code_spec.code_type == "object_properties") { - code += "else {" + generate_object_properties(code_spec, true) + "}"; - } - } - } - } - - let build_post_fpd = () => { - if (wrapper["post_wrapping_code"] !== undefined) { - for (code_spec of wrapper["post_wrapping_code"]) { - // if not wrapped because of apply_if condition in post wrapping object, still needs to be wrapped for FPD - if (code_spec.apply_if !== undefined && code_spec.code_type == "object_properties") { - code += generate_object_properties(code_spec, true); - } - } - } - } - - // if apply_if is present in main wrapper object and contains post wrapping code -> wrap for FPD only if condition is FALSE - if (wrapper.apply_if !== undefined) { - code += `if (${wrapper.apply_if}) {` - build_post_normal(); - code += `} else {` - build_post_fpd(); - code += `}` - } - else { - build_post_normal(); - } - - if (wrapper["wrapper_prototype"] !== undefined) { - let source = wrapper.wrapper_prototype; - code += `if (${target.prototype} !== ${source.prototype}) { // prevent cyclic __proto__ errors on Proxy - Object.setPrototypeOf(${target}, ${source}); - }`; - } - if (wrapper.freeze !== undefined) { - code += ` - if (${wrapper.freeze}) { - Object.freeze(${wrapper.parent_object}.${wrapper.parent_object_property}); - } - `; - } - - return enclose_wrapping(code, ...args); -}; - -/** - * Transform wrapping arrays into injectable code. - */ -function wrap_code(wrappers) { - if (wrappers.length === 0) { - return; // Nothing to wrap - } - - let build = (wrapper) => { - try { - return build_code(build_wrapping_code[wrapper[0]], wrapper.slice(1)); - } catch (e) { - console.error(e); - return ""; - } - }; - - let fpd_placeholder = "\n\n// FPD_S\n\n// FPD_E" - return generate_code(joinWrappingCode(wrappers.map(x => build(x))) + fpd_placeholder); -} - -/** - * Join array of wrapping codes into single string. - */ -let joinWrappingCode = code => { - return code.join("\n").replace(/\bObject\.(create|definePropert)/g, "WrapHelper.$1"); -} - -/** - * Insert WebAssembly initialization code into wrapped injection code. - */ -function insert_wasm_code(code) { - let wasm_code = (() => { - const wasm_memory = new WebAssembly.Memory({initial: 1}); - // Memory layout: - // +-----------------+--------------+----------+---------------------------------------- - - - // | CRC table | Xoring table | Reserved | Data - // | 256 * u16 | 8 * u32 | | - // +-----------------+--------------+----------+---------------------------------------- - - - // 0 512 544 1024 - const crc_offset = 0; - const xoring_offset = 512; - const reserved_offset = 544; - const data_offset = 1024; - - WebAssembly.instantiateStreaming(fetch("/* WASM_URL */"), {env: {memory: wasm_memory}}).then(result => { - new Uint16Array(wasm_memory.buffer, crc_offset, crc16_table.length).set(crc16_table); - const xoring = new Uint32Array(wasm_memory.buffer, xoring_offset, 8); - for (let i = 0; i < 64; i += 8) { - xoring[i / 8] = parseInt(domainHash.slice(i, i + 8), 16) >>> 0; - } - - wasm = { - // Getter and setter for data in WASM memory. Because we need access from page context, - // we can't just get a memory view and use it directly. The view needs to be exported to be - // usable in the page context on Firefox. - // This means that views returned by wasm.get() aren't actually views of the WASM memory, - // but rather copies of the data and modifying them won't affect the underlying memory. - // We can't export the wasm memory directly either, it is bound to the WASM instance and - // it's not possible to export the instance as well. - // For constructing views of the correct type, we can't use constructors passed from page context, - // a content script constructor must be used. For now, we use just 2 types, so passing a bool - // to differentiate is enough. - get(length, offset = 0, float = false) { - if (float) { - return WrapHelper.forPage(new Float32Array(wasm_memory.buffer, data_offset + offset, length)); - } else { - return WrapHelper.forPage(new Uint8Array(wasm_memory.buffer, data_offset + offset, length)); - } - }, - set(data, offset = 0, float = false) { - if (float) { - new Float32Array(wasm_memory.buffer, data_offset + offset, data.length).set(data); - } else { - new Uint8Array(wasm_memory.buffer, data_offset + offset, data.length).set(data); - } - }, - // Grow the WASM memory if needed. - grow(needed_bytes) { - const memory_size = wasm_memory.buffer.byteLength; - needed_bytes += data_offset; - if (memory_size < needed_bytes) { - try { - wasm_memory.grow(Math.ceil((needed_bytes - memory_size) / 65536)); - } catch (e) { - console.warn("Failed to grow WASM memory, falling back to JS implementation", e); - return false; - } - } - return true; - }, - // Make WASM exported functions available to wrappers. - ...result.instance.exports, - ready: true - } - Object.freeze(wasm); - }).catch(e => { - console.warn("Failed to instantiate WASM farbling module, falling back to JS implementation", e); - }); - }).toString().replace("/* WASM_URL */", browser.runtime.getURL("farble.wasm")); - - return code.replace("// WASM_CODE //", `(${wasm_code})()`); -} - -/** - * Append wrapped codes to NSCL helpers and create injectable code. - */ -function generate_code(wrapped_code) { - let code = (w => { - - // cross-wrapper globals - let xrayWindow = window; // the "privileged" xray window wrapper in Firefox - let WrapHelper; // xray boundary helper - { - const XRAY = (xrayWindow.top !== unwrappedWindow.top && typeof XPCNativeWrapper !== "undefined"); - let privilegedToPage = new WeakMap(); - let pageReady = new WeakSet(); - - let promise = obj => obj.then(r => forPage(r)); - - forPage = obj => { - if (typeof obj !== "object" && typeof obj !== "function" || obj === null - || pageReady.has(obj)) return obj; - if (privilegedToPage.has(obj)) return privilegedToPage.get(obj); // keep clone identity - let ret = obj; // fallback - if (XRAY) { - if (obj instanceof xrayWindow.Promise) { - return promise(obj); - } - if (obj instanceof unX(xrayWindow).Promise) { - return new xrayWindow.Promise((resolve, reject) => { - unX(xrayWindow).Promise.prototype.then.call(obj, - forPage(r => { - if (r.wrappedJSObject && r.wrappedJSObject === unX(r)) { - r = unX(r) - } else r = forPage(r); - resolve(r); - } - ), forPage(e => reject(e))) - }); - } - try { - if (obj.wrappedJSObject && obj.wrappedJSObject === unX(obj)) { - return obj; - } - } catch (e) {} - try { - ret = cloneInto(obj, unX(xrayWindow), {cloneFunctions: true, wrapReflectors: true}); - } catch (e) { - // can't be cloned: must be a Proxy - } - } else { - // Chromium: just use patchWindow's exportFunction() to make our wrappers look like native functions - if (typeof obj === "function") { - ret = exportFunction(obj, unX(xrayWindow)); - } - } - pageReady.add(ret); - privilegedToPage.set(obj, ret); - return ret; - } - - let fixProp = (d, prop, obj) => { - for (let accessor of ["set", "get"]) { - if (typeof d[accessor] === "function") { - let f = d[accessor]; - d[accessor] = exportFunction(d[accessor], obj, {defineAs: `${accessor} ${prop}`}); - } - } - if (typeof d.value === "object") d.value = forPage(d.value); - return d; - }; - let OriginalProxy = unwrappedWindow.Proxy; - let Proxy = OriginalProxy; - let pageAPI, unX; - if (XRAY) { - - unX = o => XPCNativeWrapper.unwrap(o); - - // automatically export Proxy constructor parameters - let proxyConstructorHandler = forPage({ - construct(targetConstructor, args) { - let [target, handler] = unX(args); - let selfProxy = !!(target === WrapHelper.Proxy && handler.construct); - if (selfProxy) { - let {construct} = handler; - handler.construct = (target, args) => { - let proxy = construct(target, unX(args)); - pageReady.add(proxy); - return proxy; - } - } - - target = forPage(target); - handler = forPage(handler); - let proxy = new targetConstructor(target, handler); - pageReady.add(proxy); - return proxy; - }, - }); - Proxy = new OriginalProxy(OriginalProxy, proxyConstructorHandler); - let then; - let apiHandler = { - apply(target, thisArg, args) { - let pa = unX(args); - for (let j = pa.length; j-- > 0;) { - let a = pa[j]; - if (a && unX(a) === a) { - pa[j] = forPage(a); - } else if (typeof a === "function") { - pa[j] = new Proxy(a, apiHandler); - } - } - let ret = target.apply(thisArg, pa); - if (ret) { - if (ret instanceof xrayWindow.Promise) { - then = then || (then = new Proxy(xrayWindow.Promise.prototype.then, apiHandler)); - if (ret.wrappedJSObject) { - let p = unX(ret); - if (p === ret.wrappedJSObject) { - p.then = then - ret = p; - } - } - } else { - ret = forPage(ret); - } - } - return ret; - } - }; - - - - pageAPI = f => { - if (typeof f !== "function") return f; - return new Proxy(f, apiHandler); - } - } else { - pageAPI = unX = f => f; - } - - let overlay; - { - let overlayProtos = new WeakMap(); - let overlayObjects = new WeakMap(); - overlay = (obj, data) => { - obj = unX(obj); - let proto = obj.__proto__; - let proxiedProps = overlayProtos.get(proto); - if (!proxiedProps) overlayProtos.set(proto, proxiedProps = {}); - let props = Object.getOwnPropertyDescriptors(data); - for (let p in props) { - if (p in proxiedProps) continue; - for (let rootProto = proto; ;) { - let protoProps = Object.getOwnPropertyDescriptors(rootProto); - let protoProp = protoProps[p]; - if (!protoProp) { - rootProto = rootProto.__proto__; - if (rootProto) continue; - } - if (protoProp) { - let original; - if (protoProp.get) { - let getterHandler = forPage({ - apply(target, thisArg, args) { - let obj = unX(thisArg); - if (overlayObjects.has(obj)) { - let data = overlayObjects.get(obj); - return forPage(data[p]); - } - return target.apply(thisArg, args); - } - }); - let original = protoProp.get; - protoProp.get = new Proxy(protoProp.get, getterHandler); - } else if (typeof protoProp.value === "function") { - original = protoProp.value; - let methodHandler = forPage({ - apply(target, thisArg, args) { - let obj = unX(thisArg); - if (overlayObjects.has(obj)) { - let data = overlayObjects.get(obj); - return forPage(data[p].apply(thisArg, args)); - } - return target.apply(thisArg, args); - } - }); - protoProp.value = new Proxy(protoProp.value, methodHandler); - } else { - protoProp = null; - } - if (protoProp) { - Reflect.defineProperty(rootProto, p, protoProp); - proxiedProps[p] = {rootProto, original, protoProp}; - break; - } - } - Reflect.defineProperty(obj, p, forPage(props[p])); - break; - } - } - overlayObjects.set(obj, data); - return obj; - } - } - let createObj = unX(xrayWindow).Object.create; - WrapHelper = { - XRAY, // boolean, are we in a xray environment (i.e. on Firefox)? - shared: {}, // shared storage object for in inter-wrapper coordination - - // WrapHelper.forPage() can be used by "complex" proxies to explicitly - // prepare an object/function created in Firefox's sandboxed content script environment - // to be consumed/called from the page context, and to make replacements for native - // objects and functions provided by the wrappers look as much native as possible. - // in most cases, however, this gets automated by the code builders replacing - // Object methods found in the wrapper sources with their WrapHelper counterparts - // and by proxying "callable_name" functions through WrapHelper.pageAPI(). - forPage, - _forPage: x => x, // dummy for easily testing out the preparation - isForPage: obj => pageReady.has(obj), - unX, // safely waives xray wrappers - // xray-aware Object creation helpers, mostly used transparently by the code builders - defineProperty(obj, prop, descriptor, ...args) { - obj = unX(obj); - return Object.defineProperty(obj, prop, fixProp(descriptor, prop, obj), ...args); - }, - defineProperties(obj, descriptors, ...args) { - obj = unX(obj); - for (let [prop, d] of Object.entries(descriptors)) { - descriptors[prop] = fixProp(d, prop, obj); - } - return Object.defineProperties(obj, descriptors, ...args); - }, - create(proto, descriptors) { - let unwrappedProto = unX(proto); - let obj = unX(createObj(unwrappedProto)); - try { - if (proto && !obj.__proto__) { - obj = Object.create(XPCNativeWrapper(proto)); - } - } catch (e) { - // access denied to obj.__proto__, wrappers mismatch - obj = forPage(Object.create(proto)); - } - return descriptors ? this.defineProperties(obj, descriptors) && obj : obj; - }, - getDescriptor(obj, prop) { - let descriptor = Object.getOwnPropertyDescriptor(obj, prop); - if (!descriptor) { - // let's traverse the prototype chain in search of this property - for (let proto = Object.getPrototypeOf(obj); proto; proto = Object.getPrototypeOf(obj)) { - if (descriptor = Object.getOwnPropertyDescriptor(proto, prop)) { - obj = unX(obj); - break; - } - } - if (!descriptor) descriptor = { - // Originally not a descriptor, fallback - enumerable: true, - configurable: true, - }; - } - return descriptor; - }, - - // WrapHelper.overlay(obj, data) - // Proxies the prototype of the obj object in order to return the properties of the data object - // as if they were native properties (e.g. as if they were returned by getters on the prototype chain, - // rather than defined on the instance). - // This allows spoofing some native objects data in a less detectable / fingerprintable way than using - // Object.defineProperty(). See wrappingS-MCS.js for an example. - overlay, - // WrapHelper.pageAPI(f) - // Proxies the function/method f so that arguments and return values, and especially callbacks and - // Promise objects, are recursively managed in order to transparently marshal objects back - // and forth Firefox's sandbox for extensions and the page scripts. - pageAPI, - // the original Proxy constructor - OriginalProxy, - // our xray-aware proxied Proxy constructor - Proxy, - }; - Object.freeze(WrapHelper); - } - - // The object available to wrappers later containing farbling WASM optmitimized functions if enabled - let wasm = Object.freeze({ready: false}); - - // Farbling WebAssembly module initialization placeholder - // WASM_CODE // - - with(unwrappedWindow) { - let window = unwrappedWindow; - let {Proxy} = WrapHelper; - let {Promise, Object, Array, JSON} = xrayWindow; - - // add flag variable that determines whether messages should be sent - let fp_enabled = false; - - (function () { - let {port} = env; - function updateCount(wrapperName, wrapperType, wrapperArgs, stack) { - port.postMessage({ - wrapperName, - wrapperType, - wrapperArgs, - stack - }); - } - try { - // WRAPPERS // - } finally { - // cleanup environment if necessary - } - })(); - - // after injection code completed, allow messages (calls from wrappers won't be counted) - fp_enabled = true; - } - }).toString().replace('// WRAPPERS //', wrapped_code) - - return `(${code})();`; -} diff --git a/data/extensions/jsr@javascriptrestrictor/common.css b/data/extensions/jsr@javascriptrestrictor/common.css deleted file mode 100644 index 8fcaa70..0000000 --- a/data/extensions/jsr@javascriptrestrictor/common.css +++ /dev/null @@ -1,251 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2022 Libor Polčák - * SPDX-FileCopyrightText: 2021-2022 Ana Isabel Carvalho - * - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -:root { - --text-color: #333333; /* Very dark grey */ - --background-color: white; - --background-color-input: white; - --light-logo: #f5ab8d; /* Logo light red */ - --light-logo-contrast: #333333; /* Very dark grey */ - --dark-logo: #e76f51; /* Logo dark red */ - --dark-logo-contrast: white; - --help-icon-color: white; - --help-icon-background: blue; - --title-color: var(--dark-logo); - --good-news: darkgreen; /* Combine with background color */ - --separator-color: grey; /* Combine with background color */ - --button-background-color: #dddddd; /* Light grey */ - --button-text-color: black; - --button-background-active-color: var(--light-logo); - --button-text-active-color: black; - --button-text-disabled-color: #888; - --button-background-hover-color: #c9c9c9; /* low dark grey */ - --button-text-hover-color: black; - --menu-color: blue; - --menu-background: white; - --attention-color: var(--dark-logo-contrast); - --attention-background: var(--dark-logo); - --slider-bg-color: white; - --slider-text-color: black; - --slider-off-color: gray; - --slider-on-color: var(--light-logo); - --slider-text-color: black; -} - -@media screen and (prefers-color-scheme: dark) { - :root { - --text-color: #e8e6e3; /* Almost white */ - --background-color: #181a1b; /* Very very dark grey */ - --background-color-input: var(--background-color); - --help-icon-color: blue; - --help-icon-background: white; - --title-color: var(--light-logo); - --good-news: lightgreen; - --separator-color: lightgrey; - --button-background-color: #c9c9c9; /* low dark grey */ - --button-text-color: black; - --button-background-active-color: var(--dark-logo); - --button-text-active-color: var(--dark-logo-contrast); - --button-background-hover-color: darkgrey; /* Light grey */ - --button-text-hover-color: white; - --menu-color: lightblue; - --menu-background: var(--background-color); - --attention-color: var(--light-logo-contrast); - --attention-background: var(--light-logo); - } -} - -body { - color: var(--text-color); - background-color: var(--background-color); -} - -input[type=text], select, textarea { - color: var(--text-color); - background-color: var(--background-color-input); -} - -button { - background-color: var(--button-background-color); - color: var(--button-text-color); -} - -button:disabled { - color: var(--button-text-disabled-color); -} - -button:hover:not(:disabled) { - cursor: pointer; - background-color: var(--button-background-hover-color); - color: var(--button-text-hover-color); -} - -#levels-list button { - margin: 0.5ex; -} - -h1, h2, h3, h4, h5, h6 { - color: var(--title-color); -} - -.level { - font-weight: bold; - border: 2px solid var(--separator-color); - border-radius: 0.5ex; - background-color: var(--button-background-color); - color: var(--button-text-color); -} - -.level:hover { - cursor: pointer; - background-color: var(--button-background-hover-color); - color: var(--button-text-hover-color); -} - -.active { - border: 2px solid var(--button-text-active-color); - background-color: var(--button-background-active-color); - color: var(--button-text-active-color); -} - -.help { - margin-left: 0.5em; - background-color: var(--help-icon-background); - color: var(--help-icon-color); - border-radius: 10px; - font-weight: bold; -} - -.hidden_descr { - display: none !important; -} - -.explainer { - grid-column-start: 1; - grid-column-end: -1; - padding-bottom: 3px; - border-bottom: 1px solid var(--separator-color); -} - -a:link, a:visited { - color: var(--title-color); -} - -a:hover, a:active { - color: var(--text-color); -} - -/****************************************************************************** - * Slider - */ -/* The switch - the box around the slider */ -.switch { - position: relative; - display: inline-block; - width: 64px; - height: 34px; - margin-left: 3px; -} - -/* Hide default HTML checkbox */ -.switch input { - opacity: 0; - width: 0; - height: 0; - -} - -/* ON/OFF slider */ -.slider { - position: absolute; - cursor: pointer; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: var(--slider-off-color); - -webkit-transition: .4s; - transition: .4s; - font-size: 14px; - font-weight: bold; - text-align: center; - vertical-align: middle; - line-height: 25px; -} - -.slider:before { - position: absolute; - content: ""; - height: 26px; - width: 30px; - left: 4px; - bottom: 4px; - background-color: var(--slider-bg-color); - -webkit-transition: .4s; - transition: .4s; - color: var(--slider-text-color); - content:"__MSG_ShieldOffSlider__"; -} - -input:checked + .slider { - background-color: var(--slider-on-color); -} - -input:focus + .slider { - box-shadow: 0 0 1px var(--slider-on-color); -} - -input:checked + .slider:before { - -webkit-transform: translateX(26px); - -ms-transform: translateX(26px); - transform: translateX(26px); - content:"__MSG_ShieldOnSlider__"; - color: var(--slider-text-color); -} - - -.flex { - display: flex; -} - -.flex.align-items-center { - align-items: center; -} - -.flex.justify-content-between { - justify-content: space-between; -} - -.text-large { - font-size: large; -} - -.alert{ - background-color: var(--attention-background); - color: var(--attention-color); - font-weight: bold; -} - -.alert a, .alert a:visited { - color: var(--help-icon-color); -} - -:root.mv3 .mv2 { - display: none !important; -} - -:root.mv2 .mv3 { - display: none !important; -} - -#mv3-devmode-required { - border: 2px solid red; -} - -:root.devmode #mv3-devmode-required { - display: none; -}
\ No newline at end of file diff --git a/data/extensions/jsr@javascriptrestrictor/crc16.js b/data/extensions/jsr@javascriptrestrictor/crc16.js deleted file mode 100644 index 7d05af2..0000000 --- a/data/extensions/jsr@javascriptrestrictor/crc16.js +++ /dev/null @@ -1,86 +0,0 @@ -/** \file -* \brief CRC16 algorithm -* -* The original code is available at -* https://github.com/alexgorbatchev/node-crc/blob/master/src/calculators/crc16.ts -* -* SPDX-License-Identifier: GPL-3.0-or-later -* SPDX-License-Identifier: MIT -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// -* \license Original work is under MIT license, adapted work is under GPL-3.0-or-later -*/ -// Copyright 2014 Alex Gorbatchev -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -var crc16 = ` -var crc16_table = [ - 0x0000, 0xc0c1, 0xc181, 0x0140, 0xc301, 0x03c0, 0x0280, 0xc241, 0xc601, 0x06c0, 0x0780, 0xc741, - 0x0500, 0xc5c1, 0xc481, 0x0440, 0xcc01, 0x0cc0, 0x0d80, 0xcd41, 0x0f00, 0xcfc1, 0xce81, 0x0e40, - 0x0a00, 0xcac1, 0xcb81, 0x0b40, 0xc901, 0x09c0, 0x0880, 0xc841, 0xd801, 0x18c0, 0x1980, 0xd941, - 0x1b00, 0xdbc1, 0xda81, 0x1a40, 0x1e00, 0xdec1, 0xdf81, 0x1f40, 0xdd01, 0x1dc0, 0x1c80, 0xdc41, - 0x1400, 0xd4c1, 0xd581, 0x1540, 0xd701, 0x17c0, 0x1680, 0xd641, 0xd201, 0x12c0, 0x1380, 0xd341, - 0x1100, 0xd1c1, 0xd081, 0x1040, 0xf001, 0x30c0, 0x3180, 0xf141, 0x3300, 0xf3c1, 0xf281, 0x3240, - 0x3600, 0xf6c1, 0xf781, 0x3740, 0xf501, 0x35c0, 0x3480, 0xf441, 0x3c00, 0xfcc1, 0xfd81, 0x3d40, - 0xff01, 0x3fc0, 0x3e80, 0xfe41, 0xfa01, 0x3ac0, 0x3b80, 0xfb41, 0x3900, 0xf9c1, 0xf881, 0x3840, - 0x2800, 0xe8c1, 0xe981, 0x2940, 0xeb01, 0x2bc0, 0x2a80, 0xea41, 0xee01, 0x2ec0, 0x2f80, 0xef41, - 0x2d00, 0xedc1, 0xec81, 0x2c40, 0xe401, 0x24c0, 0x2580, 0xe541, 0x2700, 0xe7c1, 0xe681, 0x2640, - 0x2200, 0xe2c1, 0xe381, 0x2340, 0xe101, 0x21c0, 0x2080, 0xe041, 0xa001, 0x60c0, 0x6180, 0xa141, - 0x6300, 0xa3c1, 0xa281, 0x6240, 0x6600, 0xa6c1, 0xa781, 0x6740, 0xa501, 0x65c0, 0x6480, 0xa441, - 0x6c00, 0xacc1, 0xad81, 0x6d40, 0xaf01, 0x6fc0, 0x6e80, 0xae41, 0xaa01, 0x6ac0, 0x6b80, 0xab41, - 0x6900, 0xa9c1, 0xa881, 0x6840, 0x7800, 0xb8c1, 0xb981, 0x7940, 0xbb01, 0x7bc0, 0x7a80, 0xba41, - 0xbe01, 0x7ec0, 0x7f80, 0xbf41, 0x7d00, 0xbdc1, 0xbc81, 0x7c40, 0xb401, 0x74c0, 0x7580, 0xb541, - 0x7700, 0xb7c1, 0xb681, 0x7640, 0x7200, 0xb2c1, 0xb381, 0x7340, 0xb101, 0x71c0, 0x7080, 0xb041, - 0x5000, 0x90c1, 0x9181, 0x5140, 0x9301, 0x53c0, 0x5280, 0x9241, 0x9601, 0x56c0, 0x5780, 0x9741, - 0x5500, 0x95c1, 0x9481, 0x5440, 0x9c01, 0x5cc0, 0x5d80, 0x9d41, 0x5f00, 0x9fc1, 0x9e81, 0x5e40, - 0x5a00, 0x9ac1, 0x9b81, 0x5b40, 0x9901, 0x59c0, 0x5880, 0x9841, 0x8801, 0x48c0, 0x4980, 0x8941, - 0x4b00, 0x8bc1, 0x8a81, 0x4a40, 0x4e00, 0x8ec1, 0x8f81, 0x4f40, 0x8d01, 0x4dc0, 0x4c80, 0x8c41, - 0x4400, 0x84c1, 0x8581, 0x4540, 0x8701, 0x47c0, 0x4680, 0x8641, 0x8201, 0x42c0, 0x4380, 0x8341, - 0x4100, 0x81c1, 0x8081, 0x4040, -]; -function CRC16() { - this.crc = 0; -} -CRC16.prototype = { - next: function (data) { - // Note that the code is optimised so that there are no checks on input data - // data should be an iterable one-byte-long of integers - for (let i = 0; i < data.length; i++) { - this.single(data[i]); - } - return this.crc; - }, - single: function(byte) { - this.crc = (crc16_table[(this.crc ^ byte) & 0xff] ^ (this.crc >> 8)) & 0xffff; - } -}; -`; diff --git a/data/extensions/jsr@javascriptrestrictor/document_start.js b/data/extensions/jsr@javascriptrestrictor/document_start.js deleted file mode 100644 index c78aa73..0000000 --- a/data/extensions/jsr@javascriptrestrictor/document_start.js +++ /dev/null @@ -1,139 +0,0 @@ -/** \file - * \brief Main script launched when a page is being loaded by a browser - * - * \author Copyright (C) 2020 Libor Polcak - * \author Copyright (C) 2021 Matus Svancar - * \author Copyright (C) 2021 Giorgio Maone - * \author Copyright (C) 2021 Marek Salon - * \author Copyright (C) 2023 Martin Zmitko - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -var wrappersPort; -var pageConfiguration = null; - -function wrapWindow(currentLevel, fpdWrappers, wrappersConf) { - const code = fp_assemble_injection(currentLevel, fpdWrappers, ` - init(${JSON.stringify(wrappersConf)}); - `); - return patchWindow(code); -} - -function configureInjection({currentLevel, fpdWrappers, fpdTrackCallers, domainHash, incognitoHash, portId}) { - if (pageConfiguration) return; // one shot - pageConfiguration = {currentLevel}; - if (browser.extension.inIncognitoContext) { - domainHash = incognitoHash; - } - try { - const wrappersConf = { - fpdTrackCallers, - domainHash, - }; - wrappersPort = portId ? patchWindow({portId}) : wrapWindow(currentLevel, fpdWrappers, wrappersConf); - - // initialize in case the userScript API already injected - wrappersPort.postMessage(wrappersConf); - - wrappersPort.onMessage = msg => { - if (msg.wrapperName) { - let {wrapperName, wrapperType, wrapperArgs, stack} = msg; - // pass access logs to FPD background script - browser.runtime.sendMessage({ - purpose: "fp-detection", - resource: wrapperName, - type: wrapperType, - args: wrapperArgs, - stack: stack, - }); - } - if (msg.init) { - // initialize on late demand - return wrappersConf; - } - } - return true; - } catch (e) { - console.error(e, "Trying to initialize wrappers."); - } - return false; -} - -/** - * See https://pagure.io/JShelter/paper2022/c/a7e7e88edecfa19c3a52542b553bf1dc9b4388a9?branch=cnil, - * https://pagure.io/JShelter/webextension/issue/70 and - * https://pagure.io/JShelter/webextension/issue/46#comment-793783 - * for more information on the early injection mechanism. - */ -if ("configuration" in window) { - configureInjection(configuration); -} else if ("sendSyncMessage" in browser.runtime) { // not in mv3 chrome - /// Get current level configuration from the background script - configureInjection(browser.runtime.sendSyncMessage({ - message: "get wrapping for URL", - url: window.location.href - } - )); -} - -/** - * Event listener that listens for background script messages. - * - * \param callback Function that clears certain storage facilities. - */ -browser.runtime.onMessage.addListener(function (message) { - if (message.cleanStorage) { - localStorage.clear(); - sessionStorage.clear(); - window.name = ""; - - if (!message.ignoreWorkaround) { - // clear indexedDB (only Chrome) - if (window.indexedDB && indexedDB.databases) { - indexedDB.databases().then(dbs => { - dbs.forEach(db => indexedDB.deleteDatabase(db.name)) - }).catch(err => console.error(err)); - } - - // clear cacheStorage - if (window.caches) { - caches.keys().then((names) => { - for (let name of names) { - caches.delete(name); - } - }).catch(err => console.error(err)); - } - - // clear cookies (only JS) - // Source: https://stackoverflow.com/a/66698063/17661959 - document.cookie.replace( - /(?<=^|;).+?(?=\=|;|$)/g, - name => location.hostname - .split(/\.(?=[^\.]+\.)/) - .reduceRight((acc, val, i, arr) => i ? arr[i]='.'+val+acc : (arr[i]='', arr), '') - .map(domain => document.cookie=`${name}=;${location.protocol == 'https:' ? 'Secure;' : ''}max-age=0;path=/;domain=${domain}`) - ); - } - - // clear storages of all injected windows (using BrowsingData) - browser.runtime.sendMessage({ - purpose: "fpd-clear-storage", - url: window.location.href - }); - } -}); diff --git a/data/extensions/jsr@javascriptrestrictor/farble.wasm b/data/extensions/jsr@javascriptrestrictor/farble.wasm Binary files differdeleted file mode 100644 index 24ae8a8..0000000 --- a/data/extensions/jsr@javascriptrestrictor/farble.wasm +++ /dev/null diff --git a/data/extensions/jsr@javascriptrestrictor/fp_code_builders.js b/data/extensions/jsr@javascriptrestrictor/fp_code_builders.js deleted file mode 100644 index e906d46..0000000 --- a/data/extensions/jsr@javascriptrestrictor/fp_code_builders.js +++ /dev/null @@ -1,341 +0,0 @@ -/** \file - * \brief Functions that help to automate process of building wrapping code for FPD module - * - * \author Copyright (C) 2021 Marek Salon - * \author Copyright (C) 2023 Martin Zmitko - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** - * Additional wrappers for specialized purposes. - */ -var additional_wrappers_init_code = ` - WrapHelper.shared["fpd_offsetHeight_set_cnt"] = 0; - WrapHelper.shared["fpd_offsetWidth_set_cnt"] = 0; -`; -var additional_wrappers = [ - { - parent_object: "HTMLElement.prototype", - parent_object_property: "offsetHeight", - wrapped_objects: [], - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "HTMLElement.prototype", - parent_object_property: "offsetHeight", - wrapped_objects: [ - { - original_name: ` - Object.getOwnPropertyDescriptor(HTMLElement.prototype, "offsetHeight") ? - Object.getOwnPropertyDescriptor(HTMLElement.prototype, "offsetHeight")["get"] : - HTMLElement.prototype.offsetHeight - `, - wrapped_name: "originalD_get" - } - ], - wrapped_properties: [ - { - property_name: "get", - property_value: `function() { - // workaround - style property is bound to HTMLElement instance, check fontFamily value with every access - let font = this.style.fontFamily; - if (WrapHelper.shared["fpd_offsetHeight_set_cnt"] < 1000) { - updateCount("CSSStyleDeclaration.prototype.fontFamily", "set", [font]); - WrapHelper.shared["fpd_offsetHeight_set_cnt"] += 1; - } - return originalD_get.call(this); - }` - } - ] - } - ] - }, - { - parent_object: "HTMLElement.prototype", - parent_object_property: "offsetWidth", - wrapped_objects: [], - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "HTMLElement.prototype", - parent_object_property: "offsetWidth", - wrapped_objects: [ - { - original_name: ` - Object.getOwnPropertyDescriptor(HTMLElement.prototype, "offsetWidth") ? - Object.getOwnPropertyDescriptor(HTMLElement.prototype, "offsetWidth")["get"] : - HTMLElement.prototype.offsetWidth - `, - wrapped_name: "originalD_get" - } - ], - wrapped_properties: [ - { - property_name: "get", - property_value: `function() { - // workaround - style property is bound to HTMLElement instance, check fontFamily value with every access - let font = this.style.fontFamily; - if (WrapHelper.shared["fpd_offsetWidth_set_cnt"] < 1000) { - updateCount("CSSStyleDeclaration.prototype.fontFamily", "set", [font]); - WrapHelper.shared["fpd_offsetWidth_set_cnt"] += 1; - } - return originalD_get.call(this); - }` - } - ] - } - ] - } -] - -/** - * The function that generates wrapping code from FPD wrappers when JSS hasn't wrapped anything. - * - * \param fpd_wrappers Array of wrappers defined by FPD configuration. - * - * \returns Injectable code created from FPD wrappers. - */ -function fp_generate_from_wrappers(fpd_wrappers) { - // define wrapper for each FPD endpoint (using default JSS definition of wrappers) - let tmp_build_wrapping_code = {}; - for (let wrap_item of fpd_wrappers) { - if (wrap_item[1]) { // wrap_item.type === "property" - tmp_build_wrapping_code[wrap_item[0]] = fp_build_property_wrapper(wrap_item); - } - else { // wrap_item.type === "function" - tmp_build_wrapping_code[wrap_item[0]] = fp_build_function_wrapper(wrap_item); - } - } - - // if there is an additional wrapper for resource, overwrite default definition with it - for (let additional_item of additional_wrappers) { - let { parent_object, parent_object_property } = additional_item; - let resource = `${parent_object}.${parent_object_property}`; - if (resource in tmp_build_wrapping_code) { - tmp_build_wrapping_code[resource] = additional_item; - } - } - - // transform each wrapper to wrapping code - let fp_wrapped_codes = {}; - for (let build_item in tmp_build_wrapping_code) { - try { - fp_wrapped_codes[build_item] = build_code(tmp_build_wrapping_code[build_item]); - } catch (e) { - console.error(e); - fp_wrapped_codes[build_item] = ""; - } - } - return fp_wrapped_codes; -} - -/** - * The function that appends FPD wrappers into injectable code, if JSS hasn't wrapped certain FPD endpoints already. - * - * \param code String containing injectable code generated by "generate_code" method. - * \param jss_wrappers Array of wrappers defined by JSS level object. - * \param fpd_level Identifier of the current FPD level/config. - * - * \returns Modified injectable code that also contains FPD wrapping code. - */ -function fp_update_wrapping_code(code, jss_wrappers, fpd_wrappers) { - const jss_wrapper_resources = jss_wrappers.map(x => x[0]); - const fpd_wrappers_filtered = fpd_wrappers.filter(w => !jss_wrapper_resources.includes(w[0])); - const fpd_wrapped_codes = fp_generate_from_wrappers(fpd_wrappers_filtered); - const fpd_code = joinWrappingCode(Object.values(fpd_wrapped_codes)); - return code.replace("// FPD_S\n", `// FPD_S\n${additional_wrappers_init_code} ${fpd_code}`); -} - -/** - * The function that creates injectable code specifically for FPD wrappers in case that JSS hasn't wrapped anything. - * - * \param fpd_wrappers Array of wrappers defined by FPD configuration. - * - * \returns Injectable code containing only FPD wrapping code. - */ -function fp_generate_wrapping_code(fpd_wrappers) { - let fpd_wrapped_codes = fp_generate_from_wrappers(fpd_wrappers); - return generate_code("// FPD_S\n" + additional_wrappers_init_code + joinWrappingCode(Object.values(fpd_wrapped_codes)) + "\n// FPD_E"); -} - -/** - * The function splitting resource string into path and name. - * For example: "window.navigator.userAgent" => path: "window.navigator", name: "userAgent" - * - * \param wrappers text String representing full name of resource. - * - * \returns Object consisting of two properties (path, name) for given resource. - */ -function split_resource(text) { - var index = text.lastIndexOf('.'); - return { - path: text.slice(0, index), - name: text.slice(index + 1) - } -} - -/** - * The function that constructs implicit property wrapper object from FPD configuration. - * - * \param wrap_item Single resource object from FPD wrappers definition. - * - * \returns New declarative property wrapper supported by code_builder (same structure as explicitly defined wrappers). - */ -function fp_build_property_wrapper(wrap_item) { - // return object initialization - var wrapper_object = {}; - - // if properties to wrap exist, create property wrapper based on wrap_item input - if (wrap_item[2].size != 0) { - var resource_splitted = split_resource(wrap_item[0]); - wrapper_object = { - parent_object: resource_splitted["path"], - parent_object_property: resource_splitted["name"], - wrapped_objects: [], - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: resource_splitted["path"], - parent_object_property: resource_splitted["name"], - wrapped_objects: [], - wrapped_properties: [], - report_args: wrap_item[3], - } - ], - }; - - // create post_wrapping_code to wrap every property type - for (let type of wrap_item[2]) { - - // save original resource - get property from descriptor, if do not exists, save it directly - wrapper_object.post_wrapping_code[0].wrapped_objects.push({ - original_name: ` - Object.getOwnPropertyDescriptor(${resource_splitted["path"]}, "${resource_splitted["name"]}") ? - Object.getOwnPropertyDescriptor(${resource_splitted["path"]}, "${resource_splitted["name"]}")["${type}"] : - ${type == "get" ? wrap_item[0] : undefined} - `, - wrapped_name: `originalD_${type}`, - }); - - // return original property (do not change semantics) - wrapper_object.post_wrapping_code[0].wrapped_properties.push({ - property_name: type, - property_value: ` - originalD_${type} - `, - }) - }; - } - return wrapper_object; -} - -/** - * The function that constructs implicit function wrapper object from FPD configuration. - * - * \param wrap_item Single resource object from FPD wrappers definition. - * - * \returns New declarative function wrapper supported by code_builder (same structure as explicitly defined wrappers). - */ -function fp_build_function_wrapper(wrap_item) { - var resource_splitted = split_resource(wrap_item[0]); - - var wrapper_object = { - parent_object: resource_splitted["path"], - parent_object_property: resource_splitted["name"], - - // save original function into variable - wrapped_objects: [{ - original_name: `${resource_splitted["path"]}.${resource_splitted["name"]}`, - wrapped_name: `originalF_${resource_splitted["name"]}` - }], - wrapping_function_args: "...args", - - // call original function on return with same arguments and context (do not change semantics) - wrapping_function_body: ` - return originalF_${resource_splitted["name"]}.call(this, ...args); - `, - report_args: wrap_item[3], - }; - return wrapper_object; -} - -/** - * The function that adds argument reporting settings to every JSS wrapper definition where specified by FPD configuration. - * This is for removing unnecessary reporting of arguments in cases where the arguments may be large - * (such as arrays for image/audio data), which results in their slow synchronous serialization. - * - * \param fpd_wrappers Array of wrappers defined by FPD configuration. - */ -function fp_append_reporting_to_jss_wrappers(fpd_wrappers) { - const resources_with_reporting = new Set(fpd_wrappers.map(w => w[3] ? w[0] : undefined)); - resources_with_reporting.delete(undefined); - function append_reporting(wrapper) { - let {parent_object, parent_object_property} = wrapper; - let resource = `${parent_object}.${parent_object_property}`; - wrapper.report_args = resources_with_reporting.has(resource); - } - - for (let wrapper of Object.values(build_wrapping_code)) { - append_reporting(wrapper); - if (wrapper.post_wrapping_code) { - // Objects wrapped in post wrapping code might be tracked as well - Object.values(wrapper.post_wrapping_code).forEach(append_reporting); - } - } -} - -function fp_assemble_injection(currentLevel, fpdWrappers, initializer = '') { - // Append argument reporting setting to JSS wrapper definitions - fp_append_reporting_to_jss_wrappers(fpdWrappers); - // Generate wrapping code - let code = wrap_code(currentLevel.wrappers); - // Generate FPD wrapping code - if (fpdWrappers) { - if (!code) { - code = fp_generate_wrapping_code(fpdWrappers); - } - else { - code = fp_update_wrapping_code(code, currentLevel.wrappers, fpdWrappers); - } - } - // Insert farbling WASM module into wrapped code if enabled, only when farbling is actually used - if (currentLevel.wasm && (currentLevel.audiobuffer === 1 || currentLevel.htmlcanvaselement === 1)) { - code = insert_wasm_code(code); - } - initializer ||= ` - { - env.port.onMessage = msg => { - return msg.domainHash && init(msg); - }; - let conf = env.port.postMessage({init: true}); - if (conf?.domainHash) init(conf); - } - `; - var injected_code = `(() => { - let inited = false; - const init = ({domainHash, fpdTrackCallers}) => { - if (inited) return; - inited = true; - ${crc16} - ${alea} - var prng = alea(domainHash); // Do not use this in wrappers, create your own prng to generate repeatable sequences - ${code} - }; - ${initializer} - })()`; - return injected_code; -} diff --git a/data/extensions/jsr@javascriptrestrictor/fp_config/groups-lvl_0.json b/data/extensions/jsr@javascriptrestrictor/fp_config/groups-lvl_0.json deleted file mode 100644 index 8e657a1..0000000 --- a/data/extensions/jsr@javascriptrestrictor/fp_config/groups-lvl_0.json +++ /dev/null @@ -1,408 +0,0 @@ -{ - "name":"FingerprintingActivity", - "description":"Definition of fingerprinting behavior by FPD module.", - "severity": [ - [0, "FPDSeverityNone", "#3CA519"], - [1, "FPDSeverityLow", "#80B012"], - [2, "FPDSeverityModerate", "#CD9600"], - [3, "FPDSeverityHigh", "#E64B19"], - [5, "FPDSeverityVeryHigh", "#C8004B"] - ], - "criteria":[ - { - "value":3, - "weight":1 - } - ], - "groups":[ - { - "name":"BrowserProperties", - "description":"Fingerprinting methods based on simple information gathering by accessing certain APIs.", - "criteria":[ - { - "value":7, - "weight":1 - }, - { - "value":12, - "weight":2 - }, - { - "value":14, - "weight":3 - } - ], - "groups":[ - { - "name":"NavigatorBasic", - "description":"Basic information about browser and system.", - "criteria":[ - { - "percentage":35, - "weight":1 - }, - { - "percentage":65, - "weight":2 - } - ] - }, - { - "name":"NavigatorHardware", - "description":"Hardware information about device.", - "criteria":[ - { - "value":1, - "weight":1 - } - ] - }, - { - "name":"NavigatorMobile", - "description":"Information about features supported by mobile devices.", - "criteria":[ - { - "value":1, - "weight":1 - } - ] - }, - { - "name":"NavigatorNetwork", - "description":"Information about internet connection.", - "criteria":[ - { - "value":3, - "weight":1 - } - ] - }, - { - "name":"LocalizationInfo", - "description":"Localization details and keyboard layout.", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ] - }, - { - "name":"PermissionsInfo", - "description":"Querying different permissions through API.", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ] - }, - { - "name":"AudioInfo", - "description":"AudioContext configuration parameters.", - "criteria":[ - { - "percentage":40, - "weight":1 - } - ] - }, - { - "name":"ScreenInfo", - "description":"Information about screen and its properties.", - "criteria":[ - { - "value":5, - "weight":1 - } - ] - }, - { - "name":"WindowInfo", - "description":"Information about screen from root Window object.", - "criteria":[ - { - "value":3, - "weight":1 - } - ] - }, - { - "name":"StorageInfo", - "description":"Availability of WebStorage technology.", - "criteria":[ - { - "percentage":60, - "weight":1 - } - ] - }, - { - "name":"NavigatorFlags", - "description":"Binary browser settings.", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ] - }, - { - "name":"TimeInfo", - "description":"Information about exact time values.", - "criteria":[ - { - "access":10, - "weight":1 - } - ] - }, - { - "name":"WebGLInfo", - "description":"Information from WebGL/WebGL2 interface.", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ] - } - ] - }, - { - "name":"AlgorithmicMethods", - "description":"Fingerprinting methods based on specific procedures, calculations or processing.", - "criteria":[ - { - "value":1, - "weight":2 - }, - { - "value":2, - "weight":3 - } - ], - "groups":[ - { - "name":"FontsEnumFingerprint", - "description":"System fonts enumeration techniques.", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ], - "groups":[ - { - "name":"JSFontEnum", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ], - "groups":[ - { - "name":"JSFontEnumStepOne" - }, - { - "name":"JSFontEnumStepTwo", - "criteria":[ - { - "access":15, - "weight":1 - } - ] - } - ] - }, - { - "name":"CanvasFontEnum", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ], - "groups":[ - { - "name":"CanvasFontEnumStepOne" - }, - { - "name":"CanvasFontEnumStepTwo" - } - ] - } - ] - }, - { - "name":"CanvasFingerprint", - "description":"Extraction of rendered image from 2D canvas.", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ], - "groups":[ - { - "name":"CanvasFingerprintStepOne", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ] - }, - { - "name":"CanvasFingerprintStepTwo", - "criteria":[ - { - "access":2, - "weight":1 - } - ] - }, - { - "name":"CanvasFingerprintStepThree" - } - ] - }, - { - "name":"WebGLFingerprint", - "description":"Extraction of rendered image from WebGL canvas.", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ], - "groups":[ - { - "name":"WebGL1Fingerprint", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ], - "groups":[ - { - "name":"WebGL1FingerprintStepOne", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ] - }, - { - "name":"WebGL1FingerprintStepTwo", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ] - }, - { - "name":"WebGL1FingerprintStepThree" - } - ] - }, - { - "name":"WebGL2Fingerprint", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ], - "groups":[ - { - "name":"WebGL2FingerprintStepOne", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ] - }, - { - "name":"WebGL2FingerprintStepTwo", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ] - }, - { - "name":"WebGL2FingerprintStepThree" - } - ] - } - ] - }, - { - "name":"WebRTCFingerprint", - "description":"Leakage of public or local IP address.", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ], - "groups":[ - { - "name":"WebRTCFingerprintStepOne", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ] - }, - { - "name":"WebRTCFingerprintStepTwo", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ] - } - ] - }, - { - "name":"AudioContextFingerprint", - "description":"Fingerprinting based on AudioContext processing.", - "criteria":[ - { - "value":2, - "weight":1 - } - ] - } - ] - }, - { - "name":"CrawlFpInspector", - "description":"APIs often abused for fingerprinting according to FP-Inspector study.", - "criteria":[ - { - "percentage":10, - "weight":1 - }, - { - "percentage":15, - "weight":2 - }, - { - "percentage":20, - "weight":3 - } - ] - } - ] -} diff --git a/data/extensions/jsr@javascriptrestrictor/fp_config/groups-lvl_1.json b/data/extensions/jsr@javascriptrestrictor/fp_config/groups-lvl_1.json deleted file mode 100644 index 66d7b38..0000000 --- a/data/extensions/jsr@javascriptrestrictor/fp_config/groups-lvl_1.json +++ /dev/null @@ -1,408 +0,0 @@ -{ - "name":"FingerprintingActivity", - "description":"Definition of fingerprinting behavior by FPD module.", - "severity": [ - [0, "FPDSeverityNone", "#3CA519"], - [1, "FPDSeverityLow", "#80B012"], - [2, "FPDSeverityModerate", "#CD9600"], - [3, "FPDSeverityHigh", "#E64B19"], - [5, "FPDSeverityVeryHigh", "#C8004B"] - ], - "criteria":[ - { - "value":3, - "weight":1 - } - ], - "groups":[ - { - "name":"BrowserProperties", - "description":"Fingerprinting methods based on simple information gathering by accessing certain APIs.", - "criteria":[ - { - "value":7, - "weight":1 - }, - { - "value":11, - "weight":2 - }, - { - "value":13, - "weight":3 - } - ], - "groups":[ - { - "name":"NavigatorBasic", - "description":"Basic information about browser and system.", - "criteria":[ - { - "percentage":35, - "weight":1 - }, - { - "percentage":65, - "weight":2 - } - ] - }, - { - "name":"NavigatorHardware", - "description":"Hardware information about device.", - "criteria":[ - { - "value":1, - "weight":1 - } - ] - }, - { - "name":"NavigatorMobile", - "description":"Information about features supported by mobile devices.", - "criteria":[ - { - "value":1, - "weight":1 - } - ] - }, - { - "name":"NavigatorNetwork", - "description":"Information about internet connection.", - "criteria":[ - { - "value":3, - "weight":1 - } - ] - }, - { - "name":"LocalizationInfo", - "description":"Localization details and keyboard layout.", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ] - }, - { - "name":"PermissionsInfo", - "description":"Querying different permissions through API.", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ] - }, - { - "name":"AudioInfo", - "description":"AudioContext configuration parameters.", - "criteria":[ - { - "percentage":40, - "weight":1 - } - ] - }, - { - "name":"ScreenInfo", - "description":"Information about screen and its properties.", - "criteria":[ - { - "value":5, - "weight":1 - } - ] - }, - { - "name":"WindowInfo", - "description":"Information about screen from root Window object.", - "criteria":[ - { - "value":3, - "weight":1 - } - ] - }, - { - "name":"StorageInfo", - "description":"Availability of WebStorage technology.", - "criteria":[ - { - "percentage":60, - "weight":1 - } - ] - }, - { - "name":"NavigatorFlags", - "description":"Binary browser settings.", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ] - }, - { - "name":"TimeInfo", - "description":"Information about exact time values.", - "criteria":[ - { - "access":10, - "weight":1 - } - ] - }, - { - "name":"WebGLInfo", - "description":"Information from WebGL/WebGL2 interface.", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ] - } - ] - }, - { - "name":"AlgorithmicMethods", - "description":"Fingerprinting methods based on specific procedures, calculations or processing.", - "criteria":[ - { - "value":1, - "weight":2 - }, - { - "value":2, - "weight":3 - } - ], - "groups":[ - { - "name":"FontsEnumFingerprint", - "description":"System fonts enumeration techniques.", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ], - "groups":[ - { - "name":"JSFontEnum", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ], - "groups":[ - { - "name":"JSFontEnumStepOne" - }, - { - "name":"JSFontEnumStepTwo", - "criteria":[ - { - "access":15, - "weight":1 - } - ] - } - ] - }, - { - "name":"CanvasFontEnum", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ], - "groups":[ - { - "name":"CanvasFontEnumStepOne" - }, - { - "name":"CanvasFontEnumStepTwo" - } - ] - } - ] - }, - { - "name":"CanvasFingerprint", - "description":"Extraction of rendered image from 2D canvas.", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ], - "groups":[ - { - "name":"CanvasFingerprintStepOne", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ] - }, - { - "name":"CanvasFingerprintStepTwo", - "criteria":[ - { - "access":2, - "weight":1 - } - ] - }, - { - "name":"CanvasFingerprintStepThree" - } - ] - }, - { - "name":"WebGLFingerprint", - "description":"Extraction of rendered image from WebGL canvas.", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ], - "groups":[ - { - "name":"WebGL1Fingerprint", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ], - "groups":[ - { - "name":"WebGL1FingerprintStepOne", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ] - }, - { - "name":"WebGL1FingerprintStepTwo", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ] - }, - { - "name":"WebGL1FingerprintStepThree" - } - ] - }, - { - "name":"WebGL2Fingerprint", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ], - "groups":[ - { - "name":"WebGL2FingerprintStepOne", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ] - }, - { - "name":"WebGL2FingerprintStepTwo", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ] - }, - { - "name":"WebGL2FingerprintStepThree" - } - ] - } - ] - }, - { - "name":"WebRTCFingerprint", - "description":"Leakage of public or local IP address.", - "criteria":[ - { - "percentage":100, - "weight":1 - } - ], - "groups":[ - { - "name":"WebRTCFingerprintStepOne", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ] - }, - { - "name":"WebRTCFingerprintStepTwo", - "criteria":[ - { - "percentage":50, - "weight":1 - } - ] - } - ] - }, - { - "name":"AudioContextFingerprint", - "description":"Fingerprinting based on AudioContext processing.", - "criteria":[ - { - "value":2, - "weight":1 - } - ] - } - ] - }, - { - "name":"CrawlFpInspector", - "description":"APIs often abused for fingerprinting according to FP-Inspector study.", - "criteria":[ - { - "percentage":9, - "weight":1 - }, - { - "percentage":13, - "weight":2 - }, - { - "percentage":20, - "weight":3 - } - ] - } - ] -} diff --git a/data/extensions/jsr@javascriptrestrictor/fp_config/schema/groups-schema.json b/data/extensions/jsr@javascriptrestrictor/fp_config/schema/groups-schema.json deleted file mode 100644 index 5a96d2f..0000000 --- a/data/extensions/jsr@javascriptrestrictor/fp_config/schema/groups-schema.json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "$schema":"http://json-schema.org/draft-07/schema", - "definitions":{ - "group":{ - "type":"object", - "title":"Group object", - "description":"Object representing group and its properties.", - "properties":{ - "name":{ - "type":"string" - }, - "description":{ - "type":"string" - }, - "criteria":{ - "$ref":"#/definitions/criteria" - }, - "groups":{ - "title":"Subgroups array", - "description":"Array of subgroups of defined group.", - "type":"array", - "items":{ - "$ref":"#/definitions/group" - } - } - }, - "required":[ - "name" - ], - "additionalProperties":false - }, - "criteria":{ - "type":"array", - "title":"Criteria array", - "description":"Contains criterion objects to define parent group access/weight.", - "if":{ - "items":[ - { - "$ref":"#/definitions/criterion_access" - } - ] - }, - "then":{ - "items":{ - "$ref":"#/definitions/criterion_access" - } - }, - "else":{ - "items":{ - "oneOf":[ - { - "$ref":"#/definitions/criterion_value" - }, - { - "$ref":"#/definitions/criterion_percentage" - } - ] - } - } - }, - "criterion_value":{ - "type":"object", - "title":"Value criterion", - "description":"Criterion based on curent weights of direct children. (children = subgroups or wrapped resources)", - "properties":{ - "value":{ - "type":"integer", - "minimum":1, - "maximum":1000 - }, - "weight":{ - "type":"integer", - "minimum":0 - } - }, - "required":[ - "value", - "weight" - ], - "additionalProperties":false - }, - "criterion_percentage":{ - "type":"object", - "title":"Percentage criterion", - "description":"Criterion based on percentage of currently gained weights (from max. obtainable) of direct children.", - "properties":{ - "percentage":{ - "type":"integer", - "minimum":0, - "maximum":100 - }, - "weight":{ - "type":"integer", - "minimum":0 - } - }, - "required":[ - "percentage", - "weight" - ], - "additionalProperties":false - }, - "criterion_access":{ - "type":"object", - "title":"Access criterion", - "description":"Criterion based on total number of accesses from direct child resources. (subgroups are ignored)", - "properties":{ - "access":{ - "type":"integer", - "minimum":1, - "maximum":1000 - }, - "weight":{ - "type":"integer", - "minimum":0 - } - }, - "required":[ - "access", - "weight" - ], - "additionalProperties":false - }, - "severity_item":{ - "type":"array", - "title":"Severity item", - "description":"Each severity item consists of weight number, severity string, and corresponding color.", - "items":[ - { - "num_value": "integer" - }, - { - "text_value": "string" - }, - { - "color": "string", - "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$" - } - ], - "additionalItems": false - } - }, - "type":"object", - "title":"Root group object", - "description":"Object representing root group and its properties.", - "properties":{ - "name":{ - "type":"string" - }, - "description":{ - "type":"string" - }, - "severity":{ - "type":"array", - "title":"Severity array", - "description":"Contains an array of severity items that represent severity thresholds.", - "items":{ - "$ref":"#/definitions/severity_item" - } - }, - "criteria":{ - "$ref":"#/definitions/criteria" - }, - "groups":{ - "title":"Array of subgroups", - "description":"Array of subgroups of root group.", - "type":"array", - "items":{ - "$ref":"#/definitions/group" - } - } - }, - "required":[ - "name" - ], - "additionalProperties":false -}
\ No newline at end of file diff --git a/data/extensions/jsr@javascriptrestrictor/fp_config/schema/wrappers-schema.json b/data/extensions/jsr@javascriptrestrictor/fp_config/schema/wrappers-schema.json deleted file mode 100644 index c777a0f..0000000 --- a/data/extensions/jsr@javascriptrestrictor/fp_config/schema/wrappers-schema.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "$schema":"http://json-schema.org/draft-07/schema", - "definitions":{ - "group_property":{ - "type":"object", - "title":"Group property object", - "description":"Assigns wrapped property to group.", - "if":{ - "properties":{ - "property":{ - "const":"get" - } - } - }, - "then":{ - "properties":{ - "group":{ - "type":"string" - }, - "property":{ - "const":"get" - }, - "criteria":{ - "$ref":"#/definitions/criteria" - } - }, - "additionalProperties":false - }, - "else":{ - "properties":{ - "group":{ - "type":"string" - }, - "property":{ - "const":"set" - }, - "criteria":{ - "$ref":"#/definitions/criteria" - }, - "arguments":{ - "oneOf":[ - { - "type":"array" - }, - { - "type":"string" - } - ] - } - }, - "additionalProperties":false - }, - "required":[ - "group" - ] - }, - "group_function":{ - "type":"object", - "title":"Group function object", - "description":"Assigns wrapped function to group.", - "properties":{ - "group":{ - "type":"string" - }, - "criteria":{ - "$ref":"#/definitions/criteria" - }, - "arguments":{ - "oneOf":[ - { - "type":"array" - }, - { - "type":"string" - } - ] - } - }, - "required":[ - "group" - ], - "additionalProperties":false - }, - "criteria":{ - "type":"array", - "title":"Criteria array", - "description":"Contains criterion objects to define parent group access/weight.", - "items":{ - "$ref":"#/definitions/criterion_value" - } - }, - "criterion_value":{ - "type":"object", - "title":"Value criterion", - "description":"Criterion defined as number of accesses to resource.", - "properties":{ - "value":{ - "type":"integer", - "minimum":1, - "maximum":1000 - }, - "weight":{ - "type":"integer", - "minimum":0 - } - }, - "required":[ - "value", - "weight" - ], - "additionalProperties":false - } - }, - "type":"array", - "items":{ - "type":"object", - "title":"Wrapper object", - "description":"Represents wrapped resource.", - "if":{ - "properties":{ - "type":{ - "const":"property" - } - } - }, - "then":{ - "properties":{ - "resource":{ - "type":"string" - }, - "type":{ - "const":"property" - }, - "groups":{ - "type":"array", - "items":{ - "$ref":"#/definitions/group_property" - } - } - }, - "additionalProperties":false - }, - "else":{ - "properties":{ - "resource":{ - "type":"string" - }, - "type":{ - "const":"function" - }, - "groups":{ - "type":"array", - "items":{ - "$ref":"#/definitions/group_function" - } - } - }, - "additionalProperties":false - }, - "required":[ - "resource", - "type" - ] - } -}
\ No newline at end of file diff --git a/data/extensions/jsr@javascriptrestrictor/fp_config/wrappers-lvl_0_1.json b/data/extensions/jsr@javascriptrestrictor/fp_config/wrappers-lvl_0_1.json deleted file mode 100644 index 5fb3f93..0000000 --- a/data/extensions/jsr@javascriptrestrictor/fp_config/wrappers-lvl_0_1.json +++ /dev/null @@ -1,1892 +0,0 @@ -[ - { - "resource":"Navigator.prototype.userAgent", - "type":"property", - "groups":[ - { - "group":"NavigatorBasic", - "property":"get", - "criteria":[ - { - "value":1, - "weight":2 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.language", - "type":"property", - "groups":[ - { - "group":"NavigatorBasic", - "property":"get" - } - ] - }, - { - "resource":"Navigator.prototype.languages", - "type":"property", - "groups":[ - { - "group":"NavigatorBasic", - "property":"get", - "criteria":[ - { - "value":1, - "weight":2 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.platform", - "type":"property", - "groups":[ - { - "group":"NavigatorBasic", - "property":"get" - } - ] - }, - { - "resource":"Navigator.prototype.productSub", - "type":"property", - "groups":[ - { - "group":"NavigatorBasic", - "property":"get" - } - ] - }, - { - "resource":"Navigator.prototype.product", - "type":"property", - "groups":[ - { - "group":"NavigatorBasic", - "property":"get" - } - ] - }, - { - "resource":"Navigator.prototype.vendorSub", - "type":"property", - "groups":[ - { - "group":"NavigatorBasic", - "property":"get", - "criteria":[ - { - "value":1, - "weight":2 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.vendor", - "type":"property", - "groups":[ - { - "group":"NavigatorBasic", - "property":"get" - } - ] - }, - { - "resource":"Navigator.prototype.appVersion", - "type":"property", - "groups":[ - { - "group":"NavigatorBasic", - "property":"get", - "criteria":[ - { - "value":1, - "weight":2 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.appCodeName", - "type":"property", - "groups":[ - { - "group":"NavigatorBasic", - "property":"get", - "criteria":[ - { - "value":1, - "weight":2 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.plugins", - "type":"property", - "groups":[ - { - "group":"BrowserProperties", - "property":"get" - } - ] - }, - { - "resource":"NetworkInformation.prototype.downlink", - "type":"property", - "groups":[ - { - "group":"NavigatorNetwork", - "property":"get" - } - ] - }, - { - "resource":"NetworkInformation.prototype.effectiveType", - "type":"property", - "groups":[ - { - "group":"NavigatorNetwork", - "property":"get" - } - ] - }, - { - "resource":"NetworkInformation.prototype.rtt", - "type":"property", - "groups":[ - { - "group":"NavigatorNetwork", - "property":"get" - } - ] - }, - { - "resource":"NetworkInformation.prototype.saveData", - "type":"property", - "groups":[ - { - "group":"NavigatorNetwork", - "property":"get" - } - ] - }, - { - "resource":"Navigator.prototype.hardwareConcurrency", - "type":"property", - "groups":[ - { - "group":"NavigatorHardware", - "property":"get" - } - ] - }, - { - "resource":"Navigator.prototype.deviceMemory", - "type":"property", - "groups":[ - { - "group":"NavigatorHardware", - "property":"get" - } - ] - }, - { - "resource":"Navigator.prototype.maxTouchPoints", - "type":"property", - "groups":[ - { - "group":"NavigatorMobile", - "property":"get" - } - ] - }, - { - "resource":"Navigator.prototype.vibrate", - "type":"function", - "groups":[ - { - "group":"NavigatorMobile" - } - ] - }, - { - "resource":"Navigator.prototype.cookieEnabled", - "type":"property", - "groups":[ - { - "group":"NavigatorFlags", - "property":"get" - } - ] - }, - { - "resource":"Navigator.prototype.doNotTrack", - "type":"property", - "groups":[ - { - "group":"NavigatorFlags", - "property":"get" - } - ] - }, - { - "resource":"MediaDevices.prototype.enumerateDevices", - "type":"function", - "groups":[ - { - "group":"BrowserProperties" - } - ] - }, - { - "resource":"Screen.prototype.height", - "type":"property", - "groups":[ - { - "group":"ScreenInfo", - "property":"get" - } - ] - }, - { - "resource":"Screen.prototype.width", - "type":"property", - "groups":[ - { - "group":"ScreenInfo", - "property":"get" - } - ] - }, - { - "resource":"Screen.prototype.colorDepth", - "type":"property", - "groups":[ - { - "group":"ScreenInfo", - "property":"get" - } - ] - }, - { - "resource":"Screen.prototype.pixelDepth", - "type":"property", - "groups":[ - { - "group":"ScreenInfo", - "property":"get" - } - ] - }, - { - "resource":"Screen.prototype.availHeight", - "type":"property", - "groups":[ - { - "group":"ScreenInfo", - "property":"get" - } - ] - }, - { - "resource":"Screen.prototype.availWidth", - "type":"property", - "groups":[ - { - "group":"ScreenInfo", - "property":"get" - } - ] - }, - { - "resource":"Screen.prototype.availTop", - "type":"property", - "groups":[ - { - "group":"ScreenInfo", - "property":"get" - } - ] - }, - { - "resource":"Screen.prototype.availLeft", - "type":"property", - "groups":[ - { - "group":"ScreenInfo", - "property":"get" - } - ] - }, - { - "resource":"window.devicePixelRatio", - "type":"property", - "groups":[ - { - "group":"WindowInfo", - "property":"get" - } - ] - }, - { - "resource":"window.innerWidth", - "type":"property", - "groups":[ - { - "group":"WindowInfo", - "property":"get" - } - ] - }, - { - "resource":"window.innerHeight", - "type":"property", - "groups":[ - { - "group":"WindowInfo", - "property":"get" - } - ] - }, - { - "resource":"window.outerWidth", - "type":"property", - "groups":[ - { - "group":"WindowInfo", - "property":"get" - } - ] - }, - { - "resource":"window.outerHeight", - "type":"property", - "groups":[ - { - "group":"WindowInfo", - "property":"get" - } - ] - }, - { - "resource":"Date.prototype.getTimezoneOffset", - "type":"function", - "groups":[ - { - "group":"LocalizationInfo" - } - ] - }, - { - "resource":"Intl.DateTimeFormat.prototype.resolvedOptions", - "type":"function", - "groups":[ - { - "group":"LocalizationInfo" - } - ] - }, - { - "resource":"Permissions.prototype.query", - "type":"function", - "groups":[ - { - "group":"PermissionsInfo", - "arguments":"diff", - "criteria":[ - { - "value":5, - "weight":1 - } - ] - } - ] - }, - { - "resource":"HTMLMediaElement.prototype.canPlayType", - "type":"function", - "groups":[ - { - "group":"BrowserProperties", - "arguments":"diff", - "criteria":[ - { - "value":5, - "weight":1 - } - ] - } - ] - }, - { - "resource":"AudioNode.prototype.channelCount", - "type":"property", - "groups":[ - { - "group":"AudioInfo", - "property":"get" - } - ] - }, - { - "resource":"AudioNode.prototype.channelCountMode", - "type":"property", - "groups":[ - { - "group":"AudioInfo", - "property":"get" - } - ] - }, - { - "resource":"AudioNode.prototype.channelInterpretation", - "type":"property", - "groups":[ - { - "group":"AudioInfo", - "property":"get" - } - ] - }, - { - "resource":"AudioDestinationNode.prototype.maxChannelCount", - "type":"property", - "groups":[ - { - "group":"AudioInfo", - "property":"get" - } - ] - }, - { - "resource":"AudioNode.prototype.numberOfInputs", - "type":"property", - "groups":[ - { - "group":"AudioInfo", - "property":"get" - } - ] - }, - { - "resource":"AudioNode.prototype.numberOfOutputs", - "type":"property", - "groups":[ - { - "group":"AudioInfo", - "property":"get" - } - ] - }, - { - "resource":"AnalyserNode.prototype.fftSize", - "type":"property", - "groups":[ - { - "group":"AudioInfo", - "property":"get" - } - ] - }, - { - "resource":"AnalyserNode.prototype.frequencyBinCount", - "type":"property", - "groups":[ - { - "group":"AudioInfo", - "property":"get" - } - ] - }, - { - "resource":"AnalyserNode.prototype.minDecibels", - "type":"property", - "groups":[ - { - "group":"AudioInfo", - "property":"get" - } - ] - }, - { - "resource":"AnalyserNode.prototype.maxDecibels", - "type":"property", - "groups":[ - { - "group":"AudioInfo", - "property":"get" - } - ] - }, - { - "resource":"AnalyserNode.prototype.smoothingTimeConstant", - "type":"property", - "groups":[ - { - "group":"AudioInfo", - "property":"get" - } - ] - }, - { - "resource":"window.localStorage", - "type":"property", - "groups":[ - { - "group":"StorageInfo", - "property":"get" - } - ] - }, - { - "resource":"window.sessionStorage", - "type":"property", - "groups":[ - { - "group":"StorageInfo", - "property":"get" - } - ] - }, - { - "resource":"window.indexedDB", - "type":"property", - "groups":[ - { - "group":"StorageInfo", - "property":"get", - "criteria":[ - { - "value":1, - "weight":2 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getParameter", - "type":"function", - "groups":[ - { - "group":"WebGLInfo", - "arguments":"diff", - "criteria":[ - { - "value":3, - "weight":1 - } - ] - } - ] - }, - { - "resource":"WebGL2RenderingContext.prototype.getParameter", - "type":"function", - "groups":[ - { - "group":"WebGLInfo", - "arguments":"diff", - "criteria":[ - { - "value":3, - "weight":1 - } - ] - } - ] - }, - { - "resource":"Performance.prototype.now", - "type":"function", - "groups":[ - { - "group":"TimeInfo" - } - ] - }, - { - "resource":"Date.now", - "type":"function", - "groups":[ - { - "group":"TimeInfo" - } - ] - }, - { - "resource":"CSSStyleDeclaration.prototype.setProperty", - "type":"function", - "groups":[ - { - "group":"JSFontEnumStepOne", - "arguments":[ - "^\\\"font-family\\\"\\\\S*" - ], - "criteria":[ - { - "value":15, - "weight":1 - } - ] - } - ] - }, - { - "resource":"CSSStyleDeclaration.prototype.fontFamily", - "type":"property", - "groups":[ - { - "group":"JSFontEnumStepOne", - "property":"set", - "arguments":"diff", - "criteria":[ - { - "value":15, - "weight":1 - } - ] - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.font", - "type":"property", - "groups":[ - { - "group":"CanvasFontEnumStepOne", - "property":"set", - "arguments":"diff", - "criteria":[ - { - "value":15, - "weight":1 - } - ] - } - ] - }, - { - "resource":"HTMLElement.prototype.offsetWidth", - "type":"property", - "groups":[ - { - "group":"JSFontEnumStepTwo", - "property":"get" - } - ] - }, - { - "resource":"HTMLElement.prototype.offsetHeight", - "type":"property", - "groups":[ - { - "group":"JSFontEnumStepTwo", - "property":"get" - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.measureText", - "type":"function", - "groups":[ - { - "group":"CanvasFontEnumStepTwo", - "criteria":[ - { - "value":15, - "weight":1 - } - ] - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.fillText", - "type":"function", - "groups":[ - { - "group":"CanvasFingerprintStepOne", - "arguments":[ - ".{9,}" - ] - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.strokeText", - "type":"function", - "groups":[ - { - "group":"CanvasFingerprintStepOne", - "arguments":[ - ".{9,}" - ] - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.fillStyle", - "type":"property", - "groups":[ - { - "group":"CanvasFingerprintStepTwo", - "property":"set", - "arguments":"diff" - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.strokeStyle", - "type":"property", - "groups":[ - { - "group":"CanvasFingerprintStepTwo", - "property":"set", - "arguments":"diff" - } - ] - }, - { - "resource":"HTMLCanvasElement.prototype.toDataURL", - "type":"function", - "groups":[ - { - "group":"CanvasFingerprintStepThree" - }, - { - "group":"WebGL1FingerprintStepThree" - }, - { - "group":"WebGL2FingerprintStepThree" - } - ] - }, - { - "resource":"HTMLCanvasElement.prototype.toBlob", - "type":"function", - "groups":[ - { - "group":"CanvasFingerprintStepThree" - }, - { - "group":"WebGL1FingerprintStepThree" - }, - { - "group":"WebGL2FingerprintStepThree" - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.getImageData", - "type":"function", - "groups":[ - { - "group":"CanvasFingerprintStepThree" - }, - { - "group":"WebGL1FingerprintStepThree" - }, - { - "group":"WebGL2FingerprintStepThree" - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.createBuffer", - "type":"function", - "groups":[ - { - "group":"WebGL1FingerprintStepOne" - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.bindBuffer", - "type":"function", - "groups":[ - { - "group":"WebGL1FingerprintStepOne" - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.vertexAttribPointer", - "type":"function", - "groups":[ - { - "group":"WebGL1FingerprintStepTwo" - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.enableVertexAttribArray", - "type":"function", - "groups":[ - { - "group":"WebGL1FingerprintStepTwo" - } - ] - }, - { - "resource":"WebGL2RenderingContext.prototype.createBuffer", - "type":"function", - "groups":[ - { - "group":"WebGL2FingerprintStepOne" - } - ] - }, - { - "resource":"WebGL2RenderingContext.prototype.bindBuffer", - "type":"function", - "groups":[ - { - "group":"WebGL2FingerprintStepOne" - } - ] - }, - { - "resource":"WebGL2RenderingContext.prototype.vertexAttribPointer", - "type":"function", - "groups":[ - { - "group":"WebGL2FingerprintStepTwo" - } - ] - }, - { - "resource":"WebGL2RenderingContext.prototype.enableVertexAttribArray", - "type":"function", - "groups":[ - { - "group":"WebGL2FingerprintStepTwo" - } - ] - }, - { - "resource":"RTCPeerConnection.prototype.createDataChannel", - "type":"function", - "groups":[ - { - "group":"WebRTCFingerprintStepOne" - } - ] - }, - { - "resource":"RTCPeerConnection.prototype.createOffer", - "type":"function", - "groups":[ - { - "group":"WebRTCFingerprintStepOne" - } - ] - }, - { - "resource":"RTCPeerConnection.prototype.onicecandidate", - "type":"property", - "groups":[ - { - "group":"WebRTCFingerprintStepTwo" - } - ] - }, - { - "resource":"RTCPeerConnection.prototype.localDescription", - "type":"property", - "groups":[ - { - "group":"WebRTCFingerprintStepTwo" - } - ] - }, - { - "resource":"BaseAudioContext.prototype.createOscillator", - "type":"function", - "groups":[ - { - "group":"AudioContextFingerprint" - } - ] - }, - { - "resource":"BaseAudioContext.prototype.createDynamicsCompressor", - "type":"function", - "groups":[ - { - "group":"AudioContextFingerprint" - } - ] - }, - { - "resource":"BaseAudioContext.prototype.destination", - "type":"property", - "groups":[ - { - "group":"AudioContextFingerprint" - } - ] - }, - { - "resource":"BaseAudioContext.prototype.createAnalyser", - "type":"function", - "groups":[ - { - "group":"AudioContextFingerprint" - } - ] - }, - { - "resource":"BaseAudioContext.prototype.createBuffer", - "type":"function", - "groups":[ - { - "group":"AudioContextFingerprint" - } - ] - }, - { - "resource":"BaseAudioContext.prototype.createScriptProcessor", - "type":"function", - "groups":[ - { - "group":"AudioContextFingerprint" - } - ] - }, - { - "resource":"OfflineAudioContext.prototype.startRendering", - "type":"function", - "groups":[ - { - "group":"AudioContextFingerprint" - } - ] - }, - { - "resource":"OfflineAudioContext.prototype.oncomplete", - "type":"property", - "groups":[ - { - "group":"AudioContextFingerprint" - } - ] - }, - { - "resource":"SubtleCrypto.prototype.exportKey", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":16 - } - ] - } - ] - }, - { - "resource":"RTCPeerConnection.prototype.iceGatheringState", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":15 - } - ] - } - ] - }, - { - "resource":"OfflineAudioCompletionEvent.prototype.renderedBuffer", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":14 - } - ] - } - ] - }, - { - "resource":"OfflineAudioContext.prototype.startRendering", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":14 - } - ] - } - ] - }, - { - "resource":"BaseAudioContext.prototype.createOscillator", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":14 - } - ] - } - ] - }, - { - "resource":"DynamicsCompressorNode.prototype.knee", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"set", - "criteria":[ - { - "value":1, - "weight":14 - } - ] - } - ] - }, - { - "resource":"console.timeLog", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":13 - } - ] - } - ] - }, - { - "resource":"MediaDevices.prototype.enumerateDevices", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":12 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.vibrate", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":12 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.vendorSub", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":12 - } - ] - } - ] - }, - { - "resource":"AudioParam.prototype.setValueAtTime", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":12 - } - ] - } - ] - }, - { - "resource":"AudioBuffer.prototype.getChannelData", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":12 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getExtension", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "arguments":["\\\"WEBGL_draw_buffers\\\""], - "criteria":[ - { - "value":1, - "weight":11 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getExtension", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "arguments":["\\\"EXT_sRGB\\\""], - "criteria":[ - { - "value":1, - "weight":11 - } - ] - } - ] - }, - { - "resource":"HTMLMediaElement.prototype.setSinkId", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":11 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.productSub", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":11 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.hardwareConcurrency", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":11 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.requestMIDIAccess", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"Keyboard.prototype.getLayoutMap", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.buildID", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getSupportedExtensions", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.oscpu", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"BaseAudioContext.prototype.createDynamicsCompressor", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getExtension", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "arguments":["\\\"EXT_texture_filter_anisotropic\\\""], - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.isPointInPath", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getContextAttributes", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.depthFunc", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getShaderPrecisionFormat", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"WebGLShaderPrecisionFormat.prototype.rangeMax", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.clearColor", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"FileSystemFileEntry.prototype.createWriter", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getUniformLocation", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getAttribLocation", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.drawArrays", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":10 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.useProgram", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.enableVertexAttribArray", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.createShader", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.bindBuffer", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.appCodeName", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getExtension", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "arguments":["\\\"OES_standard_derivatives\\\""], - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.textBaseline", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"set", - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.globalCompositeOperation", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"set", - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"BaseAudioContext.prototype.createScriptProcessor", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"BaseAudioContext.prototype.createBuffer", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"BaseAudioContext.prototype.createAnalyser", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.fillRect", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getExtension", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "arguments":["\\\"WEBGL_debug_renderer_info\\\""], - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"HTMLCanvasElement.prototype.toDataURL", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":9 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getExtension", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "arguments":"diff", - "criteria":[ - { - "value":2, - "weight":8 - } - ] - } - ] - }, - { - "resource":"WebGL2RenderingContext.prototype.getExtension", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":8 - } - ] - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.fillStyle", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"set", - "criteria":[ - { - "value":1, - "weight":8 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.maxTouchPoints", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":8 - } - ] - } - ] - }, - { - "resource":"AnalyserNode.prototype.frequencyBinCount", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":8 - } - ] - } - ] - }, - { - "resource":"WebGLRenderingContext.prototype.getParameter", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":8 - } - ] - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.closePath", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":8 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.languages", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":8 - } - ] - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.beginPath", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":8 - } - ] - } - ] - }, - { - "resource":"Navigator.prototype.doNotTrack", - "type":"property", - "groups":[ - { - "group":"CrawlFpInspector", - "property":"get", - "criteria":[ - { - "value":1, - "weight":8 - } - ] - } - ] - }, - { - "resource":"CanvasRenderingContext2D.prototype.getImageData", - "type":"function", - "groups":[ - { - "group":"CrawlFpInspector", - "criteria":[ - { - "value":1, - "weight":8 - } - ] - } - ] - } -]
\ No newline at end of file diff --git a/data/extensions/jsr@javascriptrestrictor/fp_detect_background.js b/data/extensions/jsr@javascriptrestrictor/fp_detect_background.js deleted file mode 100644 index 0e4e27d..0000000 --- a/data/extensions/jsr@javascriptrestrictor/fp_detect_background.js +++ /dev/null @@ -1,1207 +0,0 @@ -/** \file - * \brief Fingerprint Detector (FPD) main logic, fingerprinting evaluation and other essentials - * - * \author Copyright (C) 2021-2022 Marek Salon - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** - * \defgroup FPD Fingerprint Detector - * - * \brief Fingerprint Detector (FPD) is a module that detects browser fingerprint extraction and prevents - * its sharing. To learn more about Browser Fingerprinting topic, see study "Browser Fingerprinting: A survey" available - * here: https://arxiv.org/pdf/1905.01051.pdf - * - * The FPD module uses wrapping technique to inject code that allows log API calls and accesses for every visited web page - * and its frames. Logged JS APIs can be specified in wrappers-lvl_X.json file, where X represents FPD config identifier. - * - * Fingerprint Detector is based on heuristic system that can be defined in form of API groups. A group represents - * a set of APIs that may have something in common. Access to the group is triggered when a certain amount APIs is accessed. - * Hierarchy of groups creates a tree-like structure, where access to the root group means fingerprinting activity. Groups can - * be configured in groups-lvl_X.json file, where X represents FPD config identifier. - * - * The FPD evaluate API groups with every request made in scope of certain browser tab. When FPD detects fingerprinting activity, - * blocking of subsequent requests is issued (if allowed in settings). Local browsing data of fingerprinting origin are also cleared - * to prevent caching extracted fingerprint in browser storage. - * - */ - - /** \file - * - * \brief This file is part of Fingerprint Detector (FPD) and contains API groups evaluation logic. File also contains - * event listeners used for API logging, requests blocking and tabs management. - * - * \ingroup FPD - */ - - -// START persistent configuration data - -/** - * FPD enable flag. Evaluate only when active. - */ -var fpDetectionOn; - -/** - * Associative array of hosts, that are currently among trusted ones. - */ -var fpdWhitelist = {}; - -/** - * Associative array of settings supported by this module. - */ -var fpdSettings = {}; - -// END persistent configuration data - - -/** - * Array containing names of unsupported wrappers that should be treated like supported ones during groups evaluation. - */ -const exceptionWrappers = ["CSSStyleDeclaration.prototype.fontFamily"]; - -/** - * API logs database of following structure: - * "tabId" : { - * "resource" : { - * "type" : { - * arguments { - * arg : "access count" - * }, - * total : "total access count" - * } - * } - * } - * - * *values in quotations are substituted by concrete names - * - */ -var fpdObservable = new Observable(); - -// depends on /nscl/common/CachedStorage.js -// session-bound globals -var fpdGlobals = CachedStorage.init({ - - fpDb: {}, - -/** - * Contains information about tabs current state. - */ - availableTabs: {}, - - /** - * Store if the user was already notified about fingerprinting activity in the tab. - */ - stopNotifyFlag: {}, - -/** - * A global variable shared with level_cache that controls the collection of calling scripts for FPD - * report. - */ - fpd_track_callers_tab: null, - -}); - -/** - * Stores latest evaluation statistics for every examined tab. This statistics contains data about accessed groups and resources - * and their weights after evaluation. It can be used for debugging or as an informative statement in GUI. - * It also contains flag for every tab to limit number of notifications. - */ -let latestEvals = {}; - -/** - * Parsed groups object containing necessary group information needed for evaluation. - * Groups are indexed by level and name for easier and faster access. - */ -let fpGroups = {}; - -/** - * Object containing information about unsupported wrappers for given browser. - */ -let unsupportedWrappers = {}; - -/** -* Definition of settings supported by this module. -*/ -const FPD_DEF_SETTINGS = { - behavior: { - label: browser.i18n.getMessage("fpdBehavior"), - description: browser.i18n.getMessage("fpdBehaviorDescription"), - description2: [], - params: [ - { - // 0 - short: browser.i18n.getMessage("fpdBehaviorPassive"), - description: browser.i18n.getMessage("fpdBehaviorPassiveDescription") - }, - { - // 1 - short: browser.i18n.getMessage("fpdBehaviorLimitedBlocking"), - description: browser.i18n.getMessage("fpdBehaviorBlockingDescription"), - description2: [ - browser.i18n.getMessage("fpdBehaviorBlockingDescription2"), - browser.i18n.getMessage("fpdBehaviorLimitedBlockingDescription3"), - browser.i18n.getMessage("fpdBehaviorLimitedBlockingDescription4"), - browser.i18n.getMessage("fpdBehaviorBlockingDescriptionWarning") - ] - }, - { - // 2 - short: browser.i18n.getMessage("fpdBehaviorFullBlocking"), - description: browser.i18n.getMessage("fpdBehaviorBlockingDescription"), - description2: [ - browser.i18n.getMessage("fpdBehaviorBlockingDescription2"), - browser.i18n.getMessage("fpdBehaviorFullBlockingDescription3"), - browser.i18n.getMessage("fpdBehaviorFullBlockingDescription4"), - browser.i18n.getMessage("fpdBehaviorBlockingDescriptionWarning") - ], - permissions: ["browsingData"] - } - ] - }, - notifications: { - label: browser.i18n.getMessage("shieldNotifications"), - description: browser.i18n.getMessage("fpdNotificationsDescription"), - description2: [browser.i18n.getMessage("fpdNotificationsDescription2")], - params: [ - { - // 0 - short: browser.i18n.getMessage("protectionConfigurationOptionActivatedOff"), - description: browser.i18n.getMessage("fpdNotificationsOffDescription") - }, - { - // 1 - short: browser.i18n.getMessage("protectionConfigurationOptionActivatedOn"), - description: browser.i18n.getMessage("fpdNotificationsOnDescription") - } - ] - }, - detection: { - label: browser.i18n.getMessage("fpdDetection"), - description: browser.i18n.getMessage("fpdDetectionDescription"), - description2: [], - params: [ - { - // 0 - short: browser.i18n.getMessage("fpdDetectionDefault"), - description: browser.i18n.getMessage("fpdDetectionDefaultDescription"), - description2: [ - browser.i18n.getMessage("fpdDetectionDefaultDescription2"), - browser.i18n.getMessage("fpdDetectionDefaultDescription3"), - ] - }, - { - // 1 - short: browser.i18n.getMessage("fpdStrict"), - description: browser.i18n.getMessage("fpdStrictDescription"), - description2: [ - browser.i18n.getMessage("fpdStrictDescription2"), - browser.i18n.getMessage("fpdStrictDescription3") - ] - } - ] - } -}; - - -var actionApi = browser.browserAction || browser.action; -// unify default color of popup badge background between different browsers -actionApi.setBadgeBackgroundColor({color: "#6E7378"}); - -// unify default color of popup badge text between different browsers -if (typeof actionApi.setBadgeTextColor === "function") { - actionApi.setBadgeTextColor({color: "#FFFFFF"}); -} - -/** - * This function initializes FPD module, loads configuration from storage, and registers listeners needed for fingerprinting detection. - */ -async function initFpd() { - // fill up fpGroups object with necessary data for evaluation - for (let groupsLevel in fp_levels.groups) { - fpGroups[groupsLevel] = fpGroups[groupsLevel] || {}; - processGroupsRecursive(fp_levels.groups[groupsLevel], groupsLevel); - - // Translate severity names - for (record of fp_levels.groups[groupsLevel].severity) { - record[1] = browser.i18n.getMessage(record[1]); - } - } - - // load configuration and settings from storage - await fpdLoadConfiguration(); - await fpdGlobals; - - // take care of unsupported resources for cross-browser behaviour uniformity - balanceUnsupportedWrappers(); - - // listen for messages intended for FPD module - browser.runtime.onMessage.addListener(fpdCommonMessageListener); - - // listen for click on notification when FPD detects fingerprinting to create a report - browser.notifications.onClicked.addListener((notificationId) => { - if (notificationId.startsWith("fpd")) { - var tabId = notificationId.split("-")[1]; - generateFpdReport(tabId); - } - }); - - // listen for update of browser tabs and start periodic FP evaluation - browser.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) { - availableTabs[tabId] = tab; - if (changeInfo.status == "loading") { - refreshDb(tabId); - fpDb[tab.id] = {}; - periodicEvaluation(tab.id, 500); - } - }); - - // listen for removal of browser tabs to clean fpDb object - browser.tabs.onRemoved.addListener(function (tabId) { - refreshDb(tabId); - delete availableTabs[tabId]; - }); - - // listen for removal of optional permissions to adjust settings accordingly - browser.permissions.onRemoved.addListener((permissions) => { - correctSettingsForRemovedPermissions(permissions.permissions, fpdSettings, FPD_DEF_SETTINGS); - browser.storage.sync.set({"fpdSettings": fpdSettings}); - }); - - if (self.window) { - // Firefox, event page has window - // listen for requests through webRequest API and decide whether to block them - browser.webRequest.onBeforeRequest.addListener( - fpdRequestCancel, - {urls: ["<all_urls>"]}, - ["blocking"] - ); - } else { - // mv3: cannot block! - // hide behavior settings - // TODO: shame Google in the setting panels for the missing feature - delete FPD_DEF_SETTINGS["behavior"]; - // force passive behavior setting - fpdSettings.behavior = 0; - browser.storage.sync.set({"fpdSettings": fpdSettings}); - } - // listen for navigation events to initiate storage clearing of fingerprinting web pages - browser.webNavigation.onBeforeNavigate.addListener((details) => { - if (latestEvals[details.tabId] && stopNotifyFlag[details.tabId] && fpdSettings.behavior > 0) { - // clear storages (using content script) for every frame in this tab - if (details.tabId >= 0) { - browser.tabs.sendMessage(details.tabId, { - cleanStorage: true, - ignoreWorkaround: fpdSettings.behavior > 1 - }); - } - } - }); - - // get state of all existing tabs and start periodic FP evaluation - browser.tabs.query({}).then(function(results) { - results.forEach(function(tab) { - availableTabs[tab.id] = tab; - fpDb[tab.id] ||= {}; - periodicEvaluation(tab.id, 500); - }); - }); -} - -/* - * -------------------------------------------------- - * CRITERIA CORRECTION - * -------------------------------------------------- - */ - -/** - * This function provides ability to balance/optimalize evaluation heuristics for cross-browser behaviour uniformity. - * It checks which resources are unsupported for given browser and adjust criteria of loaded FPD configuration accordingly. - */ -function balanceUnsupportedWrappers() { - if (!self.window) return false; // mv3 service worker? - // object containing groups effected by criteria adjustment and corresponding deleted subgroups - var effectedGroups = {}; - - // check supported wrappers for each level of FPD configuration - for (let level in fp_levels.wrappers) { - unsupportedWrappers[level] = []; - effectedGroups = {}; - - // find out which wrappers are unsupported and store them in "unsupportedWrappers" object - for (let wrapper of fp_levels.wrappers[level]) { - // split path of object from its name - var resourceSplitted = split_resource(wrapper.resource); - - // access nested object in browser's "window" object using path string - var resolvedPath = resourceSplitted["path"].split('.').reduce((o, p) => o ? o[p] : undefined, window); - - // if resource or resource path is undefined -> resource unsupported && no exception for the resource - if (!(resolvedPath && resourceSplitted["name"] in resolvedPath) && !exceptionWrappers.includes(wrapper.resource)) { - // store wrapper object to "unsupportedWrappers" object - unsupportedWrappers[level].push(wrapper); - - // mark all groups as effected if containing unsupported resource - for (let groupObj of wrapper.groups) { - effectedGroups[groupObj.group] = effectedGroups[groupObj.group] || []; - } - - // remove wrapper from FPD configuration (in "fp_levels") - fp_levels.wrappers[level] = fp_levels.wrappers[level].filter((x) => (x != wrapper)); - } - } - - // adjust/correct effected groups criteria - correctGroupCriteria(fp_levels.groups[level], effectedGroups, level); - } - - // refresh "fpGroups" object after criteria adjustment for upcoming evaluations - for (let groupsLevel in fp_levels.groups) { - fpGroups[groupsLevel] = {}; - processGroupsRecursive(fp_levels.groups[groupsLevel], groupsLevel); - } -} - -/** - * The function that corrects groups criteria according to unsupported wrappers. - * Groups should be deleted when more than half of weights (resources) cannot be obtained in the same group (whole group is invalidated). - * Groups criteria of "value" type are also recomputed to take into account unsupported resources and deleted groups/subgroups. - * - * \param rootGroup Group object of certain level from FPD configuration (in "fp_levels.wrappers" format). - * \param effectedGroups Object containing groups effected by criteria adjustment and corresponding deleted subgroups. - * \param level FPD configuration level identifier. - * - * \returns true if group should be deleted because of unsupported wrappers - * \returns false if group don't need to be deleted - */ -function correctGroupCriteria(rootGroup, effectedGroups, level) { - // if rootGroup has subgroups, then process all subgroups recursively - if (rootGroup.groups) { - for (let groupIdx in rootGroup.groups) { - // if correctGroupCriteria return true, subgroup is deleted - if (correctGroupCriteria(rootGroup.groups[groupIdx], effectedGroups, level)) { - // rootGroup is now also effected and added to "effectedGroups" with deleted subgroup - effectedGroups[rootGroup.name] = effectedGroups[rootGroup.name] || []; - effectedGroups[rootGroup.name].push(rootGroup.groups[groupIdx].name); - } - - // rootGroup is effected because at least one of its child was effected too - if (Object.keys(effectedGroups).includes(rootGroup.groups[groupIdx].name)) { - effectedGroups[rootGroup.name] = effectedGroups[rootGroup.name] || []; - } - } - - // remove deleted subgroups from original group object - if (effectedGroups[rootGroup.name]) { - rootGroup.groups = rootGroup.groups.filter((x) => (!effectedGroups[rootGroup.name].includes(x.name))) - } - } - - // if group is effected, try to correct its criteria - if (Object.keys(effectedGroups).includes(rootGroup.name)) { - // original sum of max weights of direct children - var maxOriginalWeight = 0; - - // sum of max weights after deletion of unsupported wrappers - var maxNewWeight = 0; - - // get values of "maxOriginalWeight" and "maxNewWeight" - for (let resource in fpGroups[level][rootGroup.name].items) { - // if resource is subgroup - if (fpGroups[level][rootGroup.name].items[resource] == "group") { - let maxWeight = fpGroups[level][resource].criteria.reduce((x, {weight}) => (x > weight ? x : weight), 0); - - maxOriginalWeight += maxWeight; - maxNewWeight += !effectedGroups[rootGroup.name].includes(resource) ? maxWeight : 0; - } - // if resource is property or function - else { - // specific resource object from FPD configuration of wrappers - var resourceObj; - - // array of groups where resource can be found - var groupsArray; - - // flag - resource is supported (resource found in "fp_levels.wrappers" instead of "unsupportedWrappers") - var supported = false; - - // get resource from wrappers and extract all group objects in context of parent group (rootGroup) - if (resourceObj = fp_levels.wrappers[level].filter((x) => (x.resource == resource))[0]) { - groupsArray = resourceObj.groups.filter((x) => (x.group == rootGroup.name)); - supported = true; - } - else { - resourceObj = unsupportedWrappers[level].filter((x) => (x.resource == resource))[0]; - groupsArray = resourceObj.groups.filter((x) => (x.group == rootGroup.name)); - } - - // get maximal obtainable weight for resource from every group object - for (let groupObj of groupsArray) { - if (groupObj.criteria && groupObj.criteria.length > 0) { - let maxWeight = groupObj.criteria.reduce((x, {weight}) => (x > weight ? x : weight), 0); - - maxOriginalWeight += maxWeight; - maxNewWeight += supported ? maxWeight : 0; - } - else { - maxOriginalWeight += 1; - maxNewWeight += supported ? 1 : 0; - } - } - } - } - - // adjust "value" criteria to follow their original percentage state - for (let criterion of fpGroups[level][rootGroup.name].criteria) { - if ("value" in criterion) { - // original percentage of given criterion - var percValue = (criterion.value*100) / maxOriginalWeight; - - // get new criterion value adjusted for new max weights - criterion.value = Math.round((percValue*maxNewWeight) / 100); - } - } - - // if sum of max weights of unsupported resources is higher than 50% of total original weights - // in this case, group should be deleted or manually corrected in FPD configuration to contain only supported resources - if (2*maxNewWeight < maxOriginalWeight) { - return true; - } - return false; - } -} - -/* - * -------------------------------------------------- - * GROUPS EVALUATION - * -------------------------------------------------- - */ - -/** - * The function initializing evaluation of logged API calls (fpDb) according to groups criteria (fpGroups). - * - * \param tabId Integer number representing ID of browser tab that is going to be evaluated. - * - * \returns object where "weight" property represents evaluated weight of root group and "severity" property contain severity array - */ -function evaluateGroups(tabId) { - // get url of evaluated tab - var url = availableTabs[tabId] ? availableTabs[tabId].url : ""; - var ret = { - weight: 0, - severity: [] - } - - // inaccesible or invalid url - do not evaluate - if (!url) { - return ret; - } - - // clear old evalStats - latestEvals[tabId] = latestEvals[tabId] || {}; - latestEvals[tabId].evalStats = []; - - // check if the level exists within FPD configuration, if not use default FPD configuration - level = fpdSettings.detection ? fpdSettings.detection : 0; - - // getting root group name as a start point for recursive evaluation - var rootGroup = fp_levels.groups[level] ? fp_levels.groups[level].name : undefined; - - // start recursive evaluation if all needed objects are defined - if (rootGroup && fpGroups[level] && fp_levels.wrappers[level]) { - let evalRes = evaluateGroupsCriteria(rootGroup, level, tabId)[0]; - ret.weight = evalRes.actualWeight; - if (fp_levels.groups[level].severity) { - let sortedSeverity = fp_levels.groups[level].severity.sort((x, y) => x[0] - y[0]); - ret.severity = sortedSeverity.filter((x) => (x[0] <= evalRes.actualWeightsSum)).reverse()[0]; - } - } - - return ret; -} - -/** - * The function that evaluates group criteria according to evaluation of its child items (groups/resources). - * - * \param rootGroup Group name that needs to be evaluated. - * \param level Level ID of groups and wrappers used for evaluation. - * \param tabId Integer number representing ID of evaluated browser tab. - * - * \returns Array that contains "Result" objects - * - * Result object contains following properties: - * actualWeight (Obtained weight value of group after evaluation) - * maxWeight (Maximum obtainable weight value of group) - * type (Type of group item - group/call/get/set) - * accesses (Number of accesses to specified resource - groups always 0) - */ -function evaluateGroupsCriteria(rootGroup, level, tabId) { - // result object that is delegated to parent group - var res = {}; - - // all result objects from child items of rootGroup - var scores = []; - - // array of relevant criteria based on groupTypes - var relevantCriteria = []; - - // types of criteria that are relevant for evaluating rootGroup - var groupTypes = []; - - // evaluate every item of rootGroup and add result objects to scores array - for (let item in fpGroups[level][rootGroup].items) { - if (fpGroups[level][rootGroup].items[item] == "group") { - scores = scores.concat(evaluateGroupsCriteria(item, level, tabId)); - } - else { - scores = scores.concat(evaluateResourcesCriteria(item, rootGroup ,level, tabId)); - } - } - - /* - Group type is determined by first criteria object: - - access - evaluation of child items is based on sum of accesses - - value/percentage - evaluation of child items is based on sum of weights or percentage of sum of maxWeights - */ - groupTypes = Object.keys(fpGroups[level][rootGroup].criteria[0]).includes("access") ? ["access"] : ["value", "percentage"]; - relevantCriteria = fpGroups[level][rootGroup].criteria.filter((x) => (groupTypes.some((y) => (Object.keys(x).includes(y))))); - - // now evaluating group - res.type = "group"; - - // get maximal obtainable weight for rootGroup - res.maxWeight = fpGroups[level][rootGroup].criteria.reduce((x, {weight}) => (x > weight ? x : weight), 0); - - // compute actualWeight of rootGroup with value of accesses - res.accesses = 0; - res.actualWeight = 0; - res.actualWeightsSum = 0; - if (groupTypes.length == 2) { - // groupTypes contains "value" and "percetange" - take weight of child items into account - var actualWeightsSum = scores.reduce((x, {actualWeight}) => (x + actualWeight), 0); - var maxWeightsSum = scores.reduce((x, {maxWeight}) => (x + maxWeight), 0); - - // recalculate percentage values of relevant criteria to exact values - var relativeCriteria = []; - for (let criteriaObj of relevantCriteria) { - if (criteriaObj.value) { - relativeCriteria.push(criteriaObj); - } - else { - relativeCriteria.push({ - value: Math.round(maxWeightsSum * (criteriaObj.percentage/100)), - weight: criteriaObj.weight - }); - } - } - - // sort relevant and relative criteria by value - relativeCriteria.sort((x, y) => (x.value - y.value)); - - // filter criteria and take weight of highest achieved criteria - var filteredCriteria = relativeCriteria.filter((x) => (x.value <= actualWeightsSum)).reverse()[0]; - res.actualWeight = filteredCriteria ? filteredCriteria.weight : 0; - res.actualWeightsSum = actualWeightsSum; - } - else { - // groupTypes contains "access" - take access of child items into account - var accessesSum = scores.reduce((x, {accesses}) => (x + accesses), 0); - - // sort relevant criteria - relevantCriteria.sort((x, y) => (x.access - y.access)); - - // filter criteria and take weight of highest achieved criteria - var filteredCriteria = relevantCriteria.filter((x) => (x.access <= accessesSum)).reverse()[0]; - res.actualWeight = filteredCriteria ? filteredCriteria.weight : 0; - res.actualWeightsSum = accessesSum; - } - - // update group statistics in latestEvals - latestEvals[tabId].evalStats.push({ - title: rootGroup, - type: "group", - weight: res.actualWeight, - sum: res.actualWeightsSum - }); - - return [res]; -} - -/** - * The function that evaluates resource (wrapper) criteria according to API calls logs. - * - * \param resource Full name of resource/wrapper. - * \param groupName Name of direct parent group. - * \param level Level ID of groups and wrappers used for evaluation. - * \param tabId Integer number representing ID of evaluated browser tab. - * - * \returns Array that contains "Result" objects - * - * Result object contains following properties (all of them in context of parent group): - * actualWeight (Obtained weight value of resource after evaluation) - * maxWeight (Maximum obtainable weight value of resource) - * type (Type of resource - call/get/set) - * accesses (Number of accesses to specified resource) - */ -function evaluateResourcesCriteria(resource, groupName, level, tabId) { - // all result objects for given resource (set/get/call) - var scores = []; - - // get resource from wrappers and extract all group objects in context of parent group (groupName) - var resourceObj = fp_levels.wrappers[level].filter((x) => (x.resource == resource))[0]; - var groupsArray = resourceObj.groups.filter((x) => (x.group == groupName)); - - // evaluate every retrieved group object - for (let groupObj of groupsArray) { - // initialize new result object - var res = {} - - // get resource type from group object (get/set/call) - if (resourceObj.type == "property") { - if (groupObj.property) { - res.type = groupObj.property - } - else { - // property not defined => implicit get - res.type = "get"; - } - } - else { - res.type = "call" - } - - // get maximal obtainable weight for resource from group object - if (groupObj.criteria && groupObj.criteria.length > 0) { - res.maxWeight = groupObj.criteria.reduce((x, {weight}) => (x > weight ? x : weight), 0); - } - else { - // criteria not defined => set implicit criteria - res.maxWeight = 1; - groupObj.criteria = [{value: 1, weight: 1}]; - } - - // compute actualWeight of resource in context of parent group from logs located in fpDb object - res.actualWeight = 0; - if (fpDb[tabId] && fpDb[tabId][resource] && fpDb[tabId][resource][res.type]) { - let record = fpDb[tabId][resource][res.type]; - // logs for given resource and type exist - if (groupObj.arguments) { - // if arguments logging is defined, evaluate resource accordingly - - if (groupObj.arguments == "diff") { - // "diff" - accesses depend on number of different arguments - res.accesses = Object.keys(record.args).length; - } - else if (groupObj.arguments == "same") { - // "same" - accesses depend on maximum number of same arguments calls - res.accesses = Object.values(record.args).reduce((x, y) => x > y ? x : y); - } - else { - // try to interpret arguments as regular expression and take accesses that match this expression - try { - let re = new RegExp(...groupObj.arguments); - res.accesses = Object.keys(record.args).reduce( - (x, y) => (re.test(y) ? x + record.args[y] : x), 0); - } catch { - res.accesses = 0; - } - } - } - else { - // arguments logging not defined, simply take total accesses to resource - res.accesses = record.total - } - - // sort criteria by value - groupObj.criteria.sort((x, y) => (x.value - y.value)); - - // filter criteria and take weight of highest achieved criteria - var filteredCriteria = groupObj.criteria.filter((x) => (x.value <= res.accesses)).reverse()[0]; - res.actualWeight = filteredCriteria ? filteredCriteria.weight : 0; - } - else { - // no logs of given criteria - res.accesses = 0; - } - scores.push(res) - } - - // update resource statistics in latestEvals - scores.forEach(function (res) { - latestEvals[tabId].evalStats.push({ - title: resource, - type: "resource", - resource: res.type, - group: groupName, - weight: res.actualWeight, - accesses: res.accesses - }); - }); - - return scores; -} - -/* - * -------------------------------------------------- - * EVENT HANDLERS - * -------------------------------------------------- - */ - -/** - * Callback function that parses and handles messages recieved by FPD module. - * Messages may contain wrappers logging data that are stored into fpDb object. - * Also listen for popup messages to update FPD state and whitelist. - * - * \param message Receives full message. - * \param sender Sender of the message. - */ -async function fpdCommonMessageListener(record, sender) { - if (!record) return; - await fpdGlobals; - try { - switch (record.purpose) { - case "fp-detection": - // check objects existance => if do not exist, create new one - fpDb[sender.tab.id] = fpDb[sender.tab.id] || {}; - fpDb[sender.tab.id][record.resource] = fpDb[sender.tab.id][record.resource] || {}; - fpDb[sender.tab.id][record.resource][record.type] = fpDb[sender.tab.id][record.resource][record.type] || {}; - - // object that contains access counters - const fpCounterObj = fpDb[sender.tab.id][record.resource][record.type]; - const argsStr = record.args.join(); - fpCounterObj["args"] = fpCounterObj["args"] || {}; - - // increase counter for accessed arguments - fpCounterObj["args"][argsStr] = fpCounterObj["args"][argsStr] || 0; - fpCounterObj["args"][argsStr] += 1; - - // increase counter for total accesses - fpCounterObj["total"] = fpCounterObj["total"] || 0; - fpCounterObj["total"] += 1; - fpdObservable.update(record.resource, sender.tab.id, record.type, fpCounterObj["total"]); - - // Track callers - fpCounterObj["callers"] = fpCounterObj["callers"] || {}; - if (record.stack !== undefined) { - fpCounterObj["callers"][record.stack] = true; - } - break; - case "fpd-state-change": - browser.storage.sync.get(["fpDetectionOn"]).then(function(result) { - fpDetectionOn = result.fpDetectionOn; - }); - break; - case "fpd-whitelist-check": { - // answer to popup, when asking whether is the site whitelisted - return Promise.resolve(isFpdWhitelisted(record.url)); - } - case "add-fpd-whitelist": - // obtain current hostname and whitelist it - var currentHost = record.url; - fpdWhitelist[currentHost] = true; - browser.storage.sync.set({"fpdWhitelist": fpdWhitelist}); - break; - case "remove-fpd-whitelist": - // obtain current hostname and remove it form whitelist - var currentHost = record.url; - delete fpdWhitelist[currentHost]; - browser.storage.sync.set({"fpdWhitelist": fpdWhitelist}); - break; - case "update-fpd-whitelist": - // update current fpdWhitelist from storage - browser.storage.sync.get(["fpdWhitelist"]).then(function(result) { - fpdWhitelist = result.fpdWhitelist; - }); - break; - case "fpd-get-report-data": { - // get current FPD level for evaluated tab - if (record.tabId) { - level = fpdSettings.detection ? fpdSettings.detection : 0; - return Promise.resolve({ - tabObj: availableTabs[record.tabId], - groups: {root: fp_levels.groups[level].name, all: fpGroups[level]}, - fpDb: fpDb[record.tabId], - latestEvals: latestEvals[record.tabId], - exceptionWrappers: exceptionWrappers - }); - } - } - case "fpd-create-report": - // create FPD report for the tab - if (record.tabId) { - generateFpdReport(record.tabId); - } - break; - case "fpd-fetch-severity": { - // send severity value of the latest evaluation - let severity = []; - if (record.tabId && isFpdOn(record.tabId) && latestEvals[record.tabId]) { - severity = latestEvals[record.tabId].severity; - } - return Promise.resolve(severity); - } - case "fpd-get-settings": { - // send settings definition and current values - return Promise.resolve({ - def: FPD_DEF_SETTINGS, - val: fpdSettings - }); - } - case "fpd-set-settings": - // update current settings - fpdSettings[record.id] = record.value; - browser.storage.sync.set({"fpdSettings": fpdSettings}); - break; - case "fpd-load-config": - // load current configuration - fpdLoadConfiguration(); - break; - case "fpd-clear-storage": - // clear browser storage for the origin - clearStorageFacilities(record.url); - break; - case "fpd-fetch-hits": { - let {tabId} = record; - // filter by tabId; - let hits = Object.create(null); - if (fpDb[tabId]) { - for ([resource, recordObj] of Object.entries(fpDb[tabId])) { - let total = 0; - for (let stat of Object.values(recordObj)) { // by type - total += stat.total; - } - let group_name = wrapping_groups.wrapper_map[resource]; - if (group_name) { - get_or_create(hits, group_name, 0); - hits[group_name] += total; - } - } - } - return Promise.resolve(hits); - } - case "fpd-track-callers": { - let tabId = Number(record.tabId); - fpd_track_callers_tab = tabId; - return browser.tabs.reload(tabId); - } - case "fpd-track-callers-stop": { - fpd_track_callers_tab = undefined; - } - } - } catch (e) { - console.error(e, "Error processing", record); - throw e; - } finally { - CachedStorage.save(); - } -} - -/** - * The function that makes decisions about requests blocking. If blocking enabled, also clear browsing data. - * - * \param requestDetails Details about the request. - * - * \returns Object containing key "cancel" with value true if request is blocked, otherwise with value false - */ -function fpdRequestCancel(requestDetails) { - - // chrome fires onBeforeRequest event before tabs.onUpdated => refreshDb won't happen in time - // need to refreshDb when main_frame request occur, otherwise also user's requests will be blocked - if (requestDetails.type == "main_frame") { - refreshDb(requestDetails.tabId); - } - - return evaluateFingerprinting(requestDetails.tabId) -} - -/* - * -------------------------------------------------- - * MISCELLANEOUS - * -------------------------------------------------- - */ - -/** - * The function that loads module configuration from sync storage. - */ -async function fpdLoadConfiguration() { - ({fpDetectionOn, fpdWhitelist, fpdSettings} = await browser.storage.sync.get({ - fpDetectionOn: false, - fpdWhitelist: {}, - fpdSettings: {}, - })); -} - -/** - * The function transforming recursive groups definition into indexed fpGroups object. - * - * \param input Group object from loaded JSON format. - * \param groupsLevel Level ID of groups to process. - */ -function processGroupsRecursive(input, groupsLevel) { - fpGroups[groupsLevel][input.name] = {}; - fpGroups[groupsLevel][input.name]["description"] = input["description"] || ""; - - // criteria missing => set implicit criteria - fpGroups[groupsLevel][input.name]["criteria"] = input["criteria"] || [{value:1, weight:1}]; - fpGroups[groupsLevel][input.name]["items"] = {}; - - // retrieve associated resources (wrappers) for input group - for (let resourceObj of fp_levels.wrappers[groupsLevel]) { - if (resourceObj.groups.filter((x) => (x.group == input.name)).length > 0) { - fpGroups[groupsLevel][input.name]["items"][resourceObj.resource] = resourceObj.type; - } - } - - // retrieve associated sub-groups for given input group and process them recursively - if (input["groups"]) { - for (let groupObj of input["groups"]) { - fpGroups[groupsLevel][input.name]["items"][groupObj.name] = "group"; - processGroupsRecursive(groupObj, groupsLevel); - } - } -} - -/** - * Check if the hostname or any of it's domains is whitelisted. - * - * \param hostname Any hostname (subdomains allowed). - * - * \returns TRUE when domain (or subdomain) is whitelisted, FALSE otherwise. - */ -function isFpdWhitelisted(hostname) { - var domains = extractSubDomains(hostname); - for (var domain of domains) { - if (fpdWhitelist[domain] != undefined) { - return true; - } - } - return false; -} - -/** - * The function that returns FPD setting for given url. - * - * \param tabId Tab identifier for which FPD setting is needed. - * - * \returns Boolean value TRUE if FPD is on, otherwise FALSE. - */ -function isFpdOn(tabId) { - if (!availableTabs[tabId]) { - return false; - } - let url = getEffectiveDomain(availableTabs[tabId].url); - if (fpDetectionOn && !isFpdWhitelisted(url)) { - return true; - } - return false; -} - -/** - * The function that creates notification and informs user about fingerprinting activity. - * - * \param tabId Integer number representing ID of suspicious browser tab. - */ -function notifyFingerprintBlocking(tabId) { - let msg; - if (fpdSettings.behavior > 0) { - msg = browser.i18n.getMessage("fpdBlockingSubsequent"); - } - if (fpdSettings.behavior == 0) { - msg = browser.i18n.getMessage("fpdClickNotificationDetails"); - } - - browser.notifications.create("fpd-" + tabId, { - type: "basic", - iconUrl: browser.runtime.getURL("img/icon-48.png"), - title: browser.i18n.getMessage("fpdNotificationTitle"), - message: browser.i18n.getMessage("fpdNotificationMessage", - [ - msg, - availableTabs[tabId].title.slice(0, 30), - getEffectiveDomain(availableTabs[tabId].url) - ]) - }); - setTimeout(() => { - browser.notifications.clear("fpd-" + tabId); - }, 6000); -} - -/** - * The function that generates a report about fingerprinting evaluation in a separate window. - * - * \param tabId Integer number representing ID of evaluated browser tab. - */ -function generateFpdReport(tabId) { - // open popup window containing FPD report - browser.windows.create({ - url: "/fp_report.html?id=" + tabId, - type: "popup", - height: 600, - width: 800 - }); -} - -/** - * Clear all stored logs for a tab. - * - * \param tabId Integer number representing ID of browser tab. - */ -function refreshDb(tabId) { - if (fpDb[tabId]) { - delete fpDb[tabId]; - } - if (latestEvals[tabId]) { - delete latestEvals[tabId]; - } - if (availableTabs[tabId] && availableTabs[tabId].timerId) { - clearTimeout(availableTabs[tabId].timerId); - } - CachedStorage.save(); -} - -/** - * The function that periodically starts fingerprinting evaluation without the need for a request. - * Delay is increased exponentially and doubles in every call. - * - * \param tabId Integer number representing ID of browser tab. - * \param delay Initial value of a delay in milliseconds. - */ -function periodicEvaluation(tabId, delay) { - evaluateFingerprinting(tabId); - if (availableTabs[tabId]) { - // limit max delay to 90s per tab - availableTabs[tabId].timerId = setTimeout(periodicEvaluation, delay, tabId, delay > 90000 ? delay : delay*2); - } -} - -/** - * The function that starts evaluation process and if fingerprinting is detected, it reacts accordingly. - * - * \param tabId Integer number representing ID of evaluated browser tab. - * - * \returns Object containing key "cancel" with value true if request is blocked, otherwise with value false - */ -function evaluateFingerprinting(tabId) { - // if FPD enabled for the site continue with FP evaluation - if (isFpdOn(tabId)) { - - // start FP evaluation process and store result array - var evalResult = evaluateGroups(tabId); - - // store latest severity value after evaluation of given tab - if (evalResult.severity) { - latestEvals[tabId].severity = evalResult.severity; - } - - // modify color of action icon - if (evalResult.severity[2]) { - actionApi.setBadgeBackgroundColor({color: evalResult.severity[2], tabId: tabId}); - } - - // if actualWeight of root group is higher than 0 => reactive phase and applying measures - if (evalResult.weight) { - - // create notification for user if behavior is "notification" or higher (only once for every tab load) - if (fpdSettings.notifications == 1 && !stopNotifyFlag[tabId]) { - notifyFingerprintBlocking(tabId); - stopNotifyFlag[tabId] = true; - CachedStorage.save(); - } - - // block request and clear cache data only if "blocking" behavior is set - if (fpdSettings.behavior > 0) { - - // clear storages (using content script) for every frame in this tab - if (tabId >= 0) { - browser.tabs.sendMessage(tabId, { - cleanStorage: true, - ignoreWorkaround: fpdSettings.behavior > 1 - }); - } - - return { - cancel: true - }; - } - } - } - - return { - cancel: false - }; -} - -/** - * The function that clears all supported browser storage mechanisms for a given origin. - * - * \param url URL address of the origin. - */ -function clearStorageFacilities(url) { - // clear all browsing data for origin of tab url to prevent fingerprint caching - if (url && fpdSettings.behavior > 1) { - try { - // "origins" key only supported by Chromium browsers - browser.browsingData.remove({ - "origins": [new URL(url).origin] - }, { - "appcache": true, - "cache": true, - "cacheStorage": true, - "cookies": true, - "fileSystems": true, - "indexedDB": true, - "localStorage": true, - "serviceWorkers": true, - "webSQL": true - }); - } - catch (e) { - // need to use "hostnames" key for Firefox - if (e.message.includes("origins")) { - browser.browsingData.remove({ - "hostnames": extractSubDomains(new URL(url).hostname).filter((x) => (x.includes("."))) - }, { - "cache": true, - "cookies": true, - "indexedDB": true, - "localStorage": true, - "serviceWorkers": true - }); - } - else { - throw e; - } - } - } -} - -/** - * The function splitting resource string into path and name. - * For example: "window.navigator.userAgent" => path: "window.navigator", name: "userAgent" - * - * \param wrappers text String representing full name of resource. - * - * \returns Object consisting of two properties (path, name) for given resource. - */ -function split_resource(text) { - var index = text.lastIndexOf('.'); - return { - path: text.slice(0, index), - name: text.slice(index + 1) - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/fp_levels.js b/data/extensions/jsr@javascriptrestrictor/fp_levels.js deleted file mode 100644 index 91f9aa9..0000000 --- a/data/extensions/jsr@javascriptrestrictor/fp_levels.js +++ /dev/null @@ -1,112 +0,0 @@ -/** \file - * \brief FPD module initial configuration - * - * \author Copyright (C) 2021 Marek Salon - * \author Copyright (C) 2023 Martin Zmitko - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * - * \brief This file is part of Fingerprint Detector (FPD) and contains the function for loading configuration files. - * - * \ingroup FPD - */ - -//DEF_FPD_FILES_S -var fp_config_files = ["groups-lvl_0", "groups-lvl_1", "wrappers-lvl_0_1"] -//DEF_FPD_FILES_E - -/** - * Object containing parsed input from JSON configuration files of FPD module. - */ -var fp_levels = {}; - -/// \cond (Exclude this section from the doxygen documentation. If this section is not excluded, it is documented as a separate function.) -{ - // parse input files into fp_levels for each level, generate wrapping code and initialize FPD module - let loadFpdConfig = async () => { - for (let file of fp_config_files) { - try { - let config = JSON.parse(await readFile(browser.runtime.getURL(`fp_config/${file}.json`))); - let file_splitted = file.split("-"); - let file_levels = file_splitted[1].split("_").filter(x => x != 'lvl'); - fp_levels[file_splitted[0]] = fp_levels[file_splitted[0]] || {}; - for (let level of file_levels) { - fp_levels[file_splitted[0]][level] = config; - } - } - catch (e) { - console.error(e); - } - } - - // merge duplicit entries of the same resource to be wrapped only once - let mergeWrappers = (sameResources) => { - let mergeGroups = () => { - let accArray = []; - for (let resource of sameResources) { - accArray.push(...resource.groups); - } - return accArray; - } - - return { - resource: sameResources[0].resource, - type: sameResources[0].type, - groups: mergeGroups() - } - } - - fp_levels.page_wrappers = []; - for (let level in fp_levels.wrappers) { - let tmpWrappers = {}; - for (let wrapper of fp_levels.wrappers[level]) { - if (!Object.keys(tmpWrappers).includes(wrapper.resource)) { - let sameResources = fp_levels.wrappers[level].filter(x => x.resource == wrapper.resource); - tmpWrappers[wrapper.resource] = mergeWrappers(sameResources); - } - } - fp_levels.wrappers[level] = Object.values(tmpWrappers); - - // Save FPD wrappers for page configuration - fp_levels.page_wrappers[level] = fp_levels.wrappers[level].map(w => [ - // Wrapped object name - w.resource, - // Wrapped object type (0 - function, 1 - property) - w.type === "property" ? 1 : 0, - // Array specifying property types to wrap (getter, setter or both) - Array.from(new Set(w.groups.map(x => x.property != undefined ? x.property : "get"))), - // Specify if arguments should be sent for evaulation - w.groups.some(group => "arguments" in group) ? 1 : 0, - ]); - } - - // initialize FPD module (background script and event listeners) - initFpd(); - - fp_levels_initialised = true; - if (levels_initialised) { // Wait for both levels_initialised and fp_levels_initialised - var orig_levels_updated_callbacks = levels_updated_callbacks; - levels_updated_callbacks = []; - orig_levels_updated_callbacks.forEach((it) => it()); - await updateUserScripts(); - } - } - loadFpdConfig(); -} -/// \endcond diff --git a/data/extensions/jsr@javascriptrestrictor/fp_report.css b/data/extensions/jsr@javascriptrestrictor/fp_report.css deleted file mode 100644 index 945ab7b..0000000 --- a/data/extensions/jsr@javascriptrestrictor/fp_report.css +++ /dev/null @@ -1,121 +0,0 @@ -/* - - * SPDX-FileCopyrightText: 2022 2021 Marek Saloň - * - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -body { - padding: 1em; - margin: 1em; - min-width: 38em; - font-family: "Segoe UI", Tahoma, sans-serif; - font-size: 75%; -} - -header { - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - font-size: large; - margin-bottom: 0.5em; - border-bottom: 2px solid #aaa; -} - -header > div { - min-width: 0; -} - -h4 { - color: var(--text-color); -} - -#logo { - width: 48px; - padding-left: 50px; -} - -#titletext { - display: block; - font-size: large; - text-align: center; - margin: 0.2em 0px; - text-align: left; - color: var(--title-color); -} - -.fpd-group .fpd-group { - padding-left: 2em; - border-left: 2px solid #aaa; -} - -.fpd-group > h2 { - display: inline-block; - color: var(--title-color); - margin: 0px 0px; - -webkit-transition: color 0.5s; - -moz-transition: color 0.5s; - -ms-transition: color 0.5s; - -o-transition: color 0.5s; - transition: color 0.5s; -} - -.fpd-group > h2.clickable:hover { - cursor: pointer; - color: var(--text-color); -} - -.dot { - color: var(--title-color); -} - -.hidden { - display: none; -} - -.no-access { - display: none; -} - -#pageFavicon { - height: 18px; - margin-right: 2px; -} - -#pageFavicon:not([src^="data:"]) { - display: none -} - -#page-container { - white-space: nowrap; -} - -#report-url { - display: inline-block; - height: 20px; - max-width: 99%; - white-space: nowrap; - overflow: hidden !important; - text-overflow: ellipsis; - margin: 0px; - color: var(--text-color); -} - -.sticky-button { - float: right; - position: sticky; - top: 10px; - cursor: pointer; - margin-left: 0.5em; -} - -.description { - font-size: x-small; -} - -#unhideAll { - cursor: pointer; - color: var(--title-color); - text-decoration: underline; -} diff --git a/data/extensions/jsr@javascriptrestrictor/fp_report.html b/data/extensions/jsr@javascriptrestrictor/fp_report.html deleted file mode 100644 index a593e9e..0000000 --- a/data/extensions/jsr@javascriptrestrictor/fp_report.html +++ /dev/null @@ -1,61 +0,0 @@ -<!DOCTYPE html> -<!-- -SPDX-FileCopyrightText: 2022 2021 Marek Saloň - -SPDX-License-Identifier: GPL-3.0-or-later ---> -<html> -<head> - <meta charset="utf-8"> - <link rel="stylesheet" type="text/css" href="common.css"> - <link rel="stylesheet" type="text/css" href="fp_report.css"> - <script src="/nscl/lib/browser-polyfill.js" type="text/javascript"></script> - <script src="i18n_translate_dom.js" type="text/javascript" defer></script> - <script src="fp_report.js" type="text/javascript" defer></script> - <title data-localize="FPDReportTitle">JShelter FPD report</title> -</head> -<body> - - <header> - <div> - <h3 id="titletext" data-localize="FPDReportTitle"> - FingerPrint Detector Report - </h3> - <p class="description hidden" data-localize="FPDReportDescriptionPara1"> - This report lists all JavaScript API endpoints that were accessed by the web page and are considered critical in terms of browser fingerprinting. - Fingerprint Detector (FPD) uses this data to decide whether the page is collecting a browser fingerprint. - </p> - <p class="description hidden" data-localize="FPDReportDescriptionPara2" htmltranslation> - FPD processes API calls in groups based on their semantic properties. This window shows the detected number of API calls on the visited page. - The default view shows only groups accessed at least once. This way the report can be empty if the page did not access any fingerprintable API. - If you want to see all APIs monitored by FPD, click <span id="unhideAll">here</span>. - </p> - <p class="description hidden" data-localize="FPDReportDescriptionPara3" htmltranslation> - You can export full FPD Report that contains all the data collected and used by FPD to evaluate the page. This comprehensive report - shows the current weights assigned to the groups/endpoints (<i>fpd_evaluation_statistics</i>). It also lists all accessed API endpoints - with corresponding arguments (<i>fpd_access_logs</i>). - </p> - <div id="page-container"> - <img id="pageFavicon"> - <h5 id="report-url"></h5> - </div> - </div> - <img class="logo" id="logo" src="../img/icon-128.png" alt="JShelter logo" /> - </header> - - <div id="fpd-report-container"> - <button id="showBtn" class="sticky-button" data-localize="FPDReportShowDetails">Show details</button> - <button id="hideBtn" class="sticky-button hidden" data-localize="FPDReportHideDetails">Hide details</button> - <button id="exportBtn" class="sticky-button" data-localize="FPDReportExportJSON"> - Export full FPD Report as JSON - </button> - <button id="trackCallersBtn" class="sticky-button" data-localize="FPDReportTrackCallers">Track callers</button> - <button id="forgetCurrentBtn" class="sticky-button hidden" data-localize="FPDReportForgetTraces">Forget</button> - <button id="updateReportBtn" class="sticky-button hidden" data-localize="FPDReportRefresh">Update</button> - <span class="alert" id="fpdError"></span> - <div id="fpd-report"> - </div> - </div> -</body> - -</html> diff --git a/data/extensions/jsr@javascriptrestrictor/fp_report.js b/data/extensions/jsr@javascriptrestrictor/fp_report.js deleted file mode 100644 index f9f44e3..0000000 --- a/data/extensions/jsr@javascriptrestrictor/fp_report.js +++ /dev/null @@ -1,292 +0,0 @@ -/** \file - * \brief Functions that summarize fingerprints and generate FPD report - * \ingroup FPD - * - * \author Copyright (C) 2022 Marek Salon - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -let hiddenTraces = {}; - -/** - * Event listener that listens for a load of FPD report page. If the page is loaded, fetch FPD data from background. - * - * \param callback Function that initializes FPD report creation from fetched data. - */ -window.addEventListener('load', () => { - browser.runtime.sendMessage({ - purpose: "fpd-get-report-data", - tabId: new URLSearchParams(window.location.search).get("id") - }).then((result) => { - createReport(result); - }); -}); - -/** - * The function that populates FPD report page with data from the latest evaluation and hooks up listeners. - * - * \param data Information about latest fingerprinting evaluation consisting of all essential FPD objects. - */ -function createReport(data) { - var {tabObj, groups, latestEvals, fpDb, exceptionWrappers} = data; - var reportContainer = document.getElementById("fpd-report-container"); - if (!tabObj || !groups || !groups.root || !groups.all || !fpDb || !latestEvals) { - report.innerHTML =`<div class="alert">${browser.i18n.getMessage("FPDReportMissingData")}</div>`; - return; - } - - // parse latestEvals to create more useful representation for FPD report generation - var processedEvals = {}; - for (let item of latestEvals.evalStats) { - processedEvals[item.title] = processedEvals[item.title] || {}; - processedEvals[item.title].type = item.type; - let total = 0; - if (fpDb[item.title]) { - for (let stat of Object.values(fpDb[item.title])) { - total += stat.total; - } - } - processedEvals[item.title].total = total; - } - - // add page URL and FavIcon to header section of the report - if (tabObj) { - let urlObj = new URL(tabObj.url); - var url = urlObj.hostname + (urlObj.pathname.length > 1 ? urlObj.pathname : ""); - document.getElementById("report-url").innerHTML = url; - let img = document.getElementById("pageFavicon"); - img.src = tabObj.favIconUrl; - } - - var html = ""; - - // generate html code for evaluated group - let generateGroup = (group) => { - if (processedEvals[group]) { - if (groups.all[group].description) { - html += "<div id=\"" + group + "\" class=\"fpd-group access\">"; - html += "<h2>" + group + "</h2>"; - html += `<button class="help" id="expand${group}" >⤵</button>`; - html += "<section>"; - html += "<p>" + groups.all[group].description + "</p>"; - } - for (let [item, type] of Object.entries(groups.all[group].items)) { - if (type == "group") { - generateGroup(item); - } - else { - generateResource(item) - } - } - if (groups.all[group].description) { - html += "</section></div>"; - } - } - } - - // generate html code for evaluated resource (get,set,call) - let generateResource = (resource) => { - if (processedEvals[resource]) { - let callers = ""; - if (fpDb[resource]) { - for (let t of Object.values(fpDb[resource])) { - let traces = Object.keys(t.callers); - for (trace of traces) { - if (trace !== "" && !(trace in hiddenTraces)) { - callers += "<p>" + trace.replace(/\n/g, '<br>') + "</p>"; - } - } - } - } - let accessRaw = processedEvals[resource].total; - let accessCount = accessRaw >= 1000 ? "1000+" : accessRaw; - html += `<div class="details ${accessRaw > 0 ? "access" : "no-access"}"><h4><span class="dot">-</span> ` + - `${resource} (${exceptionWrappers.includes(resource) ? "n/a" : accessCount})</h4>\n${callers}</div>`; - } - } - - // start generating FPD report from the first group (root group) - generateGroup(groups.root); - var report = document.getElementById("fpd-report"); - report.innerHTML = html; - - // process generated document - let groupElements = document.querySelectorAll(".fpd-group.access"); - for (let i = groupElements.length; i > 0; i--) { - // remove duplicit entries from groups - let duplicitArray = []; - let elements = groupElements[i-1].querySelectorAll(":scope > section > div.details > h4"); - elements.forEach((d) => { - if (duplicitArray.indexOf(d.innerHTML) > -1) { - d.remove(); - } - else { - duplicitArray.push(d.innerHTML); - } - }); - - // hide groups with no relevant entries - if (!document.querySelectorAll(`#${groupElements[i-1].id} > section > .access`).length) { - groupElements[i-1].classList.replace("access", "no-access"); - } - } - - // function that enables to show accessed resources of the group - function toggleResources(event) { - let parent = event.target.parentElement; - for (let i = 0; i < parent.children.length; i++) { - let child = parent.children[i]; - if (child.tagName == "SECTION") { - child.classList.toggle("hidden"); - } - } - } - - // make group name clickable only if it makes sense - groups with resources - function makeGroupExpansionsClickable() { - for (let element of document.querySelectorAll(".fpd-group")) { - let button; - - for (let i = 0; i < element.children.length; i++) { - let child = element.children[i]; - if (child.tagName == "BUTTON") { - button = child; - } - } - - if (button) { - button.classList.add("clickable"); - button.addEventListener("click", toggleResources); - } - } - } - makeGroupExpansionsClickable(); - - // show resources for every group in FPD report - let showAll = (event) => { - for (let element of document.querySelectorAll(".fpd-group div.details")) { - element.classList.remove("hidden"); - } - showBtn.classList.add("hidden"); - hideBtn.classList.remove("hidden"); - } - - // hide resources for every group in FPD report - let hideDetails = (event) => { - for (let element of document.querySelectorAll(".fpd-group div.details")) { - element.classList.add("hidden"); - } - showBtn.classList.remove("hidden"); - hideBtn.classList.add("hidden"); - } - hideDetails(); - - // refresh data in the report - function refreshReport() { - browser.runtime.sendMessage({ - purpose: "fpd-get-report-data", - tabId: tabId - }).then((result) => { - createReport(result); - showAll(); - }); - browser.runtime.sendMessage({purpose: "fpd-track-callers-stop"}); - document.getElementById("updateReportBtn").classList.remove("hidden"); - document.getElementById("forgetCurrentBtn").classList.remove("hidden"); - let trackCallersBtn = document.getElementById("trackCallersBtn"); - trackCallersBtn.innerText = browser.i18n.getMessage("FPDReportTrackCallersRestart"); - trackCallersBtn.classList.remove("hidden"); - } - - // Reload the report with data on the identity of the calling scripts - function trackCallers() { - tabId = new URLSearchParams(window.location.search).get("id"); - function onReloaded() { - setTimeout(refreshReport, 5000); - report.innerHTML = browser.i18n.getMessage("FPDReportTrackCallersWaiting"); - document.getElementById("trackCallersBtn").classList.add("hidden"); - document.getElementById("updateReportBtn").classList.add("hidden"); - document.getElementById("forgetCurrentBtn").classList.add("hidden"); - } - function onError(error) { - document.getElementById("fpdError").innerHTML = browser.i18n.getMessage("FPDReportTrackCallersFailed", error); - browser.runtime.sendMessage({purpose: "fpd-track-callers-stop"}); - } - browser.runtime.sendMessage({ - purpose: "fpd-track-callers", - tabId: tabId - }).then(onReloaded, onError); - } - - function updateReport() { - } - - // show all groups/resources even if not accessed - let showNotAccessed = () => { - for (let element of document.querySelectorAll(".no-access")) { - element.classList.remove("no-access"); - } - makeGroupExpansionsClickable(); - } - - function forgetTraces() { - for (resource of Object.values(fpDb)) { - for (type of Object.values(resource)) { - for (trace of Object.keys(type.callers)) { - hiddenTraces[trace] = true; - } - } - } - createReport(data); - } - - // create on-site JSON representation of FPD evaluation data and download it - function exportReport(filename) { - let element = document.createElement("a"); - let obj = { - fpd_evaluation_statistics: latestEvals.evalStats, - fpd_access_logs: fpDb - } - element.setAttribute("href", "data:text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(obj))); - element.setAttribute("download", filename); - element.style.display = "none"; - document.body.appendChild(element); - element.click(); - document.body.removeChild(element); - } - - document.getElementById("showBtn").onclick = showAll; - document.getElementById("hideBtn").onclick = hideDetails; - document.getElementById("exportBtn").onclick = exportReport.bind(null, `fpd_report_${url}.json`); - document.getElementById("trackCallersBtn").onclick = trackCallers; - document.getElementById("forgetCurrentBtn").onclick = forgetTraces; - document.getElementById("updateReportBtn").onclick = refreshReport; - document.getElementById("unhideAll").onclick = showNotAccessed; -} - -// show description/help for the report -let showDescription = () => { - for (let element of document.querySelectorAll(".description")) { - element.classList.toggle("hidden"); - } -} - -window.addEventListener("DOMContentLoaded", function() { - document.getElementById("titletext").innerHTML += '<button id="help" class="help">?</button>'; - document.getElementById("help").addEventListener("click", showDescription); -}); diff --git a/data/extensions/jsr@javascriptrestrictor/helpers.js b/data/extensions/jsr@javascriptrestrictor/helpers.js deleted file mode 100644 index 9e184f2..0000000 --- a/data/extensions/jsr@javascriptrestrictor/helpers.js +++ /dev/null @@ -1,303 +0,0 @@ -/** \file - * \brief Simple functions that can be used by the extension - * - * \author Copyright (C) 2020 Libor Polcak - * \author Copyright (C) 2021 Matus Svancar - * \author Copyright (C) 2022 Marek Salon - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -function escape(str) { - var map = { - '"': '"', - "'": ''', - '&': '&', - '<': '<', - '>': '>' - }; - return str.replace(/["'&<>]/g, (c) => map[c]); -} - -/** - * Get a property of an object, create it if it does not exist - */ -function get_or_create(parent, child, default_value) { - let obj = parent[child] || default_value; - parent[child] = obj; - return obj; -} - -/** - * Transform byte to Hex value - */ -function byteToHex(byte) { - return ('0' + byte.toString(16)).slice(-2); -} - -/** - * Generate random 32-bit number. - */ -function gen_random32() { - var array = new Uint32Array(1); - self.crypto.getRandomValues(array); - return array[0]; -} - -/** - * Generate random 64-bit number. - */ -function gen_random64() { - var array = new Uint32Array(2); - self.crypto.getRandomValues(array); - return BigInt("" + array[0] + array[1]); -} - -/** - * Generate random hash - default length is 32 bytes. - */ -function generateId(len = 32) { - var arr = new Uint8Array(len / 2); - self.crypto.getRandomValues(arr); - return Array.from(arr, byteToHex).join(""); -} - -/** - * Parses given URL and converts it to a string that can be used to obtain JShelter settings for the - * page. For example, removes "www." at the beginning of the given hostname. - * - * www.fit.vutbr.cz -> fit.vutbr.cz - * merlin.fit.vutbr.cz -> merlin.fit.vutbr.cz - * example.co.uk -> example.co.uk - */ -function getEffectiveDomain(url) { - let u = new URL(url); - if (u.protocol === "file:") { - return u.protocol; - } - return String(u.hostname).replace(/^www\./,''); -} - -/** - * Parses given URL and converts to eTLD+1. - * page. - * - * www.fit.vutbr.cz -> vutbr.cz - * example.co.uk -> example.co.uk - */ -function getSiteForURL(url) { - try { - let u = new URL(url); - if (u.hostname) { - return tld.getDomain(u.hostname); - } - else if (u.protocol) { - return u.protocol; - } - } catch (e) { - // intentionally empty - } - return ""; -} - -/** - * \brief shifts number bits to pick new number - * \param v BigInt number to shift - */ -function lfsr_next(v) { - return BigInt.asUintN(64, ((v >> 1n) | (((v << 62n) ^ (v << 61n)) & (~(~0n << 63n) << 62n)))); -} -/** - * \brief generates pseudorandom string based on domain key - * \param length Number length of generated string - * \param charSetEnum Number enum choosing charset - */ -function randomString(length, charSetEnum, prng) { - var ret = ""; - var charSets = ["abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_ ", "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/"]; - var charSet = charSets[charSetEnum]; - for ( var i = 0; i < length; i++ ) { - ret += charSet.charAt(Math.floor(prng() * charSet.length)); - } - return ret; -} -/** \brief shuffle given array according to domain key - * \param array input array - * - * Fisher–Yates shuffle algorithm - Richard Durstenfeld's version - */ -function shuffleArray(array) { - for (let i = array.length - 1; i > 0; i--) { - const j = Math.floor(prng() * (i + 1)); - [array[i], array[j]] = [array[j], array[i]]; - } -} - -/** - * \brief Asynchronously sleep for given number of milliseconds - * \param ms Number of milliseconds to sleep - */ -async function async_sleep(ms) { - return new Promise((resolve) => { - setTimeout(resolve, ms); - }); -} - - -/** - * \brief Observable desing patter implementation. - * - * All observers notified with each change. - */ -function Observable() { - Object.defineProperty(this, "observers", { - value: [], - writable: true, - configurable: true, - enumerable: false}); -}; -Observable.prototype = { - /** - * \brief Notifies all observers - * - * \param notification An object passed to each observer. - */ - update: function(...args) { - for (o of this.observers) { - o.notify(...args); - } - }, - /** - * Adds an observer. - * - * \param observer An object implementing notify(); - */ - add_observer: function(observer) { - this.observers.push(observer); - }, - remove_observer: function(observer) { - const index = this.observers.indexOf(observer); - if (index > -1) { - array.splice(index, 1); - } - } -}; - -/** - * Return beginning sentences from a long description - * - * \param text The original text - * \param limit The suggested maximal length of the returned text - * - * \return A sentence or more sentences from the begining of the text - * - * Do not return information in parentheses. Always return at least one sentense. Return as much - * sentences as possible upto the LIMIT. - */ -function create_short_text(text, LIMIT) { - if (text.length > LIMIT) { - let remove_parentheses = / \([^)]*\)/; - text = text.replace(remove_parentheses, ""); - let sentences = text.split("."); - sentences = sentences.map(function (s) { - if (s.length === 0) { - return s; - } - return s + "."; - }); - let done = false; - text = sentences.reduce(function (acc, current) { - if (!done) { - if ((acc.length + current.length) <= LIMIT) { - return acc + current; - } - else { - done = true; - } - } - return acc; - }); - } - return text; -} - -/** - * Helper function that modifies settings after manual removal of optional permissions. - * - * \param permissions Array of removed permissions. - * \param settings Object of current module settings. - * \param definition Object of module settings definition. - */ -function correctSettingsForRemovedPermissions(permissions, settings, definition) { - for (let [name, value] of Object.entries(settings)) { - if (definition[name]) { - let option = definition[name].params[value]; - while (value >= 0) { - if (!option.permissions || !option.permissions.filter(value => permissions.includes(value)).length) { - settings[name] = value; - break; - } - value -= 1; - } - } - } -} - -/** - * The function for reading a locally stored file. - * - * \param _path String with a fully-qualified URL. E.g.: moz-extension://2c127fa4-62c7-7e4f-90e5-472b45eecfdc/beasts/frog.dat - * - * \returns promise for returning content of the file as a string. - */ - let readFile = (_path) => { - return new Promise((resolve, reject) => { - //Fetching locally stored file in same-origin mode - fetch(_path, {mode:'same-origin'}) - .then(function(_res) { - //Return data as a blob - return _res.blob(); - }) - .then(function(_blob) { - var reader = new FileReader(); - //Wait until the whole file is read - reader.addEventListener("loadend", function() { - resolve(this.result); - }); - //Read blob data as text - reader.readAsText(_blob); - }) - .catch(error => { - reject(error); - }); - }); -}; -{ - - // hide incompatible UI - if (browser.tabs && self.document) { - const mv = "executeScript" in browser.tabs ? 2 : 3; - document.documentElement.classList.add(`mv${mv}`); - let devmode = false; - try { - devmode = !!browser.userScripts; - } catch (e) { - } - document.documentElement.classList.toggle("devmode", devmode); - } - -}
\ No newline at end of file diff --git a/data/extensions/jsr@javascriptrestrictor/http_shield_common.js b/data/extensions/jsr@javascriptrestrictor/http_shield_common.js deleted file mode 100644 index 53f13ba..0000000 --- a/data/extensions/jsr@javascriptrestrictor/http_shield_common.js +++ /dev/null @@ -1,688 +0,0 @@ -/** \file
- * \brief This file contains common functions for Network Boundary Shield.
- *
- * \author Copyright (C) 2020 Pavel Pohner
- * \author Copyright (C) 2020-2021 Martin Bednář
- * \author Copyright (C) 2022 Marek Salon
- *
- * \license SPDX-License-Identifier: GPL-3.0-or-later
- */
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-//
-
-/**
- * \defgroup NBS Network Boundary Shield
- *
- * \brief The Network Boundary Shield (NBS) is a protection against attacks from an external network (the Internet)
- * to an internal network - especially against a reconnaissance attacks when a web browser is abused as a proxy.
- * See, for example, the ForcePoint report https://www.forcepoint.com/sites/default/files/resources/files/report-attacking-internal-network-en_0.pdf,
- * https://www.forcepoint.com/blog/x-labs/attacking-internal-network-public-internet-using-browser-proxy.
- * Another example is the detection of applications running on the localhost, see
- * https://jshelter.org/localportscanning/.
- *
- * The NBS functionality is based on filtering HTTP requests. The Network Boundary Shield uses blocking webRequest API to handle HTTP requests.
- * This means that processing of each HTTP request is paused before it is analyzed and allowed (if it seems benign) or blocked (if it is suspicious).
- *
- * The main goal of NBS is to prevent attacks like a public website requests a resource from the
- * local computer (e.g. to determine open TCP ports and thus running applications) or
- * internal network (e.g. the logo of the manufacturer of the local router); NBS will detect that
- * a web page hosted on the public Internet tries to connect to a local IP address. NBS blocks only
- * HTTP requests from a web page hosted on a public IP address to a private network resource. The
- * user can allow specific web pages to access local resources (e.g. when using Intranet services).
- *
- * NBS uses CSV files provided by IANA
- * (https://www.iana.org/assignments/locally-served-dns-zones/locally-served-dns-zones.xml) to
- * determine public and local IP address prefixes. Both IPv4 and IPv6 is supported. The CSV files
- * are downloaded during the $(PROJECT_NAME) building process.
- *
- * The NBS has only a small impact on the web browser performance. The impact differs for each implementation.
- *
- * More information about the Network Boundary Shield can be obtained from the master thesis by Pavel Pohner: https://www.vutbr.cz/studenti/zav-prace/detail/129272 (in Czech).
- */
-
- /** \file
- * \ingroup NBS
- *
- * This file contains basic logic of the NBS, NBS global variables and objects,
- * functions for reading and parsing CSV files, and functions for identifying and processing IP addresses and checking IP ranges.
- */
-
-/**
- * Locally served IPV4 DNS zones loaded from IANA.
- */
-var localIPV4DNSZones;
-
-/**
- * Locally served IPV6 DNS zones loaded from IANA.
- */
-var localIPV6DNSZones;
-
-/**
- * Associtive array of hosts, that are currently among trusted "do not blocked" hosts.
- */
-var doNotBlockHosts = {};
-
-/**
- * Associtive array of settings supported by this module.
- */
-var nbsSettings = {};
-
-/**
- * Object holding active notifications of this module.
- */
-var nbsNotifications = {};
-
-/**
-* Definition of settings supported by this module.
-*/
-const NBS_DEF_SETTINGS = {
- blocking: {
- label: browser.i18n.getMessage("nbsBlocking"),
- description: browser.i18n.getMessage("nbsBlockingDescription"),
- description2: [browser.i18n.getMessage("nbsBlockingDescription2")],
- params: [
- {
- // 0
- short: browser.i18n.getMessage("protectionConfigurationOptionActivatedOff"),
- description: browser.i18n.getMessage("nbsBlockingOffDescription")
- },
- {
- // 1
- short: browser.i18n.getMessage("protectionConfigurationOptionActivatedOn"),
- description: browser.i18n.getMessage("nbsBlockingOnDescription")
- }
- ]
- },
- notifications: {
- label: browser.i18n.getMessage("shieldNotifications"),
- description: browser.i18n.getMessage("NBSNotificationsDescription"),
- description2: [browser.i18n.getMessage("NBSNotificationsDescription2")],
- params: [
- {
- // 0
- short: browser.i18n.getMessage("protectionConfigurationOptionActivatedOff"),
- description: browser.i18n.getMessage("NBSNotificationsOffDescription")
- },
- {
- // 1
- short: browser.i18n.getMessage("protectionConfigurationOptionActivatedOn"),
- description: browser.i18n.getMessage("NBSNotificationsOnDescription")
- }
- ]
- }
-};
-
-/**
- * The function that loads module configuration from sync storage.
- */
-function nbsLoadConfiguration() {
- browser.storage.sync.get(["requestShieldOn", "nbsWhitelist", "nbsSettings"]).then(function(result) {
- //If found object is true or undefined, turn the requestShieldOn
- if (result.requestShieldOn == undefined || result.requestShieldOn)
- {
- //Hook up the listeners
- browser.webRequest.onBeforeSendHeaders.addListener(
- beforeSendHeadersListener,
- {urls: ["<all_urls>"]},
- ["blocking", "requestHeaders"]
- );
-
- if (typeof onResponseStartedListener === "function")
- {
- browser.webRequest.onResponseStarted.addListener(
- onResponseStartedListener,
- {urls: ["<all_urls>"]},
- ["responseHeaders"]
- );
- }
- }
-
- doNotBlockHosts = result.nbsWhitelist ? result.nbsWhitelist : {};
- nbsSettings = result.nbsSettings ? result.nbsSettings : {};
- });
-}
-
-/// \cond (Exclude this section from the doxygen documentation. If this section is not excluded, it is documented as a separate function.)
-/// Hook up the listener for receiving messages
-nbsLoadConfiguration();
-
-browser.runtime.onMessage.addListener(nbsCommonMessageListener);
-browser.runtime.onMessage.addListener(nbsMessageListener);
-browser.runtime.onMessage.addListener(nbsSettingsListener);
-
-// Listen for permissions removal to adapt settings accordingly
-browser.permissions.onRemoved.addListener((permissions) => {
- correctSettingsForRemovedPermissions(permissions.permissions, nbsSettings, NBS_DEF_SETTINGS);
- browser.storage.sync.set({"nbsSettings": nbsSettings});
-});
-
-// Obtain file path in user's file system and read CSV file with IPv4 local zones
-readFile(browser.runtime.getURL("ipv4.dat"))
- .then(_res => {
- //Parse loaded CSV and store it in prepared variable
- localIPV4DNSZones = parseCSV(_res, true);
- })
- .catch(_error => {
- console.error(_error );
- });
-
-// Obtain file path in user's file system and read CSV file with IPv6 local zones
-readFile(browser.runtime.getURL("ipv6.dat"))
- .then(_res => {
- //Parse loaded CSV and store it in prepared variable
- localIPV6DNSZones = parseCSV(_res, false);
- })
- .catch(_error => {
- console.error(_error );
- });
-/// \endcond
-
-/**
- * Checks validity of IPv4 addresses.
- *
- * \param url An URL that may or may not contains an IPv4 address instead of a domain name.
- *
- * \returns TRUE if the url matches IPv4 regex, FALSE otherwise.
- */
-function isIPV4(url)
-{
- var reg = new RegExp("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$");
- return reg.test(url);
-}
-
-/**
- * Checks validity IPV6 address.
- *
- * \param url An URL that may or may not contains an IPv6 address instead of a domain name.
- *
- * \returns TRUE, if URL is valid IPV6 address, FALSE otherwise.
- */
-function isIPV6(url)
-{
- if (url[0] === "[" && url[url.length - 1] === "]") {
- url = url.substring(1, url.length - 1);
- }
- var reg = new RegExp("^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))$", 'm');
- return reg.test(url);
-}
-
-/**
- * Checks whether the ipAddr is found in IPv4 localZones.
- * If the IPv4 address is found in any IPv4 local zone, it means that this IPv4 address is private.
- * IPv4 local zone is e.g. 192.168.000.000/16.
- *
- * \param ipAddr Valid IPv4 address.
- *
- * \returns TRUE if ipAddr exists in localZones fetched from IANA, FALSE otherwise.
- */
-function isIPV4Private(ipAddr)
-{
- //Split IP address on dots, obtain 4 numbers
- var substrIP = ipAddr.split('.');
- //Convert IP address into array of 4 integers
- var ipArray = substrIP.map(function(val){
- return parseInt(val, 10);
- });
- //For each IPv4 locally served zone
- for (var i = 0; i < localIPV4DNSZones.length; i++)
- {
- //Split the zone into array of J numbers
- var zone = localIPV4DNSZones[i].split('.');
- var k = 0;
- //For each number of local zone IP
- //(Decrementing, because local zones IPs are reverted
- for (var j = zone.length - 1; j >= 0; j--)
- {
- //Check if the corresponding numbers match
- //If not, then break and move onto next local zone
- if (ipArray[k] != zone[j])
- {
- break;
- }
- else if(j == 0) //Checked all numbers of local zone
- {
- return true;
- }
- k++;
- }
- }
- return false;
-}
-
-/**
- * Checks whether the ipAddr is found in IPv6 localZones.
- * If the IPv6 address is found in any IPv6 local zone, it means that this IPv6 address is private.
- * IPv6 local zone is e.g. fe80::/10.
- *
- * \param ipAddr Valid IPv6 address.
- *
- * \returns TRUE if ipAddr exists in localZones fetched from IANA, FALSE otherwise.
- */
-function isIPV6Private(ipAddr)
-{
- //Expand shorten IPv6 addresses to full length
- ipAddr = expandIPV6(ipAddr);
- //Split into array of fields
- var substrIP = ipAddr.split(":");
- //Join the fields into one string
- ipAddr = substrIP.join("").toUpperCase();
- //For each IPv6 locally served zone
- for (var i = 0; i < localIPV6DNSZones.length; i++)
- {
- var zone = localIPV6DNSZones[i];
- //For each char of zone
- for (var j = 0; j < zone.length; j++)
- {
- //Compare the chars, if they do not match, break and move onto next zone
- if (ipAddr.charAt(j) != zone.charAt(j))
- {
- break;
- }
- //Checked all chars of current zone -> private IP range
- else if(j == zone.length - 1)
- {
- return true;
- }
- }
- }
- return false;
-}
-
-/**
- * Function for parsing CSV files obtained from IANA.
- * It strips .IN-ADDR and .IP6 from zones and comma delimiter, merges them into array by CSV rows.
- *
- * \param csv CSV obtained from IANA.
- * \param ipv4 Boolean, saying whether the csv is IPv4 CSV or IPv6.
- *
- * \returns an array of parsed CSV values.
- */
-function parseCSV(csv, ipv4)
-{
- //converting into array
- var csvArray = CSVToArray(csv);
- var DNSzones = [];
-
- if (ipv4) //ipv4.csv
- {
- //cycle through first column of the CSV -> obtaining IP zones
- //Starting with i = 1, skipping the CSV header
- for (var i = 1; i < csvArray.length; i++)
- {
- //i-1, means start from 0
- //Obtains IP zone, strips .IN-ADDR from the end of it, stroes into array
- DNSzones[i-1] = csvArray[i][0].substring(0, csvArray[i][0].indexOf(".IN-ADDR"));
- }
- return DNSzones;
- }
- else //ipv6.csv
- {
- //Same as ipv4
- for (var i = 1; i < csvArray.length-1; i++)
- {
- DNSzones[i-1] = csvArray[i][0].substring(0, csvArray[i][0].indexOf(".IP6"));
- }
-
- for (var i = 0; i < DNSzones.length; i++)
- {
- //Additionally splits the IP zone on dots
- var splitted = DNSzones[i].split(".");
- DNSzones[i] = "";
- //Joins splitted IP zone into one string
- for (var j = splitted.length - 1; j >= 0 ; j--)
- {
- DNSzones[i] += splitted[j];
-
- }
- }
- return DNSzones;
- }
-}
-
-/**
- * Auxillary function for parsing CSV files.
- * Converts CSV to array.
- *
- * \param strData Loaded CSV file as a string.
- *
- * \returns array containing CSV rows.
- */
-function CSVToArray(strData){
- // Create a regular expression to parse the CSV values.
- var objPattern = new RegExp(
- (
- // Delimiters.
- "(\\,|\\r?\\n|\\r|^)" +
- // Quoted fields.
- "(?:\"([^\"]*(?:\"\"[^\"]*)*)\"|" +
- // Standard fields.
- "([^\"\\,\\r\\n]*))"
- ),
- "gi"
- );
- //Array to hold data
- var csvData = [[]];
- //Array to hold regex matches
- var regexMatches = null;
- //While not match
- while (regexMatches = objPattern.exec(strData)){
- // Get the delimiter that was found
- var strMatchedDelimiter = regexMatches[1];
- if (strMatchedDelimiter.length && (strMatchedDelimiter != ",")){
- //New row
- csvData.push([]);
- }
- // captured data (quoted or unquoted)
- if (regexMatches[2]){
- //quoted
- var strMatchedValue = regexMatches[2].replace(
- new RegExp( "\"\"", "g" ),
- "\""
- );
- } else {
- //non-quoted value.
- var strMatchedValue = regexMatches[3];
-
- }
- //Add to data array
- csvData[csvData.length - 1].push( strMatchedValue );
- }
- // Return the parsed data
- return( csvData );
-}
-
-/**
- * Function for expanding shorten ipv6 addresses.
- *
- * \param ip6addr Valid ipv6 address.
- *
- * \returns expanded ipv6 address in string.
- */
-function expandIPV6(ip6addr)
-{
- if (ip6addr[0] === "[" && ip6addr[ip6addr.length - 1] === "]") {
- ip6addr = ip6addr.substring(1, ip6addr.length - 1);
- }
- var expandedIP6 = "";
- //Check for omitted groups of zeros (::)
- if (ip6addr.indexOf("::") == -1)
- {
- //There are none omitted groups of zeros
- expandedIP6 = ip6addr;
- }
- else
- {
- //Split IP on one compressed group
- var splittedIP = ip6addr.split("::");
- var amountOfGroups = 0;
- //For each group
- for (var i = 0; i < splittedIP.length; ++i)
- {
- //Split on :
- amountOfGroups += splittedIP[i].split(":").length;
- }
- expandedIP6 += splittedIP[0] + ":";
- //For each splitted group
- for (var i = 0; i < 8 - amountOfGroups; ++i)
- {
- //insert zeroes
- expandedIP6 += "0000:";
- }
- //Insert the rest of the splitted IP
- expandedIP6 += splittedIP[1];
- }
- //Split expanded IPv6 into parts
- var addrParts = expandedIP6.split(":");
- var addrToReturn = "";
- //For each part
- for (var i = 0; i < 8; ++i)
- {
- //check the length of the part
- while(addrParts[i].length < 4)
- {
- //if it's less than 4, insert zero
- addrParts[i] = "0" + addrParts[i];
- }
- addrToReturn += i != 7 ? addrParts[i] + ":" : addrParts[i];
- }
- return addrToReturn;
-}
-
-/**
- * Check if the hostname or any of it's domains is whitelisted.
- *
- * \param hostname Any hostname (subdomains allowed).
- *
- * \returns TRUE when domain (or subdomain) is whitelisted, FALSE otherwise.
- */
-function isNbsWhitelisted(hostname)
-{
- //Calling a function from url.js
- var domains = extractSubDomains(hostname);
- for (var domain of domains)
- {
- if (doNotBlockHosts[domain] != undefined)
- {
- return true;
- }
- }
- return false;
-}
-
-/**
- * Log data about NBS blocking in context of tabs.
- * This data will be used for notification creation.
- *
- * \param origin Origin of the request.
- * \param target Target of the request.
- * \param tabId Tab ID of blocked request.
- */
-function notifyBlockedRequest(origin, target, tabId) {
- if (nbsSettings.notifications) {
- nbsNotifications[tabId] = nbsNotifications[tabId] || {};
- nbsNotifications[tabId].records = nbsNotifications[tabId].records || {};
- nbsNotifications[tabId].records[`${origin},${target}`] = (nbsNotifications[tabId].records[`${origin},${target}`] || 0) + 1;
- nbsNotifications[tabId].total = (nbsNotifications[tabId].total || 0) + 1;
- }
- // start notifying a user when the first blocked request occurs
- if (nbsNotifications[tabId].total == 1) {
- setTimeout(showNbsNotification, 2000, tabId);
- createCumulativeNotification(tabId);
- }
-}
-
-// Listen for tab update to clear notifications data of the tab
-browser.tabs.onUpdated.addListener(function (tabId, changeInfo) {
- if (changeInfo.status == "loading") {
- clearNbsNotification(tabId);
- }
-});
-
-// Listen for tab remove to clear notifications data of the tab
-browser.tabs.onRemoved.addListener(clearNbsNotification);
-
-/**
- * Clear notification data for the tab.
- *
- * \param tabId Tab ID of notification.
- */
-function clearNbsNotification(tabId) {
- if (nbsNotifications[tabId]) {
- if (nbsNotifications[tabId].timerId) {
- clearTimeout(nbsNotifications[tabId].timerId);
- }
- delete nbsNotifications[tabId];
- }
-}
-
-/**
- * Create second notification containing a summary of accumulated data.
- * This notification is shown after the initial one if a page continues to access local network.
- *
- * \param tabId Integer number representing ID of browser tab.
- */
-async function createCumulativeNotification(tabId) {
- if (nbsNotifications[tabId].last == nbsNotifications[tabId].total) {
- let active = await browser.notifications.getAll();
- if (!Object.keys(active).includes("nbs-" + tabId)) {
- showNbsNotification(tabId);
- }
- return;
- }
- nbsNotifications[tabId].last = nbsNotifications[tabId].total;
- nbsNotifications[tabId].timerId = setTimeout(createCumulativeNotification, 4000, tabId);
-}
-
-/**
- * Creates and presents notification about blocked requests.
- *
- * \param tabId Integer number representing ID of browser tab.
- */
-function showNbsNotification(tabId) {
- nbsNotifications[tabId].last = nbsNotifications[tabId].total;
- let message;
- let records = Object.keys(nbsNotifications[tabId].records);
- if (records.length == 1) {
- // The page contacted just one target, display both host and target
- let [origin, target] = records[0].split(",");
- let count = nbsNotifications[tabId].records[records[0]];
- let params = [origin, target, count];
- message = nbsSettings.blocking ? browser.i18n.getMessage("NBSBlockedMessageWithTarget", params) : browser.i18n.getMessage("NBSDetectedMessageWithTarget", params);
- }
- else {
- // The page contacted multiple targets, display just the host
- let host = getEffectiveDomain(availableTabs[tabId].url);
- let params = [host, nbsNotifications[tabId].total];
- message = nbsSettings.blocking ? browser.i18n.getMessage("NBSBlockedMessageMultipleTargets", params) : browser.i18n.getMessage("NBSDetectedMessageMultipleTargets", params);
- }
- browser.notifications.create("nbs-" + tabId, {
- "type": "basic",
- "iconUrl": browser.runtime.getURL("img/icon-48.png"),
- "title": nbsSettings.blocking ? browser.i18n.getMessage("NBSBlockedTitle") : browser.i18n.getMessage("NBSDetectedTitle"),
- "message": message
- });
- setTimeout(() => {
- browser.notifications.clear("nbs-" + tabId);
- }, 6000);
-}
-
-/**
- * \brief The event listener, hooked up to the webExtension onMessage event.
- *
- * The listener sends message response which contains information if the current site is whitelisted or not.
- *
- * \param message Receives full message (destructured as {message, site}).
- * \param sender Sender of the message.
- */
- function nbsMessageListener({message, site}, sender)
- {
- //Message came from popup,js, asking whether is this site whitelisted
- if (message === "is current site whitelisted?")
- {
- return Promise.resolve(`current site is ${isNbsWhitelisted(site) ? '' : 'not '}whitelisted`);
- }
- }
-
-/**
- * \brief The event listener, hooked up to the webExtension onMessage event.
- *
- * The listener sends message response which contains information about cuurent module settings.
- *
- * \param message Receives full message.
- */
-function nbsSettingsListener(message)
-{
- if (message.purpose === "nbs-get-settings") {
- // send settings definition and current values
- return Promise.resolve({
- def: NBS_DEF_SETTINGS,
- val: nbsSettings
- });
- }
- else if (message.purpose === "nbs-set-settings") {
- // update current settings
- nbsSettings[message.id] = message.value;
- browser.storage.sync.set({"nbsSettings": nbsSettings});
- }
- else if (message.purpose === "nbs-load-config") {
- // load current configuration
- nbsLoadConfiguration();
- }
-}
-
-/**
- * Event listener hooked up to webExtensions onMessage event.
- * Does appropriate action based on message (e.g. Turn on/off the NBS, add/remove a site to/from whitelist, ...).
- *
- * \param message Receives full message.
- * \param sender Sender of the message.
- */
-function nbsCommonMessageListener(message, sender)
-{
- //Message came from options.js, updated whitelist
- if (message.message === "whitelist updated")
- {
- //actualize current doNotBlockHosts from storage
- browser.storage.sync.get(["nbsWhitelist"]).then(function(result){
- doNotBlockHosts = result.nbsWhitelist;
- });
- }
- //Mesage came from popup.js, whitelist this site
- else if (message.message === "add site to whitelist")
- {
- //Obtain current hostname and whitelist it
- var currentHost = message.site;
- doNotBlockHosts[currentHost] = true;
- browser.storage.sync.set({"nbsWhitelist":doNotBlockHosts});
- }
- //Message came from popup.js, remove whitelisted site
- else if (message.message === "remove site from whitelist")
- {
- //Obtain current hostname and remove it
- currentHost = message.site;
- delete doNotBlockHosts[currentHost];
- browser.storage.sync.set({"nbsWhitelist":doNotBlockHosts});
- }
- //HTTP request shield was turned on
- else if (message.message === "turn request shield on")
- {
- //Hook up the listeners
- browser.webRequest.onBeforeSendHeaders.addListener(
- beforeSendHeadersListener,
- {urls: ["<all_urls>"]},
- ["blocking", "requestHeaders"]
- );
-
- if (typeof onResponseStartedListener === "function")
- {
- browser.webRequest.onResponseStarted.addListener(
- onResponseStartedListener,
- {urls: ["<all_urls>"]},
- ["responseHeaders"]
- );
- }
- }
- //HTTP request shield was turned off
- else if (message.message === "turn request shield off")
- {
- //Disconnect the listeners
- browser.webRequest.onBeforeSendHeaders.removeListener(beforeSendHeadersListener);
-
- if (typeof onResponseStartedListener === "function")
- {
- browser.webRequest.onResponseStarted.removeListener(onResponseStartedListener);
- }
- }
-}
diff --git a/data/extensions/jsr@javascriptrestrictor/http_shield_firefox.js b/data/extensions/jsr@javascriptrestrictor/http_shield_firefox.js deleted file mode 100644 index 44ddfc8..0000000 --- a/data/extensions/jsr@javascriptrestrictor/http_shield_firefox.js +++ /dev/null @@ -1,202 +0,0 @@ -/** \file
- * \brief This file contains Firefox-specific functions for Network Boundary Shield.
- *
- * \author Copyright (C) 2020 Pavel Pohner
- * \author Copyright (C) 2020-2021 Martin Bednář
- *
- * \license SPDX-License-Identifier: GPL-3.0-or-later
- */
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-//
-
-/** \file
- *
- * \brief This file contains Firefox specific functions for Network Boundary Shield.
- *
- * \ingroup NBS
- *
- * This file contains webRequest API listeners. These listeners handle HTTP requests in the "before send headers" phase
- * and handle messages (on message event).
- *
- * NBS for Firefox uses the DNS web extension API to resolve domain names. As the domain names are
- * cached and needs to be resolved without NBS, the performance impact should be negligible. The DNS
- * API is not used for proxied requests to prevent DNS leaks of resolutions that would be initiated
- * by the DNS proxy. See https://pagure.io/JShelter/webextension/issue/41 for more details.
- */
-
-/**
- * The event listener, hooked up to webRequest onBeforeSendHeaders event.
- * Receives detail of HTTP request in requestDetail.
- * Catches the request, analyzes its origin and target URLs and blocks it/permits it based
- * on their IP adresses. Requests coming from public IP ranges targeting the private IPs are
- * blocked by default. Others are permitted by default.
- *
- * \param requestDetail Details of HTTP request.
- */
-async function beforeSendHeadersListener(requestDetail)
-{
- //If either of information is undefined, permit it
- //originUrl happens to be undefined for the first request of the page loading the document itself
- if (requestDetail.originUrl === undefined || requestDetail.url === undefined || requestDetail.originUrl === "null" || requestDetail.url === "null")
- {
- return {cancel:false};
- }
- var sourceDomain = getEffectiveDomain(requestDetail.originUrl);
- var fullSourceDomain = new URL(requestDetail.originUrl).hostname;
-
- var targetDomain = getEffectiveDomain(requestDetail.url);
- var fullTargetDomain = new URL(requestDetail.url).hostname;
-
- var targetIP;
- var sourceIP;
- var isSourcePrivate = false;
- var isDestinationPrivate = false;
- var destinationResolution = "";
- var sourceResolution = "";
- var blockNotifications = false;
-
- const {proxyInfo} = requestDetail; // see https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/proxy/ProxyInfo
- const dnsAllowed = !(proxyInfo && (proxyInfo.type && proxyInfo.type.startsWith("http") || proxyInfo.proxyDNS));
-
- //Host found among user's trusted hosts, allow it right away
- if (isNbsWhitelisted(sourceDomain))
- {
- return {cancel:false};
- }
-
- //Checking type of SOURCE URL
- if (isIPV4(sourceDomain)) //SOURCE is IPV4 adddr
- {
- //Checking privacy of IPv4
- if (isIPV4Private(sourceDomain))
- {
- //Source is IPv4 private
- isSourcePrivate = true;
- }
- }
- else if(isIPV6(sourceDomain)) //SOURCE is IPV6
- {
- //Checking privacy of IPv6
- if (isIPV6Private(sourceDomain))
- {
- //Source is IPv6 private
- isSourcePrivate = true;
- }
- }
- else if (dnsAllowed) //SOURCE is hostname
- {
- //Resolving DNS query for source domain
- sourceResolution = browser.dns.resolve(fullSourceDomain).then((val) =>
- {
- //Assigning source IPs
- sourceIP = val;
- //More IPs could have been found, for each of them
- for (let ip of sourceIP.addresses)
- {
- //Check whether it's IPv4
- if (isIPV4(ip))
- {
- if (isIPV4Private(ip))
- {
- //Source is IPv4 private
- isSourcePrivate = true;
- }
- }
- else if (isIPV6(ip))
- {
- if (isIPV6Private(ip))
- {
- //Source is IPv6 private
- isSourcePrivate = true;
- }
- }
- }
- });
- }
-
- //Analyzing targetDomain
- //Check IPv4/IPv6 and privacy
- if (isIPV4(targetDomain))
- {
- if (isIPV4Private(targetDomain))
- {
- isDestinationPrivate = true;
- if (targetDomain === "0.0.0.0") {
- blockNotifications = true;
- }
- }
- }
- else if(isIPV6(targetDomain))
- {
- if (isIPV6Private(targetDomain))
- {
- isDestinationPrivate = true;
- if (ip === "[::]") {
- blockNotifications = true;
- }
- }
- }
- else if (dnsAllowed) //Target is hostname
- {
- //Resolving DNS query for destination domain
- destinationResolution = browser.dns.resolve(fullTargetDomain).then((val) =>
- {
- //Assigning source IPs
- targetIP = val;
- //More IPs could have been found, for each of them
- for (let ip of targetIP.addresses)
- {
- //Check whether it's IPv4
- if (isIPV4(ip))
- {
- if (isIPV4Private(ip))
- {
- //Destination is IPv4 private
- isDestinationPrivate = true;
- if (ip === "0.0.0.0") {
- blockNotifications = true;
- }
- }
- }
- else if (isIPV6(ip))
- {
- if (isIPV6Private(ip))
- {
- //Destination is IPv6 private
- isDestinationPrivate = true;
- if (ip === "[::]") {
- blockNotifications = true;
- }
- }
- }
- }
- });
- }
- //Wait till all DNS resolutions are done, because its neccessary for upcoming actions
- await Promise.all([sourceResolution, destinationResolution]);
-
- //Blocking direction Public -> Private
- if (!isSourcePrivate && isDestinationPrivate)
- {
- if (!blockNotifications) {
- notifyBlockedRequest(sourceDomain, targetDomain, requestDetail.tabId);
- }
- return {cancel: nbsSettings.blocking ? true : false}
- }
- else //Permitting others
- {
- return {cancel: false};
- }
-}
diff --git a/data/extensions/jsr@javascriptrestrictor/i18n_translate_dom.js b/data/extensions/jsr@javascriptrestrictor/i18n_translate_dom.js deleted file mode 100644 index 9cd01de..0000000 --- a/data/extensions/jsr@javascriptrestrictor/i18n_translate_dom.js +++ /dev/null @@ -1,46 +0,0 @@ -/** \file - * \brief JS code that retrieves all HTML files with data-localize attributes and localizes them - * - * \author Copyright (C) 2022 TotalCaesar659 - * - * See https://github.com/polcak/jsrestrictor/pull/189 for the origins of the code. - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -function localizeHTMLelement(e) { - const translateStringName = e.dataset.localize; - if (translateStringName) { - const translated = browser.i18n.getMessage(translateStringName); - if (translated) { - if (e.hasAttribute("htmltranslation")) { - e.innerHTML = translated; - } - else { - e.innerText = translated; - } - } - } -} - -const textElements = document.querySelectorAll('[data-localize]'); -textElements.forEach(localizeHTMLelement); - -const templates = document.getElementsByTagName("template"); -for (t of templates) { - t.content.querySelectorAll('[data-localize]').forEach(localizeHTMLelement); -} diff --git a/data/extensions/jsr@javascriptrestrictor/img/icon-128.png b/data/extensions/jsr@javascriptrestrictor/img/icon-128.png Binary files differdeleted file mode 100644 index 3ba7fac..0000000 --- a/data/extensions/jsr@javascriptrestrictor/img/icon-128.png +++ /dev/null diff --git a/data/extensions/jsr@javascriptrestrictor/img/icon-16.png b/data/extensions/jsr@javascriptrestrictor/img/icon-16.png Binary files differdeleted file mode 100644 index 6eb799d..0000000 --- a/data/extensions/jsr@javascriptrestrictor/img/icon-16.png +++ /dev/null diff --git a/data/extensions/jsr@javascriptrestrictor/img/icon-19.png b/data/extensions/jsr@javascriptrestrictor/img/icon-19.png Binary files differdeleted file mode 100644 index d20f919..0000000 --- a/data/extensions/jsr@javascriptrestrictor/img/icon-19.png +++ /dev/null diff --git a/data/extensions/jsr@javascriptrestrictor/img/icon-256.png b/data/extensions/jsr@javascriptrestrictor/img/icon-256.png Binary files differdeleted file mode 100644 index 81f7be7..0000000 --- a/data/extensions/jsr@javascriptrestrictor/img/icon-256.png +++ /dev/null diff --git a/data/extensions/jsr@javascriptrestrictor/img/icon-32.png b/data/extensions/jsr@javascriptrestrictor/img/icon-32.png Binary files differdeleted file mode 100644 index 883d55f..0000000 --- a/data/extensions/jsr@javascriptrestrictor/img/icon-32.png +++ /dev/null diff --git a/data/extensions/jsr@javascriptrestrictor/img/icon-38.png b/data/extensions/jsr@javascriptrestrictor/img/icon-38.png Binary files differdeleted file mode 100644 index ccc94a4..0000000 --- a/data/extensions/jsr@javascriptrestrictor/img/icon-38.png +++ /dev/null diff --git a/data/extensions/jsr@javascriptrestrictor/img/icon-48.png b/data/extensions/jsr@javascriptrestrictor/img/icon-48.png Binary files differdeleted file mode 100644 index d75c1d3..0000000 --- a/data/extensions/jsr@javascriptrestrictor/img/icon-48.png +++ /dev/null diff --git a/data/extensions/jsr@javascriptrestrictor/img/icon-512.png b/data/extensions/jsr@javascriptrestrictor/img/icon-512.png Binary files differdeleted file mode 100644 index 8556165..0000000 --- a/data/extensions/jsr@javascriptrestrictor/img/icon-512.png +++ /dev/null diff --git a/data/extensions/jsr@javascriptrestrictor/img/icon-64.png b/data/extensions/jsr@javascriptrestrictor/img/icon-64.png Binary files differdeleted file mode 100644 index a6c8b03..0000000 --- a/data/extensions/jsr@javascriptrestrictor/img/icon-64.png +++ /dev/null diff --git a/data/extensions/jsr@javascriptrestrictor/img/icon-96.png b/data/extensions/jsr@javascriptrestrictor/img/icon-96.png Binary files differdeleted file mode 100644 index 2946071..0000000 --- a/data/extensions/jsr@javascriptrestrictor/img/icon-96.png +++ /dev/null diff --git a/data/extensions/jsr@javascriptrestrictor/img/logo.svg b/data/extensions/jsr@javascriptrestrictor/img/logo.svg deleted file mode 100644 index cf79a6d..0000000 --- a/data/extensions/jsr@javascriptrestrictor/img/logo.svg +++ /dev/null @@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="16.000002" - height="16.000002" - viewBox="0 0 4.2333336 4.2333336" - version="1.1" - id="svg4648" - inkscape:version="1.0.2 (e86c870879, 2021-01-15)" - sodipodi:docname="logo.svg"> - <defs - id="defs4642" /> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="7.9195959" - inkscape:cx="12.324635" - inkscape:cy="0.63646549" - inkscape:document-units="px" - inkscape:current-layer="layer1" - inkscape:document-rotation="0" - showgrid="false" - fit-margin-top="0" - fit-margin-left="0" - fit-margin-right="0" - fit-margin-bottom="0" - units="px" - inkscape:window-width="1680" - inkscape:window-height="1009" - inkscape:window-x="0" - inkscape:window-y="21" - inkscape:window-maximized="1" /> - <metadata - id="metadata4645"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Layer 1" - inkscape:groupmode="layer" - id="layer1" - transform="translate(-67.430954,-92.37738)"> - <g - id="g1460" - transform="translate(18.483034,20.939881)"> - <path - id="path3066-9" - style="font-family:none;font-variation-settings:normal;mix-blend-mode:normal;vector-effect:none;fill:#e76f51;fill-opacity:1;stroke:none;stroke-width:0.0150359;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;stop-color:#000000" - d="m 49.142864,74.035401 c -6.02e-4,0.246306 0.132631,0.461691 0.332721,0.577272 l 0.26608,-1.152811 c -0.364226,-0.05437 -0.592445,0.297558 -0.598801,0.575539 z" - inkscape:transform-center-x="0.13376278" - inkscape:transform-center-y="-0.018341268" - sodipodi:nodetypes="cccc" /> - <path - d="m 49.2125,73.025 c 0,-0.146125 0.11846,-0.264584 0.264586,-0.264584 0.146123,0 0.264581,0.118459 0.264581,0.264584 0,0.146127 -0.118458,0.264583 -0.264581,0.264583 -0.146126,0 -0.264586,-0.118456 -0.264586,-0.264583 z" - id="path3072-1" - fill="#5c8b93" - fill-rule="nonzero" - stroke-width="0.351404" - stroke-linecap="butt" - stroke-linejoin="miter" - stroke-miterlimit="4" - style="font-family:none;font-variation-settings:normal;mix-blend-mode:normal;vector-effect:none;fill:#1a1a1a;fill-opacity:1;stroke:none;stroke-width:0.0170486;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;stop-color:#000000" /> - <path - d="m 50.00625,73.025 c 0,-0.146125 0.118459,-0.264584 0.264586,-0.264584 0.146121,0 0.264581,0.118459 0.264581,0.264584 0,0.146127 -0.11846,0.264583 -0.264581,0.264583 -0.146127,0 -0.264586,-0.118456 -0.264586,-0.264583 z" - id="path3076-4" - fill="#5c8b93" - fill-rule="nonzero" - stroke-width="0.351404" - stroke-linecap="butt" - stroke-linejoin="miter" - stroke-miterlimit="4" - style="font-family:none;font-variation-settings:normal;mix-blend-mode:normal;vector-effect:none;fill:#1a1a1a;fill-opacity:1;stroke:none;stroke-width:0.0170486;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;stop-color:#000000" /> - <path - id="path3064-2" - style="font-family:none;mix-blend-mode:normal;fill:#e76f51;fill-opacity:1;stroke:none;stroke-width:0.0105265;stroke-dasharray:none;stroke-dashoffset:0" - d="m 50.794538,73.289583 c -0.499909,-2e-6 -0.905183,0.473848 -0.905183,1.058342 2e-6,0.29225 0.101329,0.556812 0.265133,0.74833 0.05575,0.06519 0.118758,0.121909 0.187468,0.168382 v -0.916712 l 0.452582,1.058325 v -1.058325 z" /> - <path - id="path3068-3" - style="font-family:none;font-variation-settings:normal;mix-blend-mode:normal;vector-effect:none;fill:#e76f51;fill-opacity:1;stroke:none;stroke-width:0.0153359;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;stop-color:#000000" - d="m 52.104142,74.485288 c 0.216843,0.216843 0.639016,0.629479 0.639016,0.629479 -0.34473,0.09481 -0.729276,0.0084 -1.002342,-0.260595 -0.143903,-0.141728 -0.237529,-0.315166 -0.280858,-0.498194 l -3.61e-4,0.201274 -0.0012,0.707767 c -0.243984,-0.141705 -0.407863,-0.40603 -0.407344,-0.708468 4.44e-4,-0.302437 0.165308,-0.566203 0.393174,-0.530199 0.227865,0.036 0.470453,0.269476 0.659915,0.458936 z" - sodipodi:nodetypes="scccccccs" /> - <g - id="g1334" - transform="matrix(0.943686,0,0,0.943686,2.9859072,4.0378316)" - style="stroke-width:1.05967"> - <path - id="path3062-1" - style="font-family:none;mix-blend-mode:normal;fill:#e76f51;fill-opacity:1;stroke:none;stroke-width:0.0159332;stroke-dasharray:none;stroke-dashoffset:0" - d="m 51.254709,72.003278 c -0.384803,0 -0.769607,0.146792 -1.063201,0.440386 l 1.063201,1.0632 1.063199,1.063201 c 0.587188,-0.587187 0.587188,-1.539212 0,-2.126401 -0.293592,-0.293594 -0.678399,-0.440386 -1.063199,-0.440386 z" /> - <path - id="path3087-8" - style="font-family:none;mix-blend-mode:normal;fill:#e76f51;fill-opacity:1;stroke:none;stroke-width:0.0159332;stroke-dasharray:none;stroke-dashoffset:0" - d="m 52.108262,71.787057 c -0.221695,0 -0.443391,0.08457 -0.612537,0.253717 l 0.612537,0.612536 0.612536,0.612536 c 0.338293,-0.338291 0.338293,-0.886779 0,-1.225072 -0.169146,-0.169145 -0.390844,-0.253718 -0.612536,-0.253717 z" /> - <path - id="path3089-4" - style="font-family:none;mix-blend-mode:normal;fill:#e76f51;fill-opacity:1;stroke:none;stroke-width:0.0159332;stroke-dasharray:none;stroke-dashoffset:0" - d="m 52.629981,71.702083 c -0.10992,0 -0.219842,0.04193 -0.303708,0.125799 l 0.303708,0.303708 0.303709,0.303708 c 0.167733,-0.167732 0.167733,-0.439683 -10e-7,-0.607416 -0.08386,-0.08387 -0.193787,-0.125799 -0.303708,-0.125799 z" /> - <path - id="path3091-5" - style="font-family:none;mix-blend-mode:normal;fill:#f5ab8d;fill-opacity:1;stroke:none;stroke-width:0.0159332;stroke-dasharray:none;stroke-dashoffset:0" - d="m 52.200473,72.13159 c 0,-0.109921 0.04193,-0.219841 0.1258,-0.303708 l 0.303708,0.303708 0.303709,0.303708 c -0.167733,0.167734 -0.439685,0.167734 -0.607417,-10e-7 -0.08387,-0.08386 -0.1258,-0.193788 -0.1258,-0.303707 z" /> - <path - id="path3093-0" - style="font-family:none;mix-blend-mode:normal;fill:#f5ab8d;fill-opacity:1;stroke:none;stroke-width:0.0159332;stroke-dasharray:none;stroke-dashoffset:0" - d="m 51.242006,72.653311 c 0,-0.221695 0.08457,-0.44339 0.253718,-0.612537 l 0.612536,0.612537 0.612538,0.612535 c -0.338294,0.338295 -0.88678,0.338295 -1.225074,0 -0.169146,-0.169144 -0.253718,-0.390842 -0.253718,-0.612535 z" /> - </g> - </g> - </g> -</svg> diff --git a/data/extensions/jsr@javascriptrestrictor/ipv4.dat b/data/extensions/jsr@javascriptrestrictor/ipv4.dat deleted file mode 100644 index 5a5ed21..0000000 --- a/data/extensions/jsr@javascriptrestrictor/ipv4.dat +++ /dev/null @@ -1,90 +0,0 @@ -Zone,Description,Reference
-10.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-16.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-17.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-18.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-19.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-20.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-21.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-22.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-23.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-24.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-25.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-26.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-27.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-28.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-29.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-30.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-31.172.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-168.192.IN-ADDR.ARPA,RFC1918 Zone,[RFC6303]
-0.IN-ADDR.ARPA,"IPv4 ""THIS"" NETWORK",[RFC6303]
-127.IN-ADDR.ARPA,IPv4 LOOPBACK NETWORK,[RFC6303]
-254.169.IN-ADDR.ARPA,IPv4 LINK LOCAL,[RFC6303]
-2.0.192.IN-ADDR.ARPA,IPv4 TEST-NET-1,[RFC6303]
-100.51.198.IN-ADDR.ARPA,IPv4 TEST-NET-2,[RFC6303]
-113.0.203.IN-ADDR.ARPA,IPv4 TEST-NET-3,[RFC6303]
-255.255.255.255.IN-ADDR.ARPA,IPv4 BROADCAST,[RFC6303]
-64.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-65.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-66.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-67.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-68.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-69.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-70.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-71.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-72.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-73.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-74.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-75.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-76.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-77.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-78.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-79.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-80.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-81.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-82.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-83.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-84.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-85.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-86.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-87.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-88.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-89.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-90.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-91.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-92.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-93.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-94.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-95.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-96.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-97.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-98.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-99.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-100.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-101.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-102.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-103.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-104.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-105.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-106.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-107.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-108.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-109.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-110.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-111.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-112.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-113.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-114.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-115.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-116.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-117.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-118.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-119.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-120.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-121.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-122.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-123.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-124.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-125.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-126.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
-127.100.IN-ADDR.ARPA,RFC6598 Zone,[RFC7793]
diff --git a/data/extensions/jsr@javascriptrestrictor/ipv6.dat b/data/extensions/jsr@javascriptrestrictor/ipv6.dat deleted file mode 100644 index ec4a269..0000000 --- a/data/extensions/jsr@javascriptrestrictor/ipv6.dat +++ /dev/null @@ -1,9 +0,0 @@ -Zone,Description,Reference
-0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA,IPv6 Unspecified Address,[RFC6303]
-1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA,IPv6 Loopback Address,[RFC6303]
-D.F.IP6.ARPA,IPv6 Locally Assigned Local Address,[RFC6303]
-8.E.F.IP6.ARPA,IPv6 Link Local Address,[RFC6303]
-9.E.F.IP6.ARPA,IPv6 Link Local Address,[RFC6303]
-A.E.F.IP6.ARPA,IPv6 Link Local Address,[RFC6303]
-B.E.F.IP6.ARPA,IPv6 Link Local Address,[RFC6303]
-8.B.D.0.1.0.0.2.IP6.ARPA,IPv6 Example Prefix,[RFC6303]
diff --git a/data/extensions/jsr@javascriptrestrictor/level_cache.js b/data/extensions/jsr@javascriptrestrictor/level_cache.js deleted file mode 100644 index c1fd292..0000000 --- a/data/extensions/jsr@javascriptrestrictor/level_cache.js +++ /dev/null @@ -1,161 +0,0 @@ -/** \file - * \brief Handle domain-specific levels - * - * \author Copyright (C) 2020 Libor Polcak - * \author Copyright (C) 2021 Giorgio Maone - * \author Copyright (C) 2022 Marek Salon - * \author Copyright (C) 2023 Martin Zmitko - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** - * Returns the a Promise which resolves to the configuration - * for the current level to be used by the content script for injection - * @param {url} string - * @param isPrivate bool specifying incognito mode - */ -function getContentConfiguration(url, frameId, tabId) { - return new Promise(resolve => { - async function resolve_promise() { - await updateUserScripts(); - let level = getCurrentLevelJSON(url); - if (level.is_default && frameId !== 0) { - /** - * \bug iframes nested within an iframe with user-specific level do not get this level - * - * Suppose that there is an iframe from domain C nested in an iframe from - * domain B that is iself nested in a visited domain A. - * - * +------------------------------------------------------------+ - * | visited domain a.example | - * | | - * | +--------------------------------------------------------+ | - * | | iframe from domain b.example | | - * | | | | - * | | +----------------------------------------------------+ | | - * | | | iframe from domain c.example | | | - * | | | | | | - * | | +----------------------------------------------------+ | | - * | | | | - * | +--------------------------------------------------------+ | - * +------------------------------------------------------------+ - * - * Suppose that B has a user-defined specific level settings, and C does - * not have a user-defined specific level settings. The iframe of domain B - * gets the user-defined settings for domain B but the iframe from domain C - * is set with the level of domain A. - */ - level = getCurrentLevelJSON((await TabCache.async(tabId)).url); - } - let {domainHash, incognitoHash} = await Hashes.getFor(url); - resolve({ - currentLevel: level, - fpdWrappers: isFpdOn(tabId) ? fp_levels.page_wrappers[fpdSettings.detection] : [], - fpdTrackCallers: fpd_track_callers_tab === tabId, - domainHash, - incognitoHash, - portId: wrappersPortId, - }); - } - if (levels_initialised && fp_levels_initialised) { - resolve_promise(); - } - else { - levels_updated_callbacks.push(resolve_promise); - } - }); -} - -/** - * Messaging with content script. - * - * @message The message from content script. - * - * Returns the promise with the message returned to the content script. - */ -function contentScriptLevelSetter(message, {frameId, tab}) { - if (!tab) { - // privileged source, bail out - return; - } - switch (message.message) { - case "get wrapping for URL": - return getContentConfiguration(message.url, frameId, tab.id) - } -} -browser.runtime.onSyncMessage?.addListener(contentScriptLevelSetter); - - -/** - * Register a dynamic content script to be ran for early configuration and - * injection of the wrapper, hopefully before of the asynchronous - * message listener above - * \see Depends on /nscl/service/DocStartInjection.js, /nscl/service/TabCache.js - */ - -DocStartInjection.register(async ({url, frameId, tabId}) => { - let configuration = await getContentConfiguration(url, frameId, tabId); - if (browser.tabs.executeScript) { - // mv2 - return ` - window.configuration = ${JSON.stringify(configuration)}; - if (typeof configureInjection === "function") configureInjection(configuration); - `; - } - - return { - callback: "configureInjection", - assign: "configuration", - data: configuration, - }; -}); - -/** - * We need to process both previous and the next URL. See - * https://pagure.io/JShelter/webextension/issue/46 and - * https://pagure.io/JShelter/webextension/issue/58 for more details. - * So far only window.name wrapper needs such information so we did not created any general - * mechanism. - * Beware that this mechanism is triggered even when the user clicks the back button while content - * scripts do not run again. - */ -NavCache.onUrlChanged.addListener(({tabId, frameId, previousUrl, url}) => { - if (getSiteForURL(previousUrl) === getSiteForURL(url)) return; - if (previousUrl === undefined) return; // First page in this window, see https://pagure.io/JShelter/webextension/issue/116#comment-875070 - (async () => { - let configuration = await getContentConfiguration(url, frameId, tabId); - if (configuration.currentLevel.windowname) { - if (!browser.tabs.executeScript && browser.scripting) { - browser.scripting.executeScript({ - func: () => { window.name = ""; }, - injectImmediately: true, - target: { - frameIds: [frameId], - tabId - } - }); - return; - } - browser.tabs.executeScript(tabId, { - code: `window.name = "";`, - frameId, - runAt: "document_start", - matchAboutBlank: true, - }); - } - })(); -}); diff --git a/data/extensions/jsr@javascriptrestrictor/levels.js b/data/extensions/jsr@javascriptrestrictor/levels.js deleted file mode 100644 index ac92528..0000000 --- a/data/extensions/jsr@javascriptrestrictor/levels.js +++ /dev/null @@ -1,1157 +0,0 @@ -/** \file - * \brief Operations and data structures connected to protection levels - * - * \author Copyright (C) 2019-2021 Libor Polcak - * \author Copyright (C) 2019 Martin Timko - * \author Copyright (C) 2021 Matus Svancar - * \author Copyright (C) 2022 Marek Salon - * \author Copyright (C) 2022 Martin Bednar - * \author Copyright (C) 2023 Martin Zmitko - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** - * Wrapping groups - * - * Used to control the built-in levels and GUI (e.g. level tweaks). - */ -var wrapping_groups = { - empty_level: { /// Automatically populated - level_text: "", - level_id: "", - level_description: "", - }, - group_map: {}, ///Automatically populated - wrapper_map: {}, ///Automatically populated - group_names: [], ///Automatically populated - get_wrappers: function(level) { - wrappers = []; - for (group of wrapping_groups.groups) { - if ((level[group.id] !== undefined) && level[group.id] !== 0) { - let arg_values = group.params[level[group.id] - 1].config; - group.wrappers.forEach((w) => wrappers.push([w, ...arg_values])); - } - } - return wrappers; - }, - groups: [ - { - name: "time_precision", - label: browser.i18n.getMessage("jssgroupTimePrecision"), - description: browser.i18n.getMessage("jssgroupTimePrecision"), - description2: [browser.i18n.getMessage("jssgroupTimePrecisionDescription2", browser.i18n.getMessage("jssgroupPhysicalLocationGeolocation"))], - params: [ - { - short: browser.i18n.getMessage("jssgroupPoor"), - description: browser.i18n.getMessage("jssgroupTimePoorDescription"), - config: [10, false], - }, - { - short: browser.i18n.getMessage("jssgroupLow"), - description: browser.i18n.getMessage("jssgroupTimeLowDescription"), - config: [100, false], - }, - { - short: browser.i18n.getMessage("jssgroupHigh"), - description: browser.i18n.getMessage("jssgroupTimeHighDescription"), - config: [1000, true], - }, - ], - wrappers: [ - // HRT - "Performance.prototype.now", - // PT2 - "PerformanceEntry.prototype", - // ECMA - "window.Date", - // TEMPORAL - "Temporal.Now.instant", - // DOM - "Event.prototype.timeStamp", - // GP - "Gamepad.prototype.timestamp", - // VR - "VRFrameData.prototype.timestamp", - // SENSOR - "Sensor.prototype.timestamp", - ], - }, - { - name: "htmlcanvaselement", - label: browser.i18n.getMessage("jssgroupLocallyRenderedImages"), - description: browser.i18n.getMessage("jssgroupLocallyRenderedImagesDescription"), - description2: [ - browser.i18n.getMessage("jssgroupCanvasLocallyRenderedImagesDescription2"), - browser.i18n.getMessage("jssgroupCanvasLocallyRenderedImagesDescription3") - ], - params: [ - { - short: browser.i18n.getMessage("jssgroupLittleLies"), - description: browser.i18n.getMessage("jssgroupLocallyRenderedImagesLittleLiesDescription"), - config: [0], - }, - { - short: browser.i18n.getMessage("jssgroupStrict"), - description: browser.i18n.getMessage("jssgroupLocallyRenderedImagesStrictDescription"), - config: [1], - }, - ], - wrappers: [ - // H-C - "CanvasRenderingContext2D.prototype.getImageData", - "HTMLCanvasElement.prototype.toBlob", - "HTMLCanvasElement.prototype.toDataURL", - "OffscreenCanvas.prototype.convertToBlob", - "CanvasRenderingContext2D.prototype.isPointInStroke", - "CanvasRenderingContext2D.prototype.isPointInPath", - "WebGLRenderingContext.prototype.readPixels", - "WebGL2RenderingContext.prototype.readPixels", - ], - }, - { - name: "audiobuffer", - label: browser.i18n.getMessage("jssgroupLocallyGeneratedAudio"), - description: browser.i18n.getMessage("jssgroupLocallyGeneratedAudioDescription"), - description2: [ - browser.i18n.getMessage("jssgroupLocallyGeneratedAudioDescription2"), - ], - params: [ - { - short: browser.i18n.getMessage("jssgroupLittleLies"), - description: browser.i18n.getMessage("jssgroupLocallyGeneratedAudioLittleLiesDescription"), - config: [0], - }, - { - short: browser.i18n.getMessage("jssgroupStrict"), - description: browser.i18n.getMessage("jssgroupLocallyGeneratedAudioStrictDescription"), - config: [1], - }, - ], - wrappers: [ - // AUDIO - "AudioBuffer.prototype.getChannelData", - "AudioBuffer.prototype.copyFromChannel", - "AnalyserNode.prototype.getByteTimeDomainData", - "AnalyserNode.prototype.getFloatTimeDomainData", - "AnalyserNode.prototype.getByteFrequencyData", - "AnalyserNode.prototype.getFloatFrequencyData" - ], - }, - { - name: "webgl", - label: browser.i18n.getMessage("jssgroupGraphicCardInformation"), - description: browser.i18n.getMessage("jssgroupGraphicCardInformationDescription"), - description2: [ - browser.i18n.getMessage("jssgroupGraphicCardInformationDescription2"), - browser.i18n.getMessage("jssgroupGraphicCardInformationDescription3"), - ], - params: [ - { - short: browser.i18n.getMessage("jssgroupLittleLies"), - description: browser.i18n.getMessage("jssgroupGraphicCardInformationLittleLiesDescription"), - config: [0], - }, - { - short: browser.i18n.getMessage("jssgroupStrict"), - description: browser.i18n.getMessage("jssgroupGraphicCardInformationStrictDescription"), - config: [1], - }, - ], - wrappers: [ - // WEBGL - "WebGLRenderingContext.prototype.getParameter", - "WebGL2RenderingContext.prototype.getParameter", - "WebGLRenderingContext.prototype.getFramebufferAttachmentParameter", - "WebGL2RenderingContext.prototype.getFramebufferAttachmentParameter", - "WebGLRenderingContext.prototype.getActiveAttrib", - "WebGL2RenderingContext.prototype.getActiveAttrib", - "WebGLRenderingContext.prototype.getActiveUniform", - "WebGL2RenderingContext.prototype.getActiveUniform", - "WebGLRenderingContext.prototype.getAttribLocation", - "WebGL2RenderingContext.prototype.getAttribLocation", - "WebGLRenderingContext.prototype.getBufferParameter", - "WebGL2RenderingContext.prototype.getBufferParameter", - "WebGLRenderingContext.prototype.getProgramParameter", - "WebGL2RenderingContext.prototype.getProgramParameter", - "WebGLRenderingContext.prototype.getRenderbufferParameter", - "WebGL2RenderingContext.prototype.getRenderbufferParameter", - "WebGLRenderingContext.prototype.getShaderParameter", - "WebGL2RenderingContext.prototype.getShaderParameter", - "WebGLRenderingContext.prototype.getShaderPrecisionFormat", - "WebGL2RenderingContext.prototype.getShaderPrecisionFormat", - "WebGLRenderingContext.prototype.getTexParameter", - "WebGL2RenderingContext.prototype.getTexParameter", - "WebGLRenderingContext.prototype.getUniformLocation", - "WebGL2RenderingContext.prototype.getUniformLocation", - "WebGLRenderingContext.prototype.getVertexAttribOffset", - "WebGL2RenderingContext.prototype.getVertexAttribOffset", - "WebGLRenderingContext.prototype.getSupportedExtensions", - "WebGL2RenderingContext.prototype.getSupportedExtensions", - "WebGLRenderingContext.prototype.getExtension", - "WebGL2RenderingContext.prototype.getExtension", - ], - }, - { - name: "plugins", - label: browser.i18n.getMessage("jssgroupInstalledBrowserPlugins"), - description: browser.i18n.getMessage("jssgroupInstalledBrowserPluginsDescription"), - description2: [browser.i18n.getMessage("jssgroupInstalledBrowserPluginsDescription2")], - params: [ - { - short: browser.i18n.getMessage("jssgroupLittleLies"), - description: browser.i18n.getMessage("jssgroupInstalledBrowserPluginsLittleLiesDescription"), - config: [0], - }, - { - short: browser.i18n.getMessage("jssgroupFake"), - description: browser.i18n.getMessage("jssgroupInstalledBrowserPluginsFakeDescription"), - config: [1], - }, - { - short: browser.i18n.getMessage("jssgroupStrict"), - description: browser.i18n.getMessage("jssgroupInstalledBrowserPluginsStrictDescription"), - config: [2], - }, - ], - wrappers: [ - // NP - "Navigator.prototype.plugins", // also modifies "Navigator.prototype.mimeTypes", - ], - }, - { - name: "enumerateDevices", - label: browser.i18n.getMessage("jssgroupConnectedCamerasAndMicrophones"), - description: browser.i18n.getMessage("jssgroupConnectedCamerasAndMicrophonesDescription"), - description2: [ - browser.i18n.getMessage("jssgroupConnectedCamerasAndMicrophonesDescription2"), - ], - params: [ - { - short: browser.i18n.getMessage("jssgroupLittleLies"), - description: browser.i18n.getMessage("jssgroupConnectedCamerasAndMicrophonesLittleLiesDescription"), - config: [0], - }, - { - short: browser.i18n.getMessage("jssgroupAddFake"), - description: browser.i18n.getMessage("jssgroupConnectedCamerasAndMicrophonesAddFakeDescription"), - config: [1], - }, - { - short: browser.i18n.getMessage("jssgroupStrict"), - description: browser.i18n.getMessage("jssgroupConnectedCamerasAndMicrophonesStrictDescription"), - config: [2], - }, - ], - wrappers: [ - // MCS - "MediaDevices.prototype.enumerateDevices", - ], - }, - { - name: "hardware", - label: browser.i18n.getMessage("jssgroupHardware"), - description: browser.i18n.getMessage("jssgroupHardwareDescription"), - description2: [ - browser.i18n.getMessage("jssgroupHardwareDescription2"), - ], - params: [ - { - short: browser.i18n.getMessage("jssgroupLow"), - description: browser.i18n.getMessage("jssgroupHardwareLowDescription"), - config: [0], - }, - { - short: browser.i18n.getMessage("jssgroupMedium"), - description: browser.i18n.getMessage("jssgroupHardwareMediumDescription"), - config: [1], - }, - { - short: browser.i18n.getMessage("jssgroupHigh"), - description: browser.i18n.getMessage("jssgroupHardwareHighDescription"), - config: [2], - }, - ], - wrappers: [ - // HTML-LS - "Navigator.prototype.hardwareConcurrency", - // DM - "Navigator.prototype.deviceMemory", - ], - }, - { - name: "net", - label: browser.i18n.getMessage("jssgroupNetworkConditions"), - description: browser.i18n.getMessage("jssgroupNetworkConditionsDescription"), - description2: [], - params: [ - { - short: browser.i18n.getMessage("jssgroupRemove"), - description: browser.i18n.getMessage("jssgroupNetworkConditionsRemoveDescription"), - config: [0], - }, - ], - wrappers: [ - // NET - "Navigator.prototype.connection", - "window.NetworkInformation", - ], - }, - { - name: "xhr", - label: browser.i18n.getMessage("jssgroupXMLHttpRequestRequests"), - description: browser.i18n.getMessage("jssgroupXMLHttpRequestRequestsDescription"), - description2: [browser.i18n.getMessage("jssgroupXMLHttpRequestRequestsDescription2")], - params: [ - { - short: browser.i18n.getMessage("jssgroupAsk"), - description: browser.i18n.getMessage("jssgroupXMLHttpRequestRequestsAskDescription"), - config: [false, true], - }, - { - short: browser.i18n.getMessage("jssgroupBlock"), - description: browser.i18n.getMessage("jssgroupXMLHttpRequestRequestsBlockDescription"), - config: [true, false], - }, - ], - wrappers: [ - // AJAX - "XMLHttpRequest.prototype.open", - "XMLHttpRequest.prototype.send", - ], - }, - { - name: "arrays", - label: browser.i18n.getMessage("jssgroupArrays"), - description: browser.i18n.getMessage("jssgroupArraysDescription"), - description2: [], - params: [ - { - short: browser.i18n.getMessage("jssgroupArraysShift"), - description: browser.i18n.getMessage("jssgroupArraysShiftDescription"), - config: [false], - }, - { - short: browser.i18n.getMessage("jssgroupArraysRandomize"), - description: browser.i18n.getMessage("jssgroupArraysRandomizeDescription"), - config: [true], - }, - ], - wrappers: [ - "window.DataView", - "window.Uint8Array", - "window.Int8Array", - "window.Uint8ClampedArray", - "window.Int16Array", - "window.Uint16Array", - "window.Int32Array", - "window.Uint32Array", - "window.Float32Array", - "window.Float64Array", - 'window.BigInt64Array', - 'window.BigUint64Array', - ], - }, - { - name: "shared_array", - label: browser.i18n.getMessage("jssgroupSharedArraysBuffer"), - description: browser.i18n.getMessage("jssgroupSharedArraysBufferDescription"), - description2: [], - params: [ - { - short: browser.i18n.getMessage("jssgroupMedium"), - description: browser.i18n.getMessage("jssgroupSharedArraysBufferMediumDescription"), - config: [false], - }, - { - short: browser.i18n.getMessage("jssgroupStrict"), - description: browser.i18n.getMessage("jssgroupSharedArraysBufferStrictDescription"), - config: [true], - }, - ], - wrappers: [ - // SHARED - "window.SharedArrayBuffer" - ], - }, - { - name: "webworker", - label: browser.i18n.getMessage("jssgroupWebWorker"), - description: browser.i18n.getMessage("jssgroupWebWorkerDescription"), - description2: [browser.i18n.getMessage("jssgroupWebWorkerDescription2")], - params: [ - { - short: browser.i18n.getMessage("jssgroupLow"), - description: browser.i18n.getMessage("jssgroupWebWorkerLowDescription"), - config: [false, false], - }, - { - short: browser.i18n.getMessage("jssgroupStrict"), - description: browser.i18n.getMessage("jssgroupWebWorkerStrictDescription"), - config: [true, false], - }, - { - short: browser.i18n.getMessage("jssgroupRemove"), - description: browser.i18n.getMessage("jssgroupWebWorkerRemoveDescription"), - config: [false, true], - }, - ], - wrappers: [ - "window.Worker", - ], - }, - { - name: "geolocation", - label: browser.i18n.getMessage("jssgroupPhysicalLocationGeolocation"), - description: browser.i18n.getMessage("jssgroupPhysicalLocationGeolocationDescription"), - description2: [browser.i18n.getMessage("jssgroupPhysicalLocationGeolocationDescription2")], - params: [ - { - short: browser.i18n.getMessage("jssgroupGeolocationTimestampOnly"), - description: browser.i18n.getMessage("jssgroupGeolocationTimestampOnlyDescription", browser.i18n.getMessage("jssgroupTimePrecision")), - config: [-1], - }, - { - short: browser.i18n.getMessage("jssgroupGeolocationVillage"), - description: browser.i18n.getMessage("jssgroupGeolocationVillageDescription"), - config: [2], - }, - { - short: browser.i18n.getMessage("jssgroupGeolocationTown"), - description: browser.i18n.getMessage("jssgroupGeolocationTownDescription"), - config: [3], - }, - { - short: browser.i18n.getMessage("jssgroupGeolocationRegion"), - description: browser.i18n.getMessage("jssgroupGeolocationRegionDescription"), - config: [4], - }, - { - short: browser.i18n.getMessage("jssgroupGeolocationLongDistance"), - description: browser.i18n.getMessage("jssgroupGeolocationLongDistanceDescription"), - config: [5], - }, - { - short: browser.i18n.getMessage("jssgroupRemove"), - description: browser.i18n.getMessage("jssgroupGeolocationRemoveDescription"), - config: [0], - }, - ], - wrappers: [ - // GPS - "Navigator.prototype.geolocation", - "window.Geolocation", - "window.GeolocationCoordinates", - "window.GeolocationPosition", - "window.GeolocationPositionError", - "Geolocation.prototype.getCurrentPosition", - "Geolocation.prototype.watchPosition", - "Geolocation.prototype.clearWatch" - ], - }, - { - name: "physical_environment", - label: browser.i18n.getMessage("jssgroupPhysicalEnvironmentSensors"), - description: browser.i18n.getMessage("jssgroupPhysicalEnvironmentSensorsDescription"), - description2: [browser.i18n.getMessage("jssgroupPhysicalEnvironmentSensorsDescription2")], - params: [ - { - short: browser.i18n.getMessage("jssgroupHigh"), - description: browser.i18n.getMessage("jssgroupPhysicalEnvironmentSensorsHighDescription"), - config: [true], - }, - ], - wrappers: [ - // GENERIC SENSOR API Sensors - - // Magnetometer - "Magnetometer.prototype.x", - "Magnetometer.prototype.y", - "Magnetometer.prototype.z", - - // Accelerometer, LinearAccelerationSensor, and GravitySensor - "Accelerometer.prototype.x", - "Accelerometer.prototype.y", - "Accelerometer.prototype.z", - - // Gyroscope - "Gyroscope.prototype.x", - "Gyroscope.prototype.y", - "Gyroscope.prototype.z", - - // AbsoluteOrientationSensor and RelativeOrientationSensor - "OrientationSensor.prototype.quaternion", - - // AmbientLightSensor - "AmbientLightSensor.prototype.illuminance" - ], - }, - { - name: "useridle", - label: browser.i18n.getMessage("jssgroupUserIdleDetection"), - description: browser.i18n.getMessage("jssgroupUserIdleDetectionDescription"), - description2: [browser.i18n.getMessage("jssgroupUserIdleDetectionDescription2")], - params: [ - { - short: browser.i18n.getMessage("jssgroupConfuse"), - description: browser.i18n.getMessage("jssgroupConfuseDescription"), - config: [0], - }, - { - short: browser.i18n.getMessage("jssgroupBlock"), - description: browser.i18n.getMessage("jssgroupBlockDescription"), - config: [1], - }, - { - short: browser.i18n.getMessage("jssgroupRemove"), - description: browser.i18n.getMessage("jssgroupRemoveDescription"), - config: [2], - }, - ], - wrappers: [ - // COOP-SCHEDULING - "window.IdleDetector", - "IdleDetector.requestPermission", - "IdleDetector.prototype.screenState", - "IdleDetector.prototype.userState", - ], - }, - { - name: "coopschedule", - label: browser.i18n.getMessage("jssgroupCoopschedule"), - description: browser.i18n.getMessage("jssgroupCoopscheduleDescription"), - description2: [browser.i18n.getMessage("jssgroupCoopscheduleDescription2")], - params: [ - { - short: browser.i18n.getMessage("jssgroupConfuse"), - description: browser.i18n.getMessage("jssgroupCoopscheduleConfuseDescription"), - config: [], - }, - ], - wrappers: [ - // COOP-SCHEDULING - "IdleDeadline.prototype.didTimeout", - "IdleDeadline.prototype.timeRemaining", - ], - }, - { - name: "gamepads", - label: browser.i18n.getMessage("jssgroupGamepads"), - description: browser.i18n.getMessage("jssgroupGamepadsDescription"), - description2: [], - params: [ - { - short: browser.i18n.getMessage("jssgroupStrict"), - description: browser.i18n.getMessage("jssgroupGamepadsStrictDescription"), - config: [true], - }, - ], - wrappers: [ - // GAMEPAD - "Navigator.prototype.getGamepads", - ], - }, - { - name: "vr", - label: browser.i18n.getMessage("jssgroupVirtualAndAugmentedRealityDevices"), - description: browser.i18n.getMessage("jssgroupVirtualAndAugmentedRealityDevicesDescription"), - description2: [browser.i18n.getMessage("jssgroupVirtualAndAugmentedRealityDevicesDescription2")], - params: [ - { - short: browser.i18n.getMessage("jssgroupStrict"), - description: browser.i18n.getMessage("jssgroupVirtualAndAugmentedRealityDevicesStrictDescription"), - config: [], - }, - ], - wrappers: [ - // VR - "Navigator.prototype.activeVRDisplays", - // XR - "Navigator.prototype.xr", - ], - }, - { - name: "playback", - label: browser.i18n.getMessage("jssgroupMultimediaPlayback"), - description: browser.i18n.getMessage("jssgroupMultimediaPlaybackDescription"), - description2: [browser.i18n.getMessage("jssgroupMultimediaPlaybackDescription2")], - params: [ - { - short: browser.i18n.getMessage("jssgroupLittleLies"), - description: browser.i18n.getMessage("jssgroupMultimediaPlaybackLittleLiesDescription"), - config: [0], - }, - { - short: browser.i18n.getMessage("jssgroupStrict"), - description: browser.i18n.getMessage("jssgroupMultimediaPlaybackStrictDescription"), - config: [1], - }, - { - short: browser.i18n.getMessage("jssgroupBlock"), - description: browser.i18n.getMessage("jssgroupMultimediaPlaybackBlockDescription"), - config: [2], - }, - ], - wrappers: [ - // EME - "Navigator.prototype.requestMediaKeySystemAccess", - // MEDIA-CAPABILITIES - "MediaCapabilities.prototype.encodingInfo", - "MediaCapabilities.prototype.decodingInfo", - // HTML5 - "HTMLMediaElement.prototype.canPlayType", - ], - }, - { - name: "analytics", - label: browser.i18n.getMessage("jssgroupUnreliableTransfersToServerBeacons"), - description: browser.i18n.getMessage("jssgroupUnreliableTransfersToServerBeaconsDescription"), - description2: [browser.i18n.getMessage("jssgroupUnreliableTransfersToServerBeaconsDescription2"), browser.i18n.getMessage("jssgroupUnreliableTransfersToServerBeaconsDescription3")], - params: [ - { - short: browser.i18n.getMessage("jssgroupBlock"), - description: browser.i18n.getMessage("jssgroupUnreliableTransfersToServerBeaconsBlockDescription"), - config: [], - }, - ], - wrappers: [ - // BEACON - "Navigator.prototype.sendBeacon", - ], - }, - { - name: "battery", - label: browser.i18n.getMessage("jssgroupHardwareBattery"), - description: browser.i18n.getMessage("jssgroupHardwareBatteryDescription"), - description2: [], - params: [ - { - short: browser.i18n.getMessage("jssgroupRemove"), - description: browser.i18n.getMessage("jssgroupHardwareBatteryRemoveDescription"), - config: [], - }, - ], - wrappers: [ - // BATTERY - "Navigator.prototype.getBattery", - "window.BatteryManager", - ], - }, - { - name: "windowname", - label: browser.i18n.getMessage("jssgroupPersistentIdentifierOfTheBrowserTab"), - description: browser.i18n.getMessage("jssgroupPersistentIdentifierOfTheBrowserTabDescription"), - description2: [browser.i18n.getMessage("jssgroupPersistentIdentifierOfTheBrowserTabDescription2")], - params: [ - { - short: browser.i18n.getMessage("jssgroupStrict"), - description: browser.i18n.getMessage("jssgroupPersistentIdentifierOfTheBrowserTabStrictDescription"), - config: [], - }, - ], - wrappers: [ - // WINDOW-NAME - "window.name", - ], - }, - { - name: "nfc", - label: browser.i18n.getMessage("jssgroupNFC"), - description: browser.i18n.getMessage("jssgroupNFCDescription"), - description2: [browser.i18n.getMessage("jssgroupNFCDescription2")], - params: [ - { - short: browser.i18n.getMessage("jssgroupRemove"), - description: browser.i18n.getMessage("jssgroupNFCRemoveDescription"), - config: [], - }, - ], - wrappers: [ - // BATTERY - "window.NDEFMessage", - "window.NDEFReader", - "window.NDEFRecord", - ], - }, - { - name: "wasm", - label: browser.i18n.getMessage("jssgroupWASM"), - description: browser.i18n.getMessage("jssgroupWASMDescription"), - description2: [ - browser.i18n.getMessage("jssgroupWASMDescription2", [browser.i18n.getMessage("jssgroupLocallyRenderedImages"), browser.i18n.getMessage("jssgroupLocallyGeneratedAudio"), browser.i18n.getMessage("jssgroupLittleLies")]), - browser.i18n.getMessage("jssgroupWASMDescription3"), - ], - params: [ - { - short: browser.i18n.getMessage("jssgroupWASMDisabled"), - description: browser.i18n.getMessage("jssgroupWASMDisabledDescription"), - config: [0], - }, - { - short: browser.i18n.getMessage("jssgroupWASMPassive"), - description: browser.i18n.getMessage("jssgroupWASMPassiveDescription"), - config: [1], - }, - { - short: browser.i18n.getMessage("jssgroupWASMActive"), - description: browser.i18n.getMessage("jssgroupWASMActiveDescription"), - description2: [ - "jssgroupWASMActiveDescription2","jssgroupWASMActiveDescription3","jssgroupWASMActiveDescription4" - ], - config: [2], - }, - ], - wrappers: [], // Special case with no wrappers, this group is for modifying htmlcanvaselement, webgl and audiobuffer farbling behaviour - }, - ], -} -var modify_wrapping_groups = modify_wrapping_groups || (() => null); // Give other scripts the possibility to modify the wrapping_groups objects -modify_wrapping_groups(); - -/** - * Check if the given API is supported by the browser - * @param String to the object which presence to check. - */ -function is_api_undefined(api) { - if (!self.window) return false; // mv3 service worker? - let s = api.split("."); - let last = self; - for (p of s) { - try { - if (last[p] === undefined) { - return true; - } - } - catch (e) { - // We may have encountered something like - // TypeError: 'get startTime' called on an object that does not implement interface PerformanceEntry. - break; - } - last = last[p]; - } - return false; -} - -/** - * Returns true if all given API wrappers are unsuported. - */ -function are_all_api_unsupported(wrappers) { - for (wrapper of wrappers) { - if (!is_api_undefined(wrapper)) { - return false; - } - } - return true; -} - -/// Automatically populate infered metadata in wrapping_groups. -wrapping_groups.groups.forEach(function (group) { - group.id = group.name; - if (!are_all_api_unsupported(group.wrappers) || group.wrappers.length === 0) { - wrapping_groups.group_names.push(group.name); - wrapping_groups.empty_level[group.id] = 0; - } - wrapping_groups.group_map[group.id] = group - for (wrapper_name of group.wrappers) { - wrapping_groups.wrapper_map[wrapper_name] = group.name; - } -}); - -// ***************************************************************************** -// levels of protection - -// Level aliases -const L0 = "0"; -const L1 = "1"; -const L2 = "2"; -const L3 = "3"; -const L_EXPERIMENTAL = "Experiment"; // Use a long ID so that it is not in conflict with pre0.7 user-defined levels - -/// Built-in levels -var level_0 = { - "builtin": true, - "level_id": L0, - "level_text": browser.i18n.getMessage("JSSL0Name"), - "level_description": browser.i18n.getMessage("JSSL0Description"), -}; - -var level_1 = { - "builtin": true, - "level_id": L1, - "level_text": browser.i18n.getMessage("JSSL1Name"), - "level_description": browser.i18n.getMessage("JSSL1Description"), - "time_precision": 3, - "net": 1, - "webworker": 3, - "geolocation": 3, - "physical_environment": 1, - "useridle": 1, - "coopschedule": 1, - "gamepads": 1, - "vr": 1, - "analytics": 1, - "battery": 1, - "nfc": 1, -}; - -var level_2 = { - "builtin": true, - "level_id": L2, - "level_text": browser.i18n.getMessage("JSSL2Name"), - "level_description": browser.i18n.getMessage("JSSL2Description"), - "time_precision": 3, - "htmlcanvaselement": 1, - "audiobuffer": 1, - "webgl": 1, - "plugins": 2, - "enumerateDevices": 2, - "hardware": 1, - "net": 1, - "webworker": 3, - "geolocation": 3, - "physical_environment": 1, - "useridle": 2, - "coopschedule": 1, - "gamepads": 1, - "vr": 1, - "analytics": 1, - "battery": 1, - "windowname": 1, - "nfc": 1, - "wasm": 1, -}; - -var level_3 = { - "builtin": true, - "level_id": L3, - "level_text": browser.i18n.getMessage("JSSL3Name"), - "level_description": browser.i18n.getMessage("JSSL3Description"), - "time_precision": 3, - "htmlcanvaselement": 2, - "audiobuffer": 2, - "webgl": 2, - "plugins": 3, - "enumerateDevices": 3, - "hardware": 3, - "net": 1, - "webworker": 3, - "geolocation": 6, - "physical_environment": 1, - "useridle": 3, - "coopschedule": 1, - "gamepads": 1, - "vr": 1, - "playback": 2, - "analytics": 1, - "battery": 1, - "windowname": 1, - "nfc": 1, -}; - -var level_experimental = { - "builtin": true, - "level_id": L_EXPERIMENTAL, - "level_text": browser.i18n.getMessage("JSSLexperimentalName"), - "level_description": browser.i18n.getMessage("JSSLexperimentalDescription"), - "time_precision": 3, - "htmlcanvaselement": 2, - "audiobuffer": 2, - "webgl": 2, - "plugins": 3, - "enumerateDevices": 3, - "hardware": 3, - "net": 1, - "xhr": 1, - "arrays": 2, - "shared_array": 2, - "webworker": 2, - "geolocation": 6, - "physical_environment": 1, - "useridle": 3, - "coopschedule": 1, - "gamepads": 1, - "vr": 1, - "playback": 3, - "analytics": 1, - "battery": 1, - "windowname": 1, - "nfc": 1, -}; - -var modify_builtin_levels = modify_builtin_levels || (() => null); // Give other scripts the possibility to modify builtin levels -modify_builtin_levels(); - -var levels = {}; -var default_level = {}; -var domains = {}; -function init_levels() { - levels = { - [level_0.level_id]: level_0, - [level_1.level_id]: level_1, - [level_2.level_id]: level_2, - [level_3.level_id]: level_3, - [level_experimental.level_id]: level_experimental - }; - default_level = Object.create(levels[L2]); - default_level.level_text = "Default"; - domains = {}; -} -init_levels(); - -let levels_initialised = false; // Initialized in updateLevels() -let fp_levels_initialised = false; // Initialized in fp_levels.js/loadFpdConfig() -let levels_updated_callbacks = []; -var tweak_domains = tweak_domains || {}; -async function updateLevels(res) { - init_levels(); - custom_levels = res["custom_levels"] || {}; - for (let key in custom_levels) { - levels[key] = custom_levels[key]; - } - for (let key in levels) { - levels[key].wrappers = wrapping_groups.get_wrappers(levels[key]); - } - var new_default_level = res["__default__"]; - if (new_default_level === undefined || new_default_level === null || !(new_default_level in levels)) { - default_level = Object.assign({}, levels[L2]); - setDefaultLevel(L2); - } - else { - default_level = Object.assign({}, levels[new_default_level]); - } - default_level.is_default = true; - var redefined_domains = res["domains"] || {}; - for (let [d, settings] of Object.entries(tweak_domains)) { - if ((default_level.level_id in settings.level_id) && !(d in redefined_domains)) { - redefined_domains[d] = {level_id: default_level.level_id, tweaks: settings.tweaks}; - } - } - for (let [d, {level_id, tweaks, restore, restore_tweaks}] of Object.entries(redefined_domains)) { - let level = levels[level_id]; - if (level === undefined) { - domains[d] = default_level; - } - else { - if (tweaks) { - // this domain has "tweaked" wrapper groups from other levels, let's merge them - level = Object.assign({}, level, tweaks); - level.tweaks = tweaks; - delete level.wrappers; // we will lazy instantiate them on demand in getCurrentLevelJSON() - } - if (restore) { - level.restore = restore; - if (restore_tweaks) { - level.restore_tweaks = restore_tweaks; - } - } - } - domains[d] = level; - } - - levels_initialised = true; - if (fp_levels_initialised) { // Wait for both levels_initialised and fp_levels_initialised - var orig_levels_updated_callbacks = levels_updated_callbacks; - levels_updated_callbacks = []; - orig_levels_updated_callbacks.forEach((it) => it()); - await updateUserScripts(); - } -} -browser.storage.sync.get(null).then(updateLevels); - -var wrappersPortId = null; -var cachedSiteSettings = null; -async function updateUserScripts() { - if (browser.tabs.executeScript || !("userScripts" in browser) || self.window) { - return; - } - if (!cachedSiteSettings) { - ({wrappersPortId, cachedSiteSettings} = await - browser.storage.local.get(["wrappersPortId", "cachedSiteSettings"])); - } - siteSettings = JSON.stringify({domains, fpdWhitelist, fpdOn: fpDetectionOn && fpdSettings.detection}); - if (siteSettings == cachedSiteSettings) { - return; - } - cachedSiteSettings = siteSettings; - const confCache = new Map(); - const allGlobs = new Set(); - const entries = Object.entries(domains); - entries.push(["*", default_level]); - let count = 0; - for (const [domain, l] of entries) { - if (l.tweaks && !l.wrappers) { - l.wrappers = wrapping_groups.get_wrappers(l); - } - const fpdOn = fpDetectionOn && !isFpdWhitelisted(domain); - const confKey = JSON.stringify([l.wrappers, fpdOn]); - let conf = confCache.get(confKey); - const glob = `*.${domain}`; - if (!conf) { - const fpdWrappers = fpdOn ? fp_levels.page_wrappers[fpdSettings.detection] : []; - const injection = fp_assemble_injection(l, fpdWrappers); - conf = { - id: `L:${l.level_id}-FPD:${fpdOn}-C:${count++}`, - injection, - includeGlobs: [glob], - excludeGlobs: [], - }; - confCache.set(confKey, conf); - } else { - conf.includeGlobs.push(glob); - } - if (domain == '*') { // default level - conf.excludeGlobs = [... allGlobs].filter(g => !conf.includeGlobs.includes(g)); - conf.includeGlobs = []; - conf.matches = ["<all_urls>"]; - break; - } - allGlobs.add(glob); - const imply = `.${domain}`; - for (const otherConf of confCache.values()) { - if (otherConf === conf) continue; - const otherImplied = otherConf.includeGlobs.filter(g => g !== glob && g.endsWith(imply)); - for (const impliedGlob of otherImplied) { - conf.excludeGlobs.push(impliedGlob); - } - const otherImplies = otherConf.includeGlobs.filter(g => glob.endsWith(g.replace('*', ''))); - for (const implyingGlob of otherImplies) { - otherConf.excludeGlobs.push(implyingGlob); - } - } - } - - const usTemplate = { - runAt: "document_start", - allFrames: true, - world: "MAIN", - }; - const globs2matches = globs => [... new Set(globs)].map(g => `*://${g}/*`); - - const scripts = []; - for (const conf of confCache.values()) { - const {portId, code} = patchWindow({ - portId: wrappersPortId, - code: conf.injection, - }); - if (wrappersPortId !== portId) { - wrappersPortId = portId; - } - browser.storage.local.set({cachedSiteSettings, wrappersPortId}); - const {id, includeGlobs, excludeGlobs} = conf; - const opts = { - id, - matches: conf.matches || globs2matches(includeGlobs), - excludeMatches: globs2matches(excludeGlobs), - }; - const debugCode = `console.info("Injecting wrapper for " + document.URL + ": " + JSON.stringify(${JSON.stringify(opts)}) + ", ${portId}.");`; - opts.js = [{code: debugCode}, {code}]; - scripts.push( - Object.assign(opts, usTemplate) - ); - } - - await browser.userScripts.unregister(); - if (scripts.length) { - await browser.userScripts.register(scripts); - } -} - -function changedLevels(changed, area) { - if (area !== "sync") return; - browser.storage.sync.get(null).then(updateLevels); -} -browser.storage.onChanged.addListener(changedLevels); - -function setDefaultLevel(level) { - browser.storage.sync.set({__default__: level}); -} - -function saveDomainLevels() { - tobesaved = {}; - for (k in domains) { - let {level_id, tweaks, restore, restore_tweaks} = domains[k]; - if (k[k.length - 1] === ".") { - k = k.substring(0, k.length-1); - } - // Tweaks not contain the new value defined by the user. However, that might - // be the value of the level. Remove such tweaks as they to not change the - // level of protection - if (tweaks) { - for (let [group, param] of Object.entries(tweaks)) { - if (param === (levels[level_id][group] || 0)) { - delete tweaks[group]; // remove redundant entries - } - } - if (Object.keys(tweaks).length === 0) { - tweaks = undefined; - } - // Do not save built-in tweaks as they are automatically added in updateLevels - if (k in tweak_domains) { - // Skip further check if the user has a different default_level - if (default_level.level_id in tweak_domains[k].level_id) { - tdb_tweaks = Object.entries(tweak_domains[k].tweaks); - current_tweaks = Object.entries(tweaks || {}); - if (tdb_tweaks.length === current_tweaks.length) { - var equal = true; - for ([name, val] of tdb_tweaks) { - if (tweaks[name] !== val) { - equal = false; - break; - } - } - if (equal) { - // This entry should not be saved - continue; - } - } - } - } - } - tobesaved[k] = tweaks ? {level_id, tweaks} : {level_id}; - if (restore) { - tobesaved[k].restore = restore; - if (restore_tweaks) { - tobesaved[k].restore_tweaks = restore_tweaks; - } - } - } - browser.storage.sync.set({domains: tobesaved}); -} - -function getCurrentLevelJSON(url) { - var subDomains = extractSubDomains(getEffectiveDomain(url)); - for (let domain of subDomains.reverse()) { - if (domain in domains) { - let l = domains[domain]; - if (l.tweaks && !l.wrappers) { - l.wrappers = wrapping_groups.get_wrappers(l); - } - return l; - } - } - return default_level; -} - -function getTweaksForLevel(level_id, tweaks_obj) { - tweaks_obj = tweaks_obj || {}; // Make sure that tweaks_obj is an object - let working = Object.assign({}, wrapping_groups.empty_level, levels[level_id], tweaks_obj); - Object.keys(working).forEach(function(key) { - if (!wrapping_groups.group_names.includes(key)) { - delete working[key]; - } - }); - return working; -} diff --git a/data/extensions/jsr@javascriptrestrictor/levels_browser.js b/data/extensions/jsr@javascriptrestrictor/levels_browser.js deleted file mode 100644 index 082c888..0000000 --- a/data/extensions/jsr@javascriptrestrictor/levels_browser.js +++ /dev/null @@ -1,46 +0,0 @@ -/** \file - * \brief Modifies the levels.js data structures to accomodate for Firefox-specific configuration - * - * \author Copyright (C) 2022 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -var modify_wrapping_groups = function() { - wrapping_groups.groups.forEach(function (group) { - if (group.name === "windowname") { - group.description2.push(browser.i18n.getMessage("jssgroupPersistentIdentifierOfTheBrowserTabFirefox88")) - } - else if (group.name === "wasm") { - group.params = [ - { - short: browser.i18n.getMessage("jssgroupWASMDisabled"), - description: browser.i18n.getMessage("jssgroupWASMDisabledDescription"), - config: [0], - }, - { - short: browser.i18n.getMessage("jssgroupWASMEnabled"), - description: browser.i18n.getMessage("jssgroupWASMEnabledDescription"), - config: [1], - }, - ]; - } - }); -}; -var modify_builtin_levels = function() { - delete level_2.windowname; - delete level_3.windowname; -} diff --git a/data/extensions/jsr@javascriptrestrictor/lib/sha256.js b/data/extensions/jsr@javascriptrestrictor/lib/sha256.js deleted file mode 100644 index 4e0d065..0000000 --- a/data/extensions/jsr@javascriptrestrictor/lib/sha256.js +++ /dev/null @@ -1,527 +0,0 @@ -/** - * [js-sha256]{@link https://github.com/emn178/js-sha256} - * - * @version 0.10.1 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2014-2023 - * @license MIT - */ -/*jslint bitwise: true */ -(function () { - 'use strict'; - - var ERROR = 'input is invalid type'; - var WINDOW = typeof window === 'object'; - var root = WINDOW ? window : {}; - if (root.JS_SHA256_NO_WINDOW) { - WINDOW = false; - } - var WEB_WORKER = !WINDOW && typeof self === 'object'; - var NODE_JS = !root.JS_SHA256_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node; - if (NODE_JS) { - root = global; - } else if (WEB_WORKER) { - root = self; - } - var COMMON_JS = !root.JS_SHA256_NO_COMMON_JS && typeof module === 'object' && module.exports; - var AMD = typeof define === 'function' && define.amd; - var ARRAY_BUFFER = !root.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined'; - var HEX_CHARS = '0123456789abcdef'.split(''); - var EXTRA = [-2147483648, 8388608, 32768, 128]; - var SHIFT = [24, 16, 8, 0]; - var K = [ - 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, - 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, - 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, - 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, - 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, - 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, - 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, - 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 - ]; - var OUTPUT_TYPES = ['hex', 'array', 'digest', 'arrayBuffer']; - - var blocks = []; - - if (root.JS_SHA256_NO_NODE_JS || !Array.isArray) { - Array.isArray = function (obj) { - return Object.prototype.toString.call(obj) === '[object Array]'; - }; - } - - if (ARRAY_BUFFER && (root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) { - ArrayBuffer.isView = function (obj) { - return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer; - }; - } - - var createOutputMethod = function (outputType, is224) { - return function (message) { - return new Sha256(is224, true).update(message)[outputType](); - }; - }; - - var createMethod = function (is224) { - var method = createOutputMethod('hex', is224); - if (NODE_JS) { - method = nodeWrap(method, is224); - } - method.create = function () { - return new Sha256(is224); - }; - method.update = function (message) { - return method.create().update(message); - }; - for (var i = 0; i < OUTPUT_TYPES.length; ++i) { - var type = OUTPUT_TYPES[i]; - method[type] = createOutputMethod(type, is224); - } - return method; - }; - - var nodeWrap = function (method, is224) { - var crypto = require('crypto') - var Buffer = require('buffer').Buffer; - var algorithm = is224 ? 'sha224' : 'sha256'; - var bufferFrom; - if (Buffer.from && !root.JS_SHA256_NO_BUFFER_FROM) { - bufferFrom = Buffer.from; - } else { - bufferFrom = function (message) { - return new Buffer(message); - }; - } - var nodeMethod = function (message) { - if (typeof message === 'string') { - return crypto.createHash(algorithm).update(message, 'utf8').digest('hex'); - } else { - if (message === null || message === undefined) { - throw new Error(ERROR); - } else if (message.constructor === ArrayBuffer) { - message = new Uint8Array(message); - } - } - if (Array.isArray(message) || ArrayBuffer.isView(message) || - message.constructor === Buffer) { - return crypto.createHash(algorithm).update(bufferFrom(message)).digest('hex'); - } else { - return method(message); - } - }; - return nodeMethod; - }; - - var createHmacOutputMethod = function (outputType, is224) { - return function (key, message) { - return new HmacSha256(key, is224, true).update(message)[outputType](); - }; - }; - - var createHmacMethod = function (is224) { - var method = createHmacOutputMethod('hex', is224); - method.create = function (key) { - return new HmacSha256(key, is224); - }; - method.update = function (key, message) { - return method.create(key).update(message); - }; - for (var i = 0; i < OUTPUT_TYPES.length; ++i) { - var type = OUTPUT_TYPES[i]; - method[type] = createHmacOutputMethod(type, is224); - } - return method; - }; - - function Sha256(is224, sharedMemory) { - if (sharedMemory) { - blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = - blocks[4] = blocks[5] = blocks[6] = blocks[7] = - blocks[8] = blocks[9] = blocks[10] = blocks[11] = - blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; - this.blocks = blocks; - } else { - this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; - } - - if (is224) { - this.h0 = 0xc1059ed8; - this.h1 = 0x367cd507; - this.h2 = 0x3070dd17; - this.h3 = 0xf70e5939; - this.h4 = 0xffc00b31; - this.h5 = 0x68581511; - this.h6 = 0x64f98fa7; - this.h7 = 0xbefa4fa4; - } else { // 256 - this.h0 = 0x6a09e667; - this.h1 = 0xbb67ae85; - this.h2 = 0x3c6ef372; - this.h3 = 0xa54ff53a; - this.h4 = 0x510e527f; - this.h5 = 0x9b05688c; - this.h6 = 0x1f83d9ab; - this.h7 = 0x5be0cd19; - } - - this.block = this.start = this.bytes = this.hBytes = 0; - this.finalized = this.hashed = false; - this.first = true; - this.is224 = is224; - } - - Sha256.prototype.update = function (message) { - if (this.finalized) { - return; - } - var notString, type = typeof message; - if (type !== 'string') { - if (type === 'object') { - if (message === null) { - throw new Error(ERROR); - } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) { - message = new Uint8Array(message); - } else if (!Array.isArray(message)) { - if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) { - throw new Error(ERROR); - } - } - } else { - throw new Error(ERROR); - } - notString = true; - } - var code, index = 0, i, length = message.length, blocks = this.blocks; - - while (index < length) { - if (this.hashed) { - this.hashed = false; - blocks[0] = this.block; - blocks[16] = blocks[1] = blocks[2] = blocks[3] = - blocks[4] = blocks[5] = blocks[6] = blocks[7] = - blocks[8] = blocks[9] = blocks[10] = blocks[11] = - blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; - } - - if (notString) { - for (i = this.start; index < length && i < 64; ++index) { - blocks[i >> 2] |= message[index] << SHIFT[i++ & 3]; - } - } else { - for (i = this.start; index < length && i < 64; ++index) { - code = message.charCodeAt(index); - if (code < 0x80) { - blocks[i >> 2] |= code << SHIFT[i++ & 3]; - } else if (code < 0x800) { - blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; - } else if (code < 0xd800 || code >= 0xe000) { - blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; - } else { - code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff)); - blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3]; - blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3]; - } - } - } - - this.lastByteIndex = i; - this.bytes += i - this.start; - if (i >= 64) { - this.block = blocks[16]; - this.start = i - 64; - this.hash(); - this.hashed = true; - } else { - this.start = i; - } - } - if (this.bytes > 4294967295) { - this.hBytes += this.bytes / 4294967296 << 0; - this.bytes = this.bytes % 4294967296; - } - return this; - }; - - Sha256.prototype.finalize = function () { - if (this.finalized) { - return; - } - this.finalized = true; - var blocks = this.blocks, i = this.lastByteIndex; - blocks[16] = this.block; - blocks[i >> 2] |= EXTRA[i & 3]; - this.block = blocks[16]; - if (i >= 56) { - if (!this.hashed) { - this.hash(); - } - blocks[0] = this.block; - blocks[16] = blocks[1] = blocks[2] = blocks[3] = - blocks[4] = blocks[5] = blocks[6] = blocks[7] = - blocks[8] = blocks[9] = blocks[10] = blocks[11] = - blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; - } - blocks[14] = this.hBytes << 3 | this.bytes >>> 29; - blocks[15] = this.bytes << 3; - this.hash(); - }; - - Sha256.prototype.hash = function () { - var a = this.h0, b = this.h1, c = this.h2, d = this.h3, e = this.h4, f = this.h5, g = this.h6, - h = this.h7, blocks = this.blocks, j, s0, s1, maj, t1, t2, ch, ab, da, cd, bc; - - for (j = 16; j < 64; ++j) { - // rightrotate - t1 = blocks[j - 15]; - s0 = ((t1 >>> 7) | (t1 << 25)) ^ ((t1 >>> 18) | (t1 << 14)) ^ (t1 >>> 3); - t1 = blocks[j - 2]; - s1 = ((t1 >>> 17) | (t1 << 15)) ^ ((t1 >>> 19) | (t1 << 13)) ^ (t1 >>> 10); - blocks[j] = blocks[j - 16] + s0 + blocks[j - 7] + s1 << 0; - } - - bc = b & c; - for (j = 0; j < 64; j += 4) { - if (this.first) { - if (this.is224) { - ab = 300032; - t1 = blocks[0] - 1413257819; - h = t1 - 150054599 << 0; - d = t1 + 24177077 << 0; - } else { - ab = 704751109; - t1 = blocks[0] - 210244248; - h = t1 - 1521486534 << 0; - d = t1 + 143694565 << 0; - } - this.first = false; - } else { - s0 = ((a >>> 2) | (a << 30)) ^ ((a >>> 13) | (a << 19)) ^ ((a >>> 22) | (a << 10)); - s1 = ((e >>> 6) | (e << 26)) ^ ((e >>> 11) | (e << 21)) ^ ((e >>> 25) | (e << 7)); - ab = a & b; - maj = ab ^ (a & c) ^ bc; - ch = (e & f) ^ (~e & g); - t1 = h + s1 + ch + K[j] + blocks[j]; - t2 = s0 + maj; - h = d + t1 << 0; - d = t1 + t2 << 0; - } - s0 = ((d >>> 2) | (d << 30)) ^ ((d >>> 13) | (d << 19)) ^ ((d >>> 22) | (d << 10)); - s1 = ((h >>> 6) | (h << 26)) ^ ((h >>> 11) | (h << 21)) ^ ((h >>> 25) | (h << 7)); - da = d & a; - maj = da ^ (d & b) ^ ab; - ch = (h & e) ^ (~h & f); - t1 = g + s1 + ch + K[j + 1] + blocks[j + 1]; - t2 = s0 + maj; - g = c + t1 << 0; - c = t1 + t2 << 0; - s0 = ((c >>> 2) | (c << 30)) ^ ((c >>> 13) | (c << 19)) ^ ((c >>> 22) | (c << 10)); - s1 = ((g >>> 6) | (g << 26)) ^ ((g >>> 11) | (g << 21)) ^ ((g >>> 25) | (g << 7)); - cd = c & d; - maj = cd ^ (c & a) ^ da; - ch = (g & h) ^ (~g & e); - t1 = f + s1 + ch + K[j + 2] + blocks[j + 2]; - t2 = s0 + maj; - f = b + t1 << 0; - b = t1 + t2 << 0; - s0 = ((b >>> 2) | (b << 30)) ^ ((b >>> 13) | (b << 19)) ^ ((b >>> 22) | (b << 10)); - s1 = ((f >>> 6) | (f << 26)) ^ ((f >>> 11) | (f << 21)) ^ ((f >>> 25) | (f << 7)); - bc = b & c; - maj = bc ^ (b & d) ^ cd; - ch = (f & g) ^ (~f & h); - t1 = e + s1 + ch + K[j + 3] + blocks[j + 3]; - t2 = s0 + maj; - e = a + t1 << 0; - a = t1 + t2 << 0; - this.chromeBugWorkAround = true; - } - - this.h0 = this.h0 + a << 0; - this.h1 = this.h1 + b << 0; - this.h2 = this.h2 + c << 0; - this.h3 = this.h3 + d << 0; - this.h4 = this.h4 + e << 0; - this.h5 = this.h5 + f << 0; - this.h6 = this.h6 + g << 0; - this.h7 = this.h7 + h << 0; - }; - - Sha256.prototype.hex = function () { - this.finalize(); - - var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3, h4 = this.h4, h5 = this.h5, - h6 = this.h6, h7 = this.h7; - - var hex = HEX_CHARS[(h0 >> 28) & 0x0F] + HEX_CHARS[(h0 >> 24) & 0x0F] + - HEX_CHARS[(h0 >> 20) & 0x0F] + HEX_CHARS[(h0 >> 16) & 0x0F] + - HEX_CHARS[(h0 >> 12) & 0x0F] + HEX_CHARS[(h0 >> 8) & 0x0F] + - HEX_CHARS[(h0 >> 4) & 0x0F] + HEX_CHARS[h0 & 0x0F] + - HEX_CHARS[(h1 >> 28) & 0x0F] + HEX_CHARS[(h1 >> 24) & 0x0F] + - HEX_CHARS[(h1 >> 20) & 0x0F] + HEX_CHARS[(h1 >> 16) & 0x0F] + - HEX_CHARS[(h1 >> 12) & 0x0F] + HEX_CHARS[(h1 >> 8) & 0x0F] + - HEX_CHARS[(h1 >> 4) & 0x0F] + HEX_CHARS[h1 & 0x0F] + - HEX_CHARS[(h2 >> 28) & 0x0F] + HEX_CHARS[(h2 >> 24) & 0x0F] + - HEX_CHARS[(h2 >> 20) & 0x0F] + HEX_CHARS[(h2 >> 16) & 0x0F] + - HEX_CHARS[(h2 >> 12) & 0x0F] + HEX_CHARS[(h2 >> 8) & 0x0F] + - HEX_CHARS[(h2 >> 4) & 0x0F] + HEX_CHARS[h2 & 0x0F] + - HEX_CHARS[(h3 >> 28) & 0x0F] + HEX_CHARS[(h3 >> 24) & 0x0F] + - HEX_CHARS[(h3 >> 20) & 0x0F] + HEX_CHARS[(h3 >> 16) & 0x0F] + - HEX_CHARS[(h3 >> 12) & 0x0F] + HEX_CHARS[(h3 >> 8) & 0x0F] + - HEX_CHARS[(h3 >> 4) & 0x0F] + HEX_CHARS[h3 & 0x0F] + - HEX_CHARS[(h4 >> 28) & 0x0F] + HEX_CHARS[(h4 >> 24) & 0x0F] + - HEX_CHARS[(h4 >> 20) & 0x0F] + HEX_CHARS[(h4 >> 16) & 0x0F] + - HEX_CHARS[(h4 >> 12) & 0x0F] + HEX_CHARS[(h4 >> 8) & 0x0F] + - HEX_CHARS[(h4 >> 4) & 0x0F] + HEX_CHARS[h4 & 0x0F] + - HEX_CHARS[(h5 >> 28) & 0x0F] + HEX_CHARS[(h5 >> 24) & 0x0F] + - HEX_CHARS[(h5 >> 20) & 0x0F] + HEX_CHARS[(h5 >> 16) & 0x0F] + - HEX_CHARS[(h5 >> 12) & 0x0F] + HEX_CHARS[(h5 >> 8) & 0x0F] + - HEX_CHARS[(h5 >> 4) & 0x0F] + HEX_CHARS[h5 & 0x0F] + - HEX_CHARS[(h6 >> 28) & 0x0F] + HEX_CHARS[(h6 >> 24) & 0x0F] + - HEX_CHARS[(h6 >> 20) & 0x0F] + HEX_CHARS[(h6 >> 16) & 0x0F] + - HEX_CHARS[(h6 >> 12) & 0x0F] + HEX_CHARS[(h6 >> 8) & 0x0F] + - HEX_CHARS[(h6 >> 4) & 0x0F] + HEX_CHARS[h6 & 0x0F]; - if (!this.is224) { - hex += HEX_CHARS[(h7 >> 28) & 0x0F] + HEX_CHARS[(h7 >> 24) & 0x0F] + - HEX_CHARS[(h7 >> 20) & 0x0F] + HEX_CHARS[(h7 >> 16) & 0x0F] + - HEX_CHARS[(h7 >> 12) & 0x0F] + HEX_CHARS[(h7 >> 8) & 0x0F] + - HEX_CHARS[(h7 >> 4) & 0x0F] + HEX_CHARS[h7 & 0x0F]; - } - return hex; - }; - - Sha256.prototype.toString = Sha256.prototype.hex; - - Sha256.prototype.digest = function () { - this.finalize(); - - var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3, h4 = this.h4, h5 = this.h5, - h6 = this.h6, h7 = this.h7; - - var arr = [ - (h0 >> 24) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 8) & 0xFF, h0 & 0xFF, - (h1 >> 24) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 8) & 0xFF, h1 & 0xFF, - (h2 >> 24) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 8) & 0xFF, h2 & 0xFF, - (h3 >> 24) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 8) & 0xFF, h3 & 0xFF, - (h4 >> 24) & 0xFF, (h4 >> 16) & 0xFF, (h4 >> 8) & 0xFF, h4 & 0xFF, - (h5 >> 24) & 0xFF, (h5 >> 16) & 0xFF, (h5 >> 8) & 0xFF, h5 & 0xFF, - (h6 >> 24) & 0xFF, (h6 >> 16) & 0xFF, (h6 >> 8) & 0xFF, h6 & 0xFF - ]; - if (!this.is224) { - arr.push((h7 >> 24) & 0xFF, (h7 >> 16) & 0xFF, (h7 >> 8) & 0xFF, h7 & 0xFF); - } - return arr; - }; - - Sha256.prototype.array = Sha256.prototype.digest; - - Sha256.prototype.arrayBuffer = function () { - this.finalize(); - - var buffer = new ArrayBuffer(this.is224 ? 28 : 32); - var dataView = new DataView(buffer); - dataView.setUint32(0, this.h0); - dataView.setUint32(4, this.h1); - dataView.setUint32(8, this.h2); - dataView.setUint32(12, this.h3); - dataView.setUint32(16, this.h4); - dataView.setUint32(20, this.h5); - dataView.setUint32(24, this.h6); - if (!this.is224) { - dataView.setUint32(28, this.h7); - } - return buffer; - }; - - function HmacSha256(key, is224, sharedMemory) { - var i, type = typeof key; - if (type === 'string') { - var bytes = [], length = key.length, index = 0, code; - for (i = 0; i < length; ++i) { - code = key.charCodeAt(i); - if (code < 0x80) { - bytes[index++] = code; - } else if (code < 0x800) { - bytes[index++] = (0xc0 | (code >> 6)); - bytes[index++] = (0x80 | (code & 0x3f)); - } else if (code < 0xd800 || code >= 0xe000) { - bytes[index++] = (0xe0 | (code >> 12)); - bytes[index++] = (0x80 | ((code >> 6) & 0x3f)); - bytes[index++] = (0x80 | (code & 0x3f)); - } else { - code = 0x10000 + (((code & 0x3ff) << 10) | (key.charCodeAt(++i) & 0x3ff)); - bytes[index++] = (0xf0 | (code >> 18)); - bytes[index++] = (0x80 | ((code >> 12) & 0x3f)); - bytes[index++] = (0x80 | ((code >> 6) & 0x3f)); - bytes[index++] = (0x80 | (code & 0x3f)); - } - } - key = bytes; - } else { - if (type === 'object') { - if (key === null) { - throw new Error(ERROR); - } else if (ARRAY_BUFFER && key.constructor === ArrayBuffer) { - key = new Uint8Array(key); - } else if (!Array.isArray(key)) { - if (!ARRAY_BUFFER || !ArrayBuffer.isView(key)) { - throw new Error(ERROR); - } - } - } else { - throw new Error(ERROR); - } - } - - if (key.length > 64) { - key = (new Sha256(is224, true)).update(key).array(); - } - - var oKeyPad = [], iKeyPad = []; - for (i = 0; i < 64; ++i) { - var b = key[i] || 0; - oKeyPad[i] = 0x5c ^ b; - iKeyPad[i] = 0x36 ^ b; - } - - Sha256.call(this, is224, sharedMemory); - - this.update(iKeyPad); - this.oKeyPad = oKeyPad; - this.inner = true; - this.sharedMemory = sharedMemory; - } - HmacSha256.prototype = new Sha256(); - - HmacSha256.prototype.finalize = function () { - Sha256.prototype.finalize.call(this); - if (this.inner) { - this.inner = false; - var innerHash = this.array(); - Sha256.call(this, this.is224, this.sharedMemory); - this.update(this.oKeyPad); - this.update(innerHash); - Sha256.prototype.finalize.call(this); - } - }; - - var exports = createMethod(); - exports.sha256 = exports; - exports.sha224 = createMethod(true); - exports.sha256.hmac = createHmacMethod(); - exports.sha224.hmac = createHmacMethod(true); - - if (COMMON_JS) { - module.exports = exports; - } else { - root.sha256 = exports.sha256; - root.sha224 = exports.sha224; - if (AMD) { - define(function () { - return exports; - }); - } - } -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/manifest.json b/data/extensions/jsr@javascriptrestrictor/manifest.json deleted file mode 100644 index 34c1c5a..0000000 --- a/data/extensions/jsr@javascriptrestrictor/manifest.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "author": "Libor Pol\u010d\u00e1k, Giorgio Maone, Martin Timko, Pavel Pohner, Peter Hor\u0148\u00e1k, Mat\u00fa\u0161 \u0160vanc\u00e1r, Marek Salo\u0148, Martin Bedn\u00e1\u0159, Radek Hranick\u00fd, Martin Zmitko", - "background": { - "scripts": [ - "nscl/lib/browser-polyfill.js", - "nscl/service/TabCache.js", - "nscl/service/NavCache.js", - "nscl/service/DocStartInjection.js", - "nscl/common/CachedStorage.js", - "nscl/common/log.js", - "nscl/common/uuid.js", - "nscl/common/SyncMessage.js", - "nscl/common/tld.js", - "lib/sha256.js", - "helpers.js", - "session_hash.js", - "update.js", - "url.js", - "levels_browser.js", - "settings_tweaks.js", - "levels.js", - "fp_levels.js", - "fp_detect_background.js", - "background.js", - "level_cache.js", - "http_shield_firefox.js", - "http_shield_common.js" - ], - "persistent": false - }, - "browser_action": { - "browser_style": true, - "default_icon": { - "16": "img/icon-16.png", - "32": "img/icon-32.png", - "48": "img/icon-48.png", - "64": "img/icon-64.png", - "96": "img/icon-96.png", - "128": "img/icon-128.png", - "256": "img/icon-256.png", - "512": "img/icon-512.png" - }, - "default_title": "JShelter", - "default_popup": "popup.html" - }, - "content_scripts": [ - { - "matches": [ - "<all_urls>" - ], - "all_frames": true, - "match_about_blank": true, - "js": [ - "nscl/common/uuid.js", - "nscl/common/SyncMessage.js", - "nscl/content/patchWindow.js", - "lib/sha256.js", - "alea.js", - "crc16.js", - "helpers.js", - "wrapping.js", - "wrappingL-CANVAS.js", - "wrappingL-SENSOR.js", - "wrappingS-AJAX.js", - "wrappingS-BATTERY-CR.js", - "wrappingS-BE.js", - "wrappingS-COOP-SCHEDULING.js", - "wrappingS-DM.js", - "wrappingS-DOM.js", - "wrappingS-ECMA-ARRAY.js", - "wrappingS-ECMA-DATE.js", - "wrappingS-ECMA-SHARED.js", - "wrappingS-EME.js", - "wrappingS-GEO.js", - "wrappingS-GP.js", - "wrappingS-H-C.js", - "wrappingS-HRT.js", - "wrappingS-HTML.js", - "wrappingS-HTML-LS.js", - "wrappingS-HTML5.js", - "wrappingS-IDLE.js", - "wrappingS-MCS.js", - "wrappingS-MEDIA-CAPABILITIES.js", - "wrappingS-NET.js", - "wrappingS-NFC.js", - "wrappingS-NP.js", - "wrappingS-PT2.js", - "wrappingS-SENSOR-ACCEL.js", - "wrappingS-SENSOR-GYRO.js", - "wrappingS-SENSOR.js", - "wrappingS-SENSOR-LIGHT.js", - "wrappingS-SENSOR-MAGNET.js", - "wrappingS-SENSOR-ORIENT.js", - "wrappingS-TEMPORAL.js", - "wrappingS-VR.js", - "wrappingS-WEBA.js", - "wrappingS-WEBGL.js", - "wrappingS-XR.js", - "code_builders.js", - "fp_code_builders.js", - "document_start.js" - ], - "run_at": "document_start" - } - ], - "default_locale": "en", - "description": "__MSG_extensionDescription__", - "homepage_url": "https://JShelter.org", - "icons": { - "16": "img/icon-16.png", - "32": "img/icon-32.png", - "48": "img/icon-48.png", - "64": "img/icon-64.png", - "96": "img/icon-96.png", - "128": "img/icon-128.png", - "256": "img/icon-256.png", - "512": "img/icon-512.png" - }, - "manifest_version": 2, - "name": "__MSG_extensionName__", - "options_ui": { - "page": "options.html", - "open_in_tab": true - }, - "content_security_policy": "default-src 'none'; script-src 'self'; connect-src 'self'; img-src 'self' data:; style-src 'self';base-uri 'self';form-action 'self'", - "permissions": [ - "storage", - "tabs", - "webRequest", - "webRequestBlocking", - "webNavigation", - "dns", - "<all_urls>", - "notifications" - ], - "optional_permissions": [ - "browsingData" - ], - "short_name": "JShelter", - "version": "0.21", - "browser_specific_settings": { - "gecko": { - "id": "jsr@javascriptrestrictor", - "strict_min_version": "115.0" - }, - "gecko_android": {} - } -}
\ No newline at end of file diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/common/CachedStorage.js b/data/extensions/jsr@javascriptrestrictor/nscl/common/CachedStorage.js deleted file mode 100644 index 6b1a727..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/common/CachedStorage.js +++ /dev/null @@ -1,143 +0,0 @@ -/* - * NoScript Commons Library - * Reusable building blocks for cross-browser security/privacy WebExtensions. - * Copyright (C) 2020-2024 Giorgio Maone <https://maone.net> - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see <https://www.gnu.org/licenses/>. - */ - -var CachedStorage = (() => { - const scopes = new WeakMap(); - - const DEFER_DELAY = 1000; - let deferredTasks = null; - const performTasks = async () => { - for (let t of deferredTasks) t(); - deferredTasks = null; - }; - const deferTasks = (...tasks) => { - if (!deferredTasks) { - deferredTasks = tasks; - setTimeout(performTasks, DEFER_DELAY); - } else { - deferredTasks.push(...tasks); - } - }; - - const addNameSpace = (nameSpace, properties, keys) => { - const prefix = nameSpace ? `${nameSpace}.` : ""; - const nameSpacedProps = {}; - for (const key of keys) { - nameSpacedProps[`${prefix}${key}`] = properties[key]; - } - return nameSpacedProps; - }; - const removeNameSpace = (nameSpace, properties) => { - if (!nameSpace) return properties; - const len = nameSpace.length + 1; - const props = {}; - for (const [key, val] of Object.entries(properties)) { - props[key.substring(len)] = val; - } - return props; - }; - - return { - async init( - properties = null, - nameSpace = "", - scope = null, - storageType = "session" - ) { - if (!properties) { - console.warn("CachedStorage.init(): no properties!"); - return null; - } - - scope ??= (nameSpace && globalThis[nameSpace]) || globalThis; - - for (let p in properties) { - if (p in scope) { - // already initialized - return scope; - } - break; - } - - if (!(storageType in browser.storage)) { - console.warn( - `CachedStorage.init(): no browser.storage.${storageType}, falling back to vanilla properties` - ); - return Object.assign(scope, properties); - } - - const keys = Object.keys(properties); - if (nameSpace) { - properties = addNameSpace(nameSpace, properties, keys); - } else { - nameSpace = ""; - } - - let metadata = scopes.get(scope); - if (!metadata) { - scopes.set(scope, (metadata = { storage: {} })); - } - - const ns = (metadata.storage[storageType] ??= new Map()).get(nameSpace); - if (ns) { - for (const key of keys) ns.add(key); - } else { - metadata.storage[storageType].set(nameSpace, new Set(keys)); - } - return Object.assign( - scope, - removeNameSpace( - nameSpace, - await browser.storage[storageType].get(properties) - ) - ); - }, - async save(scope = globalThis, defer = false) { - const metadata = scopes.get(scope); - if (!metadata) { - console.warn( - `CacheStorage.save(): metadata not found for scope ${scope}!` - ); - return false; - } - - if (metadata.deferredSave) return; - if ((defer ||= Date.now() - metadata.lastSaved < 20)) { - metadata.deferredSave = true; - return Promise.resolve( - deferTasks(() => { - metadata.deferredSave = false; - this.save(scope); - }) - ); - } - - const savingTasks = []; - for (const [storageType, ns] of Object.entries(metadata.storage)) { - for (const [nameSpace, keys] of ns.entries()) { - const properties = addNameSpace(nameSpace, scope, keys); - savingTasks.push(browser.storage[storageType].set(properties)); - } - } - metadata.lastSaved = Date.now(); - return await Promise.allSettled(savingTasks); - }, - }; -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/common/SyncMessage.js b/data/extensions/jsr@javascriptrestrictor/nscl/common/SyncMessage.js deleted file mode 100644 index db98d6f..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/common/SyncMessage.js +++ /dev/null @@ -1,615 +0,0 @@ -/* - * NoScript Commons Library - * Reusable building blocks for cross-browser security/privacy WebExtensions. - * Copyright (C) 2020-2024 Giorgio Maone <https://maone.net> - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see <https://www.gnu.org/licenses/>. - */ - -// depends on /nscl/common/uuid.js -// depends on /nscl/common/SyncMessage/request.json -// depends on /nscl/common/SyncMessage/response.json - -"use strict"; -if (!["onSyncMessage", "sendSyncMessage"].some((m) => browser.runtime[m])) { - const MOZILLA = - self.XMLHttpRequest && "mozSystem" in self.XMLHttpRequest.prototype; - - const INTERNAL_PATH = "/nscl/common/SyncMessage/"; - - const MANIFEST = browser.runtime.getManifest(); - const USE_INTERNAL_URIS = MANIFEST.web_accessible_resources - ?.some(({ resources }) => - resources.includes(`${INTERNAL_PATH}*`) - ); - const IPV6_DUMMY_ENDPOINT = "https://[ff00::]"; - const BASE_PREFIX = browser.runtime.getURL(INTERNAL_PATH); - // We cannot use BASE_PREFIX w/ internal URIs for requests (yet?) because - // neither DNR nor webRequest nor ServiceWorker intercept our own extension URLs :( - const REQUEST_PREFIX = `${IPV6_DUMMY_ENDPOINT}/${BASE_PREFIX}request.json?`; - // But we can redirect to extension URLs on MV3 - const RESPONSE_PREFIX = USE_INTERNAL_URIS ? BASE_PREFIX + "response.json?" : "data:application/json,"; - - const msgUrl = (msgId) => `${REQUEST_PREFIX}id=${encodeURIComponent(msgId)}`; - - // https://github.com/w3c/webappsec-permissions-policy/blob/main/permissions-policy-explainer.md#appendix-big-changes-since-this-was-called-feature-policy - const allowSyncXhr = (policy) => - policy - .replace(/(?:[,;]\s*)?\b(?:sync-xhr\b[^;,]*)/gi, "") - .replace(/^\s*[;,]\s*/, ""); - - if (browser.webRequest) { - // Background script / event page / service worker - - const USE_SERVICE_WORKER = "onfetch" in self && REQUEST_PREFIX.startsWith(BASE_PREFIX); - - let anyMessageYet = false; - - const retries = new Set(); - - // we don't care this is async, as long as it get called before the - // sync XHR (we are not interested in the response on the content side) - browser.runtime.onMessage.addListener((m, sender) => { - let wrapper = m.__syncMessage__; - if (!wrapper) return; - if(wrapper.retry) { - const retryKey = `${sender.tab.id}:${sender.frameId}:${sender.origin}@${sender.url}`; - let retried = retries.has(retryKey); - if (retried) { - retries.delete(retryKey); - } else { - retries.add(retryKey); - } - return Promise.resolve(!retried); - } - if (wrapper.release) { - suspender.release(wrapper.id); - } else if ("payload" in wrapper) { - anyMessageYet = true; - wrapper.result = Promise.resolve( - notifyListeners(JSON.stringify(wrapper.payload), sender) - ); - suspender.hold(wrapper); - } - return Promise.resolve(null); - }); - - const asyncResults = new Map(); - - const ret = (r) => ({ - redirectUrl: `${ - RESPONSE_PREFIX - }${ - encodeURIComponent(JSON.stringify(r)) - }`, - }); - const res = (payload) => ({ payload }); - const err = (e) => ({ error: { message: e.message, stack: e.stack } }); - - const LOOP_RET = ret({ loop: 1 }); - - const asyncRet = (msgId) => { - let chunks = asyncResults.get(msgId); - let chunk = chunks.shift(); - let more = chunks.length; - if (more === 0) { - asyncResults.delete(msgId); - suspender.release(msgId); - } - return ret({ chunk, more }); - }; - - const CHUNK_SIZE = 500000; // Work around any browser-dependent URL limit - const storeAsyncRet = (msgId, r) => { - r = JSON.stringify(r); - const len = r === undefined ? 0 : r.length; - const chunksCount = Math.ceil(len / CHUNK_SIZE); - const chunks = []; - for (let j = 0; j < chunksCount; j++) { - chunks.push(r.substr(j * CHUNK_SIZE, CHUNK_SIZE)); - } - asyncResults.set(msgId, chunks); - }; - - const listeners = new Set(); - function notifyListeners(msg, sender) { - // Just like in the async runtime.sendMessage() API, - // we process the listeners in order until we find a not undefined - // result, then we return it (or undefined if none returns anything). - for (let l of listeners) { - try { - let result = l(JSON.parse(msg), sender); - if (result !== undefined) return result; - } catch (e) { - console.error("%o processing message %o from %o", e, msg, sender); - } - } - } - - const url2MsgId = url => new URLSearchParams(url.split("?")[1])?.get("id"); - class Suspender { - #pending = new Map(); - constructor(init) { - init.apply(this); - } - async hold(wrapper) { - this.#pending.set(wrapper.id, wrapper); - } - release(id) { - this.#pending.delete(id); - } - get(id) { - return this.#pending.get(id); - } - } - - const suspender = - USE_SERVICE_WORKER - ? new Suspender(function() { - // MV3 with service worker - addEventListener("fetch", event => { - const msgId = url2MsgId(event.request.url); - if (!msgId) return; - const wrapper = this.get(msgId); - this.release(msgId); - event.respondWith((async () => new Response(await wrapper.result))()); - }); - }) - : browser.declarativeNetRequest && !MOZILLA - ? (() => { - // MV3 - const DNR_BASE_ID = 65535; - const DNR_BASE_PRIORITY = 1000; - let lastRuleId = DNR_BASE_ID; - const msg2redirector = new Map(); - const { redirectUrl } = LOOP_RET; - const resourceTypes = ["xmlhttprequest"]; - - const createRedirector = async ( - urlFilter, - redirectUrl, - options - ) => { - const DEFAULT_OPTIONS = { - ruleSet: "Session", - priority: DNR_BASE_PRIORITY + 10, - addRules: [], - removeRuleIds: [] - } - let { ruleSet, priority, addRules, removeRuleIds } = Object.assign( - {}, - DEFAULT_OPTIONS, - options - ); - - const rule = { - id: ++lastRuleId, - priority, - action: { - type: "redirect", - redirect: { url: redirectUrl }, - }, - condition: { - urlFilter, - resourceTypes, - }, - }; - - - addRules.push(rule); - const method = `update${ruleSet}Rules`; - await browser.declarativeNetRequest[method]({ - addRules, - removeRuleIds, - }); - - return lastRuleId; - }; - - const removeRedirector = (redirId) => { - browser.declarativeNetRequest.updateSessionRules({ - removeRuleIds: [redirId], - }); - }; - - (async () => { - const allowSyncXhrRules = [ - { - id: ++lastRuleId, - priority: DNR_BASE_PRIORITY, - action: { - type: "modifyHeaders", - // Note: notwithstanding poor documentation, looks like in modern browsers - // permissions-policy overrides (document|feature)-policy, & DNR appending - // to the header overrides the restrictive token despite inheritance rules, - // making the following hack work, quite surprisingly and nicely (i.e. - // other policies, if present, remain effective). - responseHeaders: [ - { - header: "permissions-policy", - operation: "append", - value: "sync-xhr=*", - }, - ], - }, - condition: { - resourceTypes: ["main_frame", "sub_frame"], - }, - }, - ]; - - for (const ruleSet of ["Dynamic", "Session"]) { - try { - const removeRuleIds = ( - await browser.declarativeNetRequest[`get${ruleSet}Rules`]() - ) - .map((r) => r.id) - .filter((id) => id >= DNR_BASE_ID); - const options = { - ruleSet, - priority: DNR_BASE_PRIORITY, - addRules: allowSyncXhrRules, - removeRuleIds, - }; - await createRedirector( - `|${REQUEST_PREFIX}*`, - redirectUrl, - options - ); - } catch (e) { - console.error(e, "Error initializing SyncMessage DNR responders."); - } - } - - })(); - - return { - async hold(wrapper) { - let result; - try { - result = ret(res(await wrapper.result)); - } catch (e) { - result = ret(err(e)); - } - const { id } = wrapper; - const urlFilter = `|${msgUrl(wrapper.id)}`; - const redirId = await createRedirector(urlFilter, result.redirectUrl); - msg2redirector.set(id, redirId); - }, - release(id) { - const redirId = msg2redirector.get(id); - if (!redirId) return; - msg2redirector.delete(id); - removeRedirector(redirId); - }, - }; - })() - : new Suspender(function() { - // MV2 - const CANCEL = { cancel: true }; - const onBeforeRequest = (request) => { - try { - const { url } = request; - const shortUrl = url.replace(REQUEST_PREFIX, ""); - const msgId = url2MsgId(url); - - const chromeRet = (resultReady) => { - const r = resultReady - ? asyncRet(msgId) // promise was already resolved - : LOOP_RET; - return r; - }; - - if (asyncResults.has(msgId)) { - return chromeRet(true); - } - - const wrapper = this.get(msgId); - - if (!wrapper) { - return anyMessageYet - ? CANCEL // cannot reconcile with any pending message, abort - : LOOP_RET; // never received any message yet, retry - } - - if (MOZILLA) { - // this should be a mozilla suspension request - return (async () => { - try { - return ret(res(await wrapper.result)); - } catch (e) { - return ret(err(e)); - } finally { - this.release(msgId); - } - })(); - } - - // CHROMIUM from now on - // On Chromium, if the promise is not resolved yet, - // we redirect the XHR to the same URL (hence same msgId) - // while the result get cached for asynchronous retrieval - wrapper.result.then( - (r) => storeAsyncRet(msgId, res(r)), - (e) => storeAsyncRet(msgId, err(e)) - ); - return chromeRet(asyncResults.has(msgId)); - } catch (e) { - console.error(e); - return CANCEL; - } - }; - - const NOP = () => {}; - let bug1899786 = NOP; - if (browser.webRequest.filterResponseData) { - bug1899786 = (request) => { - // work-around for https://bugzilla.mozilla.org/show_bug.cgi?id=1899786 - let compressed = false, - xml = false; - for (const { name, value } of request.responseHeaders) { - switch (name.toLowerCase()) { - case "content-encoding": - if ( - compressed || - !(compressed = - /^(?:gzip|compress|deflate|br|zstd)$/i.test(value)) - ) { - continue; - } - break; - case "content-type": - if (xml || !(xml = /\bxml\b/i.test(value))) { - continue; - } - break; - default: - continue; - } - if (compressed && xml) { - console.log("Applying mozbug 1899786 work-around", request); - const filter = browser.webRequest.filterResponseData( - request.requestId - ); - filter.ondata = (e) => { - filter.write(e.data); - }; - filter.onstop = () => { - filter.close(); - }; - break; - } - } - }; - (async () => { - const version = parseInt( - (await browser.runtime.getBrowserInfo()).version - ); - if (version < 126) bug1899786 = NOP; - })(); - } - - const patchHeadersForXhr = MANIFEST.manifest_version < 3 - ? NOP // XHR don't need to bypass CSP in manifest V2 - : (request) => { - let replaced = false; - let replacedCSP = false; - const { responseHeaders } = request; - const CSP = "content-security-policy"; - const rxPolicy = /^(?:feature|permissions|document)-policy$/; - for (let h of responseHeaders) { - const name = h.name.toLowerCase(); - let value; - if (rxPolicy.test(name)) { - value = allowSyncXhr(h.value); - } else if (name == CSP) { - value = h.value.replace(/connect-src [^;]+/g, m => { - const tokens = new Set(m.split(/\s+/)); - tokens.delete("'none'"); - const msgSrc = new URL(REQUEST_PREFIX).origin; - tokens.has(msgSrc) || tokens.add(msgSrc); - return [...tokens].join(" "); - }); - replacedCSP = true; - } else { - continue; - } - if (value !== h.value) { - h.value = value; - replaced = true; - } - } - if (replaced) { - console.log("Patched responseHeaders", request.url, responseHeaders); // DEV_ONLY - if (replacedCSP) { - // We need to clear the header first, in order to avoid merging, see - // - https://searchfox.org/mozilla-central/source/toolkit/components/extensions/webrequest/WebRequest.sys.mjs#257 - // - https://bugzilla.mozilla.org/show_bug.cgi?id=1462989 - // This does NOT work (yet?) on MV3, see https://github.com/w3c/webextensions/issues/730 - responseHeaders.unshift({name: CSP, value: ""}); - } - return { responseHeaders }; - } - }; - - const onHeadersReceived = (request) => { - bug1899786(request); - return patchHeadersForXhr(request); - }; - - browser.webRequest.onBeforeRequest.addListener( - onBeforeRequest, - { - urls: [`${REQUEST_PREFIX}*`], - types: ["xmlhttprequest"], - }, - ["blocking"] - ); - browser.webRequest.onHeadersReceived.addListener( - onHeadersReceived, - { - urls: ["<all_urls>"], - types: ["main_frame", "sub_frame"], - }, - ["blocking", "responseHeaders"] - ); - - - } - ); - - - browser.runtime.onSyncMessage = Object.freeze({ - BASE_PREFIX, - REQUEST_PREFIX, - RESPONSE_PREFIX, - addListener(l) { - listeners.add(l); - }, - removeListener(l) { - listeners.delete(l); - }, - hasListener(l) { - return listeners.has(l); - }, - isMessageRequest({type, url}) { - return ( - type === "xmlhttprequest" && - url.includes(INTERNAL_PATH) && - (url.includes(REQUEST_PREFIX) || url.includes(RESPONSE_PREFIX)) - ); - }, - }); - } else { - // Content Script side - { - // re-enable Sync XHR if disabled by featurePolicy - const allow = f => { - if (f.allow) { - const allowingValue = allowSyncXhr(f.allow); - if (f.allow != allowingValue) { - f.allow = allowingValue; - f.src = f.src; - } - } - }; - try { - // this is probably useless, but nontheless... - window.frameElement && allow(window.frameElement); - } catch (e) { - // SOP violation? - console.error(e); // DEV_ONLY - } - const mutationsCallback = records => { - for (var r of records) { - switch (r.type) { - case "attributes": - allow(r.target); - break; - case "childList": - [...r.addedNodes].forEach(allow); - break; - } - } - }; - const observer = new MutationObserver(mutationsCallback); - observer.observe(document.documentElement, { - childList: true, - subtree: true, - attributeFilter: ["allow"], - }); - } - - const docId = uuid(); - browser.runtime.sendSyncMessage = (msg) => { - let msgId = `${uuid()}:${docId}`; - let url = msgUrl(msgId); - - const preSend = __syncMessage__ => browser.runtime.sendMessage({__syncMessage__}); - - // We first need to send an async message with both the payload - // and "trusted" sender metadata, along with an unique msgId to - // reconcile with in the retrieval phase via synchronous XHR - const preflight = preSend({ id: msgId, payload: msg }); - - // Now go retrieve the result! - const MAX_LOOPS = 1000; - let r = new XMLHttpRequest(); - - let result; - let chunks = []; - for (let loop = 0; ; ) { - try { - r.open("GET", url, false); - r.send(null); - const rawResult = r.responseURL.startsWith(RESPONSE_PREFIX) - ? decodeURIComponent(r.responseURL.replace(RESPONSE_PREFIX, "")) - : r.responseText; - result = JSON.parse(rawResult); - if ("chunk" in result) { - let { chunk, more } = result; - chunks.push(chunk); - if (more) { - continue; - } - result = JSON.parse(chunks.join("")); - } else if (result.loop) { - if (++loop > MAX_LOOPS) { - console.debug( - "Too many loops (%s), look for deadlock conditions.", - loop - ); - throw new Error("Too many SyncMessage loops!"); - } - continue; - } else if (result.error) { - result.error = new Error(result.error.message + ` (${url})`, result.error); - } - } catch (e) { - console.error(e, - `SyncMessage ${msgId} error in ${document.URL}: ${e.message} (response ${url} - ${r.responseURL} - ${r.responseText})` - ); - result = { - error: new Error(`SyncMessage Error ${e.message}`, { cause: e }), - }; - } - break; - } - preSend({ id: msgId, release: true }); - if (result.error) { - if (document.featurePolicy && !document.featurePolicy?.allowsFeature("sync-xhr")) { - throw new Error(`SyncMessage fails on ${document.URL} because sync-xhr is not allowed!`); - } - if (document.readyState == "loading" && /Failed to load/.test(result.error.message)) { - window.stop(); - (async () => { - try { - await preflight; - browser.runtime.sendSyncMessage(msg); - } catch (e) { - console.error(e, `SyncMessage immediate retry failed on ${document.URL}!`); - if (!(await preSend({retry: true}))) { - return; - } - } - history.go(0); - })(); - } - throw result.error; - } - return result.payload; - }; - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/common/SyncMessage/request.json b/data/extensions/jsr@javascriptrestrictor/nscl/common/SyncMessage/request.json deleted file mode 100644 index 679761f..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/common/SyncMessage/request.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "error": { - "message": "SyncMessage responder did not work!" - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/common/SyncMessage/response.json b/data/extensions/jsr@javascriptrestrictor/nscl/common/SyncMessage/response.json deleted file mode 100644 index 06a6b90..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/common/SyncMessage/response.json +++ /dev/null @@ -1 +0,0 @@ -{ "loop": 1 } diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/common/log.js b/data/extensions/jsr@javascriptrestrictor/nscl/common/log.js deleted file mode 100644 index e754e66..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/common/log.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * NoScript Commons Library - * Reusable building blocks for cross-browser security/privacy WebExtensions. - * Copyright (C) 2020-2024 Giorgio Maone <https://maone.net> - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see <https://www.gnu.org/licenses/>. - */ - -"use strict"; -{ - const PREFIX = typeof browser === "object" && typeof importScripts === "undefined" - ? `[${browser.runtime.getManifest().name}]` : ''; - - const startupTime = Date.now(); - let lastDebugTime = startupTime; - let ordinal = 1; - - const getStack = () => new Error().stack.replace(/^(?:Error.*\n)?(?:.*\n){2}/, ""); - - Object.assign(globalThis, { - log(msg, ...rest) { - console.log(`${PREFIX} ${msg}`, ...rest); - }, - debug(msg, ...rest) { - const ts = Date.now(); - const sinceStartup = ts - startupTime; - const elapsed = ts - lastDebugTime; - lastDebugTime = ts; - }, - error(e, msg, ...rest) { - console.error(e, `${PREFIX} ${msg}`, ...rest, getStack()); - }, - }); -} diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/common/sha256.js b/data/extensions/jsr@javascriptrestrictor/nscl/common/sha256.js deleted file mode 100644 index b9bd614..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/common/sha256.js +++ /dev/null @@ -1,27 +0,0 @@ -/* - * NoScript Commons Library - * Reusable building blocks for cross-browser security/privacy WebExtensions. - * Copyright (C) 2020-2024 Giorgio Maone <https://maone.net> - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see <https://www.gnu.org/licenses/>. - */ - -async function sha256(aString) { - const bytes = new TextEncoder().encode(aString); - const hashBytes = await crypto.subtle.digest("SHA-256", bytes); - return new Uint8Array(hashBytes).reduce( - (s, b) => s + b.toString(16).padStart(2, "0"), "" - ); -}
\ No newline at end of file diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/common/tld.js b/data/extensions/jsr@javascriptrestrictor/nscl/common/tld.js deleted file mode 100644 index ea82ab6..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/common/tld.js +++ /dev/null @@ -1,83 +0,0 @@ -/* - * NoScript Commons Library - * Reusable building blocks for cross-browser security/privacy WebExtensions. - * Copyright (C) 2020-2024 Giorgio Maone <https://maone.net> - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see <https://www.gnu.org/licenses/>. - */ - -var tld = (() => { - - const ipRx = /^(?:0\.|[1-9]\d{0,2}\.){3}(?:0|[1-9]\d{0,2})$|:.*:/i; - - let tld = { - isIp(d) { return ipRx.test(d); }, - - normalize(host) { - return host.endsWith(".") ? host.slice(0, -1) : host; - }, - - getDomain(host) { - return this.parse(host).domain || host; - }, - - getPublicSuffix(host) { - return this.parse(host).tld; - }, - - parse(host, options = false) { - let excludePrivateTLD = options && options.exludePrivateTLD; - let excludeUnknownTLD = options && options.excludeUnknownTLD; - let preserveFQDNs = options && options.preserveFQDNs || this.preserveFQDNs; - - if (!preserveFQDNs) host = this.normalize(host); - - let parts = host.split("."); - - let stack = ""; - let level = -1; - - let roots = excludePrivateTLD ? tlds.icann : - (tld.combined || (tld.combined = Object.assign({}, tlds.icann, tlds.private))); - - for(let i = parts.length - 1, part; i >= 0; i--) { - part = parts[i]; - stack = stack ? `${part}.${stack}` : part; - if(roots[stack]) - level = roots[stack]; - } - - if (!excludeUnknownTLD) { - if(level === -1) { - if (this.isIp(host)) { - return {}; - } - level = 1; - } - } else if(parts.length <= level || level == -1) { - throw new Error("Invalid TLD " + JSON.stringify({host, parts, level, excludeUnknownTLD})); - } - return { - tld : parts.slice(-level).join('.'), - domain : parts.slice(-level - 1).join('.'), - sub : parts.slice(0, (-level - 1)).join('.'), - }; - } - }; - - const tlds = {"icann":{"ac":1,"com.ac":2,"edu.ac":2,"gov.ac":2,"mil.ac":2,"net.ac":2,"org.ac":2,"ad":1,"ae":1,"ac.ae":2,"co.ae":2,"gov.ae":2,"mil.ae":2,"net.ae":2,"org.ae":2,"sch.ae":2,"aero":1,"airline.aero":2,"airport.aero":2,"accident-investigation.aero":2,"accident-prevention.aero":2,"aerobatic.aero":2,"aeroclub.aero":2,"aerodrome.aero":2,"agents.aero":2,"air-surveillance.aero":2,"air-traffic-control.aero":2,"aircraft.aero":2,"airtraffic.aero":2,"ambulance.aero":2,"association.aero":2,"author.aero":2,"ballooning.aero":2,"broker.aero":2,"caa.aero":2,"cargo.aero":2,"catering.aero":2,"certification.aero":2,"championship.aero":2,"charter.aero":2,"civilaviation.aero":2,"club.aero":2,"conference.aero":2,"consultant.aero":2,"consulting.aero":2,"control.aero":2,"council.aero":2,"crew.aero":2,"design.aero":2,"dgca.aero":2,"educator.aero":2,"emergency.aero":2,"engine.aero":2,"engineer.aero":2,"entertainment.aero":2,"equipment.aero":2,"exchange.aero":2,"express.aero":2,"federation.aero":2,"flight.aero":2,"freight.aero":2,"fuel.aero":2,"gliding.aero":2,"government.aero":2,"groundhandling.aero":2,"group.aero":2,"hanggliding.aero":2,"homebuilt.aero":2,"insurance.aero":2,"journal.aero":2,"journalist.aero":2,"leasing.aero":2,"logistics.aero":2,"magazine.aero":2,"maintenance.aero":2,"marketplace.aero":2,"media.aero":2,"microlight.aero":2,"modelling.aero":2,"navigation.aero":2,"parachuting.aero":2,"paragliding.aero":2,"passenger-association.aero":2,"pilot.aero":2,"press.aero":2,"production.aero":2,"recreation.aero":2,"repbody.aero":2,"res.aero":2,"research.aero":2,"rotorcraft.aero":2,"safety.aero":2,"scientist.aero":2,"services.aero":2,"show.aero":2,"skydiving.aero":2,"software.aero":2,"student.aero":2,"taxi.aero":2,"trader.aero":2,"trading.aero":2,"trainer.aero":2,"union.aero":2,"workinggroup.aero":2,"works.aero":2,"af":1,"com.af":2,"edu.af":2,"gov.af":2,"net.af":2,"org.af":2,"ag":1,"co.ag":2,"com.ag":2,"net.ag":2,"nom.ag":2,"org.ag":2,"ai":1,"com.ai":2,"net.ai":2,"off.ai":2,"org.ai":2,"al":1,"com.al":2,"edu.al":2,"gov.al":2,"mil.al":2,"net.al":2,"org.al":2,"am":1,"co.am":2,"com.am":2,"commune.am":2,"net.am":2,"org.am":2,"ao":1,"co.ao":2,"ed.ao":2,"edu.ao":2,"gov.ao":2,"gv.ao":2,"it.ao":2,"og.ao":2,"org.ao":2,"pb.ao":2,"aq":1,"ar":1,"bet.ar":2,"com.ar":2,"coop.ar":2,"edu.ar":2,"gob.ar":2,"gov.ar":2,"int.ar":2,"mil.ar":2,"musica.ar":2,"mutual.ar":2,"net.ar":2,"org.ar":2,"seg.ar":2,"senasa.ar":2,"tur.ar":2,"arpa":1,"e164.arpa":2,"home.arpa":2,"in-addr.arpa":2,"ip6.arpa":2,"iris.arpa":2,"uri.arpa":2,"urn.arpa":2,"as":1,"gov.as":2,"asia":1,"at":1,"ac.at":2,"sth.ac.at":3,"co.at":2,"gv.at":2,"or.at":2,"au":1,"asn.au":2,"com.au":2,"edu.au":2,"gov.au":2,"id.au":2,"net.au":2,"org.au":2,"conf.au":2,"oz.au":2,"act.au":2,"nsw.au":2,"nt.au":2,"qld.au":2,"sa.au":2,"tas.au":2,"vic.au":2,"wa.au":2,"act.edu.au":3,"catholic.edu.au":3,"nsw.edu.au":3,"nt.edu.au":3,"qld.edu.au":3,"sa.edu.au":3,"tas.edu.au":3,"vic.edu.au":3,"wa.edu.au":3,"qld.gov.au":3,"sa.gov.au":3,"tas.gov.au":3,"vic.gov.au":3,"wa.gov.au":3,"schools.nsw.edu.au":4,"aw":1,"com.aw":2,"ax":1,"az":1,"biz.az":2,"co.az":2,"com.az":2,"edu.az":2,"gov.az":2,"info.az":2,"int.az":2,"mil.az":2,"name.az":2,"net.az":2,"org.az":2,"pp.az":2,"pro.az":2,"ba":1,"com.ba":2,"edu.ba":2,"gov.ba":2,"mil.ba":2,"net.ba":2,"org.ba":2,"bb":1,"biz.bb":2,"co.bb":2,"com.bb":2,"edu.bb":2,"gov.bb":2,"info.bb":2,"net.bb":2,"org.bb":2,"store.bb":2,"tv.bb":2,"bd":2,"be":1,"ac.be":2,"bf":1,"gov.bf":2,"bg":1,"0.bg":2,"1.bg":2,"2.bg":2,"3.bg":2,"4.bg":2,"5.bg":2,"6.bg":2,"7.bg":2,"8.bg":2,"9.bg":2,"a.bg":2,"b.bg":2,"c.bg":2,"d.bg":2,"e.bg":2,"f.bg":2,"g.bg":2,"h.bg":2,"i.bg":2,"j.bg":2,"k.bg":2,"l.bg":2,"m.bg":2,"n.bg":2,"o.bg":2,"p.bg":2,"q.bg":2,"r.bg":2,"s.bg":2,"t.bg":2,"u.bg":2,"v.bg":2,"w.bg":2,"x.bg":2,"y.bg":2,"z.bg":2,"bh":1,"com.bh":2,"edu.bh":2,"gov.bh":2,"net.bh":2,"org.bh":2,"bi":1,"co.bi":2,"com.bi":2,"edu.bi":2,"or.bi":2,"org.bi":2,"biz":1,"bj":1,"africa.bj":2,"agro.bj":2,"architectes.bj":2,"assur.bj":2,"avocats.bj":2,"co.bj":2,"com.bj":2,"eco.bj":2,"econo.bj":2,"edu.bj":2,"info.bj":2,"loisirs.bj":2,"money.bj":2,"net.bj":2,"org.bj":2,"ote.bj":2,"restaurant.bj":2,"resto.bj":2,"tourism.bj":2,"univ.bj":2,"bm":1,"com.bm":2,"edu.bm":2,"gov.bm":2,"net.bm":2,"org.bm":2,"bn":1,"com.bn":2,"edu.bn":2,"gov.bn":2,"net.bn":2,"org.bn":2,"bo":1,"com.bo":2,"edu.bo":2,"gob.bo":2,"int.bo":2,"mil.bo":2,"net.bo":2,"org.bo":2,"tv.bo":2,"web.bo":2,"academia.bo":2,"agro.bo":2,"arte.bo":2,"blog.bo":2,"bolivia.bo":2,"ciencia.bo":2,"cooperativa.bo":2,"democracia.bo":2,"deporte.bo":2,"ecologia.bo":2,"economia.bo":2,"empresa.bo":2,"indigena.bo":2,"industria.bo":2,"info.bo":2,"medicina.bo":2,"movimiento.bo":2,"musica.bo":2,"natural.bo":2,"nombre.bo":2,"noticias.bo":2,"patria.bo":2,"plurinacional.bo":2,"politica.bo":2,"profesional.bo":2,"pueblo.bo":2,"revista.bo":2,"salud.bo":2,"tecnologia.bo":2,"tksat.bo":2,"transporte.bo":2,"wiki.bo":2,"br":1,"9guacu.br":2,"abc.br":2,"adm.br":2,"adv.br":2,"agr.br":2,"aju.br":2,"am.br":2,"anani.br":2,"aparecida.br":2,"app.br":2,"arq.br":2,"art.br":2,"ato.br":2,"b.br":2,"barueri.br":2,"belem.br":2,"bet.br":2,"bhz.br":2,"bib.br":2,"bio.br":2,"blog.br":2,"bmd.br":2,"boavista.br":2,"bsb.br":2,"campinagrande.br":2,"campinas.br":2,"caxias.br":2,"cim.br":2,"cng.br":2,"cnt.br":2,"com.br":2,"contagem.br":2,"coop.br":2,"coz.br":2,"cri.br":2,"cuiaba.br":2,"curitiba.br":2,"def.br":2,"des.br":2,"det.br":2,"dev.br":2,"ecn.br":2,"eco.br":2,"edu.br":2,"emp.br":2,"enf.br":2,"eng.br":2,"esp.br":2,"etc.br":2,"eti.br":2,"far.br":2,"feira.br":2,"flog.br":2,"floripa.br":2,"fm.br":2,"fnd.br":2,"fortal.br":2,"fot.br":2,"foz.br":2,"fst.br":2,"g12.br":2,"geo.br":2,"ggf.br":2,"goiania.br":2,"gov.br":2,"ac.gov.br":3,"al.gov.br":3,"am.gov.br":3,"ap.gov.br":3,"ba.gov.br":3,"ce.gov.br":3,"df.gov.br":3,"es.gov.br":3,"go.gov.br":3,"ma.gov.br":3,"mg.gov.br":3,"ms.gov.br":3,"mt.gov.br":3,"pa.gov.br":3,"pb.gov.br":3,"pe.gov.br":3,"pi.gov.br":3,"pr.gov.br":3,"rj.gov.br":3,"rn.gov.br":3,"ro.gov.br":3,"rr.gov.br":3,"rs.gov.br":3,"sc.gov.br":3,"se.gov.br":3,"sp.gov.br":3,"to.gov.br":3,"gru.br":2,"imb.br":2,"ind.br":2,"inf.br":2,"jab.br":2,"jampa.br":2,"jdf.br":2,"joinville.br":2,"jor.br":2,"jus.br":2,"leg.br":2,"leilao.br":2,"lel.br":2,"log.br":2,"londrina.br":2,"macapa.br":2,"maceio.br":2,"manaus.br":2,"maringa.br":2,"mat.br":2,"med.br":2,"mil.br":2,"morena.br":2,"mp.br":2,"mus.br":2,"natal.br":2,"net.br":2,"niteroi.br":2,"nom.br":3,"not.br":2,"ntr.br":2,"odo.br":2,"ong.br":2,"org.br":2,"osasco.br":2,"palmas.br":2,"poa.br":2,"ppg.br":2,"pro.br":2,"psc.br":2,"psi.br":2,"pvh.br":2,"qsl.br":2,"radio.br":2,"rec.br":2,"recife.br":2,"rep.br":2,"ribeirao.br":2,"rio.br":2,"riobranco.br":2,"riopreto.br":2,"salvador.br":2,"sampa.br":2,"santamaria.br":2,"santoandre.br":2,"saobernardo.br":2,"saogonca.br":2,"seg.br":2,"sjc.br":2,"slg.br":2,"slz.br":2,"sorocaba.br":2,"srv.br":2,"taxi.br":2,"tc.br":2,"tec.br":2,"teo.br":2,"the.br":2,"tmp.br":2,"trd.br":2,"tur.br":2,"tv.br":2,"udi.br":2,"vet.br":2,"vix.br":2,"vlog.br":2,"wiki.br":2,"zlg.br":2,"bs":1,"com.bs":2,"edu.bs":2,"gov.bs":2,"net.bs":2,"org.bs":2,"bt":1,"com.bt":2,"edu.bt":2,"gov.bt":2,"net.bt":2,"org.bt":2,"bv":1,"bw":1,"ac.bw":2,"co.bw":2,"gov.bw":2,"net.bw":2,"org.bw":2,"by":1,"gov.by":2,"mil.by":2,"com.by":2,"of.by":2,"bz":1,"co.bz":2,"com.bz":2,"edu.bz":2,"gov.bz":2,"net.bz":2,"org.bz":2,"ca":1,"ab.ca":2,"bc.ca":2,"mb.ca":2,"nb.ca":2,"nf.ca":2,"nl.ca":2,"ns.ca":2,"nt.ca":2,"nu.ca":2,"on.ca":2,"pe.ca":2,"qc.ca":2,"sk.ca":2,"yk.ca":2,"gc.ca":2,"cat":1,"cc":1,"cd":1,"gov.cd":2,"cf":1,"cg":1,"ch":1,"ci":1,"ac.ci":2,"xn--aroport-bya.ci":2,"asso.ci":2,"co.ci":2,"com.ci":2,"ed.ci":2,"edu.ci":2,"go.ci":2,"gouv.ci":2,"int.ci":2,"net.ci":2,"or.ci":2,"org.ci":2,"ck":2,"www.ck":1,"cl":1,"co.cl":2,"gob.cl":2,"gov.cl":2,"mil.cl":2,"cm":1,"co.cm":2,"com.cm":2,"gov.cm":2,"net.cm":2,"cn":1,"ac.cn":2,"com.cn":2,"edu.cn":2,"gov.cn":2,"mil.cn":2,"net.cn":2,"org.cn":2,"xn--55qx5d.cn":2,"xn--od0alg.cn":2,"xn--io0a7i.cn":2,"ah.cn":2,"bj.cn":2,"cq.cn":2,"fj.cn":2,"gd.cn":2,"gs.cn":2,"gx.cn":2,"gz.cn":2,"ha.cn":2,"hb.cn":2,"he.cn":2,"hi.cn":2,"hk.cn":2,"hl.cn":2,"hn.cn":2,"jl.cn":2,"js.cn":2,"jx.cn":2,"ln.cn":2,"mo.cn":2,"nm.cn":2,"nx.cn":2,"qh.cn":2,"sc.cn":2,"sd.cn":2,"sh.cn":2,"sn.cn":2,"sx.cn":2,"tj.cn":2,"tw.cn":2,"xj.cn":2,"xz.cn":2,"yn.cn":2,"zj.cn":2,"co":1,"com.co":2,"edu.co":2,"gov.co":2,"mil.co":2,"net.co":2,"nom.co":2,"org.co":2,"com":1,"coop":1,"cr":1,"ac.cr":2,"co.cr":2,"ed.cr":2,"fi.cr":2,"go.cr":2,"or.cr":2,"sa.cr":2,"cu":1,"com.cu":2,"edu.cu":2,"gob.cu":2,"inf.cu":2,"nat.cu":2,"net.cu":2,"org.cu":2,"cv":1,"com.cv":2,"edu.cv":2,"id.cv":2,"int.cv":2,"net.cv":2,"nome.cv":2,"org.cv":2,"publ.cv":2,"cw":1,"com.cw":2,"edu.cw":2,"net.cw":2,"org.cw":2,"cx":1,"gov.cx":2,"cy":1,"ac.cy":2,"biz.cy":2,"com.cy":2,"ekloges.cy":2,"gov.cy":2,"ltd.cy":2,"mil.cy":2,"net.cy":2,"org.cy":2,"press.cy":2,"pro.cy":2,"tm.cy":2,"cz":1,"de":1,"dj":1,"dk":1,"dm":1,"co.dm":2,"com.dm":2,"edu.dm":2,"gov.dm":2,"net.dm":2,"org.dm":2,"do":1,"art.do":2,"com.do":2,"edu.do":2,"gob.do":2,"gov.do":2,"mil.do":2,"net.do":2,"org.do":2,"sld.do":2,"web.do":2,"dz":1,"art.dz":2,"asso.dz":2,"com.dz":2,"edu.dz":2,"gov.dz":2,"net.dz":2,"org.dz":2,"pol.dz":2,"soc.dz":2,"tm.dz":2,"ec":1,"abg.ec":2,"adm.ec":2,"agron.ec":2,"arqt.ec":2,"art.ec":2,"bar.ec":2,"chef.ec":2,"com.ec":2,"cont.ec":2,"cpa.ec":2,"cue.ec":2,"dent.ec":2,"dgn.ec":2,"disco.ec":2,"doc.ec":2,"edu.ec":2,"eng.ec":2,"esm.ec":2,"fin.ec":2,"fot.ec":2,"gal.ec":2,"gob.ec":2,"gov.ec":2,"gye.ec":2,"ibr.ec":2,"info.ec":2,"k12.ec":2,"lat.ec":2,"loj.ec":2,"med.ec":2,"mil.ec":2,"mktg.ec":2,"mon.ec":2,"net.ec":2,"ntr.ec":2,"odont.ec":2,"org.ec":2,"pro.ec":2,"prof.ec":2,"psic.ec":2,"psiq.ec":2,"pub.ec":2,"rio.ec":2,"rrpp.ec":2,"sal.ec":2,"tech.ec":2,"tul.ec":2,"tur.ec":2,"uio.ec":2,"vet.ec":2,"xxx.ec":2,"edu":1,"ee":1,"aip.ee":2,"com.ee":2,"edu.ee":2,"fie.ee":2,"gov.ee":2,"lib.ee":2,"med.ee":2,"org.ee":2,"pri.ee":2,"riik.ee":2,"eg":1,"ac.eg":2,"com.eg":2,"edu.eg":2,"eun.eg":2,"gov.eg":2,"info.eg":2,"me.eg":2,"mil.eg":2,"name.eg":2,"net.eg":2,"org.eg":2,"sci.eg":2,"sport.eg":2,"tv.eg":2,"er":2,"es":1,"com.es":2,"edu.es":2,"gob.es":2,"nom.es":2,"org.es":2,"et":1,"biz.et":2,"com.et":2,"edu.et":2,"gov.et":2,"info.et":2,"name.et":2,"net.et":2,"org.et":2,"eu":1,"fi":1,"aland.fi":2,"fj":1,"ac.fj":2,"biz.fj":2,"com.fj":2,"gov.fj":2,"info.fj":2,"mil.fj":2,"name.fj":2,"net.fj":2,"org.fj":2,"pro.fj":2,"fk":2,"fm":1,"com.fm":2,"edu.fm":2,"net.fm":2,"org.fm":2,"fo":1,"fr":1,"asso.fr":2,"com.fr":2,"gouv.fr":2,"nom.fr":2,"prd.fr":2,"tm.fr":2,"avoues.fr":2,"cci.fr":2,"greta.fr":2,"huissier-justice.fr":2,"ga":1,"gb":1,"gd":1,"edu.gd":2,"gov.gd":2,"ge":1,"com.ge":2,"edu.ge":2,"gov.ge":2,"net.ge":2,"org.ge":2,"pvt.ge":2,"school.ge":2,"gf":1,"gg":1,"co.gg":2,"net.gg":2,"org.gg":2,"gh":1,"biz.gh":2,"com.gh":2,"edu.gh":2,"gov.gh":2,"mil.gh":2,"net.gh":2,"org.gh":2,"gi":1,"com.gi":2,"edu.gi":2,"gov.gi":2,"ltd.gi":2,"mod.gi":2,"org.gi":2,"gl":1,"co.gl":2,"com.gl":2,"edu.gl":2,"net.gl":2,"org.gl":2,"gm":1,"gn":1,"ac.gn":2,"com.gn":2,"edu.gn":2,"gov.gn":2,"net.gn":2,"org.gn":2,"gov":1,"gp":1,"asso.gp":2,"com.gp":2,"edu.gp":2,"mobi.gp":2,"net.gp":2,"org.gp":2,"gq":1,"gr":1,"com.gr":2,"edu.gr":2,"gov.gr":2,"net.gr":2,"org.gr":2,"gs":1,"gt":1,"com.gt":2,"edu.gt":2,"gob.gt":2,"ind.gt":2,"mil.gt":2,"net.gt":2,"org.gt":2,"gu":1,"com.gu":2,"edu.gu":2,"gov.gu":2,"guam.gu":2,"info.gu":2,"net.gu":2,"org.gu":2,"web.gu":2,"gw":1,"gy":1,"co.gy":2,"com.gy":2,"edu.gy":2,"gov.gy":2,"net.gy":2,"org.gy":2,"hk":1,"com.hk":2,"edu.hk":2,"gov.hk":2,"idv.hk":2,"net.hk":2,"org.hk":2,"xn--ciqpn.hk":2,"xn--gmqw5a.hk":2,"xn--55qx5d.hk":2,"xn--mxtq1m.hk":2,"xn--lcvr32d.hk":2,"xn--wcvs22d.hk":2,"xn--gmq050i.hk":2,"xn--uc0atv.hk":2,"xn--uc0ay4a.hk":2,"xn--od0alg.hk":2,"xn--zf0avx.hk":2,"xn--mk0axi.hk":2,"xn--tn0ag.hk":2,"xn--od0aq3b.hk":2,"xn--io0a7i.hk":2,"hm":1,"hn":1,"com.hn":2,"edu.hn":2,"gob.hn":2,"mil.hn":2,"net.hn":2,"org.hn":2,"hr":1,"com.hr":2,"from.hr":2,"iz.hr":2,"name.hr":2,"ht":1,"adult.ht":2,"art.ht":2,"asso.ht":2,"com.ht":2,"coop.ht":2,"edu.ht":2,"firm.ht":2,"gouv.ht":2,"info.ht":2,"med.ht":2,"net.ht":2,"org.ht":2,"perso.ht":2,"pol.ht":2,"pro.ht":2,"rel.ht":2,"shop.ht":2,"hu":1,"2000.hu":2,"agrar.hu":2,"bolt.hu":2,"casino.hu":2,"city.hu":2,"co.hu":2,"erotica.hu":2,"erotika.hu":2,"film.hu":2,"forum.hu":2,"games.hu":2,"hotel.hu":2,"info.hu":2,"ingatlan.hu":2,"jogasz.hu":2,"konyvelo.hu":2,"lakas.hu":2,"media.hu":2,"news.hu":2,"org.hu":2,"priv.hu":2,"reklam.hu":2,"sex.hu":2,"shop.hu":2,"sport.hu":2,"suli.hu":2,"szex.hu":2,"tm.hu":2,"tozsde.hu":2,"utazas.hu":2,"video.hu":2,"id":1,"ac.id":2,"biz.id":2,"co.id":2,"desa.id":2,"go.id":2,"kop.id":2,"mil.id":2,"my.id":2,"net.id":2,"or.id":2,"ponpes.id":2,"sch.id":2,"web.id":2,"ie":1,"gov.ie":2,"il":1,"ac.il":2,"co.il":2,"gov.il":2,"idf.il":2,"k12.il":2,"muni.il":2,"net.il":2,"org.il":2,"xn--4dbrk0ce":1,"xn--4dbgdty6c.xn--4dbrk0ce":2,"xn--5dbhl8d.xn--4dbrk0ce":2,"xn--8dbq2a.xn--4dbrk0ce":2,"xn--hebda8b.xn--4dbrk0ce":2,"im":1,"ac.im":2,"co.im":2,"ltd.co.im":3,"plc.co.im":3,"com.im":2,"net.im":2,"org.im":2,"tt.im":2,"tv.im":2,"in":1,"5g.in":2,"6g.in":2,"ac.in":2,"ai.in":2,"am.in":2,"bihar.in":2,"biz.in":2,"business.in":2,"ca.in":2,"cn.in":2,"co.in":2,"com.in":2,"coop.in":2,"cs.in":2,"delhi.in":2,"dr.in":2,"edu.in":2,"er.in":2,"firm.in":2,"gen.in":2,"gov.in":2,"gujarat.in":2,"ind.in":2,"info.in":2,"int.in":2,"internet.in":2,"io.in":2,"me.in":2,"mil.in":2,"net.in":2,"nic.in":2,"org.in":2,"pg.in":2,"post.in":2,"pro.in":2,"res.in":2,"travel.in":2,"tv.in":2,"uk.in":2,"up.in":2,"us.in":2,"info":1,"int":1,"eu.int":2,"io":1,"co.io":2,"com.io":2,"edu.io":2,"gov.io":2,"mil.io":2,"net.io":2,"nom.io":2,"org.io":2,"iq":1,"com.iq":2,"edu.iq":2,"gov.iq":2,"mil.iq":2,"net.iq":2,"org.iq":2,"ir":1,"ac.ir":2,"co.ir":2,"gov.ir":2,"id.ir":2,"net.ir":2,"org.ir":2,"sch.ir":2,"xn--mgba3a4f16a.ir":2,"xn--mgba3a4fra.ir":2,"is":1,"it":1,"edu.it":2,"gov.it":2,"abr.it":2,"abruzzo.it":2,"aosta-valley.it":2,"aostavalley.it":2,"bas.it":2,"basilicata.it":2,"cal.it":2,"calabria.it":2,"cam.it":2,"campania.it":2,"emilia-romagna.it":2,"emiliaromagna.it":2,"emr.it":2,"friuli-v-giulia.it":2,"friuli-ve-giulia.it":2,"friuli-vegiulia.it":2,"friuli-venezia-giulia.it":2,"friuli-veneziagiulia.it":2,"friuli-vgiulia.it":2,"friuliv-giulia.it":2,"friulive-giulia.it":2,"friulivegiulia.it":2,"friulivenezia-giulia.it":2,"friuliveneziagiulia.it":2,"friulivgiulia.it":2,"fvg.it":2,"laz.it":2,"lazio.it":2,"lig.it":2,"liguria.it":2,"lom.it":2,"lombardia.it":2,"lombardy.it":2,"lucania.it":2,"mar.it":2,"marche.it":2,"mol.it":2,"molise.it":2,"piedmont.it":2,"piemonte.it":2,"pmn.it":2,"pug.it":2,"puglia.it":2,"sar.it":2,"sardegna.it":2,"sardinia.it":2,"sic.it":2,"sicilia.it":2,"sicily.it":2,"taa.it":2,"tos.it":2,"toscana.it":2,"trentin-sud-tirol.it":2,"xn--trentin-sd-tirol-rzb.it":2,"trentin-sudtirol.it":2,"xn--trentin-sdtirol-7vb.it":2,"trentin-sued-tirol.it":2,"trentin-suedtirol.it":2,"trentino.it":2,"trentino-a-adige.it":2,"trentino-aadige.it":2,"trentino-alto-adige.it":2,"trentino-altoadige.it":2,"trentino-s-tirol.it":2,"trentino-stirol.it":2,"trentino-sud-tirol.it":2,"xn--trentino-sd-tirol-c3b.it":2,"trentino-sudtirol.it":2,"xn--trentino-sdtirol-szb.it":2,"trentino-sued-tirol.it":2,"trentino-suedtirol.it":2,"trentinoa-adige.it":2,"trentinoaadige.it":2,"trentinoalto-adige.it":2,"trentinoaltoadige.it":2,"trentinos-tirol.it":2,"trentinostirol.it":2,"trentinosud-tirol.it":2,"xn--trentinosd-tirol-rzb.it":2,"trentinosudtirol.it":2,"xn--trentinosdtirol-7vb.it":2,"trentinosued-tirol.it":2,"trentinosuedtirol.it":2,"trentinsud-tirol.it":2,"xn--trentinsd-tirol-6vb.it":2,"trentinsudtirol.it":2,"xn--trentinsdtirol-nsb.it":2,"trentinsued-tirol.it":2,"trentinsuedtirol.it":2,"tuscany.it":2,"umb.it":2,"umbria.it":2,"val-d-aosta.it":2,"val-daosta.it":2,"vald-aosta.it":2,"valdaosta.it":2,"valle-aosta.it":2,"valle-d-aosta.it":2,"valle-daosta.it":2,"valleaosta.it":2,"valled-aosta.it":2,"valledaosta.it":2,"vallee-aoste.it":2,"xn--valle-aoste-ebb.it":2,"vallee-d-aoste.it":2,"xn--valle-d-aoste-ehb.it":2,"valleeaoste.it":2,"xn--valleaoste-e7a.it":2,"valleedaoste.it":2,"xn--valledaoste-ebb.it":2,"vao.it":2,"vda.it":2,"ven.it":2,"veneto.it":2,"ag.it":2,"agrigento.it":2,"al.it":2,"alessandria.it":2,"alto-adige.it":2,"altoadige.it":2,"an.it":2,"ancona.it":2,"andria-barletta-trani.it":2,"andria-trani-barletta.it":2,"andriabarlettatrani.it":2,"andriatranibarletta.it":2,"ao.it":2,"aosta.it":2,"aoste.it":2,"ap.it":2,"aq.it":2,"aquila.it":2,"ar.it":2,"arezzo.it":2,"ascoli-piceno.it":2,"ascolipiceno.it":2,"asti.it":2,"at.it":2,"av.it":2,"avellino.it":2,"ba.it":2,"balsan.it":2,"balsan-sudtirol.it":2,"xn--balsan-sdtirol-nsb.it":2,"balsan-suedtirol.it":2,"bari.it":2,"barletta-trani-andria.it":2,"barlettatraniandria.it":2,"belluno.it":2,"benevento.it":2,"bergamo.it":2,"bg.it":2,"bi.it":2,"biella.it":2,"bl.it":2,"bn.it":2,"bo.it":2,"bologna.it":2,"bolzano.it":2,"bolzano-altoadige.it":2,"bozen.it":2,"bozen-sudtirol.it":2,"xn--bozen-sdtirol-2ob.it":2,"bozen-suedtirol.it":2,"br.it":2,"brescia.it":2,"brindisi.it":2,"bs.it":2,"bt.it":2,"bulsan.it":2,"bulsan-sudtirol.it":2,"xn--bulsan-sdtirol-nsb.it":2,"bulsan-suedtirol.it":2,"bz.it":2,"ca.it":2,"cagliari.it":2,"caltanissetta.it":2,"campidano-medio.it":2,"campidanomedio.it":2,"campobasso.it":2,"carbonia-iglesias.it":2,"carboniaiglesias.it":2,"carrara-massa.it":2,"carraramassa.it":2,"caserta.it":2,"catania.it":2,"catanzaro.it":2,"cb.it":2,"ce.it":2,"cesena-forli.it":2,"xn--cesena-forl-mcb.it":2,"cesenaforli.it":2,"xn--cesenaforl-i8a.it":2,"ch.it":2,"chieti.it":2,"ci.it":2,"cl.it":2,"cn.it":2,"co.it":2,"como.it":2,"cosenza.it":2,"cr.it":2,"cremona.it":2,"crotone.it":2,"cs.it":2,"ct.it":2,"cuneo.it":2,"cz.it":2,"dell-ogliastra.it":2,"dellogliastra.it":2,"en.it":2,"enna.it":2,"fc.it":2,"fe.it":2,"fermo.it":2,"ferrara.it":2,"fg.it":2,"fi.it":2,"firenze.it":2,"florence.it":2,"fm.it":2,"foggia.it":2,"forli-cesena.it":2,"xn--forl-cesena-fcb.it":2,"forlicesena.it":2,"xn--forlcesena-c8a.it":2,"fr.it":2,"frosinone.it":2,"ge.it":2,"genoa.it":2,"genova.it":2,"go.it":2,"gorizia.it":2,"gr.it":2,"grosseto.it":2,"iglesias-carbonia.it":2,"iglesiascarbonia.it":2,"im.it":2,"imperia.it":2,"is.it":2,"isernia.it":2,"kr.it":2,"la-spezia.it":2,"laquila.it":2,"laspezia.it":2,"latina.it":2,"lc.it":2,"le.it":2,"lecce.it":2,"lecco.it":2,"li.it":2,"livorno.it":2,"lo.it":2,"lodi.it":2,"lt.it":2,"lu.it":2,"lucca.it":2,"macerata.it":2,"mantova.it":2,"massa-carrara.it":2,"massacarrara.it":2,"matera.it":2,"mb.it":2,"mc.it":2,"me.it":2,"medio-campidano.it":2,"mediocampidano.it":2,"messina.it":2,"mi.it":2,"milan.it":2,"milano.it":2,"mn.it":2,"mo.it":2,"modena.it":2,"monza.it":2,"monza-brianza.it":2,"monza-e-della-brianza.it":2,"monzabrianza.it":2,"monzaebrianza.it":2,"monzaedellabrianza.it":2,"ms.it":2,"mt.it":2,"na.it":2,"naples.it":2,"napoli.it":2,"no.it":2,"novara.it":2,"nu.it":2,"nuoro.it":2,"og.it":2,"ogliastra.it":2,"olbia-tempio.it":2,"olbiatempio.it":2,"or.it":2,"oristano.it":2,"ot.it":2,"pa.it":2,"padova.it":2,"padua.it":2,"palermo.it":2,"parma.it":2,"pavia.it":2,"pc.it":2,"pd.it":2,"pe.it":2,"perugia.it":2,"pesaro-urbino.it":2,"pesarourbino.it":2,"pescara.it":2,"pg.it":2,"pi.it":2,"piacenza.it":2,"pisa.it":2,"pistoia.it":2,"pn.it":2,"po.it":2,"pordenone.it":2,"potenza.it":2,"pr.it":2,"prato.it":2,"pt.it":2,"pu.it":2,"pv.it":2,"pz.it":2,"ra.it":2,"ragusa.it":2,"ravenna.it":2,"rc.it":2,"re.it":2,"reggio-calabria.it":2,"reggio-emilia.it":2,"reggiocalabria.it":2,"reggioemilia.it":2,"rg.it":2,"ri.it":2,"rieti.it":2,"rimini.it":2,"rm.it":2,"rn.it":2,"ro.it":2,"roma.it":2,"rome.it":2,"rovigo.it":2,"sa.it":2,"salerno.it":2,"sassari.it":2,"savona.it":2,"si.it":2,"siena.it":2,"siracusa.it":2,"so.it":2,"sondrio.it":2,"sp.it":2,"sr.it":2,"ss.it":2,"xn--sdtirol-n2a.it":2,"suedtirol.it":2,"sv.it":2,"ta.it":2,"taranto.it":2,"te.it":2,"tempio-olbia.it":2,"tempioolbia.it":2,"teramo.it":2,"terni.it":2,"tn.it":2,"to.it":2,"torino.it":2,"tp.it":2,"tr.it":2,"trani-andria-barletta.it":2,"trani-barletta-andria.it":2,"traniandriabarletta.it":2,"tranibarlettaandria.it":2,"trapani.it":2,"trento.it":2,"treviso.it":2,"trieste.it":2,"ts.it":2,"turin.it":2,"tv.it":2,"ud.it":2,"udine.it":2,"urbino-pesaro.it":2,"urbinopesaro.it":2,"va.it":2,"varese.it":2,"vb.it":2,"vc.it":2,"ve.it":2,"venezia.it":2,"venice.it":2,"verbania.it":2,"vercelli.it":2,"verona.it":2,"vi.it":2,"vibo-valentia.it":2,"vibovalentia.it":2,"vicenza.it":2,"viterbo.it":2,"vr.it":2,"vs.it":2,"vt.it":2,"vv.it":2,"je":1,"co.je":2,"net.je":2,"org.je":2,"jm":2,"jo":1,"agri.jo":2,"ai.jo":2,"com.jo":2,"edu.jo":2,"eng.jo":2,"fm.jo":2,"gov.jo":2,"mil.jo":2,"net.jo":2,"org.jo":2,"per.jo":2,"phd.jo":2,"sch.jo":2,"tv.jo":2,"jobs":1,"jp":1,"ac.jp":2,"ad.jp":2,"co.jp":2,"ed.jp":2,"go.jp":2,"gr.jp":2,"lg.jp":2,"ne.jp":2,"or.jp":2,"aichi.jp":2,"akita.jp":2,"aomori.jp":2,"chiba.jp":2,"ehime.jp":2,"fukui.jp":2,"fukuoka.jp":2,"fukushima.jp":2,"gifu.jp":2,"gunma.jp":2,"hiroshima.jp":2,"hokkaido.jp":2,"hyogo.jp":2,"ibaraki.jp":2,"ishikawa.jp":2,"iwate.jp":2,"kagawa.jp":2,"kagoshima.jp":2,"kanagawa.jp":2,"kochi.jp":2,"kumamoto.jp":2,"kyoto.jp":2,"mie.jp":2,"miyagi.jp":2,"miyazaki.jp":2,"nagano.jp":2,"nagasaki.jp":2,"nara.jp":2,"niigata.jp":2,"oita.jp":2,"okayama.jp":2,"okinawa.jp":2,"osaka.jp":2,"saga.jp":2,"saitama.jp":2,"shiga.jp":2,"shimane.jp":2,"shizuoka.jp":2,"tochigi.jp":2,"tokushima.jp":2,"tokyo.jp":2,"tottori.jp":2,"toyama.jp":2,"wakayama.jp":2,"yamagata.jp":2,"yamaguchi.jp":2,"yamanashi.jp":2,"xn--ehqz56n.jp":2,"xn--1lqs03n.jp":2,"xn--qqqt11m.jp":2,"xn--f6qx53a.jp":2,"xn--djrs72d6uy.jp":2,"xn--mkru45i.jp":2,"xn--0trq7p7nn.jp":2,"xn--5js045d.jp":2,"xn--kbrq7o.jp":2,"xn--pssu33l.jp":2,"xn--ntsq17g.jp":2,"xn--uisz3g.jp":2,"xn--6btw5a.jp":2,"xn--1ctwo.jp":2,"xn--6orx2r.jp":2,"xn--rht61e.jp":2,"xn--rht27z.jp":2,"xn--nit225k.jp":2,"xn--rht3d.jp":2,"xn--djty4k.jp":2,"xn--klty5x.jp":2,"xn--kltx9a.jp":2,"xn--kltp7d.jp":2,"xn--c3s14m.jp":2,"xn--vgu402c.jp":2,"xn--efvn9s.jp":2,"xn--1lqs71d.jp":2,"xn--4pvxs.jp":2,"xn--uuwu58a.jp":2,"xn--zbx025d.jp":2,"xn--8pvr4u.jp":2,"xn--5rtp49c.jp":2,"xn--ntso0iqx3a.jp":2,"xn--elqq16h.jp":2,"xn--4it168d.jp":2,"xn--klt787d.jp":2,"xn--rny31h.jp":2,"xn--7t0a264c.jp":2,"xn--uist22h.jp":2,"xn--8ltr62k.jp":2,"xn--2m4a15e.jp":2,"xn--32vp30h.jp":2,"xn--4it797k.jp":2,"xn--5rtq34k.jp":2,"xn--k7yn95e.jp":2,"xn--tor131o.jp":2,"xn--d5qv7z876c.jp":2,"kawasaki.jp":3,"city.kawasaki.jp":2,"kitakyushu.jp":3,"city.kitakyushu.jp":2,"kobe.jp":3,"city.kobe.jp":2,"nagoya.jp":3,"city.nagoya.jp":2,"sapporo.jp":3,"city.sapporo.jp":2,"sendai.jp":3,"city.sendai.jp":2,"yokohama.jp":3,"city.yokohama.jp":2,"aisai.aichi.jp":3,"ama.aichi.jp":3,"anjo.aichi.jp":3,"asuke.aichi.jp":3,"chiryu.aichi.jp":3,"chita.aichi.jp":3,"fuso.aichi.jp":3,"gamagori.aichi.jp":3,"handa.aichi.jp":3,"hazu.aichi.jp":3,"hekinan.aichi.jp":3,"higashiura.aichi.jp":3,"ichinomiya.aichi.jp":3,"inazawa.aichi.jp":3,"inuyama.aichi.jp":3,"isshiki.aichi.jp":3,"iwakura.aichi.jp":3,"kanie.aichi.jp":3,"kariya.aichi.jp":3,"kasugai.aichi.jp":3,"kira.aichi.jp":3,"kiyosu.aichi.jp":3,"komaki.aichi.jp":3,"konan.aichi.jp":3,"kota.aichi.jp":3,"mihama.aichi.jp":3,"miyoshi.aichi.jp":3,"nishio.aichi.jp":3,"nisshin.aichi.jp":3,"obu.aichi.jp":3,"oguchi.aichi.jp":3,"oharu.aichi.jp":3,"okazaki.aichi.jp":3,"owariasahi.aichi.jp":3,"seto.aichi.jp":3,"shikatsu.aichi.jp":3,"shinshiro.aichi.jp":3,"shitara.aichi.jp":3,"tahara.aichi.jp":3,"takahama.aichi.jp":3,"tobishima.aichi.jp":3,"toei.aichi.jp":3,"togo.aichi.jp":3,"tokai.aichi.jp":3,"tokoname.aichi.jp":3,"toyoake.aichi.jp":3,"toyohashi.aichi.jp":3,"toyokawa.aichi.jp":3,"toyone.aichi.jp":3,"toyota.aichi.jp":3,"tsushima.aichi.jp":3,"yatomi.aichi.jp":3,"akita.akita.jp":3,"daisen.akita.jp":3,"fujisato.akita.jp":3,"gojome.akita.jp":3,"hachirogata.akita.jp":3,"happou.akita.jp":3,"higashinaruse.akita.jp":3,"honjo.akita.jp":3,"honjyo.akita.jp":3,"ikawa.akita.jp":3,"kamikoani.akita.jp":3,"kamioka.akita.jp":3,"katagami.akita.jp":3,"kazuno.akita.jp":3,"kitaakita.akita.jp":3,"kosaka.akita.jp":3,"kyowa.akita.jp":3,"misato.akita.jp":3,"mitane.akita.jp":3,"moriyoshi.akita.jp":3,"nikaho.akita.jp":3,"noshiro.akita.jp":3,"odate.akita.jp":3,"oga.akita.jp":3,"ogata.akita.jp":3,"semboku.akita.jp":3,"yokote.akita.jp":3,"yurihonjo.akita.jp":3,"aomori.aomori.jp":3,"gonohe.aomori.jp":3,"hachinohe.aomori.jp":3,"hashikami.aomori.jp":3,"hiranai.aomori.jp":3,"hirosaki.aomori.jp":3,"itayanagi.aomori.jp":3,"kuroishi.aomori.jp":3,"misawa.aomori.jp":3,"mutsu.aomori.jp":3,"nakadomari.aomori.jp":3,"noheji.aomori.jp":3,"oirase.aomori.jp":3,"owani.aomori.jp":3,"rokunohe.aomori.jp":3,"sannohe.aomori.jp":3,"shichinohe.aomori.jp":3,"shingo.aomori.jp":3,"takko.aomori.jp":3,"towada.aomori.jp":3,"tsugaru.aomori.jp":3,"tsuruta.aomori.jp":3,"abiko.chiba.jp":3,"asahi.chiba.jp":3,"chonan.chiba.jp":3,"chosei.chiba.jp":3,"choshi.chiba.jp":3,"chuo.chiba.jp":3,"funabashi.chiba.jp":3,"futtsu.chiba.jp":3,"hanamigawa.chiba.jp":3,"ichihara.chiba.jp":3,"ichikawa.chiba.jp":3,"ichinomiya.chiba.jp":3,"inzai.chiba.jp":3,"isumi.chiba.jp":3,"kamagaya.chiba.jp":3,"kamogawa.chiba.jp":3,"kashiwa.chiba.jp":3,"katori.chiba.jp":3,"katsuura.chiba.jp":3,"kimitsu.chiba.jp":3,"kisarazu.chiba.jp":3,"kozaki.chiba.jp":3,"kujukuri.chiba.jp":3,"kyonan.chiba.jp":3,"matsudo.chiba.jp":3,"midori.chiba.jp":3,"mihama.chiba.jp":3,"minamiboso.chiba.jp":3,"mobara.chiba.jp":3,"mutsuzawa.chiba.jp":3,"nagara.chiba.jp":3,"nagareyama.chiba.jp":3,"narashino.chiba.jp":3,"narita.chiba.jp":3,"noda.chiba.jp":3,"oamishirasato.chiba.jp":3,"omigawa.chiba.jp":3,"onjuku.chiba.jp":3,"otaki.chiba.jp":3,"sakae.chiba.jp":3,"sakura.chiba.jp":3,"shimofusa.chiba.jp":3,"shirako.chiba.jp":3,"shiroi.chiba.jp":3,"shisui.chiba.jp":3,"sodegaura.chiba.jp":3,"sosa.chiba.jp":3,"tako.chiba.jp":3,"tateyama.chiba.jp":3,"togane.chiba.jp":3,"tohnosho.chiba.jp":3,"tomisato.chiba.jp":3,"urayasu.chiba.jp":3,"yachimata.chiba.jp":3,"yachiyo.chiba.jp":3,"yokaichiba.chiba.jp":3,"yokoshibahikari.chiba.jp":3,"yotsukaido.chiba.jp":3,"ainan.ehime.jp":3,"honai.ehime.jp":3,"ikata.ehime.jp":3,"imabari.ehime.jp":3,"iyo.ehime.jp":3,"kamijima.ehime.jp":3,"kihoku.ehime.jp":3,"kumakogen.ehime.jp":3,"masaki.ehime.jp":3,"matsuno.ehime.jp":3,"matsuyama.ehime.jp":3,"namikata.ehime.jp":3,"niihama.ehime.jp":3,"ozu.ehime.jp":3,"saijo.ehime.jp":3,"seiyo.ehime.jp":3,"shikokuchuo.ehime.jp":3,"tobe.ehime.jp":3,"toon.ehime.jp":3,"uchiko.ehime.jp":3,"uwajima.ehime.jp":3,"yawatahama.ehime.jp":3,"echizen.fukui.jp":3,"eiheiji.fukui.jp":3,"fukui.fukui.jp":3,"ikeda.fukui.jp":3,"katsuyama.fukui.jp":3,"mihama.fukui.jp":3,"minamiechizen.fukui.jp":3,"obama.fukui.jp":3,"ohi.fukui.jp":3,"ono.fukui.jp":3,"sabae.fukui.jp":3,"sakai.fukui.jp":3,"takahama.fukui.jp":3,"tsuruga.fukui.jp":3,"wakasa.fukui.jp":3,"ashiya.fukuoka.jp":3,"buzen.fukuoka.jp":3,"chikugo.fukuoka.jp":3,"chikuho.fukuoka.jp":3,"chikujo.fukuoka.jp":3,"chikushino.fukuoka.jp":3,"chikuzen.fukuoka.jp":3,"chuo.fukuoka.jp":3,"dazaifu.fukuoka.jp":3,"fukuchi.fukuoka.jp":3,"hakata.fukuoka.jp":3,"higashi.fukuoka.jp":3,"hirokawa.fukuoka.jp":3,"hisayama.fukuoka.jp":3,"iizuka.fukuoka.jp":3,"inatsuki.fukuoka.jp":3,"kaho.fukuoka.jp":3,"kasuga.fukuoka.jp":3,"kasuya.fukuoka.jp":3,"kawara.fukuoka.jp":3,"keisen.fukuoka.jp":3,"koga.fukuoka.jp":3,"kurate.fukuoka.jp":3,"kurogi.fukuoka.jp":3,"kurume.fukuoka.jp":3,"minami.fukuoka.jp":3,"miyako.fukuoka.jp":3,"miyama.fukuoka.jp":3,"miyawaka.fukuoka.jp":3,"mizumaki.fukuoka.jp":3,"munakata.fukuoka.jp":3,"nakagawa.fukuoka.jp":3,"nakama.fukuoka.jp":3,"nishi.fukuoka.jp":3,"nogata.fukuoka.jp":3,"ogori.fukuoka.jp":3,"okagaki.fukuoka.jp":3,"okawa.fukuoka.jp":3,"oki.fukuoka.jp":3,"omuta.fukuoka.jp":3,"onga.fukuoka.jp":3,"onojo.fukuoka.jp":3,"oto.fukuoka.jp":3,"saigawa.fukuoka.jp":3,"sasaguri.fukuoka.jp":3,"shingu.fukuoka.jp":3,"shinyoshitomi.fukuoka.jp":3,"shonai.fukuoka.jp":3,"soeda.fukuoka.jp":3,"sue.fukuoka.jp":3,"tachiarai.fukuoka.jp":3,"tagawa.fukuoka.jp":3,"takata.fukuoka.jp":3,"toho.fukuoka.jp":3,"toyotsu.fukuoka.jp":3,"tsuiki.fukuoka.jp":3,"ukiha.fukuoka.jp":3,"umi.fukuoka.jp":3,"usui.fukuoka.jp":3,"yamada.fukuoka.jp":3,"yame.fukuoka.jp":3,"yanagawa.fukuoka.jp":3,"yukuhashi.fukuoka.jp":3,"aizubange.fukushima.jp":3,"aizumisato.fukushima.jp":3,"aizuwakamatsu.fukushima.jp":3,"asakawa.fukushima.jp":3,"bandai.fukushima.jp":3,"date.fukushima.jp":3,"fukushima.fukushima.jp":3,"furudono.fukushima.jp":3,"futaba.fukushima.jp":3,"hanawa.fukushima.jp":3,"higashi.fukushima.jp":3,"hirata.fukushima.jp":3,"hirono.fukushima.jp":3,"iitate.fukushima.jp":3,"inawashiro.fukushima.jp":3,"ishikawa.fukushima.jp":3,"iwaki.fukushima.jp":3,"izumizaki.fukushima.jp":3,"kagamiishi.fukushima.jp":3,"kaneyama.fukushima.jp":3,"kawamata.fukushima.jp":3,"kitakata.fukushima.jp":3,"kitashiobara.fukushima.jp":3,"koori.fukushima.jp":3,"koriyama.fukushima.jp":3,"kunimi.fukushima.jp":3,"miharu.fukushima.jp":3,"mishima.fukushima.jp":3,"namie.fukushima.jp":3,"nango.fukushima.jp":3,"nishiaizu.fukushima.jp":3,"nishigo.fukushima.jp":3,"okuma.fukushima.jp":3,"omotego.fukushima.jp":3,"ono.fukushima.jp":3,"otama.fukushima.jp":3,"samegawa.fukushima.jp":3,"shimogo.fukushima.jp":3,"shirakawa.fukushima.jp":3,"showa.fukushima.jp":3,"soma.fukushima.jp":3,"sukagawa.fukushima.jp":3,"taishin.fukushima.jp":3,"tamakawa.fukushima.jp":3,"tanagura.fukushima.jp":3,"tenei.fukushima.jp":3,"yabuki.fukushima.jp":3,"yamato.fukushima.jp":3,"yamatsuri.fukushima.jp":3,"yanaizu.fukushima.jp":3,"yugawa.fukushima.jp":3,"anpachi.gifu.jp":3,"ena.gifu.jp":3,"gifu.gifu.jp":3,"ginan.gifu.jp":3,"godo.gifu.jp":3,"gujo.gifu.jp":3,"hashima.gifu.jp":3,"hichiso.gifu.jp":3,"hida.gifu.jp":3,"higashishirakawa.gifu.jp":3,"ibigawa.gifu.jp":3,"ikeda.gifu.jp":3,"kakamigahara.gifu.jp":3,"kani.gifu.jp":3,"kasahara.gifu.jp":3,"kasamatsu.gifu.jp":3,"kawaue.gifu.jp":3,"kitagata.gifu.jp":3,"mino.gifu.jp":3,"minokamo.gifu.jp":3,"mitake.gifu.jp":3,"mizunami.gifu.jp":3,"motosu.gifu.jp":3,"nakatsugawa.gifu.jp":3,"ogaki.gifu.jp":3,"sakahogi.gifu.jp":3,"seki.gifu.jp":3,"sekigahara.gifu.jp":3,"shirakawa.gifu.jp":3,"tajimi.gifu.jp":3,"takayama.gifu.jp":3,"tarui.gifu.jp":3,"toki.gifu.jp":3,"tomika.gifu.jp":3,"wanouchi.gifu.jp":3,"yamagata.gifu.jp":3,"yaotsu.gifu.jp":3,"yoro.gifu.jp":3,"annaka.gunma.jp":3,"chiyoda.gunma.jp":3,"fujioka.gunma.jp":3,"higashiagatsuma.gunma.jp":3,"isesaki.gunma.jp":3,"itakura.gunma.jp":3,"kanna.gunma.jp":3,"kanra.gunma.jp":3,"katashina.gunma.jp":3,"kawaba.gunma.jp":3,"kiryu.gunma.jp":3,"kusatsu.gunma.jp":3,"maebashi.gunma.jp":3,"meiwa.gunma.jp":3,"midori.gunma.jp":3,"minakami.gunma.jp":3,"naganohara.gunma.jp":3,"nakanojo.gunma.jp":3,"nanmoku.gunma.jp":3,"numata.gunma.jp":3,"oizumi.gunma.jp":3,"ora.gunma.jp":3,"ota.gunma.jp":3,"shibukawa.gunma.jp":3,"shimonita.gunma.jp":3,"shinto.gunma.jp":3,"showa.gunma.jp":3,"takasaki.gunma.jp":3,"takayama.gunma.jp":3,"tamamura.gunma.jp":3,"tatebayashi.gunma.jp":3,"tomioka.gunma.jp":3,"tsukiyono.gunma.jp":3,"tsumagoi.gunma.jp":3,"ueno.gunma.jp":3,"yoshioka.gunma.jp":3,"asaminami.hiroshima.jp":3,"daiwa.hiroshima.jp":3,"etajima.hiroshima.jp":3,"fuchu.hiroshima.jp":3,"fukuyama.hiroshima.jp":3,"hatsukaichi.hiroshima.jp":3,"higashihiroshima.hiroshima.jp":3,"hongo.hiroshima.jp":3,"jinsekikogen.hiroshima.jp":3,"kaita.hiroshima.jp":3,"kui.hiroshima.jp":3,"kumano.hiroshima.jp":3,"kure.hiroshima.jp":3,"mihara.hiroshima.jp":3,"miyoshi.hiroshima.jp":3,"naka.hiroshima.jp":3,"onomichi.hiroshima.jp":3,"osakikamijima.hiroshima.jp":3,"otake.hiroshima.jp":3,"saka.hiroshima.jp":3,"sera.hiroshima.jp":3,"seranishi.hiroshima.jp":3,"shinichi.hiroshima.jp":3,"shobara.hiroshima.jp":3,"takehara.hiroshima.jp":3,"abashiri.hokkaido.jp":3,"abira.hokkaido.jp":3,"aibetsu.hokkaido.jp":3,"akabira.hokkaido.jp":3,"akkeshi.hokkaido.jp":3,"asahikawa.hokkaido.jp":3,"ashibetsu.hokkaido.jp":3,"ashoro.hokkaido.jp":3,"assabu.hokkaido.jp":3,"atsuma.hokkaido.jp":3,"bibai.hokkaido.jp":3,"biei.hokkaido.jp":3,"bifuka.hokkaido.jp":3,"bihoro.hokkaido.jp":3,"biratori.hokkaido.jp":3,"chippubetsu.hokkaido.jp":3,"chitose.hokkaido.jp":3,"date.hokkaido.jp":3,"ebetsu.hokkaido.jp":3,"embetsu.hokkaido.jp":3,"eniwa.hokkaido.jp":3,"erimo.hokkaido.jp":3,"esan.hokkaido.jp":3,"esashi.hokkaido.jp":3,"fukagawa.hokkaido.jp":3,"fukushima.hokkaido.jp":3,"furano.hokkaido.jp":3,"furubira.hokkaido.jp":3,"haboro.hokkaido.jp":3,"hakodate.hokkaido.jp":3,"hamatonbetsu.hokkaido.jp":3,"hidaka.hokkaido.jp":3,"higashikagura.hokkaido.jp":3,"higashikawa.hokkaido.jp":3,"hiroo.hokkaido.jp":3,"hokuryu.hokkaido.jp":3,"hokuto.hokkaido.jp":3,"honbetsu.hokkaido.jp":3,"horokanai.hokkaido.jp":3,"horonobe.hokkaido.jp":3,"ikeda.hokkaido.jp":3,"imakane.hokkaido.jp":3,"ishikari.hokkaido.jp":3,"iwamizawa.hokkaido.jp":3,"iwanai.hokkaido.jp":3,"kamifurano.hokkaido.jp":3,"kamikawa.hokkaido.jp":3,"kamishihoro.hokkaido.jp":3,"kamisunagawa.hokkaido.jp":3,"kamoenai.hokkaido.jp":3,"kayabe.hokkaido.jp":3,"kembuchi.hokkaido.jp":3,"kikonai.hokkaido.jp":3,"kimobetsu.hokkaido.jp":3,"kitahiroshima.hokkaido.jp":3,"kitami.hokkaido.jp":3,"kiyosato.hokkaido.jp":3,"koshimizu.hokkaido.jp":3,"kunneppu.hokkaido.jp":3,"kuriyama.hokkaido.jp":3,"kuromatsunai.hokkaido.jp":3,"kushiro.hokkaido.jp":3,"kutchan.hokkaido.jp":3,"kyowa.hokkaido.jp":3,"mashike.hokkaido.jp":3,"matsumae.hokkaido.jp":3,"mikasa.hokkaido.jp":3,"minamifurano.hokkaido.jp":3,"mombetsu.hokkaido.jp":3,"moseushi.hokkaido.jp":3,"mukawa.hokkaido.jp":3,"muroran.hokkaido.jp":3,"naie.hokkaido.jp":3,"nakagawa.hokkaido.jp":3,"nakasatsunai.hokkaido.jp":3,"nakatombetsu.hokkaido.jp":3,"nanae.hokkaido.jp":3,"nanporo.hokkaido.jp":3,"nayoro.hokkaido.jp":3,"nemuro.hokkaido.jp":3,"niikappu.hokkaido.jp":3,"niki.hokkaido.jp":3,"nishiokoppe.hokkaido.jp":3,"noboribetsu.hokkaido.jp":3,"numata.hokkaido.jp":3,"obihiro.hokkaido.jp":3,"obira.hokkaido.jp":3,"oketo.hokkaido.jp":3,"okoppe.hokkaido.jp":3,"otaru.hokkaido.jp":3,"otobe.hokkaido.jp":3,"otofuke.hokkaido.jp":3,"otoineppu.hokkaido.jp":3,"oumu.hokkaido.jp":3,"ozora.hokkaido.jp":3,"pippu.hokkaido.jp":3,"rankoshi.hokkaido.jp":3,"rebun.hokkaido.jp":3,"rikubetsu.hokkaido.jp":3,"rishiri.hokkaido.jp":3,"rishirifuji.hokkaido.jp":3,"saroma.hokkaido.jp":3,"sarufutsu.hokkaido.jp":3,"shakotan.hokkaido.jp":3,"shari.hokkaido.jp":3,"shibecha.hokkaido.jp":3,"shibetsu.hokkaido.jp":3,"shikabe.hokkaido.jp":3,"shikaoi.hokkaido.jp":3,"shimamaki.hokkaido.jp":3,"shimizu.hokkaido.jp":3,"shimokawa.hokkaido.jp":3,"shinshinotsu.hokkaido.jp":3,"shintoku.hokkaido.jp":3,"shiranuka.hokkaido.jp":3,"shiraoi.hokkaido.jp":3,"shiriuchi.hokkaido.jp":3,"sobetsu.hokkaido.jp":3,"sunagawa.hokkaido.jp":3,"taiki.hokkaido.jp":3,"takasu.hokkaido.jp":3,"takikawa.hokkaido.jp":3,"takinoue.hokkaido.jp":3,"teshikaga.hokkaido.jp":3,"tobetsu.hokkaido.jp":3,"tohma.hokkaido.jp":3,"tomakomai.hokkaido.jp":3,"tomari.hokkaido.jp":3,"toya.hokkaido.jp":3,"toyako.hokkaido.jp":3,"toyotomi.hokkaido.jp":3,"toyoura.hokkaido.jp":3,"tsubetsu.hokkaido.jp":3,"tsukigata.hokkaido.jp":3,"urakawa.hokkaido.jp":3,"urausu.hokkaido.jp":3,"uryu.hokkaido.jp":3,"utashinai.hokkaido.jp":3,"wakkanai.hokkaido.jp":3,"wassamu.hokkaido.jp":3,"yakumo.hokkaido.jp":3,"yoichi.hokkaido.jp":3,"aioi.hyogo.jp":3,"akashi.hyogo.jp":3,"ako.hyogo.jp":3,"amagasaki.hyogo.jp":3,"aogaki.hyogo.jp":3,"asago.hyogo.jp":3,"ashiya.hyogo.jp":3,"awaji.hyogo.jp":3,"fukusaki.hyogo.jp":3,"goshiki.hyogo.jp":3,"harima.hyogo.jp":3,"himeji.hyogo.jp":3,"ichikawa.hyogo.jp":3,"inagawa.hyogo.jp":3,"itami.hyogo.jp":3,"kakogawa.hyogo.jp":3,"kamigori.hyogo.jp":3,"kamikawa.hyogo.jp":3,"kasai.hyogo.jp":3,"kasuga.hyogo.jp":3,"kawanishi.hyogo.jp":3,"miki.hyogo.jp":3,"minamiawaji.hyogo.jp":3,"nishinomiya.hyogo.jp":3,"nishiwaki.hyogo.jp":3,"ono.hyogo.jp":3,"sanda.hyogo.jp":3,"sannan.hyogo.jp":3,"sasayama.hyogo.jp":3,"sayo.hyogo.jp":3,"shingu.hyogo.jp":3,"shinonsen.hyogo.jp":3,"shiso.hyogo.jp":3,"sumoto.hyogo.jp":3,"taishi.hyogo.jp":3,"taka.hyogo.jp":3,"takarazuka.hyogo.jp":3,"takasago.hyogo.jp":3,"takino.hyogo.jp":3,"tamba.hyogo.jp":3,"tatsuno.hyogo.jp":3,"toyooka.hyogo.jp":3,"yabu.hyogo.jp":3,"yashiro.hyogo.jp":3,"yoka.hyogo.jp":3,"yokawa.hyogo.jp":3,"ami.ibaraki.jp":3,"asahi.ibaraki.jp":3,"bando.ibaraki.jp":3,"chikusei.ibaraki.jp":3,"daigo.ibaraki.jp":3,"fujishiro.ibaraki.jp":3,"hitachi.ibaraki.jp":3,"hitachinaka.ibaraki.jp":3,"hitachiomiya.ibaraki.jp":3,"hitachiota.ibaraki.jp":3,"ibaraki.ibaraki.jp":3,"ina.ibaraki.jp":3,"inashiki.ibaraki.jp":3,"itako.ibaraki.jp":3,"iwama.ibaraki.jp":3,"joso.ibaraki.jp":3,"kamisu.ibaraki.jp":3,"kasama.ibaraki.jp":3,"kashima.ibaraki.jp":3,"kasumigaura.ibaraki.jp":3,"koga.ibaraki.jp":3,"miho.ibaraki.jp":3,"mito.ibaraki.jp":3,"moriya.ibaraki.jp":3,"naka.ibaraki.jp":3,"namegata.ibaraki.jp":3,"oarai.ibaraki.jp":3,"ogawa.ibaraki.jp":3,"omitama.ibaraki.jp":3,"ryugasaki.ibaraki.jp":3,"sakai.ibaraki.jp":3,"sakuragawa.ibaraki.jp":3,"shimodate.ibaraki.jp":3,"shimotsuma.ibaraki.jp":3,"shirosato.ibaraki.jp":3,"sowa.ibaraki.jp":3,"suifu.ibaraki.jp":3,"takahagi.ibaraki.jp":3,"tamatsukuri.ibaraki.jp":3,"tokai.ibaraki.jp":3,"tomobe.ibaraki.jp":3,"tone.ibaraki.jp":3,"toride.ibaraki.jp":3,"tsuchiura.ibaraki.jp":3,"tsukuba.ibaraki.jp":3,"uchihara.ibaraki.jp":3,"ushiku.ibaraki.jp":3,"yachiyo.ibaraki.jp":3,"yamagata.ibaraki.jp":3,"yawara.ibaraki.jp":3,"yuki.ibaraki.jp":3,"anamizu.ishikawa.jp":3,"hakui.ishikawa.jp":3,"hakusan.ishikawa.jp":3,"kaga.ishikawa.jp":3,"kahoku.ishikawa.jp":3,"kanazawa.ishikawa.jp":3,"kawakita.ishikawa.jp":3,"komatsu.ishikawa.jp":3,"nakanoto.ishikawa.jp":3,"nanao.ishikawa.jp":3,"nomi.ishikawa.jp":3,"nonoichi.ishikawa.jp":3,"noto.ishikawa.jp":3,"shika.ishikawa.jp":3,"suzu.ishikawa.jp":3,"tsubata.ishikawa.jp":3,"tsurugi.ishikawa.jp":3,"uchinada.ishikawa.jp":3,"wajima.ishikawa.jp":3,"fudai.iwate.jp":3,"fujisawa.iwate.jp":3,"hanamaki.iwate.jp":3,"hiraizumi.iwate.jp":3,"hirono.iwate.jp":3,"ichinohe.iwate.jp":3,"ichinoseki.iwate.jp":3,"iwaizumi.iwate.jp":3,"iwate.iwate.jp":3,"joboji.iwate.jp":3,"kamaishi.iwate.jp":3,"kanegasaki.iwate.jp":3,"karumai.iwate.jp":3,"kawai.iwate.jp":3,"kitakami.iwate.jp":3,"kuji.iwate.jp":3,"kunohe.iwate.jp":3,"kuzumaki.iwate.jp":3,"miyako.iwate.jp":3,"mizusawa.iwate.jp":3,"morioka.iwate.jp":3,"ninohe.iwate.jp":3,"noda.iwate.jp":3,"ofunato.iwate.jp":3,"oshu.iwate.jp":3,"otsuchi.iwate.jp":3,"rikuzentakata.iwate.jp":3,"shiwa.iwate.jp":3,"shizukuishi.iwate.jp":3,"sumita.iwate.jp":3,"tanohata.iwate.jp":3,"tono.iwate.jp":3,"yahaba.iwate.jp":3,"yamada.iwate.jp":3,"ayagawa.kagawa.jp":3,"higashikagawa.kagawa.jp":3,"kanonji.kagawa.jp":3,"kotohira.kagawa.jp":3,"manno.kagawa.jp":3,"marugame.kagawa.jp":3,"mitoyo.kagawa.jp":3,"naoshima.kagawa.jp":3,"sanuki.kagawa.jp":3,"tadotsu.kagawa.jp":3,"takamatsu.kagawa.jp":3,"tonosho.kagawa.jp":3,"uchinomi.kagawa.jp":3,"utazu.kagawa.jp":3,"zentsuji.kagawa.jp":3,"akune.kagoshima.jp":3,"amami.kagoshima.jp":3,"hioki.kagoshima.jp":3,"isa.kagoshima.jp":3,"isen.kagoshima.jp":3,"izumi.kagoshima.jp":3,"kagoshima.kagoshima.jp":3,"kanoya.kagoshima.jp":3,"kawanabe.kagoshima.jp":3,"kinko.kagoshima.jp":3,"kouyama.kagoshima.jp":3,"makurazaki.kagoshima.jp":3,"matsumoto.kagoshima.jp":3,"minamitane.kagoshima.jp":3,"nakatane.kagoshima.jp":3,"nishinoomote.kagoshima.jp":3,"satsumasendai.kagoshima.jp":3,"soo.kagoshima.jp":3,"tarumizu.kagoshima.jp":3,"yusui.kagoshima.jp":3,"aikawa.kanagawa.jp":3,"atsugi.kanagawa.jp":3,"ayase.kanagawa.jp":3,"chigasaki.kanagawa.jp":3,"ebina.kanagawa.jp":3,"fujisawa.kanagawa.jp":3,"hadano.kanagawa.jp":3,"hakone.kanagawa.jp":3,"hiratsuka.kanagawa.jp":3,"isehara.kanagawa.jp":3,"kaisei.kanagawa.jp":3,"kamakura.kanagawa.jp":3,"kiyokawa.kanagawa.jp":3,"matsuda.kanagawa.jp":3,"minamiashigara.kanagawa.jp":3,"miura.kanagawa.jp":3,"nakai.kanagawa.jp":3,"ninomiya.kanagawa.jp":3,"odawara.kanagawa.jp":3,"oi.kanagawa.jp":3,"oiso.kanagawa.jp":3,"sagamihara.kanagawa.jp":3,"samukawa.kanagawa.jp":3,"tsukui.kanagawa.jp":3,"yamakita.kanagawa.jp":3,"yamato.kanagawa.jp":3,"yokosuka.kanagawa.jp":3,"yugawara.kanagawa.jp":3,"zama.kanagawa.jp":3,"zushi.kanagawa.jp":3,"aki.kochi.jp":3,"geisei.kochi.jp":3,"hidaka.kochi.jp":3,"higashitsuno.kochi.jp":3,"ino.kochi.jp":3,"kagami.kochi.jp":3,"kami.kochi.jp":3,"kitagawa.kochi.jp":3,"kochi.kochi.jp":3,"mihara.kochi.jp":3,"motoyama.kochi.jp":3,"muroto.kochi.jp":3,"nahari.kochi.jp":3,"nakamura.kochi.jp":3,"nankoku.kochi.jp":3,"nishitosa.kochi.jp":3,"niyodogawa.kochi.jp":3,"ochi.kochi.jp":3,"okawa.kochi.jp":3,"otoyo.kochi.jp":3,"otsuki.kochi.jp":3,"sakawa.kochi.jp":3,"sukumo.kochi.jp":3,"susaki.kochi.jp":3,"tosa.kochi.jp":3,"tosashimizu.kochi.jp":3,"toyo.kochi.jp":3,"tsuno.kochi.jp":3,"umaji.kochi.jp":3,"yasuda.kochi.jp":3,"yusuhara.kochi.jp":3,"amakusa.kumamoto.jp":3,"arao.kumamoto.jp":3,"aso.kumamoto.jp":3,"choyo.kumamoto.jp":3,"gyokuto.kumamoto.jp":3,"kamiamakusa.kumamoto.jp":3,"kikuchi.kumamoto.jp":3,"kumamoto.kumamoto.jp":3,"mashiki.kumamoto.jp":3,"mifune.kumamoto.jp":3,"minamata.kumamoto.jp":3,"minamioguni.kumamoto.jp":3,"nagasu.kumamoto.jp":3,"nishihara.kumamoto.jp":3,"oguni.kumamoto.jp":3,"ozu.kumamoto.jp":3,"sumoto.kumamoto.jp":3,"takamori.kumamoto.jp":3,"uki.kumamoto.jp":3,"uto.kumamoto.jp":3,"yamaga.kumamoto.jp":3,"yamato.kumamoto.jp":3,"yatsushiro.kumamoto.jp":3,"ayabe.kyoto.jp":3,"fukuchiyama.kyoto.jp":3,"higashiyama.kyoto.jp":3,"ide.kyoto.jp":3,"ine.kyoto.jp":3,"joyo.kyoto.jp":3,"kameoka.kyoto.jp":3,"kamo.kyoto.jp":3,"kita.kyoto.jp":3,"kizu.kyoto.jp":3,"kumiyama.kyoto.jp":3,"kyotamba.kyoto.jp":3,"kyotanabe.kyoto.jp":3,"kyotango.kyoto.jp":3,"maizuru.kyoto.jp":3,"minami.kyoto.jp":3,"minamiyamashiro.kyoto.jp":3,"miyazu.kyoto.jp":3,"muko.kyoto.jp":3,"nagaokakyo.kyoto.jp":3,"nakagyo.kyoto.jp":3,"nantan.kyoto.jp":3,"oyamazaki.kyoto.jp":3,"sakyo.kyoto.jp":3,"seika.kyoto.jp":3,"tanabe.kyoto.jp":3,"uji.kyoto.jp":3,"ujitawara.kyoto.jp":3,"wazuka.kyoto.jp":3,"yamashina.kyoto.jp":3,"yawata.kyoto.jp":3,"asahi.mie.jp":3,"inabe.mie.jp":3,"ise.mie.jp":3,"kameyama.mie.jp":3,"kawagoe.mie.jp":3,"kiho.mie.jp":3,"kisosaki.mie.jp":3,"kiwa.mie.jp":3,"komono.mie.jp":3,"kumano.mie.jp":3,"kuwana.mie.jp":3,"matsusaka.mie.jp":3,"meiwa.mie.jp":3,"mihama.mie.jp":3,"minamiise.mie.jp":3,"misugi.mie.jp":3,"miyama.mie.jp":3,"nabari.mie.jp":3,"shima.mie.jp":3,"suzuka.mie.jp":3,"tado.mie.jp":3,"taiki.mie.jp":3,"taki.mie.jp":3,"tamaki.mie.jp":3,"toba.mie.jp":3,"tsu.mie.jp":3,"udono.mie.jp":3,"ureshino.mie.jp":3,"watarai.mie.jp":3,"yokkaichi.mie.jp":3,"furukawa.miyagi.jp":3,"higashimatsushima.miyagi.jp":3,"ishinomaki.miyagi.jp":3,"iwanuma.miyagi.jp":3,"kakuda.miyagi.jp":3,"kami.miyagi.jp":3,"kawasaki.miyagi.jp":3,"marumori.miyagi.jp":3,"matsushima.miyagi.jp":3,"minamisanriku.miyagi.jp":3,"misato.miyagi.jp":3,"murata.miyagi.jp":3,"natori.miyagi.jp":3,"ogawara.miyagi.jp":3,"ohira.miyagi.jp":3,"onagawa.miyagi.jp":3,"osaki.miyagi.jp":3,"rifu.miyagi.jp":3,"semine.miyagi.jp":3,"shibata.miyagi.jp":3,"shichikashuku.miyagi.jp":3,"shikama.miyagi.jp":3,"shiogama.miyagi.jp":3,"shiroishi.miyagi.jp":3,"tagajo.miyagi.jp":3,"taiwa.miyagi.jp":3,"tome.miyagi.jp":3,"tomiya.miyagi.jp":3,"wakuya.miyagi.jp":3,"watari.miyagi.jp":3,"yamamoto.miyagi.jp":3,"zao.miyagi.jp":3,"aya.miyazaki.jp":3,"ebino.miyazaki.jp":3,"gokase.miyazaki.jp":3,"hyuga.miyazaki.jp":3,"kadogawa.miyazaki.jp":3,"kawaminami.miyazaki.jp":3,"kijo.miyazaki.jp":3,"kitagawa.miyazaki.jp":3,"kitakata.miyazaki.jp":3,"kitaura.miyazaki.jp":3,"kobayashi.miyazaki.jp":3,"kunitomi.miyazaki.jp":3,"kushima.miyazaki.jp":3,"mimata.miyazaki.jp":3,"miyakonojo.miyazaki.jp":3,"miyazaki.miyazaki.jp":3,"morotsuka.miyazaki.jp":3,"nichinan.miyazaki.jp":3,"nishimera.miyazaki.jp":3,"nobeoka.miyazaki.jp":3,"saito.miyazaki.jp":3,"shiiba.miyazaki.jp":3,"shintomi.miyazaki.jp":3,"takaharu.miyazaki.jp":3,"takanabe.miyazaki.jp":3,"takazaki.miyazaki.jp":3,"tsuno.miyazaki.jp":3,"achi.nagano.jp":3,"agematsu.nagano.jp":3,"anan.nagano.jp":3,"aoki.nagano.jp":3,"asahi.nagano.jp":3,"azumino.nagano.jp":3,"chikuhoku.nagano.jp":3,"chikuma.nagano.jp":3,"chino.nagano.jp":3,"fujimi.nagano.jp":3,"hakuba.nagano.jp":3,"hara.nagano.jp":3,"hiraya.nagano.jp":3,"iida.nagano.jp":3,"iijima.nagano.jp":3,"iiyama.nagano.jp":3,"iizuna.nagano.jp":3,"ikeda.nagano.jp":3,"ikusaka.nagano.jp":3,"ina.nagano.jp":3,"karuizawa.nagano.jp":3,"kawakami.nagano.jp":3,"kiso.nagano.jp":3,"kisofukushima.nagano.jp":3,"kitaaiki.nagano.jp":3,"komagane.nagano.jp":3,"komoro.nagano.jp":3,"matsukawa.nagano.jp":3,"matsumoto.nagano.jp":3,"miasa.nagano.jp":3,"minamiaiki.nagano.jp":3,"minamimaki.nagano.jp":3,"minamiminowa.nagano.jp":3,"minowa.nagano.jp":3,"miyada.nagano.jp":3,"miyota.nagano.jp":3,"mochizuki.nagano.jp":3,"nagano.nagano.jp":3,"nagawa.nagano.jp":3,"nagiso.nagano.jp":3,"nakagawa.nagano.jp":3,"nakano.nagano.jp":3,"nozawaonsen.nagano.jp":3,"obuse.nagano.jp":3,"ogawa.nagano.jp":3,"okaya.nagano.jp":3,"omachi.nagano.jp":3,"omi.nagano.jp":3,"ookuwa.nagano.jp":3,"ooshika.nagano.jp":3,"otaki.nagano.jp":3,"otari.nagano.jp":3,"sakae.nagano.jp":3,"sakaki.nagano.jp":3,"saku.nagano.jp":3,"sakuho.nagano.jp":3,"shimosuwa.nagano.jp":3,"shinanomachi.nagano.jp":3,"shiojiri.nagano.jp":3,"suwa.nagano.jp":3,"suzaka.nagano.jp":3,"takagi.nagano.jp":3,"takamori.nagano.jp":3,"takayama.nagano.jp":3,"tateshina.nagano.jp":3,"tatsuno.nagano.jp":3,"togakushi.nagano.jp":3,"togura.nagano.jp":3,"tomi.nagano.jp":3,"ueda.nagano.jp":3,"wada.nagano.jp":3,"yamagata.nagano.jp":3,"yamanouchi.nagano.jp":3,"yasaka.nagano.jp":3,"yasuoka.nagano.jp":3,"chijiwa.nagasaki.jp":3,"futsu.nagasaki.jp":3,"goto.nagasaki.jp":3,"hasami.nagasaki.jp":3,"hirado.nagasaki.jp":3,"iki.nagasaki.jp":3,"isahaya.nagasaki.jp":3,"kawatana.nagasaki.jp":3,"kuchinotsu.nagasaki.jp":3,"matsuura.nagasaki.jp":3,"nagasaki.nagasaki.jp":3,"obama.nagasaki.jp":3,"omura.nagasaki.jp":3,"oseto.nagasaki.jp":3,"saikai.nagasaki.jp":3,"sasebo.nagasaki.jp":3,"seihi.nagasaki.jp":3,"shimabara.nagasaki.jp":3,"shinkamigoto.nagasaki.jp":3,"togitsu.nagasaki.jp":3,"tsushima.nagasaki.jp":3,"unzen.nagasaki.jp":3,"ando.nara.jp":3,"gose.nara.jp":3,"heguri.nara.jp":3,"higashiyoshino.nara.jp":3,"ikaruga.nara.jp":3,"ikoma.nara.jp":3,"kamikitayama.nara.jp":3,"kanmaki.nara.jp":3,"kashiba.nara.jp":3,"kashihara.nara.jp":3,"katsuragi.nara.jp":3,"kawai.nara.jp":3,"kawakami.nara.jp":3,"kawanishi.nara.jp":3,"koryo.nara.jp":3,"kurotaki.nara.jp":3,"mitsue.nara.jp":3,"miyake.nara.jp":3,"nara.nara.jp":3,"nosegawa.nara.jp":3,"oji.nara.jp":3,"ouda.nara.jp":3,"oyodo.nara.jp":3,"sakurai.nara.jp":3,"sango.nara.jp":3,"shimoichi.nara.jp":3,"shimokitayama.nara.jp":3,"shinjo.nara.jp":3,"soni.nara.jp":3,"takatori.nara.jp":3,"tawaramoto.nara.jp":3,"tenkawa.nara.jp":3,"tenri.nara.jp":3,"uda.nara.jp":3,"yamatokoriyama.nara.jp":3,"yamatotakada.nara.jp":3,"yamazoe.nara.jp":3,"yoshino.nara.jp":3,"aga.niigata.jp":3,"agano.niigata.jp":3,"gosen.niigata.jp":3,"itoigawa.niigata.jp":3,"izumozaki.niigata.jp":3,"joetsu.niigata.jp":3,"kamo.niigata.jp":3,"kariwa.niigata.jp":3,"kashiwazaki.niigata.jp":3,"minamiuonuma.niigata.jp":3,"mitsuke.niigata.jp":3,"muika.niigata.jp":3,"murakami.niigata.jp":3,"myoko.niigata.jp":3,"nagaoka.niigata.jp":3,"niigata.niigata.jp":3,"ojiya.niigata.jp":3,"omi.niigata.jp":3,"sado.niigata.jp":3,"sanjo.niigata.jp":3,"seiro.niigata.jp":3,"seirou.niigata.jp":3,"sekikawa.niigata.jp":3,"shibata.niigata.jp":3,"tagami.niigata.jp":3,"tainai.niigata.jp":3,"tochio.niigata.jp":3,"tokamachi.niigata.jp":3,"tsubame.niigata.jp":3,"tsunan.niigata.jp":3,"uonuma.niigata.jp":3,"yahiko.niigata.jp":3,"yoita.niigata.jp":3,"yuzawa.niigata.jp":3,"beppu.oita.jp":3,"bungoono.oita.jp":3,"bungotakada.oita.jp":3,"hasama.oita.jp":3,"hiji.oita.jp":3,"himeshima.oita.jp":3,"hita.oita.jp":3,"kamitsue.oita.jp":3,"kokonoe.oita.jp":3,"kuju.oita.jp":3,"kunisaki.oita.jp":3,"kusu.oita.jp":3,"oita.oita.jp":3,"saiki.oita.jp":3,"taketa.oita.jp":3,"tsukumi.oita.jp":3,"usa.oita.jp":3,"usuki.oita.jp":3,"yufu.oita.jp":3,"akaiwa.okayama.jp":3,"asakuchi.okayama.jp":3,"bizen.okayama.jp":3,"hayashima.okayama.jp":3,"ibara.okayama.jp":3,"kagamino.okayama.jp":3,"kasaoka.okayama.jp":3,"kibichuo.okayama.jp":3,"kumenan.okayama.jp":3,"kurashiki.okayama.jp":3,"maniwa.okayama.jp":3,"misaki.okayama.jp":3,"nagi.okayama.jp":3,"niimi.okayama.jp":3,"nishiawakura.okayama.jp":3,"okayama.okayama.jp":3,"satosho.okayama.jp":3,"setouchi.okayama.jp":3,"shinjo.okayama.jp":3,"shoo.okayama.jp":3,"soja.okayama.jp":3,"takahashi.okayama.jp":3,"tamano.okayama.jp":3,"tsuyama.okayama.jp":3,"wake.okayama.jp":3,"yakage.okayama.jp":3,"aguni.okinawa.jp":3,"ginowan.okinawa.jp":3,"ginoza.okinawa.jp":3,"gushikami.okinawa.jp":3,"haebaru.okinawa.jp":3,"higashi.okinawa.jp":3,"hirara.okinawa.jp":3,"iheya.okinawa.jp":3,"ishigaki.okinawa.jp":3,"ishikawa.okinawa.jp":3,"itoman.okinawa.jp":3,"izena.okinawa.jp":3,"kadena.okinawa.jp":3,"kin.okinawa.jp":3,"kitadaito.okinawa.jp":3,"kitanakagusuku.okinawa.jp":3,"kumejima.okinawa.jp":3,"kunigami.okinawa.jp":3,"minamidaito.okinawa.jp":3,"motobu.okinawa.jp":3,"nago.okinawa.jp":3,"naha.okinawa.jp":3,"nakagusuku.okinawa.jp":3,"nakijin.okinawa.jp":3,"nanjo.okinawa.jp":3,"nishihara.okinawa.jp":3,"ogimi.okinawa.jp":3,"okinawa.okinawa.jp":3,"onna.okinawa.jp":3,"shimoji.okinawa.jp":3,"taketomi.okinawa.jp":3,"tarama.okinawa.jp":3,"tokashiki.okinawa.jp":3,"tomigusuku.okinawa.jp":3,"tonaki.okinawa.jp":3,"urasoe.okinawa.jp":3,"uruma.okinawa.jp":3,"yaese.okinawa.jp":3,"yomitan.okinawa.jp":3,"yonabaru.okinawa.jp":3,"yonaguni.okinawa.jp":3,"zamami.okinawa.jp":3,"abeno.osaka.jp":3,"chihayaakasaka.osaka.jp":3,"chuo.osaka.jp":3,"daito.osaka.jp":3,"fujiidera.osaka.jp":3,"habikino.osaka.jp":3,"hannan.osaka.jp":3,"higashiosaka.osaka.jp":3,"higashisumiyoshi.osaka.jp":3,"higashiyodogawa.osaka.jp":3,"hirakata.osaka.jp":3,"ibaraki.osaka.jp":3,"ikeda.osaka.jp":3,"izumi.osaka.jp":3,"izumiotsu.osaka.jp":3,"izumisano.osaka.jp":3,"kadoma.osaka.jp":3,"kaizuka.osaka.jp":3,"kanan.osaka.jp":3,"kashiwara.osaka.jp":3,"katano.osaka.jp":3,"kawachinagano.osaka.jp":3,"kishiwada.osaka.jp":3,"kita.osaka.jp":3,"kumatori.osaka.jp":3,"matsubara.osaka.jp":3,"minato.osaka.jp":3,"minoh.osaka.jp":3,"misaki.osaka.jp":3,"moriguchi.osaka.jp":3,"neyagawa.osaka.jp":3,"nishi.osaka.jp":3,"nose.osaka.jp":3,"osakasayama.osaka.jp":3,"sakai.osaka.jp":3,"sayama.osaka.jp":3,"sennan.osaka.jp":3,"settsu.osaka.jp":3,"shijonawate.osaka.jp":3,"shimamoto.osaka.jp":3,"suita.osaka.jp":3,"tadaoka.osaka.jp":3,"taishi.osaka.jp":3,"tajiri.osaka.jp":3,"takaishi.osaka.jp":3,"takatsuki.osaka.jp":3,"tondabayashi.osaka.jp":3,"toyonaka.osaka.jp":3,"toyono.osaka.jp":3,"yao.osaka.jp":3,"ariake.saga.jp":3,"arita.saga.jp":3,"fukudomi.saga.jp":3,"genkai.saga.jp":3,"hamatama.saga.jp":3,"hizen.saga.jp":3,"imari.saga.jp":3,"kamimine.saga.jp":3,"kanzaki.saga.jp":3,"karatsu.saga.jp":3,"kashima.saga.jp":3,"kitagata.saga.jp":3,"kitahata.saga.jp":3,"kiyama.saga.jp":3,"kouhoku.saga.jp":3,"kyuragi.saga.jp":3,"nishiarita.saga.jp":3,"ogi.saga.jp":3,"omachi.saga.jp":3,"ouchi.saga.jp":3,"saga.saga.jp":3,"shiroishi.saga.jp":3,"taku.saga.jp":3,"tara.saga.jp":3,"tosu.saga.jp":3,"yoshinogari.saga.jp":3,"arakawa.saitama.jp":3,"asaka.saitama.jp":3,"chichibu.saitama.jp":3,"fujimi.saitama.jp":3,"fujimino.saitama.jp":3,"fukaya.saitama.jp":3,"hanno.saitama.jp":3,"hanyu.saitama.jp":3,"hasuda.saitama.jp":3,"hatogaya.saitama.jp":3,"hatoyama.saitama.jp":3,"hidaka.saitama.jp":3,"higashichichibu.saitama.jp":3,"higashimatsuyama.saitama.jp":3,"honjo.saitama.jp":3,"ina.saitama.jp":3,"iruma.saitama.jp":3,"iwatsuki.saitama.jp":3,"kamiizumi.saitama.jp":3,"kamikawa.saitama.jp":3,"kamisato.saitama.jp":3,"kasukabe.saitama.jp":3,"kawagoe.saitama.jp":3,"kawaguchi.saitama.jp":3,"kawajima.saitama.jp":3,"kazo.saitama.jp":3,"kitamoto.saitama.jp":3,"koshigaya.saitama.jp":3,"kounosu.saitama.jp":3,"kuki.saitama.jp":3,"kumagaya.saitama.jp":3,"matsubushi.saitama.jp":3,"minano.saitama.jp":3,"misato.saitama.jp":3,"miyashiro.saitama.jp":3,"miyoshi.saitama.jp":3,"moroyama.saitama.jp":3,"nagatoro.saitama.jp":3,"namegawa.saitama.jp":3,"niiza.saitama.jp":3,"ogano.saitama.jp":3,"ogawa.saitama.jp":3,"ogose.saitama.jp":3,"okegawa.saitama.jp":3,"omiya.saitama.jp":3,"otaki.saitama.jp":3,"ranzan.saitama.jp":3,"ryokami.saitama.jp":3,"saitama.saitama.jp":3,"sakado.saitama.jp":3,"satte.saitama.jp":3,"sayama.saitama.jp":3,"shiki.saitama.jp":3,"shiraoka.saitama.jp":3,"soka.saitama.jp":3,"sugito.saitama.jp":3,"toda.saitama.jp":3,"tokigawa.saitama.jp":3,"tokorozawa.saitama.jp":3,"tsurugashima.saitama.jp":3,"urawa.saitama.jp":3,"warabi.saitama.jp":3,"yashio.saitama.jp":3,"yokoze.saitama.jp":3,"yono.saitama.jp":3,"yorii.saitama.jp":3,"yoshida.saitama.jp":3,"yoshikawa.saitama.jp":3,"yoshimi.saitama.jp":3,"aisho.shiga.jp":3,"gamo.shiga.jp":3,"higashiomi.shiga.jp":3,"hikone.shiga.jp":3,"koka.shiga.jp":3,"konan.shiga.jp":3,"kosei.shiga.jp":3,"koto.shiga.jp":3,"kusatsu.shiga.jp":3,"maibara.shiga.jp":3,"moriyama.shiga.jp":3,"nagahama.shiga.jp":3,"nishiazai.shiga.jp":3,"notogawa.shiga.jp":3,"omihachiman.shiga.jp":3,"otsu.shiga.jp":3,"ritto.shiga.jp":3,"ryuoh.shiga.jp":3,"takashima.shiga.jp":3,"takatsuki.shiga.jp":3,"torahime.shiga.jp":3,"toyosato.shiga.jp":3,"yasu.shiga.jp":3,"akagi.shimane.jp":3,"ama.shimane.jp":3,"gotsu.shimane.jp":3,"hamada.shimane.jp":3,"higashiizumo.shimane.jp":3,"hikawa.shimane.jp":3,"hikimi.shimane.jp":3,"izumo.shimane.jp":3,"kakinoki.shimane.jp":3,"masuda.shimane.jp":3,"matsue.shimane.jp":3,"misato.shimane.jp":3,"nishinoshima.shimane.jp":3,"ohda.shimane.jp":3,"okinoshima.shimane.jp":3,"okuizumo.shimane.jp":3,"shimane.shimane.jp":3,"tamayu.shimane.jp":3,"tsuwano.shimane.jp":3,"unnan.shimane.jp":3,"yakumo.shimane.jp":3,"yasugi.shimane.jp":3,"yatsuka.shimane.jp":3,"arai.shizuoka.jp":3,"atami.shizuoka.jp":3,"fuji.shizuoka.jp":3,"fujieda.shizuoka.jp":3,"fujikawa.shizuoka.jp":3,"fujinomiya.shizuoka.jp":3,"fukuroi.shizuoka.jp":3,"gotemba.shizuoka.jp":3,"haibara.shizuoka.jp":3,"hamamatsu.shizuoka.jp":3,"higashiizu.shizuoka.jp":3,"ito.shizuoka.jp":3,"iwata.shizuoka.jp":3,"izu.shizuoka.jp":3,"izunokuni.shizuoka.jp":3,"kakegawa.shizuoka.jp":3,"kannami.shizuoka.jp":3,"kawanehon.shizuoka.jp":3,"kawazu.shizuoka.jp":3,"kikugawa.shizuoka.jp":3,"kosai.shizuoka.jp":3,"makinohara.shizuoka.jp":3,"matsuzaki.shizuoka.jp":3,"minamiizu.shizuoka.jp":3,"mishima.shizuoka.jp":3,"morimachi.shizuoka.jp":3,"nishiizu.shizuoka.jp":3,"numazu.shizuoka.jp":3,"omaezaki.shizuoka.jp":3,"shimada.shizuoka.jp":3,"shimizu.shizuoka.jp":3,"shimoda.shizuoka.jp":3,"shizuoka.shizuoka.jp":3,"susono.shizuoka.jp":3,"yaizu.shizuoka.jp":3,"yoshida.shizuoka.jp":3,"ashikaga.tochigi.jp":3,"bato.tochigi.jp":3,"haga.tochigi.jp":3,"ichikai.tochigi.jp":3,"iwafune.tochigi.jp":3,"kaminokawa.tochigi.jp":3,"kanuma.tochigi.jp":3,"karasuyama.tochigi.jp":3,"kuroiso.tochigi.jp":3,"mashiko.tochigi.jp":3,"mibu.tochigi.jp":3,"moka.tochigi.jp":3,"motegi.tochigi.jp":3,"nasu.tochigi.jp":3,"nasushiobara.tochigi.jp":3,"nikko.tochigi.jp":3,"nishikata.tochigi.jp":3,"nogi.tochigi.jp":3,"ohira.tochigi.jp":3,"ohtawara.tochigi.jp":3,"oyama.tochigi.jp":3,"sakura.tochigi.jp":3,"sano.tochigi.jp":3,"shimotsuke.tochigi.jp":3,"shioya.tochigi.jp":3,"takanezawa.tochigi.jp":3,"tochigi.tochigi.jp":3,"tsuga.tochigi.jp":3,"ujiie.tochigi.jp":3,"utsunomiya.tochigi.jp":3,"yaita.tochigi.jp":3,"aizumi.tokushima.jp":3,"anan.tokushima.jp":3,"ichiba.tokushima.jp":3,"itano.tokushima.jp":3,"kainan.tokushima.jp":3,"komatsushima.tokushima.jp":3,"matsushige.tokushima.jp":3,"mima.tokushima.jp":3,"minami.tokushima.jp":3,"miyoshi.tokushima.jp":3,"mugi.tokushima.jp":3,"nakagawa.tokushima.jp":3,"naruto.tokushima.jp":3,"sanagochi.tokushima.jp":3,"shishikui.tokushima.jp":3,"tokushima.tokushima.jp":3,"wajiki.tokushima.jp":3,"adachi.tokyo.jp":3,"akiruno.tokyo.jp":3,"akishima.tokyo.jp":3,"aogashima.tokyo.jp":3,"arakawa.tokyo.jp":3,"bunkyo.tokyo.jp":3,"chiyoda.tokyo.jp":3,"chofu.tokyo.jp":3,"chuo.tokyo.jp":3,"edogawa.tokyo.jp":3,"fuchu.tokyo.jp":3,"fussa.tokyo.jp":3,"hachijo.tokyo.jp":3,"hachioji.tokyo.jp":3,"hamura.tokyo.jp":3,"higashikurume.tokyo.jp":3,"higashimurayama.tokyo.jp":3,"higashiyamato.tokyo.jp":3,"hino.tokyo.jp":3,"hinode.tokyo.jp":3,"hinohara.tokyo.jp":3,"inagi.tokyo.jp":3,"itabashi.tokyo.jp":3,"katsushika.tokyo.jp":3,"kita.tokyo.jp":3,"kiyose.tokyo.jp":3,"kodaira.tokyo.jp":3,"koganei.tokyo.jp":3,"kokubunji.tokyo.jp":3,"komae.tokyo.jp":3,"koto.tokyo.jp":3,"kouzushima.tokyo.jp":3,"kunitachi.tokyo.jp":3,"machida.tokyo.jp":3,"meguro.tokyo.jp":3,"minato.tokyo.jp":3,"mitaka.tokyo.jp":3,"mizuho.tokyo.jp":3,"musashimurayama.tokyo.jp":3,"musashino.tokyo.jp":3,"nakano.tokyo.jp":3,"nerima.tokyo.jp":3,"ogasawara.tokyo.jp":3,"okutama.tokyo.jp":3,"ome.tokyo.jp":3,"oshima.tokyo.jp":3,"ota.tokyo.jp":3,"setagaya.tokyo.jp":3,"shibuya.tokyo.jp":3,"shinagawa.tokyo.jp":3,"shinjuku.tokyo.jp":3,"suginami.tokyo.jp":3,"sumida.tokyo.jp":3,"tachikawa.tokyo.jp":3,"taito.tokyo.jp":3,"tama.tokyo.jp":3,"toshima.tokyo.jp":3,"chizu.tottori.jp":3,"hino.tottori.jp":3,"kawahara.tottori.jp":3,"koge.tottori.jp":3,"kotoura.tottori.jp":3,"misasa.tottori.jp":3,"nanbu.tottori.jp":3,"nichinan.tottori.jp":3,"sakaiminato.tottori.jp":3,"tottori.tottori.jp":3,"wakasa.tottori.jp":3,"yazu.tottori.jp":3,"yonago.tottori.jp":3,"asahi.toyama.jp":3,"fuchu.toyama.jp":3,"fukumitsu.toyama.jp":3,"funahashi.toyama.jp":3,"himi.toyama.jp":3,"imizu.toyama.jp":3,"inami.toyama.jp":3,"johana.toyama.jp":3,"kamiichi.toyama.jp":3,"kurobe.toyama.jp":3,"nakaniikawa.toyama.jp":3,"namerikawa.toyama.jp":3,"nanto.toyama.jp":3,"nyuzen.toyama.jp":3,"oyabe.toyama.jp":3,"taira.toyama.jp":3,"takaoka.toyama.jp":3,"tateyama.toyama.jp":3,"toga.toyama.jp":3,"tonami.toyama.jp":3,"toyama.toyama.jp":3,"unazuki.toyama.jp":3,"uozu.toyama.jp":3,"yamada.toyama.jp":3,"arida.wakayama.jp":3,"aridagawa.wakayama.jp":3,"gobo.wakayama.jp":3,"hashimoto.wakayama.jp":3,"hidaka.wakayama.jp":3,"hirogawa.wakayama.jp":3,"inami.wakayama.jp":3,"iwade.wakayama.jp":3,"kainan.wakayama.jp":3,"kamitonda.wakayama.jp":3,"katsuragi.wakayama.jp":3,"kimino.wakayama.jp":3,"kinokawa.wakayama.jp":3,"kitayama.wakayama.jp":3,"koya.wakayama.jp":3,"koza.wakayama.jp":3,"kozagawa.wakayama.jp":3,"kudoyama.wakayama.jp":3,"kushimoto.wakayama.jp":3,"mihama.wakayama.jp":3,"misato.wakayama.jp":3,"nachikatsuura.wakayama.jp":3,"shingu.wakayama.jp":3,"shirahama.wakayama.jp":3,"taiji.wakayama.jp":3,"tanabe.wakayama.jp":3,"wakayama.wakayama.jp":3,"yuasa.wakayama.jp":3,"yura.wakayama.jp":3,"asahi.yamagata.jp":3,"funagata.yamagata.jp":3,"higashine.yamagata.jp":3,"iide.yamagata.jp":3,"kahoku.yamagata.jp":3,"kaminoyama.yamagata.jp":3,"kaneyama.yamagata.jp":3,"kawanishi.yamagata.jp":3,"mamurogawa.yamagata.jp":3,"mikawa.yamagata.jp":3,"murayama.yamagata.jp":3,"nagai.yamagata.jp":3,"nakayama.yamagata.jp":3,"nanyo.yamagata.jp":3,"nishikawa.yamagata.jp":3,"obanazawa.yamagata.jp":3,"oe.yamagata.jp":3,"oguni.yamagata.jp":3,"ohkura.yamagata.jp":3,"oishida.yamagata.jp":3,"sagae.yamagata.jp":3,"sakata.yamagata.jp":3,"sakegawa.yamagata.jp":3,"shinjo.yamagata.jp":3,"shirataka.yamagata.jp":3,"shonai.yamagata.jp":3,"takahata.yamagata.jp":3,"tendo.yamagata.jp":3,"tozawa.yamagata.jp":3,"tsuruoka.yamagata.jp":3,"yamagata.yamagata.jp":3,"yamanobe.yamagata.jp":3,"yonezawa.yamagata.jp":3,"yuza.yamagata.jp":3,"abu.yamaguchi.jp":3,"hagi.yamaguchi.jp":3,"hikari.yamaguchi.jp":3,"hofu.yamaguchi.jp":3,"iwakuni.yamaguchi.jp":3,"kudamatsu.yamaguchi.jp":3,"mitou.yamaguchi.jp":3,"nagato.yamaguchi.jp":3,"oshima.yamaguchi.jp":3,"shimonoseki.yamaguchi.jp":3,"shunan.yamaguchi.jp":3,"tabuse.yamaguchi.jp":3,"tokuyama.yamaguchi.jp":3,"toyota.yamaguchi.jp":3,"ube.yamaguchi.jp":3,"yuu.yamaguchi.jp":3,"chuo.yamanashi.jp":3,"doshi.yamanashi.jp":3,"fuefuki.yamanashi.jp":3,"fujikawa.yamanashi.jp":3,"fujikawaguchiko.yamanashi.jp":3,"fujiyoshida.yamanashi.jp":3,"hayakawa.yamanashi.jp":3,"hokuto.yamanashi.jp":3,"ichikawamisato.yamanashi.jp":3,"kai.yamanashi.jp":3,"kofu.yamanashi.jp":3,"koshu.yamanashi.jp":3,"kosuge.yamanashi.jp":3,"minami-alps.yamanashi.jp":3,"minobu.yamanashi.jp":3,"nakamichi.yamanashi.jp":3,"nanbu.yamanashi.jp":3,"narusawa.yamanashi.jp":3,"nirasaki.yamanashi.jp":3,"nishikatsura.yamanashi.jp":3,"oshino.yamanashi.jp":3,"otsuki.yamanashi.jp":3,"showa.yamanashi.jp":3,"tabayama.yamanashi.jp":3,"tsuru.yamanashi.jp":3,"uenohara.yamanashi.jp":3,"yamanakako.yamanashi.jp":3,"yamanashi.yamanashi.jp":3,"ke":1,"ac.ke":2,"co.ke":2,"go.ke":2,"info.ke":2,"me.ke":2,"mobi.ke":2,"ne.ke":2,"or.ke":2,"sc.ke":2,"kg":1,"com.kg":2,"edu.kg":2,"gov.kg":2,"mil.kg":2,"net.kg":2,"org.kg":2,"kh":2,"ki":1,"biz.ki":2,"com.ki":2,"edu.ki":2,"gov.ki":2,"info.ki":2,"net.ki":2,"org.ki":2,"km":1,"ass.km":2,"com.km":2,"edu.km":2,"gov.km":2,"mil.km":2,"nom.km":2,"org.km":2,"prd.km":2,"tm.km":2,"asso.km":2,"coop.km":2,"gouv.km":2,"medecin.km":2,"notaires.km":2,"pharmaciens.km":2,"presse.km":2,"veterinaire.km":2,"kn":1,"edu.kn":2,"gov.kn":2,"net.kn":2,"org.kn":2,"kp":1,"com.kp":2,"edu.kp":2,"gov.kp":2,"org.kp":2,"rep.kp":2,"tra.kp":2,"kr":1,"ac.kr":2,"ai.kr":2,"co.kr":2,"es.kr":2,"go.kr":2,"hs.kr":2,"io.kr":2,"it.kr":2,"kg.kr":2,"me.kr":2,"mil.kr":2,"ms.kr":2,"ne.kr":2,"or.kr":2,"pe.kr":2,"re.kr":2,"sc.kr":2,"busan.kr":2,"chungbuk.kr":2,"chungnam.kr":2,"daegu.kr":2,"daejeon.kr":2,"gangwon.kr":2,"gwangju.kr":2,"gyeongbuk.kr":2,"gyeonggi.kr":2,"gyeongnam.kr":2,"incheon.kr":2,"jeju.kr":2,"jeonbuk.kr":2,"jeonnam.kr":2,"seoul.kr":2,"ulsan.kr":2,"kw":1,"com.kw":2,"edu.kw":2,"emb.kw":2,"gov.kw":2,"ind.kw":2,"net.kw":2,"org.kw":2,"ky":1,"com.ky":2,"edu.ky":2,"net.ky":2,"org.ky":2,"kz":1,"com.kz":2,"edu.kz":2,"gov.kz":2,"mil.kz":2,"net.kz":2,"org.kz":2,"la":1,"com.la":2,"edu.la":2,"gov.la":2,"info.la":2,"int.la":2,"net.la":2,"org.la":2,"per.la":2,"lb":1,"com.lb":2,"edu.lb":2,"gov.lb":2,"net.lb":2,"org.lb":2,"lc":1,"co.lc":2,"com.lc":2,"edu.lc":2,"gov.lc":2,"net.lc":2,"org.lc":2,"li":1,"lk":1,"ac.lk":2,"assn.lk":2,"com.lk":2,"edu.lk":2,"gov.lk":2,"grp.lk":2,"hotel.lk":2,"int.lk":2,"ltd.lk":2,"net.lk":2,"ngo.lk":2,"org.lk":2,"sch.lk":2,"soc.lk":2,"web.lk":2,"lr":1,"com.lr":2,"edu.lr":2,"gov.lr":2,"net.lr":2,"org.lr":2,"ls":1,"ac.ls":2,"biz.ls":2,"co.ls":2,"edu.ls":2,"gov.ls":2,"info.ls":2,"net.ls":2,"org.ls":2,"sc.ls":2,"lt":1,"gov.lt":2,"lu":1,"lv":1,"asn.lv":2,"com.lv":2,"conf.lv":2,"edu.lv":2,"gov.lv":2,"id.lv":2,"mil.lv":2,"net.lv":2,"org.lv":2,"ly":1,"com.ly":2,"edu.ly":2,"gov.ly":2,"id.ly":2,"med.ly":2,"net.ly":2,"org.ly":2,"plc.ly":2,"sch.ly":2,"ma":1,"ac.ma":2,"co.ma":2,"gov.ma":2,"net.ma":2,"org.ma":2,"press.ma":2,"mc":1,"asso.mc":2,"tm.mc":2,"md":1,"me":1,"ac.me":2,"co.me":2,"edu.me":2,"gov.me":2,"its.me":2,"net.me":2,"org.me":2,"priv.me":2,"mg":1,"co.mg":2,"com.mg":2,"edu.mg":2,"gov.mg":2,"mil.mg":2,"nom.mg":2,"org.mg":2,"prd.mg":2,"mh":1,"mil":1,"mk":1,"com.mk":2,"edu.mk":2,"gov.mk":2,"inf.mk":2,"name.mk":2,"net.mk":2,"org.mk":2,"ml":1,"ac.ml":2,"art.ml":2,"asso.ml":2,"com.ml":2,"edu.ml":2,"gouv.ml":2,"gov.ml":2,"info.ml":2,"inst.ml":2,"net.ml":2,"org.ml":2,"pr.ml":2,"presse.ml":2,"mm":2,"mn":1,"edu.mn":2,"gov.mn":2,"org.mn":2,"mo":1,"com.mo":2,"edu.mo":2,"gov.mo":2,"net.mo":2,"org.mo":2,"mobi":1,"mp":1,"mq":1,"mr":1,"gov.mr":2,"ms":1,"com.ms":2,"edu.ms":2,"gov.ms":2,"net.ms":2,"org.ms":2,"mt":1,"com.mt":2,"edu.mt":2,"net.mt":2,"org.mt":2,"mu":1,"ac.mu":2,"co.mu":2,"com.mu":2,"gov.mu":2,"net.mu":2,"or.mu":2,"org.mu":2,"museum":1,"mv":1,"aero.mv":2,"biz.mv":2,"com.mv":2,"coop.mv":2,"edu.mv":2,"gov.mv":2,"info.mv":2,"int.mv":2,"mil.mv":2,"museum.mv":2,"name.mv":2,"net.mv":2,"org.mv":2,"pro.mv":2,"mw":1,"ac.mw":2,"biz.mw":2,"co.mw":2,"com.mw":2,"coop.mw":2,"edu.mw":2,"gov.mw":2,"int.mw":2,"net.mw":2,"org.mw":2,"mx":1,"com.mx":2,"edu.mx":2,"gob.mx":2,"net.mx":2,"org.mx":2,"my":1,"biz.my":2,"com.my":2,"edu.my":2,"gov.my":2,"mil.my":2,"name.my":2,"net.my":2,"org.my":2,"mz":1,"ac.mz":2,"adv.mz":2,"co.mz":2,"edu.mz":2,"gov.mz":2,"mil.mz":2,"net.mz":2,"org.mz":2,"na":1,"alt.na":2,"co.na":2,"com.na":2,"gov.na":2,"net.na":2,"org.na":2,"name":1,"nc":1,"asso.nc":2,"nom.nc":2,"ne":1,"net":1,"nf":1,"arts.nf":2,"com.nf":2,"firm.nf":2,"info.nf":2,"net.nf":2,"other.nf":2,"per.nf":2,"rec.nf":2,"store.nf":2,"web.nf":2,"ng":1,"com.ng":2,"edu.ng":2,"gov.ng":2,"i.ng":2,"mil.ng":2,"mobi.ng":2,"name.ng":2,"net.ng":2,"org.ng":2,"sch.ng":2,"ni":1,"ac.ni":2,"biz.ni":2,"co.ni":2,"com.ni":2,"edu.ni":2,"gob.ni":2,"in.ni":2,"info.ni":2,"int.ni":2,"mil.ni":2,"net.ni":2,"nom.ni":2,"org.ni":2,"web.ni":2,"nl":1,"no":1,"fhs.no":2,"folkebibl.no":2,"fylkesbibl.no":2,"idrett.no":2,"museum.no":2,"priv.no":2,"vgs.no":2,"dep.no":2,"herad.no":2,"kommune.no":2,"mil.no":2,"stat.no":2,"aa.no":2,"ah.no":2,"bu.no":2,"fm.no":2,"hl.no":2,"hm.no":2,"jan-mayen.no":2,"mr.no":2,"nl.no":2,"nt.no":2,"of.no":2,"ol.no":2,"oslo.no":2,"rl.no":2,"sf.no":2,"st.no":2,"svalbard.no":2,"tm.no":2,"tr.no":2,"va.no":2,"vf.no":2,"gs.aa.no":3,"gs.ah.no":3,"gs.bu.no":3,"gs.fm.no":3,"gs.hl.no":3,"gs.hm.no":3,"gs.jan-mayen.no":3,"gs.mr.no":3,"gs.nl.no":3,"gs.nt.no":3,"gs.of.no":3,"gs.ol.no":3,"gs.oslo.no":3,"gs.rl.no":3,"gs.sf.no":3,"gs.st.no":3,"gs.svalbard.no":3,"gs.tm.no":3,"gs.tr.no":3,"gs.va.no":3,"gs.vf.no":3,"akrehamn.no":2,"xn--krehamn-dxa.no":2,"algard.no":2,"xn--lgrd-poac.no":2,"arna.no":2,"bronnoysund.no":2,"xn--brnnysund-m8ac.no":2,"brumunddal.no":2,"bryne.no":2,"drobak.no":2,"xn--drbak-wua.no":2,"egersund.no":2,"fetsund.no":2,"floro.no":2,"xn--flor-jra.no":2,"fredrikstad.no":2,"hokksund.no":2,"honefoss.no":2,"xn--hnefoss-q1a.no":2,"jessheim.no":2,"jorpeland.no":2,"xn--jrpeland-54a.no":2,"kirkenes.no":2,"kopervik.no":2,"krokstadelva.no":2,"langevag.no":2,"xn--langevg-jxa.no":2,"leirvik.no":2,"mjondalen.no":2,"xn--mjndalen-64a.no":2,"mo-i-rana.no":2,"mosjoen.no":2,"xn--mosjen-eya.no":2,"nesoddtangen.no":2,"orkanger.no":2,"osoyro.no":2,"xn--osyro-wua.no":2,"raholt.no":2,"xn--rholt-mra.no":2,"sandnessjoen.no":2,"xn--sandnessjen-ogb.no":2,"skedsmokorset.no":2,"slattum.no":2,"spjelkavik.no":2,"stathelle.no":2,"stavern.no":2,"stjordalshalsen.no":2,"xn--stjrdalshalsen-sqb.no":2,"tananger.no":2,"tranby.no":2,"vossevangen.no":2,"aarborte.no":2,"aejrie.no":2,"afjord.no":2,"xn--fjord-lra.no":2,"agdenes.no":2,"nes.akershus.no":3,"aknoluokta.no":2,"xn--koluokta-7ya57h.no":2,"al.no":2,"xn--l-1fa.no":2,"alaheadju.no":2,"xn--laheadju-7ya.no":2,"alesund.no":2,"xn--lesund-hua.no":2,"alstahaug.no":2,"alta.no":2,"xn--lt-liac.no":2,"alvdal.no":2,"amli.no":2,"xn--mli-tla.no":2,"amot.no":2,"xn--mot-tla.no":2,"andasuolo.no":2,"andebu.no":2,"andoy.no":2,"xn--andy-ira.no":2,"ardal.no":2,"xn--rdal-poa.no":2,"aremark.no":2,"arendal.no":2,"xn--s-1fa.no":2,"aseral.no":2,"xn--seral-lra.no":2,"asker.no":2,"askim.no":2,"askoy.no":2,"xn--asky-ira.no":2,"askvoll.no":2,"asnes.no":2,"xn--snes-poa.no":2,"audnedaln.no":2,"aukra.no":2,"aure.no":2,"aurland.no":2,"aurskog-holand.no":2,"xn--aurskog-hland-jnb.no":2,"austevoll.no":2,"austrheim.no":2,"averoy.no":2,"xn--avery-yua.no":2,"badaddja.no":2,"xn--bdddj-mrabd.no":2,"xn--brum-voa.no":2,"bahcavuotna.no":2,"xn--bhcavuotna-s4a.no":2,"bahccavuotna.no":2,"xn--bhccavuotna-k7a.no":2,"baidar.no":2,"xn--bidr-5nac.no":2,"bajddar.no":2,"xn--bjddar-pta.no":2,"balat.no":2,"xn--blt-elab.no":2,"balestrand.no":2,"ballangen.no":2,"balsfjord.no":2,"bamble.no":2,"bardu.no":2,"barum.no":2,"batsfjord.no":2,"xn--btsfjord-9za.no":2,"bearalvahki.no":2,"xn--bearalvhki-y4a.no":2,"beardu.no":2,"beiarn.no":2,"berg.no":2,"bergen.no":2,"berlevag.no":2,"xn--berlevg-jxa.no":2,"bievat.no":2,"xn--bievt-0qa.no":2,"bindal.no":2,"birkenes.no":2,"bjarkoy.no":2,"xn--bjarky-fya.no":2,"bjerkreim.no":2,"bjugn.no":2,"bodo.no":2,"xn--bod-2na.no":2,"bokn.no":2,"bomlo.no":2,"xn--bmlo-gra.no":2,"bremanger.no":2,"bronnoy.no":2,"xn--brnny-wuac.no":2,"budejju.no":2,"nes.buskerud.no":3,"bygland.no":2,"bykle.no":2,"cahcesuolo.no":2,"xn--hcesuolo-7ya35b.no":2,"davvenjarga.no":2,"xn--davvenjrga-y4a.no":2,"davvesiida.no":2,"deatnu.no":2,"dielddanuorri.no":2,"divtasvuodna.no":2,"divttasvuotna.no":2,"donna.no":2,"xn--dnna-gra.no":2,"dovre.no":2,"drammen.no":2,"drangedal.no":2,"dyroy.no":2,"xn--dyry-ira.no":2,"eid.no":2,"eidfjord.no":2,"eidsberg.no":2,"eidskog.no":2,"eidsvoll.no":2,"eigersund.no":2,"elverum.no":2,"enebakk.no":2,"engerdal.no":2,"etne.no":2,"etnedal.no":2,"evenassi.no":2,"xn--eveni-0qa01ga.no":2,"evenes.no":2,"evje-og-hornnes.no":2,"farsund.no":2,"fauske.no":2,"fedje.no":2,"fet.no":2,"finnoy.no":2,"xn--finny-yua.no":2,"fitjar.no":2,"fjaler.no":2,"fjell.no":2,"fla.no":2,"xn--fl-zia.no":2,"flakstad.no":2,"flatanger.no":2,"flekkefjord.no":2,"flesberg.no":2,"flora.no":2,"folldal.no":2,"forde.no":2,"xn--frde-gra.no":2,"forsand.no":2,"fosnes.no":2,"xn--frna-woa.no":2,"frana.no":2,"frei.no":2,"frogn.no":2,"froland.no":2,"frosta.no":2,"froya.no":2,"xn--frya-hra.no":2,"fuoisku.no":2,"fuossko.no":2,"fusa.no":2,"fyresdal.no":2,"gaivuotna.no":2,"xn--givuotna-8ya.no":2,"galsa.no":2,"xn--gls-elac.no":2,"gamvik.no":2,"gangaviika.no":2,"xn--ggaviika-8ya47h.no":2,"gaular.no":2,"gausdal.no":2,"giehtavuoatna.no":2,"gildeskal.no":2,"xn--gildeskl-g0a.no":2,"giske.no":2,"gjemnes.no":2,"gjerdrum.no":2,"gjerstad.no":2,"gjesdal.no":2,"gjovik.no":2,"xn--gjvik-wua.no":2,"gloppen.no":2,"gol.no":2,"gran.no":2,"grane.no":2,"granvin.no":2,"gratangen.no":2,"grimstad.no":2,"grong.no":2,"grue.no":2,"gulen.no":2,"guovdageaidnu.no":2,"ha.no":2,"xn--h-2fa.no":2,"habmer.no":2,"xn--hbmer-xqa.no":2,"hadsel.no":2,"xn--hgebostad-g3a.no":2,"hagebostad.no":2,"halden.no":2,"halsa.no":2,"hamar.no":2,"hamaroy.no":2,"hammarfeasta.no":2,"xn--hmmrfeasta-s4ac.no":2,"hammerfest.no":2,"hapmir.no":2,"xn--hpmir-xqa.no":2,"haram.no":2,"hareid.no":2,"harstad.no":2,"hasvik.no":2,"hattfjelldal.no":2,"haugesund.no":2,"os.hedmark.no":3,"valer.hedmark.no":3,"xn--vler-qoa.hedmark.no":3,"hemne.no":2,"hemnes.no":2,"hemsedal.no":2,"hitra.no":2,"hjartdal.no":2,"hjelmeland.no":2,"hobol.no":2,"xn--hobl-x70ya.no":2,"hof.no":2,"hol.no":2,"hole.no":2,"holmestrand.no":2,"holtalen.no":2,"xn--holtlen-hxa.no":2,"os.hordaland.no":3,"hornindal.no":2,"horten.no":2,"hoyanger.no":2,"xn--hyanger-q1a.no":2,"hoylandet.no":2,"xn--hylandet-54a.no":2,"hurdal.no":2,"hurum.no":2,"hvaler.no":2,"hyllestad.no":2,"ibestad.no":2,"inderoy.no":2,"xn--indery-fya.no":2,"iveland.no":2,"ivgu.no":2,"jevnaker.no":2,"jolster.no":2,"xn--jlster-bya.no":2,"jondal.no":2,"kafjord.no":2,"xn--kfjord-iua.no":2,"karasjohka.no":2,"xn--krjohka-hwab49j.no":2,"karasjok.no":2,"karlsoy.no":2,"karmoy.no":2,"xn--karmy-yua.no":2,"kautokeino.no":2,"klabu.no":2,"xn--klbu-woa.no":2,"klepp.no":2,"kongsberg.no":2,"kongsvinger.no":2,"kraanghke.no":2,"xn--kranghke-b0a.no":2,"kragero.no":2,"xn--krager-gya.no":2,"kristiansand.no":2,"kristiansund.no":2,"krodsherad.no":2,"xn--krdsherad-m8a.no":2,"xn--kvfjord-nxa.no":2,"xn--kvnangen-k0a.no":2,"kvafjord.no":2,"kvalsund.no":2,"kvam.no":2,"kvanangen.no":2,"kvinesdal.no":2,"kvinnherad.no":2,"kviteseid.no":2,"kvitsoy.no":2,"xn--kvitsy-fya.no":2,"laakesvuemie.no":2,"xn--lrdal-sra.no":2,"lahppi.no":2,"xn--lhppi-xqa.no":2,"lardal.no":2,"larvik.no":2,"lavagis.no":2,"lavangen.no":2,"leangaviika.no":2,"xn--leagaviika-52b.no":2,"lebesby.no":2,"leikanger.no":2,"leirfjord.no":2,"leka.no":2,"leksvik.no":2,"lenvik.no":2,"lerdal.no":2,"lesja.no":2,"levanger.no":2,"lier.no":2,"lierne.no":2,"lillehammer.no":2,"lillesand.no":2,"lindas.no":2,"xn--linds-pra.no":2,"lindesnes.no":2,"loabat.no":2,"xn--loabt-0qa.no":2,"lodingen.no":2,"xn--ldingen-q1a.no":2,"lom.no":2,"loppa.no":2,"lorenskog.no":2,"xn--lrenskog-54a.no":2,"loten.no":2,"xn--lten-gra.no":2,"lund.no":2,"lunner.no":2,"luroy.no":2,"xn--lury-ira.no":2,"luster.no":2,"lyngdal.no":2,"lyngen.no":2,"malatvuopmi.no":2,"xn--mlatvuopmi-s4a.no":2,"malselv.no":2,"xn--mlselv-iua.no":2,"malvik.no":2,"mandal.no":2,"marker.no":2,"marnardal.no":2,"masfjorden.no":2,"masoy.no":2,"xn--msy-ula0h.no":2,"matta-varjjat.no":2,"xn--mtta-vrjjat-k7af.no":2,"meland.no":2,"meldal.no":2,"melhus.no":2,"meloy.no":2,"xn--mely-ira.no":2,"meraker.no":2,"xn--merker-kua.no":2,"midsund.no":2,"midtre-gauldal.no":2,"moareke.no":2,"xn--moreke-jua.no":2,"modalen.no":2,"modum.no":2,"molde.no":2,"heroy.more-og-romsdal.no":3,"sande.more-og-romsdal.no":3,"xn--hery-ira.xn--mre-og-romsdal-qqb.no":3,"sande.xn--mre-og-romsdal-qqb.no":3,"moskenes.no":2,"moss.no":2,"mosvik.no":2,"muosat.no":2,"xn--muost-0qa.no":2,"naamesjevuemie.no":2,"xn--nmesjevuemie-tcba.no":2,"xn--nry-yla5g.no":2,"namdalseid.no":2,"namsos.no":2,"namsskogan.no":2,"nannestad.no":2,"naroy.no":2,"narviika.no":2,"narvik.no":2,"naustdal.no":2,"navuotna.no":2,"xn--nvuotna-hwa.no":2,"nedre-eiker.no":2,"nesna.no":2,"nesodden.no":2,"nesseby.no":2,"nesset.no":2,"nissedal.no":2,"nittedal.no":2,"nord-aurdal.no":2,"nord-fron.no":2,"nord-odal.no":2,"norddal.no":2,"nordkapp.no":2,"bo.nordland.no":3,"xn--b-5ga.nordland.no":3,"heroy.nordland.no":3,"xn--hery-ira.nordland.no":3,"nordre-land.no":2,"nordreisa.no":2,"nore-og-uvdal.no":2,"notodden.no":2,"notteroy.no":2,"xn--nttery-byae.no":2,"odda.no":2,"oksnes.no":2,"xn--ksnes-uua.no":2,"omasvuotna.no":2,"oppdal.no":2,"oppegard.no":2,"xn--oppegrd-ixa.no":2,"orkdal.no":2,"orland.no":2,"xn--rland-uua.no":2,"orskog.no":2,"xn--rskog-uua.no":2,"orsta.no":2,"xn--rsta-fra.no":2,"osen.no":2,"osteroy.no":2,"xn--ostery-fya.no":2,"valer.ostfold.no":3,"xn--vler-qoa.xn--stfold-9xa.no":3,"ostre-toten.no":2,"xn--stre-toten-zcb.no":2,"overhalla.no":2,"ovre-eiker.no":2,"xn--vre-eiker-k8a.no":2,"oyer.no":2,"xn--yer-zna.no":2,"oygarden.no":2,"xn--ygarden-p1a.no":2,"oystre-slidre.no":2,"xn--ystre-slidre-ujb.no":2,"porsanger.no":2,"porsangu.no":2,"xn--porsgu-sta26f.no":2,"porsgrunn.no":2,"rade.no":2,"xn--rde-ula.no":2,"radoy.no":2,"xn--rady-ira.no":2,"xn--rlingen-mxa.no":2,"rahkkeravju.no":2,"xn--rhkkervju-01af.no":2,"raisa.no":2,"xn--risa-5na.no":2,"rakkestad.no":2,"ralingen.no":2,"rana.no":2,"randaberg.no":2,"rauma.no":2,"rendalen.no":2,"rennebu.no":2,"rennesoy.no":2,"xn--rennesy-v1a.no":2,"rindal.no":2,"ringebu.no":2,"ringerike.no":2,"ringsaker.no":2,"risor.no":2,"xn--risr-ira.no":2,"rissa.no":2,"roan.no":2,"rodoy.no":2,"xn--rdy-0nab.no":2,"rollag.no":2,"romsa.no":2,"romskog.no":2,"xn--rmskog-bya.no":2,"roros.no":2,"xn--rros-gra.no":2,"rost.no":2,"xn--rst-0na.no":2,"royken.no":2,"xn--ryken-vua.no":2,"royrvik.no":2,"xn--ryrvik-bya.no":2,"ruovat.no":2,"rygge.no":2,"salangen.no":2,"salat.no":2,"xn--slat-5na.no":2,"xn--slt-elab.no":2,"saltdal.no":2,"samnanger.no":2,"sandefjord.no":2,"sandnes.no":2,"sandoy.no":2,"xn--sandy-yua.no":2,"sarpsborg.no":2,"sauda.no":2,"sauherad.no":2,"sel.no":2,"selbu.no":2,"selje.no":2,"seljord.no":2,"siellak.no":2,"sigdal.no":2,"siljan.no":2,"sirdal.no":2,"skanit.no":2,"xn--sknit-yqa.no":2,"skanland.no":2,"xn--sknland-fxa.no":2,"skaun.no":2,"skedsmo.no":2,"ski.no":2,"skien.no":2,"skierva.no":2,"xn--skierv-uta.no":2,"skiptvet.no":2,"skjak.no":2,"xn--skjk-soa.no":2,"skjervoy.no":2,"xn--skjervy-v1a.no":2,"skodje.no":2,"smola.no":2,"xn--smla-hra.no":2,"snaase.no":2,"xn--snase-nra.no":2,"snasa.no":2,"xn--snsa-roa.no":2,"snillfjord.no":2,"snoasa.no":2,"sogndal.no":2,"sogne.no":2,"xn--sgne-gra.no":2,"sokndal.no":2,"sola.no":2,"solund.no":2,"somna.no":2,"xn--smna-gra.no":2,"sondre-land.no":2,"xn--sndre-land-0cb.no":2,"songdalen.no":2,"sor-aurdal.no":2,"xn--sr-aurdal-l8a.no":2,"sor-fron.no":2,"xn--sr-fron-q1a.no":2,"sor-odal.no":2,"xn--sr-odal-q1a.no":2,"sor-varanger.no":2,"xn--sr-varanger-ggb.no":2,"sorfold.no":2,"xn--srfold-bya.no":2,"sorreisa.no":2,"xn--srreisa-q1a.no":2,"sortland.no":2,"sorum.no":2,"xn--srum-gra.no":2,"spydeberg.no":2,"stange.no":2,"stavanger.no":2,"steigen.no":2,"steinkjer.no":2,"stjordal.no":2,"xn--stjrdal-s1a.no":2,"stokke.no":2,"stor-elvdal.no":2,"stord.no":2,"stordal.no":2,"storfjord.no":2,"strand.no":2,"stranda.no":2,"stryn.no":2,"sula.no":2,"suldal.no":2,"sund.no":2,"sunndal.no":2,"surnadal.no":2,"sveio.no":2,"svelvik.no":2,"sykkylven.no":2,"tana.no":2,"bo.telemark.no":3,"xn--b-5ga.telemark.no":3,"time.no":2,"tingvoll.no":2,"tinn.no":2,"tjeldsund.no":2,"tjome.no":2,"xn--tjme-hra.no":2,"tokke.no":2,"tolga.no":2,"tonsberg.no":2,"xn--tnsberg-q1a.no":2,"torsken.no":2,"xn--trna-woa.no":2,"trana.no":2,"tranoy.no":2,"xn--trany-yua.no":2,"troandin.no":2,"trogstad.no":2,"xn--trgstad-r1a.no":2,"tromsa.no":2,"tromso.no":2,"xn--troms-zua.no":2,"trondheim.no":2,"trysil.no":2,"tvedestrand.no":2,"tydal.no":2,"tynset.no":2,"tysfjord.no":2,"tysnes.no":2,"xn--tysvr-vra.no":2,"tysvar.no":2,"ullensaker.no":2,"ullensvang.no":2,"ulvik.no":2,"unjarga.no":2,"xn--unjrga-rta.no":2,"utsira.no":2,"vaapste.no":2,"vadso.no":2,"xn--vads-jra.no":2,"xn--vry-yla5g.no":2,"vaga.no":2,"xn--vg-yiab.no":2,"vagan.no":2,"xn--vgan-qoa.no":2,"vagsoy.no":2,"xn--vgsy-qoa0j.no":2,"vaksdal.no":2,"valle.no":2,"vang.no":2,"vanylven.no":2,"vardo.no":2,"xn--vard-jra.no":2,"varggat.no":2,"xn--vrggt-xqad.no":2,"varoy.no":2,"vefsn.no":2,"vega.no":2,"vegarshei.no":2,"xn--vegrshei-c0a.no":2,"vennesla.no":2,"verdal.no":2,"verran.no":2,"vestby.no":2,"sande.vestfold.no":3,"vestnes.no":2,"vestre-slidre.no":2,"vestre-toten.no":2,"vestvagoy.no":2,"xn--vestvgy-ixa6o.no":2,"vevelstad.no":2,"vik.no":2,"vikna.no":2,"vindafjord.no":2,"voagat.no":2,"volda.no":2,"voss.no":2,"np":2,"nr":1,"biz.nr":2,"com.nr":2,"edu.nr":2,"gov.nr":2,"info.nr":2,"net.nr":2,"org.nr":2,"nu":1,"nz":1,"ac.nz":2,"co.nz":2,"cri.nz":2,"geek.nz":2,"gen.nz":2,"govt.nz":2,"health.nz":2,"iwi.nz":2,"kiwi.nz":2,"maori.nz":2,"xn--mori-qsa.nz":2,"mil.nz":2,"net.nz":2,"org.nz":2,"parliament.nz":2,"school.nz":2,"om":1,"co.om":2,"com.om":2,"edu.om":2,"gov.om":2,"med.om":2,"museum.om":2,"net.om":2,"org.om":2,"pro.om":2,"onion":1,"org":1,"pa":1,"abo.pa":2,"ac.pa":2,"com.pa":2,"edu.pa":2,"gob.pa":2,"ing.pa":2,"med.pa":2,"net.pa":2,"nom.pa":2,"org.pa":2,"sld.pa":2,"pe":1,"com.pe":2,"edu.pe":2,"gob.pe":2,"mil.pe":2,"net.pe":2,"nom.pe":2,"org.pe":2,"pf":1,"com.pf":2,"edu.pf":2,"org.pf":2,"pg":2,"ph":1,"com.ph":2,"edu.ph":2,"gov.ph":2,"i.ph":2,"mil.ph":2,"net.ph":2,"ngo.ph":2,"org.ph":2,"pk":1,"ac.pk":2,"biz.pk":2,"com.pk":2,"edu.pk":2,"fam.pk":2,"gkp.pk":2,"gob.pk":2,"gog.pk":2,"gok.pk":2,"gop.pk":2,"gos.pk":2,"gov.pk":2,"net.pk":2,"org.pk":2,"web.pk":2,"pl":1,"com.pl":2,"net.pl":2,"org.pl":2,"agro.pl":2,"aid.pl":2,"atm.pl":2,"auto.pl":2,"biz.pl":2,"edu.pl":2,"gmina.pl":2,"gsm.pl":2,"info.pl":2,"mail.pl":2,"media.pl":2,"miasta.pl":2,"mil.pl":2,"nieruchomosci.pl":2,"nom.pl":2,"pc.pl":2,"powiat.pl":2,"priv.pl":2,"realestate.pl":2,"rel.pl":2,"sex.pl":2,"shop.pl":2,"sklep.pl":2,"sos.pl":2,"szkola.pl":2,"targi.pl":2,"tm.pl":2,"tourism.pl":2,"travel.pl":2,"turystyka.pl":2,"gov.pl":2,"ap.gov.pl":3,"griw.gov.pl":3,"ic.gov.pl":3,"is.gov.pl":3,"kmpsp.gov.pl":3,"konsulat.gov.pl":3,"kppsp.gov.pl":3,"kwp.gov.pl":3,"kwpsp.gov.pl":3,"mup.gov.pl":3,"mw.gov.pl":3,"oia.gov.pl":3,"oirm.gov.pl":3,"oke.gov.pl":3,"oow.gov.pl":3,"oschr.gov.pl":3,"oum.gov.pl":3,"pa.gov.pl":3,"pinb.gov.pl":3,"piw.gov.pl":3,"po.gov.pl":3,"pr.gov.pl":3,"psp.gov.pl":3,"psse.gov.pl":3,"pup.gov.pl":3,"rzgw.gov.pl":3,"sa.gov.pl":3,"sdn.gov.pl":3,"sko.gov.pl":3,"so.gov.pl":3,"sr.gov.pl":3,"starostwo.gov.pl":3,"ug.gov.pl":3,"ugim.gov.pl":3,"um.gov.pl":3,"umig.gov.pl":3,"upow.gov.pl":3,"uppo.gov.pl":3,"us.gov.pl":3,"uw.gov.pl":3,"uzs.gov.pl":3,"wif.gov.pl":3,"wiih.gov.pl":3,"winb.gov.pl":3,"wios.gov.pl":3,"witd.gov.pl":3,"wiw.gov.pl":3,"wkz.gov.pl":3,"wsa.gov.pl":3,"wskr.gov.pl":3,"wsse.gov.pl":3,"wuoz.gov.pl":3,"wzmiuw.gov.pl":3,"zp.gov.pl":3,"zpisdn.gov.pl":3,"augustow.pl":2,"babia-gora.pl":2,"bedzin.pl":2,"beskidy.pl":2,"bialowieza.pl":2,"bialystok.pl":2,"bielawa.pl":2,"bieszczady.pl":2,"boleslawiec.pl":2,"bydgoszcz.pl":2,"bytom.pl":2,"cieszyn.pl":2,"czeladz.pl":2,"czest.pl":2,"dlugoleka.pl":2,"elblag.pl":2,"elk.pl":2,"glogow.pl":2,"gniezno.pl":2,"gorlice.pl":2,"grajewo.pl":2,"ilawa.pl":2,"jaworzno.pl":2,"jelenia-gora.pl":2,"jgora.pl":2,"kalisz.pl":2,"karpacz.pl":2,"kartuzy.pl":2,"kaszuby.pl":2,"katowice.pl":2,"kazimierz-dolny.pl":2,"kepno.pl":2,"ketrzyn.pl":2,"klodzko.pl":2,"kobierzyce.pl":2,"kolobrzeg.pl":2,"konin.pl":2,"konskowola.pl":2,"kutno.pl":2,"lapy.pl":2,"lebork.pl":2,"legnica.pl":2,"lezajsk.pl":2,"limanowa.pl":2,"lomza.pl":2,"lowicz.pl":2,"lubin.pl":2,"lukow.pl":2,"malbork.pl":2,"malopolska.pl":2,"mazowsze.pl":2,"mazury.pl":2,"mielec.pl":2,"mielno.pl":2,"mragowo.pl":2,"naklo.pl":2,"nowaruda.pl":2,"nysa.pl":2,"olawa.pl":2,"olecko.pl":2,"olkusz.pl":2,"olsztyn.pl":2,"opoczno.pl":2,"opole.pl":2,"ostroda.pl":2,"ostroleka.pl":2,"ostrowiec.pl":2,"ostrowwlkp.pl":2,"pila.pl":2,"pisz.pl":2,"podhale.pl":2,"podlasie.pl":2,"polkowice.pl":2,"pomorskie.pl":2,"pomorze.pl":2,"prochowice.pl":2,"pruszkow.pl":2,"przeworsk.pl":2,"pulawy.pl":2,"radom.pl":2,"rawa-maz.pl":2,"rybnik.pl":2,"rzeszow.pl":2,"sanok.pl":2,"sejny.pl":2,"skoczow.pl":2,"slask.pl":2,"slupsk.pl":2,"sosnowiec.pl":2,"stalowa-wola.pl":2,"starachowice.pl":2,"stargard.pl":2,"suwalki.pl":2,"swidnica.pl":2,"swiebodzin.pl":2,"swinoujscie.pl":2,"szczecin.pl":2,"szczytno.pl":2,"tarnobrzeg.pl":2,"tgory.pl":2,"turek.pl":2,"tychy.pl":2,"ustka.pl":2,"walbrzych.pl":2,"warmia.pl":2,"warszawa.pl":2,"waw.pl":2,"wegrow.pl":2,"wielun.pl":2,"wlocl.pl":2,"wloclawek.pl":2,"wodzislaw.pl":2,"wolomin.pl":2,"wroclaw.pl":2,"zachpomor.pl":2,"zagan.pl":2,"zarow.pl":2,"zgora.pl":2,"zgorzelec.pl":2,"pm":1,"pn":1,"co.pn":2,"edu.pn":2,"gov.pn":2,"net.pn":2,"org.pn":2,"post":1,"pr":1,"biz.pr":2,"com.pr":2,"edu.pr":2,"gov.pr":2,"info.pr":2,"isla.pr":2,"name.pr":2,"net.pr":2,"org.pr":2,"pro.pr":2,"ac.pr":2,"est.pr":2,"prof.pr":2,"pro":1,"aaa.pro":2,"aca.pro":2,"acct.pro":2,"avocat.pro":2,"bar.pro":2,"cpa.pro":2,"eng.pro":2,"jur.pro":2,"law.pro":2,"med.pro":2,"recht.pro":2,"ps":1,"com.ps":2,"edu.ps":2,"gov.ps":2,"net.ps":2,"org.ps":2,"plo.ps":2,"sec.ps":2,"pt":1,"com.pt":2,"edu.pt":2,"gov.pt":2,"int.pt":2,"net.pt":2,"nome.pt":2,"org.pt":2,"publ.pt":2,"pw":1,"gov.pw":2,"py":1,"com.py":2,"coop.py":2,"edu.py":2,"gov.py":2,"mil.py":2,"net.py":2,"org.py":2,"qa":1,"com.qa":2,"edu.qa":2,"gov.qa":2,"mil.qa":2,"name.qa":2,"net.qa":2,"org.qa":2,"sch.qa":2,"re":1,"asso.re":2,"com.re":2,"ro":1,"arts.ro":2,"com.ro":2,"firm.ro":2,"info.ro":2,"nom.ro":2,"nt.ro":2,"org.ro":2,"rec.ro":2,"store.ro":2,"tm.ro":2,"www.ro":2,"rs":1,"ac.rs":2,"co.rs":2,"edu.rs":2,"gov.rs":2,"in.rs":2,"org.rs":2,"ru":1,"rw":1,"ac.rw":2,"co.rw":2,"coop.rw":2,"gov.rw":2,"mil.rw":2,"net.rw":2,"org.rw":2,"sa":1,"com.sa":2,"edu.sa":2,"gov.sa":2,"med.sa":2,"net.sa":2,"org.sa":2,"pub.sa":2,"sch.sa":2,"sb":1,"com.sb":2,"edu.sb":2,"gov.sb":2,"net.sb":2,"org.sb":2,"sc":1,"com.sc":2,"edu.sc":2,"gov.sc":2,"net.sc":2,"org.sc":2,"sd":1,"com.sd":2,"edu.sd":2,"gov.sd":2,"info.sd":2,"med.sd":2,"net.sd":2,"org.sd":2,"tv.sd":2,"se":1,"a.se":2,"ac.se":2,"b.se":2,"bd.se":2,"brand.se":2,"c.se":2,"d.se":2,"e.se":2,"f.se":2,"fh.se":2,"fhsk.se":2,"fhv.se":2,"g.se":2,"h.se":2,"i.se":2,"k.se":2,"komforb.se":2,"kommunalforbund.se":2,"komvux.se":2,"l.se":2,"lanbib.se":2,"m.se":2,"n.se":2,"naturbruksgymn.se":2,"o.se":2,"org.se":2,"p.se":2,"parti.se":2,"pp.se":2,"press.se":2,"r.se":2,"s.se":2,"t.se":2,"tm.se":2,"u.se":2,"w.se":2,"x.se":2,"y.se":2,"z.se":2,"sg":1,"com.sg":2,"edu.sg":2,"gov.sg":2,"net.sg":2,"org.sg":2,"sh":1,"com.sh":2,"gov.sh":2,"mil.sh":2,"net.sh":2,"org.sh":2,"si":1,"sj":1,"sk":1,"sl":1,"com.sl":2,"edu.sl":2,"gov.sl":2,"net.sl":2,"org.sl":2,"sm":1,"sn":1,"art.sn":2,"com.sn":2,"edu.sn":2,"gouv.sn":2,"org.sn":2,"perso.sn":2,"univ.sn":2,"so":1,"com.so":2,"edu.so":2,"gov.so":2,"me.so":2,"net.so":2,"org.so":2,"sr":1,"ss":1,"biz.ss":2,"co.ss":2,"com.ss":2,"edu.ss":2,"gov.ss":2,"me.ss":2,"net.ss":2,"org.ss":2,"sch.ss":2,"st":1,"co.st":2,"com.st":2,"consulado.st":2,"edu.st":2,"embaixada.st":2,"mil.st":2,"net.st":2,"org.st":2,"principe.st":2,"saotome.st":2,"store.st":2,"su":1,"sv":1,"com.sv":2,"edu.sv":2,"gob.sv":2,"org.sv":2,"red.sv":2,"sx":1,"gov.sx":2,"sy":1,"com.sy":2,"edu.sy":2,"gov.sy":2,"mil.sy":2,"net.sy":2,"org.sy":2,"sz":1,"ac.sz":2,"co.sz":2,"org.sz":2,"tc":1,"td":1,"tel":1,"tf":1,"tg":1,"th":1,"ac.th":2,"co.th":2,"go.th":2,"in.th":2,"mi.th":2,"net.th":2,"or.th":2,"tj":1,"ac.tj":2,"biz.tj":2,"co.tj":2,"com.tj":2,"edu.tj":2,"go.tj":2,"gov.tj":2,"int.tj":2,"mil.tj":2,"name.tj":2,"net.tj":2,"nic.tj":2,"org.tj":2,"test.tj":2,"web.tj":2,"tk":1,"tl":1,"gov.tl":2,"tm":1,"co.tm":2,"com.tm":2,"edu.tm":2,"gov.tm":2,"mil.tm":2,"net.tm":2,"nom.tm":2,"org.tm":2,"tn":1,"com.tn":2,"ens.tn":2,"fin.tn":2,"gov.tn":2,"ind.tn":2,"info.tn":2,"intl.tn":2,"mincom.tn":2,"nat.tn":2,"net.tn":2,"org.tn":2,"perso.tn":2,"tourism.tn":2,"to":1,"com.to":2,"edu.to":2,"gov.to":2,"mil.to":2,"net.to":2,"org.to":2,"tr":1,"av.tr":2,"bbs.tr":2,"bel.tr":2,"biz.tr":2,"com.tr":2,"dr.tr":2,"edu.tr":2,"gen.tr":2,"gov.tr":2,"info.tr":2,"k12.tr":2,"kep.tr":2,"mil.tr":2,"name.tr":2,"net.tr":2,"org.tr":2,"pol.tr":2,"tel.tr":2,"tsk.tr":2,"tv.tr":2,"web.tr":2,"nc.tr":2,"gov.nc.tr":3,"tt":1,"biz.tt":2,"co.tt":2,"com.tt":2,"edu.tt":2,"gov.tt":2,"info.tt":2,"mil.tt":2,"name.tt":2,"net.tt":2,"org.tt":2,"pro.tt":2,"tv":1,"tw":1,"club.tw":2,"com.tw":2,"ebiz.tw":2,"edu.tw":2,"game.tw":2,"gov.tw":2,"idv.tw":2,"mil.tw":2,"net.tw":2,"org.tw":2,"tz":1,"ac.tz":2,"co.tz":2,"go.tz":2,"hotel.tz":2,"info.tz":2,"me.tz":2,"mil.tz":2,"mobi.tz":2,"ne.tz":2,"or.tz":2,"sc.tz":2,"tv.tz":2,"ua":1,"com.ua":2,"edu.ua":2,"gov.ua":2,"in.ua":2,"net.ua":2,"org.ua":2,"cherkassy.ua":2,"cherkasy.ua":2,"chernigov.ua":2,"chernihiv.ua":2,"chernivtsi.ua":2,"chernovtsy.ua":2,"ck.ua":2,"cn.ua":2,"cr.ua":2,"crimea.ua":2,"cv.ua":2,"dn.ua":2,"dnepropetrovsk.ua":2,"dnipropetrovsk.ua":2,"donetsk.ua":2,"dp.ua":2,"if.ua":2,"ivano-frankivsk.ua":2,"kh.ua":2,"kharkiv.ua":2,"kharkov.ua":2,"kherson.ua":2,"khmelnitskiy.ua":2,"khmelnytskyi.ua":2,"kiev.ua":2,"kirovograd.ua":2,"km.ua":2,"kr.ua":2,"kropyvnytskyi.ua":2,"krym.ua":2,"ks.ua":2,"kv.ua":2,"kyiv.ua":2,"lg.ua":2,"lt.ua":2,"lugansk.ua":2,"luhansk.ua":2,"lutsk.ua":2,"lv.ua":2,"lviv.ua":2,"mk.ua":2,"mykolaiv.ua":2,"nikolaev.ua":2,"od.ua":2,"odesa.ua":2,"odessa.ua":2,"pl.ua":2,"poltava.ua":2,"rivne.ua":2,"rovno.ua":2,"rv.ua":2,"sb.ua":2,"sebastopol.ua":2,"sevastopol.ua":2,"sm.ua":2,"sumy.ua":2,"te.ua":2,"ternopil.ua":2,"uz.ua":2,"uzhgorod.ua":2,"uzhhorod.ua":2,"vinnica.ua":2,"vinnytsia.ua":2,"vn.ua":2,"volyn.ua":2,"yalta.ua":2,"zakarpattia.ua":2,"zaporizhzhe.ua":2,"zaporizhzhia.ua":2,"zhitomir.ua":2,"zhytomyr.ua":2,"zp.ua":2,"zt.ua":2,"ug":1,"ac.ug":2,"co.ug":2,"com.ug":2,"edu.ug":2,"go.ug":2,"gov.ug":2,"mil.ug":2,"ne.ug":2,"or.ug":2,"org.ug":2,"sc.ug":2,"us.ug":2,"uk":1,"ac.uk":2,"co.uk":2,"gov.uk":2,"ltd.uk":2,"me.uk":2,"net.uk":2,"nhs.uk":2,"org.uk":2,"plc.uk":2,"police.uk":2,"sch.uk":3,"us":1,"dni.us":2,"isa.us":2,"nsn.us":2,"ak.us":2,"al.us":2,"ar.us":2,"as.us":2,"az.us":2,"ca.us":2,"co.us":2,"ct.us":2,"dc.us":2,"de.us":2,"fl.us":2,"ga.us":2,"gu.us":2,"hi.us":2,"ia.us":2,"id.us":2,"il.us":2,"in.us":2,"ks.us":2,"ky.us":2,"la.us":2,"ma.us":2,"md.us":2,"me.us":2,"mi.us":2,"mn.us":2,"mo.us":2,"ms.us":2,"mt.us":2,"nc.us":2,"nd.us":2,"ne.us":2,"nh.us":2,"nj.us":2,"nm.us":2,"nv.us":2,"ny.us":2,"oh.us":2,"ok.us":2,"or.us":2,"pa.us":2,"pr.us":2,"ri.us":2,"sc.us":2,"sd.us":2,"tn.us":2,"tx.us":2,"ut.us":2,"va.us":2,"vi.us":2,"vt.us":2,"wa.us":2,"wi.us":2,"wv.us":2,"wy.us":2,"k12.ak.us":3,"k12.al.us":3,"k12.ar.us":3,"k12.as.us":3,"k12.az.us":3,"k12.ca.us":3,"k12.co.us":3,"k12.ct.us":3,"k12.dc.us":3,"k12.fl.us":3,"k12.ga.us":3,"k12.gu.us":3,"k12.ia.us":3,"k12.id.us":3,"k12.il.us":3,"k12.in.us":3,"k12.ks.us":3,"k12.ky.us":3,"k12.la.us":3,"k12.ma.us":3,"k12.md.us":3,"k12.me.us":3,"k12.mi.us":3,"k12.mn.us":3,"k12.mo.us":3,"k12.ms.us":3,"k12.mt.us":3,"k12.nc.us":3,"k12.ne.us":3,"k12.nh.us":3,"k12.nj.us":3,"k12.nm.us":3,"k12.nv.us":3,"k12.ny.us":3,"k12.oh.us":3,"k12.ok.us":3,"k12.or.us":3,"k12.pa.us":3,"k12.pr.us":3,"k12.sc.us":3,"k12.tn.us":3,"k12.tx.us":3,"k12.ut.us":3,"k12.va.us":3,"k12.vi.us":3,"k12.vt.us":3,"k12.wa.us":3,"k12.wi.us":3,"cc.ak.us":3,"lib.ak.us":3,"cc.al.us":3,"lib.al.us":3,"cc.ar.us":3,"lib.ar.us":3,"cc.as.us":3,"lib.as.us":3,"cc.az.us":3,"lib.az.us":3,"cc.ca.us":3,"lib.ca.us":3,"cc.co.us":3,"lib.co.us":3,"cc.ct.us":3,"lib.ct.us":3,"cc.dc.us":3,"lib.dc.us":3,"cc.de.us":3,"cc.fl.us":3,"cc.ga.us":3,"cc.gu.us":3,"cc.hi.us":3,"cc.ia.us":3,"cc.id.us":3,"cc.il.us":3,"cc.in.us":3,"cc.ks.us":3,"cc.ky.us":3,"cc.la.us":3,"cc.ma.us":3,"cc.md.us":3,"cc.me.us":3,"cc.mi.us":3,"cc.mn.us":3,"cc.mo.us":3,"cc.ms.us":3,"cc.mt.us":3,"cc.nc.us":3,"cc.nd.us":3,"cc.ne.us":3,"cc.nh.us":3,"cc.nj.us":3,"cc.nm.us":3,"cc.nv.us":3,"cc.ny.us":3,"cc.oh.us":3,"cc.ok.us":3,"cc.or.us":3,"cc.pa.us":3,"cc.pr.us":3,"cc.ri.us":3,"cc.sc.us":3,"cc.sd.us":3,"cc.tn.us":3,"cc.tx.us":3,"cc.ut.us":3,"cc.va.us":3,"cc.vi.us":3,"cc.vt.us":3,"cc.wa.us":3,"cc.wi.us":3,"cc.wv.us":3,"cc.wy.us":3,"k12.wy.us":3,"lib.fl.us":3,"lib.ga.us":3,"lib.gu.us":3,"lib.hi.us":3,"lib.ia.us":3,"lib.id.us":3,"lib.il.us":3,"lib.in.us":3,"lib.ks.us":3,"lib.ky.us":3,"lib.la.us":3,"lib.ma.us":3,"lib.md.us":3,"lib.me.us":3,"lib.mi.us":3,"lib.mn.us":3,"lib.mo.us":3,"lib.ms.us":3,"lib.mt.us":3,"lib.nc.us":3,"lib.nd.us":3,"lib.ne.us":3,"lib.nh.us":3,"lib.nj.us":3,"lib.nm.us":3,"lib.nv.us":3,"lib.ny.us":3,"lib.oh.us":3,"lib.ok.us":3,"lib.or.us":3,"lib.pa.us":3,"lib.pr.us":3,"lib.ri.us":3,"lib.sc.us":3,"lib.sd.us":3,"lib.tn.us":3,"lib.tx.us":3,"lib.ut.us":3,"lib.va.us":3,"lib.vi.us":3,"lib.vt.us":3,"lib.wa.us":3,"lib.wi.us":3,"lib.wy.us":3,"chtr.k12.ma.us":4,"paroch.k12.ma.us":4,"pvt.k12.ma.us":4,"ann-arbor.mi.us":3,"cog.mi.us":3,"dst.mi.us":3,"eaton.mi.us":3,"gen.mi.us":3,"mus.mi.us":3,"tec.mi.us":3,"washtenaw.mi.us":3,"uy":1,"com.uy":2,"edu.uy":2,"gub.uy":2,"mil.uy":2,"net.uy":2,"org.uy":2,"uz":1,"co.uz":2,"com.uz":2,"net.uz":2,"org.uz":2,"va":1,"vc":1,"com.vc":2,"edu.vc":2,"gov.vc":2,"mil.vc":2,"net.vc":2,"org.vc":2,"ve":1,"arts.ve":2,"bib.ve":2,"co.ve":2,"com.ve":2,"e12.ve":2,"edu.ve":2,"emprende.ve":2,"firm.ve":2,"gob.ve":2,"gov.ve":2,"info.ve":2,"int.ve":2,"mil.ve":2,"net.ve":2,"nom.ve":2,"org.ve":2,"rar.ve":2,"rec.ve":2,"store.ve":2,"tec.ve":2,"web.ve":2,"vg":1,"edu.vg":2,"vi":1,"co.vi":2,"com.vi":2,"k12.vi":2,"net.vi":2,"org.vi":2,"vn":1,"ac.vn":2,"ai.vn":2,"biz.vn":2,"com.vn":2,"edu.vn":2,"gov.vn":2,"health.vn":2,"id.vn":2,"info.vn":2,"int.vn":2,"io.vn":2,"name.vn":2,"net.vn":2,"org.vn":2,"pro.vn":2,"angiang.vn":2,"bacgiang.vn":2,"backan.vn":2,"baclieu.vn":2,"bacninh.vn":2,"baria-vungtau.vn":2,"bentre.vn":2,"binhdinh.vn":2,"binhduong.vn":2,"binhphuoc.vn":2,"binhthuan.vn":2,"camau.vn":2,"cantho.vn":2,"caobang.vn":2,"daklak.vn":2,"daknong.vn":2,"danang.vn":2,"dienbien.vn":2,"dongnai.vn":2,"dongthap.vn":2,"gialai.vn":2,"hagiang.vn":2,"haiduong.vn":2,"haiphong.vn":2,"hanam.vn":2,"hanoi.vn":2,"hatinh.vn":2,"haugiang.vn":2,"hoabinh.vn":2,"hungyen.vn":2,"khanhhoa.vn":2,"kiengiang.vn":2,"kontum.vn":2,"laichau.vn":2,"lamdong.vn":2,"langson.vn":2,"laocai.vn":2,"longan.vn":2,"namdinh.vn":2,"nghean.vn":2,"ninhbinh.vn":2,"ninhthuan.vn":2,"phutho.vn":2,"phuyen.vn":2,"quangbinh.vn":2,"quangnam.vn":2,"quangngai.vn":2,"quangninh.vn":2,"quangtri.vn":2,"soctrang.vn":2,"sonla.vn":2,"tayninh.vn":2,"thaibinh.vn":2,"thainguyen.vn":2,"thanhhoa.vn":2,"thanhphohochiminh.vn":2,"thuathienhue.vn":2,"tiengiang.vn":2,"travinh.vn":2,"tuyenquang.vn":2,"vinhlong.vn":2,"vinhphuc.vn":2,"yenbai.vn":2,"vu":1,"com.vu":2,"edu.vu":2,"net.vu":2,"org.vu":2,"wf":1,"ws":1,"com.ws":2,"edu.ws":2,"gov.ws":2,"net.ws":2,"org.ws":2,"yt":1,"xn--mgbaam7a8h":1,"xn--y9a3aq":1,"xn--54b7fta0cc":1,"xn--90ae":1,"xn--mgbcpq6gpa1a":1,"xn--90au3644qa":1,"xn--fiqs8s":1,"xn--fiqz9s":1,"xn--lgbbat1ad8j":1,"xn--wgbh1c":1,"xn--e1a4c":1,"xn--qxa6a":1,"xn--mgbah1a3hjkrd":1,"xn--node":1,"xn--qxam":1,"xn--j6w193g":1,"xn--gmqw5a.xn--j6w193g":2,"xn--55qx5d.xn--j6w193g":2,"xn--mxtq1m.xn--j6w193g":2,"xn--wcvs22d.xn--j6w193g":2,"xn--uc0atv.xn--j6w193g":2,"xn--od0alg.xn--j6w193g":2,"xn--2scrj9c":1,"xn--3hcrj9c":1,"xn--45br5cyl":1,"xn--h2breg3eve":1,"xn--h2brj9c8c":1,"xn--mgbgu82a":1,"xn--rvc1e0am3e":1,"xn--h2brj9c":1,"xn--mgbbh1a":1,"xn--mgbbh1a71e":1,"xn--fpcrj9c3d":1,"xn--gecrj9c":1,"xn--s9brj9c":1,"xn--45brj9c":1,"xn--xkc2dl3a5ee0h":1,"xn--mgba3a4f16a":1,"xn--mgba3a4fra":1,"xn--mgbtx2b":1,"xn--mgbayh7gpa":1,"xn--3e0b707e":1,"xn--80ao21a":1,"xn--q7ce6a":1,"xn--fzc2c9e2c":1,"xn--xkc2al3hye2a":1,"xn--mgbc0a9azcg":1,"xn--d1alf":1,"xn--l1acc":1,"xn--mix891f":1,"xn--mix082f":1,"xn--mgbx4cd0ab":1,"xn--mgb9awbf":1,"xn--mgbai9azgqp6j":1,"xn--mgbai9a5eva00b":1,"xn--ygbi2ammx":1,"xn--90a3ac":1,"xn--80au.xn--90a3ac":2,"xn--90azh.xn--90a3ac":2,"xn--d1at.xn--90a3ac":2,"xn--c1avg.xn--90a3ac":2,"xn--o1ac.xn--90a3ac":2,"xn--o1ach.xn--90a3ac":2,"xn--p1ai":1,"xn--wgbl6a":1,"xn--mgberp4a5d4ar":1,"xn--mgberp4a5d4a87g":1,"xn--mgbqly7c0a67fbc":1,"xn--mgbqly7cvafr":1,"xn--mgbpl2fh":1,"xn--yfro4i67o":1,"xn--clchc0ea0b3ipdcd73789da":1,"xn--ogbpf8fl":1,"xn--mgbtf8fl":1,"xn--o3cw4h":1,"xn--o3cyx2a.xn--o3cw4h":2,"xn--12co0c3b4eva.xn--o3cw4h":2,"xn--m3ch0j3a.xn--o3cw4h":2,"xn--h3cuzk1di.xn--o3cw4h":2,"xn--12c1fe0br.xn--o3cw4h":2,"xn--12cfi8ixb8l.xn--o3cw4h":2,"xn--pgbs0dh":1,"xn--kpry57d":1,"xn--kprw13d":1,"xn--nnx388a":1,"xn--j1amh":1,"xn--mgb2ddes":1,"xxx":1,"ye":1,"com.ye":2,"edu.ye":2,"gov.ye":2,"mil.ye":2,"net.ye":2,"org.ye":2,"ac.za":2,"agric.za":2,"alt.za":2,"co.za":2,"edu.za":2,"gov.za":2,"grondar.za":2,"law.za":2,"mil.za":2,"net.za":2,"ngo.za":2,"nic.za":2,"nis.za":2,"nom.za":2,"org.za":2,"school.za":2,"tm.za":2,"web.za":2,"zm":1,"ac.zm":2,"biz.zm":2,"co.zm":2,"com.zm":2,"edu.zm":2,"gov.zm":2,"info.zm":2,"mil.zm":2,"net.zm":2,"org.zm":2,"sch.zm":2,"zw":1,"ac.zw":2,"co.zw":2,"gov.zw":2,"mil.zw":2,"org.zw":2,"aaa":1,"aarp":1,"abb":1,"abbott":1,"abbvie":1,"abc":1,"able":1,"abogado":1,"abudhabi":1,"academy":1,"accenture":1,"accountant":1,"accountants":1,"aco":1,"actor":1,"ads":1,"adult":1,"aeg":1,"aetna":1,"afl":1,"africa":1,"agakhan":1,"agency":1,"aig":1,"airbus":1,"airforce":1,"airtel":1,"akdn":1,"alibaba":1,"alipay":1,"allfinanz":1,"allstate":1,"ally":1,"alsace":1,"alstom":1,"amazon":1,"americanexpress":1,"americanfamily":1,"amex":1,"amfam":1,"amica":1,"amsterdam":1,"analytics":1,"android":1,"anquan":1,"anz":1,"aol":1,"apartments":1,"app":1,"apple":1,"aquarelle":1,"arab":1,"aramco":1,"archi":1,"army":1,"art":1,"arte":1,"asda":1,"associates":1,"athleta":1,"attorney":1,"auction":1,"audi":1,"audible":1,"audio":1,"auspost":1,"author":1,"auto":1,"autos":1,"aws":1,"axa":1,"azure":1,"baby":1,"baidu":1,"banamex":1,"band":1,"bank":1,"bar":1,"barcelona":1,"barclaycard":1,"barclays":1,"barefoot":1,"bargains":1,"baseball":1,"basketball":1,"bauhaus":1,"bayern":1,"bbc":1,"bbt":1,"bbva":1,"bcg":1,"bcn":1,"beats":1,"beauty":1,"beer":1,"berlin":1,"best":1,"bestbuy":1,"bet":1,"bharti":1,"bible":1,"bid":1,"bike":1,"bing":1,"bingo":1,"bio":1,"black":1,"blackfriday":1,"blockbuster":1,"blog":1,"bloomberg":1,"blue":1,"bms":1,"bmw":1,"bnpparibas":1,"boats":1,"boehringer":1,"bofa":1,"bom":1,"bond":1,"boo":1,"book":1,"booking":1,"bosch":1,"bostik":1,"boston":1,"bot":1,"boutique":1,"box":1,"bradesco":1,"bridgestone":1,"broadway":1,"broker":1,"brother":1,"brussels":1,"build":1,"builders":1,"business":1,"buy":1,"buzz":1,"bzh":1,"cab":1,"cafe":1,"cal":1,"call":1,"calvinklein":1,"cam":1,"camera":1,"camp":1,"canon":1,"capetown":1,"capital":1,"capitalone":1,"car":1,"caravan":1,"cards":1,"care":1,"career":1,"careers":1,"cars":1,"casa":1,"case":1,"cash":1,"casino":1,"catering":1,"catholic":1,"cba":1,"cbn":1,"cbre":1,"center":1,"ceo":1,"cern":1,"cfa":1,"cfd":1,"chanel":1,"channel":1,"charity":1,"chase":1,"chat":1,"cheap":1,"chintai":1,"christmas":1,"chrome":1,"church":1,"cipriani":1,"circle":1,"cisco":1,"citadel":1,"citi":1,"citic":1,"city":1,"claims":1,"cleaning":1,"click":1,"clinic":1,"clinique":1,"clothing":1,"cloud":1,"club":1,"clubmed":1,"coach":1,"codes":1,"coffee":1,"college":1,"cologne":1,"commbank":1,"community":1,"company":1,"compare":1,"computer":1,"comsec":1,"condos":1,"construction":1,"consulting":1,"contact":1,"contractors":1,"cooking":1,"cool":1,"corsica":1,"country":1,"coupon":1,"coupons":1,"courses":1,"cpa":1,"credit":1,"creditcard":1,"creditunion":1,"cricket":1,"crown":1,"crs":1,"cruise":1,"cruises":1,"cuisinella":1,"cymru":1,"cyou":1,"dad":1,"dance":1,"data":1,"date":1,"dating":1,"datsun":1,"day":1,"dclk":1,"dds":1,"deal":1,"dealer":1,"deals":1,"degree":1,"delivery":1,"dell":1,"deloitte":1,"delta":1,"democrat":1,"dental":1,"dentist":1,"desi":1,"design":1,"dev":1,"dhl":1,"diamonds":1,"diet":1,"digital":1,"direct":1,"directory":1,"discount":1,"discover":1,"dish":1,"diy":1,"dnp":1,"docs":1,"doctor":1,"dog":1,"domains":1,"dot":1,"download":1,"drive":1,"dtv":1,"dubai":1,"dunlop":1,"dupont":1,"durban":1,"dvag":1,"dvr":1,"earth":1,"eat":1,"eco":1,"edeka":1,"education":1,"email":1,"emerck":1,"energy":1,"engineer":1,"engineering":1,"enterprises":1,"epson":1,"equipment":1,"ericsson":1,"erni":1,"esq":1,"estate":1,"eurovision":1,"eus":1,"events":1,"exchange":1,"expert":1,"exposed":1,"express":1,"extraspace":1,"fage":1,"fail":1,"fairwinds":1,"faith":1,"family":1,"fan":1,"fans":1,"farm":1,"farmers":1,"fashion":1,"fast":1,"fedex":1,"feedback":1,"ferrari":1,"ferrero":1,"fidelity":1,"fido":1,"film":1,"final":1,"finance":1,"financial":1,"fire":1,"firestone":1,"firmdale":1,"fish":1,"fishing":1,"fit":1,"fitness":1,"flickr":1,"flights":1,"flir":1,"florist":1,"flowers":1,"fly":1,"foo":1,"food":1,"football":1,"ford":1,"forex":1,"forsale":1,"forum":1,"foundation":1,"fox":1,"free":1,"fresenius":1,"frl":1,"frogans":1,"frontier":1,"ftr":1,"fujitsu":1,"fun":1,"fund":1,"furniture":1,"futbol":1,"fyi":1,"gal":1,"gallery":1,"gallo":1,"gallup":1,"game":1,"games":1,"gap":1,"garden":1,"gay":1,"gbiz":1,"gdn":1,"gea":1,"gent":1,"genting":1,"george":1,"ggee":1,"gift":1,"gifts":1,"gives":1,"giving":1,"glass":1,"gle":1,"global":1,"globo":1,"gmail":1,"gmbh":1,"gmo":1,"gmx":1,"godaddy":1,"gold":1,"goldpoint":1,"golf":1,"goo":1,"goodyear":1,"goog":1,"google":1,"gop":1,"got":1,"grainger":1,"graphics":1,"gratis":1,"green":1,"gripe":1,"grocery":1,"group":1,"gucci":1,"guge":1,"guide":1,"guitars":1,"guru":1,"hair":1,"hamburg":1,"hangout":1,"haus":1,"hbo":1,"hdfc":1,"hdfcbank":1,"health":1,"healthcare":1,"help":1,"helsinki":1,"here":1,"hermes":1,"hiphop":1,"hisamitsu":1,"hitachi":1,"hiv":1,"hkt":1,"hockey":1,"holdings":1,"holiday":1,"homedepot":1,"homegoods":1,"homes":1,"homesense":1,"honda":1,"horse":1,"hospital":1,"host":1,"hosting":1,"hot":1,"hotel":1,"hotels":1,"hotmail":1,"house":1,"how":1,"hsbc":1,"hughes":1,"hyatt":1,"hyundai":1,"ibm":1,"icbc":1,"ice":1,"icu":1,"ieee":1,"ifm":1,"ikano":1,"imamat":1,"imdb":1,"immo":1,"immobilien":1,"inc":1,"industries":1,"infiniti":1,"ing":1,"ink":1,"institute":1,"insurance":1,"insure":1,"international":1,"intuit":1,"investments":1,"ipiranga":1,"irish":1,"ismaili":1,"ist":1,"istanbul":1,"itau":1,"itv":1,"jaguar":1,"java":1,"jcb":1,"jeep":1,"jetzt":1,"jewelry":1,"jio":1,"jll":1,"jmp":1,"jnj":1,"joburg":1,"jot":1,"joy":1,"jpmorgan":1,"jprs":1,"juegos":1,"juniper":1,"kaufen":1,"kddi":1,"kerryhotels":1,"kerryproperties":1,"kfh":1,"kia":1,"kids":1,"kim":1,"kindle":1,"kitchen":1,"kiwi":1,"koeln":1,"komatsu":1,"kosher":1,"kpmg":1,"kpn":1,"krd":1,"kred":1,"kuokgroup":1,"kyoto":1,"lacaixa":1,"lamborghini":1,"lamer":1,"land":1,"landrover":1,"lanxess":1,"lasalle":1,"lat":1,"latino":1,"latrobe":1,"law":1,"lawyer":1,"lds":1,"lease":1,"leclerc":1,"lefrak":1,"legal":1,"lego":1,"lexus":1,"lgbt":1,"lidl":1,"life":1,"lifeinsurance":1,"lifestyle":1,"lighting":1,"like":1,"lilly":1,"limited":1,"limo":1,"lincoln":1,"link":1,"live":1,"living":1,"llc":1,"llp":1,"loan":1,"loans":1,"locker":1,"locus":1,"lol":1,"london":1,"lotte":1,"lotto":1,"love":1,"lpl":1,"lplfinancial":1,"ltd":1,"ltda":1,"lundbeck":1,"luxe":1,"luxury":1,"madrid":1,"maif":1,"maison":1,"makeup":1,"man":1,"management":1,"mango":1,"map":1,"market":1,"marketing":1,"markets":1,"marriott":1,"marshalls":1,"mattel":1,"mba":1,"mckinsey":1,"med":1,"media":1,"meet":1,"melbourne":1,"meme":1,"memorial":1,"men":1,"menu":1,"merck":1,"merckmsd":1,"miami":1,"microsoft":1,"mini":1,"mint":1,"mit":1,"mitsubishi":1,"mlb":1,"mls":1,"mma":1,"mobile":1,"moda":1,"moe":1,"moi":1,"mom":1,"monash":1,"money":1,"monster":1,"mormon":1,"mortgage":1,"moscow":1,"moto":1,"motorcycles":1,"mov":1,"movie":1,"msd":1,"mtn":1,"mtr":1,"music":1,"nab":1,"nagoya":1,"navy":1,"nba":1,"nec":1,"netbank":1,"netflix":1,"network":1,"neustar":1,"new":1,"news":1,"next":1,"nextdirect":1,"nexus":1,"nfl":1,"ngo":1,"nhk":1,"nico":1,"nike":1,"nikon":1,"ninja":1,"nissan":1,"nissay":1,"nokia":1,"norton":1,"now":1,"nowruz":1,"nowtv":1,"nra":1,"nrw":1,"ntt":1,"nyc":1,"obi":1,"observer":1,"office":1,"okinawa":1,"olayan":1,"olayangroup":1,"ollo":1,"omega":1,"one":1,"ong":1,"onl":1,"online":1,"ooo":1,"open":1,"oracle":1,"orange":1,"organic":1,"origins":1,"osaka":1,"otsuka":1,"ott":1,"ovh":1,"page":1,"panasonic":1,"paris":1,"pars":1,"partners":1,"parts":1,"party":1,"pay":1,"pccw":1,"pet":1,"pfizer":1,"pharmacy":1,"phd":1,"philips":1,"phone":1,"photo":1,"photography":1,"photos":1,"physio":1,"pics":1,"pictet":1,"pictures":1,"pid":1,"pin":1,"ping":1,"pink":1,"pioneer":1,"pizza":1,"place":1,"play":1,"playstation":1,"plumbing":1,"plus":1,"pnc":1,"pohl":1,"poker":1,"politie":1,"porn":1,"praxi":1,"press":1,"prime":1,"prod":1,"productions":1,"prof":1,"progressive":1,"promo":1,"properties":1,"property":1,"protection":1,"pru":1,"prudential":1,"pub":1,"pwc":1,"qpon":1,"quebec":1,"quest":1,"racing":1,"radio":1,"read":1,"realestate":1,"realtor":1,"realty":1,"recipes":1,"red":1,"redstone":1,"redumbrella":1,"rehab":1,"reise":1,"reisen":1,"reit":1,"reliance":1,"ren":1,"rent":1,"rentals":1,"repair":1,"report":1,"republican":1,"rest":1,"restaurant":1,"review":1,"reviews":1,"rexroth":1,"rich":1,"richardli":1,"ricoh":1,"ril":1,"rio":1,"rip":1,"rocks":1,"rodeo":1,"rogers":1,"room":1,"rsvp":1,"rugby":1,"ruhr":1,"run":1,"rwe":1,"ryukyu":1,"saarland":1,"safe":1,"safety":1,"sakura":1,"sale":1,"salon":1,"samsclub":1,"samsung":1,"sandvik":1,"sandvikcoromant":1,"sanofi":1,"sap":1,"sarl":1,"sas":1,"save":1,"saxo":1,"sbi":1,"sbs":1,"scb":1,"schaeffler":1,"schmidt":1,"scholarships":1,"school":1,"schule":1,"schwarz":1,"science":1,"scot":1,"search":1,"seat":1,"secure":1,"security":1,"seek":1,"select":1,"sener":1,"services":1,"seven":1,"sew":1,"sex":1,"sexy":1,"sfr":1,"shangrila":1,"sharp":1,"shell":1,"shia":1,"shiksha":1,"shoes":1,"shop":1,"shopping":1,"shouji":1,"show":1,"silk":1,"sina":1,"singles":1,"site":1,"ski":1,"skin":1,"sky":1,"skype":1,"sling":1,"smart":1,"smile":1,"sncf":1,"soccer":1,"social":1,"softbank":1,"software":1,"sohu":1,"solar":1,"solutions":1,"song":1,"sony":1,"soy":1,"spa":1,"space":1,"sport":1,"spot":1,"srl":1,"stada":1,"staples":1,"star":1,"statebank":1,"statefarm":1,"stc":1,"stcgroup":1,"stockholm":1,"storage":1,"store":1,"stream":1,"studio":1,"study":1,"style":1,"sucks":1,"supplies":1,"supply":1,"support":1,"surf":1,"surgery":1,"suzuki":1,"swatch":1,"swiss":1,"sydney":1,"systems":1,"tab":1,"taipei":1,"talk":1,"taobao":1,"target":1,"tatamotors":1,"tatar":1,"tattoo":1,"tax":1,"taxi":1,"tci":1,"tdk":1,"team":1,"tech":1,"technology":1,"temasek":1,"tennis":1,"teva":1,"thd":1,"theater":1,"theatre":1,"tiaa":1,"tickets":1,"tienda":1,"tips":1,"tires":1,"tirol":1,"tjmaxx":1,"tjx":1,"tkmaxx":1,"tmall":1,"today":1,"tokyo":1,"tools":1,"top":1,"toray":1,"toshiba":1,"total":1,"tours":1,"town":1,"toyota":1,"toys":1,"trade":1,"trading":1,"training":1,"travel":1,"travelers":1,"travelersinsurance":1,"trust":1,"trv":1,"tube":1,"tui":1,"tunes":1,"tushu":1,"tvs":1,"ubank":1,"ubs":1,"unicom":1,"university":1,"uno":1,"uol":1,"ups":1,"vacations":1,"vana":1,"vanguard":1,"vegas":1,"ventures":1,"verisign":1,"versicherung":1,"vet":1,"viajes":1,"video":1,"vig":1,"viking":1,"villas":1,"vin":1,"vip":1,"virgin":1,"visa":1,"vision":1,"viva":1,"vivo":1,"vlaanderen":1,"vodka":1,"volvo":1,"vote":1,"voting":1,"voto":1,"voyage":1,"wales":1,"walmart":1,"walter":1,"wang":1,"wanggou":1,"watch":1,"watches":1,"weather":1,"weatherchannel":1,"webcam":1,"weber":1,"website":1,"wed":1,"wedding":1,"weibo":1,"weir":1,"whoswho":1,"wien":1,"wiki":1,"williamhill":1,"win":1,"windows":1,"wine":1,"winners":1,"wme":1,"wolterskluwer":1,"woodside":1,"work":1,"works":1,"world":1,"wow":1,"wtc":1,"wtf":1,"xbox":1,"xerox":1,"xihuan":1,"xin":1,"xn--11b4c3d":1,"xn--1ck2e1b":1,"xn--1qqw23a":1,"xn--30rr7y":1,"xn--3bst00m":1,"xn--3ds443g":1,"xn--3pxu8k":1,"xn--42c2d9a":1,"xn--45q11c":1,"xn--4gbrim":1,"xn--55qw42g":1,"xn--55qx5d":1,"xn--5su34j936bgsg":1,"xn--5tzm5g":1,"xn--6frz82g":1,"xn--6qq986b3xl":1,"xn--80adxhks":1,"xn--80aqecdr1a":1,"xn--80asehdb":1,"xn--80aswg":1,"xn--8y0a063a":1,"xn--9dbq2a":1,"xn--9et52u":1,"xn--9krt00a":1,"xn--b4w605ferd":1,"xn--bck1b9a5dre4c":1,"xn--c1avg":1,"xn--c2br7g":1,"xn--cck2b3b":1,"xn--cckwcxetd":1,"xn--cg4bki":1,"xn--czr694b":1,"xn--czrs0t":1,"xn--czru2d":1,"xn--d1acj3b":1,"xn--eckvdtc9d":1,"xn--efvy88h":1,"xn--fct429k":1,"xn--fhbei":1,"xn--fiq228c5hs":1,"xn--fiq64b":1,"xn--fjq720a":1,"xn--flw351e":1,"xn--fzys8d69uvgm":1,"xn--g2xx48c":1,"xn--gckr3f0f":1,"xn--gk3at1e":1,"xn--hxt814e":1,"xn--i1b6b1a6a2e":1,"xn--imr513n":1,"xn--io0a7i":1,"xn--j1aef":1,"xn--jlq480n2rg":1,"xn--jvr189m":1,"xn--kcrx77d1x4a":1,"xn--kput3i":1,"xn--mgba3a3ejt":1,"xn--mgba7c0bbn0a":1,"xn--mgbab2bd":1,"xn--mgbca7dzdo":1,"xn--mgbi4ecexp":1,"xn--mgbt3dhd":1,"xn--mk1bu44c":1,"xn--mxtq1m":1,"xn--ngbc5azd":1,"xn--ngbe9e0a":1,"xn--ngbrx":1,"xn--nqv7f":1,"xn--nqv7fs00ema":1,"xn--nyqy26a":1,"xn--otu796d":1,"xn--p1acf":1,"xn--pssy2u":1,"xn--q9jyb4c":1,"xn--qcka1pmc":1,"xn--rhqv96g":1,"xn--rovu88b":1,"xn--ses554g":1,"xn--t60b56a":1,"xn--tckwe":1,"xn--tiq49xqyj":1,"xn--unup4y":1,"xn--vermgensberater-ctb":1,"xn--vermgensberatung-pwb":1,"xn--vhquv":1,"xn--vuq861b":1,"xn--w4r85el8fhu5dnra":1,"xn--w4rs40l":1,"xn--xhq521b":1,"xn--zfr164b":1,"xyz":1,"yachts":1,"yahoo":1,"yamaxun":1,"yandex":1,"yodobashi":1,"yoga":1,"yokohama":1,"you":1,"youtube":1,"yun":1,"zappos":1,"zara":1,"zero":1,"zip":1,"zone":1,"zuerich":1},"private":{"co.krd":2,"edu.krd":2,"art.pl":2,"gliwice.pl":2,"krakow.pl":2,"poznan.pl":2,"wroc.pl":2,"zakopane.pl":2,"lib.de.us":3,"12chars.dev":2,"12chars.it":2,"12chars.pro":2,"cc.ua":2,"inf.ua":2,"ltd.ua":2,"611.to":2,"a2hosted.com":2,"cpserver.com":2,"on-acorn.io":3,"activetrail.biz":2,"adaptable.app":2,"myaddr.dev":2,"myaddr.io":2,"dyn.addr.tools":3,"myaddr.tools":2,"adobeaemcloud.com":2,"dev.adobeaemcloud.com":4,"aem.live":2,"hlx.live":2,"adobeaemcloud.net":2,"aem.network":2,"aem.page":2,"hlx.page":2,"aem.reviews":2,"adobeio-static.net":2,"adobeioruntime.net":2,"africa.com":2,"beep.pl":2,"airkitapps.com":2,"airkitapps-au.com":2,"airkitapps.eu":2,"aiven.app":2,"aivencloud.com":2,"akadns.net":2,"akamai.net":2,"akamai-staging.net":2,"akamaiedge.net":2,"akamaiedge-staging.net":2,"akamaihd.net":2,"akamaihd-staging.net":2,"akamaiorigin.net":2,"akamaiorigin-staging.net":2,"akamaized.net":2,"akamaized-staging.net":2,"edgekey.net":2,"edgekey-staging.net":2,"edgesuite.net":2,"edgesuite-staging.net":2,"barsy.ca":2,"compute.estate":3,"alces.network":3,"alibabacloudcs.com":2,"kasserver.com":2,"altervista.org":2,"alwaysdata.net":2,"myamaze.net":2,"execute-api.cn-north-1.amazonaws.com.cn":5,"execute-api.cn-northwest-1.amazonaws.com.cn":5,"execute-api.af-south-1.amazonaws.com":4,"execute-api.ap-east-1.amazonaws.com":4,"execute-api.ap-northeast-1.amazonaws.com":4,"execute-api.ap-northeast-2.amazonaws.com":4,"execute-api.ap-northeast-3.amazonaws.com":4,"execute-api.ap-south-1.amazonaws.com":4,"execute-api.ap-south-2.amazonaws.com":4,"execute-api.ap-southeast-1.amazonaws.com":4,"execute-api.ap-southeast-2.amazonaws.com":4,"execute-api.ap-southeast-3.amazonaws.com":4,"execute-api.ap-southeast-4.amazonaws.com":4,"execute-api.ap-southeast-5.amazonaws.com":4,"execute-api.ca-central-1.amazonaws.com":4,"execute-api.ca-west-1.amazonaws.com":4,"execute-api.eu-central-1.amazonaws.com":4,"execute-api.eu-central-2.amazonaws.com":4,"execute-api.eu-north-1.amazonaws.com":4,"execute-api.eu-south-1.amazonaws.com":4,"execute-api.eu-south-2.amazonaws.com":4,"execute-api.eu-west-1.amazonaws.com":4,"execute-api.eu-west-2.amazonaws.com":4,"execute-api.eu-west-3.amazonaws.com":4,"execute-api.il-central-1.amazonaws.com":4,"execute-api.me-central-1.amazonaws.com":4,"execute-api.me-south-1.amazonaws.com":4,"execute-api.sa-east-1.amazonaws.com":4,"execute-api.us-east-1.amazonaws.com":4,"execute-api.us-east-2.amazonaws.com":4,"execute-api.us-gov-east-1.amazonaws.com":4,"execute-api.us-gov-west-1.amazonaws.com":4,"execute-api.us-west-1.amazonaws.com":4,"execute-api.us-west-2.amazonaws.com":4,"cloudfront.net":2,"auth.af-south-1.amazoncognito.com":4,"auth.ap-east-1.amazoncognito.com":4,"auth.ap-northeast-1.amazoncognito.com":4,"auth.ap-northeast-2.amazoncognito.com":4,"auth.ap-northeast-3.amazoncognito.com":4,"auth.ap-south-1.amazoncognito.com":4,"auth.ap-south-2.amazoncognito.com":4,"auth.ap-southeast-1.amazoncognito.com":4,"auth.ap-southeast-2.amazoncognito.com":4,"auth.ap-southeast-3.amazoncognito.com":4,"auth.ap-southeast-4.amazoncognito.com":4,"auth.ap-southeast-5.amazoncognito.com":4,"auth.ca-central-1.amazoncognito.com":4,"auth.ca-west-1.amazoncognito.com":4,"auth.eu-central-1.amazoncognito.com":4,"auth.eu-central-2.amazoncognito.com":4,"auth.eu-north-1.amazoncognito.com":4,"auth.eu-south-1.amazoncognito.com":4,"auth.eu-south-2.amazoncognito.com":4,"auth.eu-west-1.amazoncognito.com":4,"auth.eu-west-2.amazoncognito.com":4,"auth.eu-west-3.amazoncognito.com":4,"auth.il-central-1.amazoncognito.com":4,"auth.me-central-1.amazoncognito.com":4,"auth.me-south-1.amazoncognito.com":4,"auth.sa-east-1.amazoncognito.com":4,"auth.us-east-1.amazoncognito.com":4,"auth-fips.us-east-1.amazoncognito.com":4,"auth.us-east-2.amazoncognito.com":4,"auth-fips.us-east-2.amazoncognito.com":4,"auth-fips.us-gov-east-1.amazoncognito.com":4,"auth-fips.us-gov-west-1.amazoncognito.com":4,"auth.us-west-1.amazoncognito.com":4,"auth-fips.us-west-1.amazoncognito.com":4,"auth.us-west-2.amazoncognito.com":4,"auth-fips.us-west-2.amazoncognito.com":4,"compute.amazonaws.com.cn":5,"compute.amazonaws.com":4,"compute-1.amazonaws.com":4,"us-east-1.amazonaws.com":3,"emrappui-prod.cn-north-1.amazonaws.com.cn":5,"emrnotebooks-prod.cn-north-1.amazonaws.com.cn":5,"emrstudio-prod.cn-north-1.amazonaws.com.cn":5,"emrappui-prod.cn-northwest-1.amazonaws.com.cn":5,"emrnotebooks-prod.cn-northwest-1.amazonaws.com.cn":5,"emrstudio-prod.cn-northwest-1.amazonaws.com.cn":5,"emrappui-prod.af-south-1.amazonaws.com":4,"emrnotebooks-prod.af-south-1.amazonaws.com":4,"emrstudio-prod.af-south-1.amazonaws.com":4,"emrappui-prod.ap-east-1.amazonaws.com":4,"emrnotebooks-prod.ap-east-1.amazonaws.com":4,"emrstudio-prod.ap-east-1.amazonaws.com":4,"emrappui-prod.ap-northeast-1.amazonaws.com":4,"emrnotebooks-prod.ap-northeast-1.amazonaws.com":4,"emrstudio-prod.ap-northeast-1.amazonaws.com":4,"emrappui-prod.ap-northeast-2.amazonaws.com":4,"emrnotebooks-prod.ap-northeast-2.amazonaws.com":4,"emrstudio-prod.ap-northeast-2.amazonaws.com":4,"emrappui-prod.ap-northeast-3.amazonaws.com":4,"emrnotebooks-prod.ap-northeast-3.amazonaws.com":4,"emrstudio-prod.ap-northeast-3.amazonaws.com":4,"emrappui-prod.ap-south-1.amazonaws.com":4,"emrnotebooks-prod.ap-south-1.amazonaws.com":4,"emrstudio-prod.ap-south-1.amazonaws.com":4,"emrappui-prod.ap-south-2.amazonaws.com":4,"emrnotebooks-prod.ap-south-2.amazonaws.com":4,"emrstudio-prod.ap-south-2.amazonaws.com":4,"emrappui-prod.ap-southeast-1.amazonaws.com":4,"emrnotebooks-prod.ap-southeast-1.amazonaws.com":4,"emrstudio-prod.ap-southeast-1.amazonaws.com":4,"emrappui-prod.ap-southeast-2.amazonaws.com":4,"emrnotebooks-prod.ap-southeast-2.amazonaws.com":4,"emrstudio-prod.ap-southeast-2.amazonaws.com":4,"emrappui-prod.ap-southeast-3.amazonaws.com":4,"emrnotebooks-prod.ap-southeast-3.amazonaws.com":4,"emrstudio-prod.ap-southeast-3.amazonaws.com":4,"emrappui-prod.ap-southeast-4.amazonaws.com":4,"emrnotebooks-prod.ap-southeast-4.amazonaws.com":4,"emrstudio-prod.ap-southeast-4.amazonaws.com":4,"emrappui-prod.ca-central-1.amazonaws.com":4,"emrnotebooks-prod.ca-central-1.amazonaws.com":4,"emrstudio-prod.ca-central-1.amazonaws.com":4,"emrappui-prod.ca-west-1.amazonaws.com":4,"emrnotebooks-prod.ca-west-1.amazonaws.com":4,"emrstudio-prod.ca-west-1.amazonaws.com":4,"emrappui-prod.eu-central-1.amazonaws.com":4,"emrnotebooks-prod.eu-central-1.amazonaws.com":4,"emrstudio-prod.eu-central-1.amazonaws.com":4,"emrappui-prod.eu-central-2.amazonaws.com":4,"emrnotebooks-prod.eu-central-2.amazonaws.com":4,"emrstudio-prod.eu-central-2.amazonaws.com":4,"emrappui-prod.eu-north-1.amazonaws.com":4,"emrnotebooks-prod.eu-north-1.amazonaws.com":4,"emrstudio-prod.eu-north-1.amazonaws.com":4,"emrappui-prod.eu-south-1.amazonaws.com":4,"emrnotebooks-prod.eu-south-1.amazonaws.com":4,"emrstudio-prod.eu-south-1.amazonaws.com":4,"emrappui-prod.eu-south-2.amazonaws.com":4,"emrnotebooks-prod.eu-south-2.amazonaws.com":4,"emrstudio-prod.eu-south-2.amazonaws.com":4,"emrappui-prod.eu-west-1.amazonaws.com":4,"emrnotebooks-prod.eu-west-1.amazonaws.com":4,"emrstudio-prod.eu-west-1.amazonaws.com":4,"emrappui-prod.eu-west-2.amazonaws.com":4,"emrnotebooks-prod.eu-west-2.amazonaws.com":4,"emrstudio-prod.eu-west-2.amazonaws.com":4,"emrappui-prod.eu-west-3.amazonaws.com":4,"emrnotebooks-prod.eu-west-3.amazonaws.com":4,"emrstudio-prod.eu-west-3.amazonaws.com":4,"emrappui-prod.il-central-1.amazonaws.com":4,"emrnotebooks-prod.il-central-1.amazonaws.com":4,"emrstudio-prod.il-central-1.amazonaws.com":4,"emrappui-prod.me-central-1.amazonaws.com":4,"emrnotebooks-prod.me-central-1.amazonaws.com":4,"emrstudio-prod.me-central-1.amazonaws.com":4,"emrappui-prod.me-south-1.amazonaws.com":4,"emrnotebooks-prod.me-south-1.amazonaws.com":4,"emrstudio-prod.me-south-1.amazonaws.com":4,"emrappui-prod.sa-east-1.amazonaws.com":4,"emrnotebooks-prod.sa-east-1.amazonaws.com":4,"emrstudio-prod.sa-east-1.amazonaws.com":4,"emrappui-prod.us-east-1.amazonaws.com":4,"emrnotebooks-prod.us-east-1.amazonaws.com":4,"emrstudio-prod.us-east-1.amazonaws.com":4,"emrappui-prod.us-east-2.amazonaws.com":4,"emrnotebooks-prod.us-east-2.amazonaws.com":4,"emrstudio-prod.us-east-2.amazonaws.com":4,"emrappui-prod.us-gov-east-1.amazonaws.com":4,"emrnotebooks-prod.us-gov-east-1.amazonaws.com":4,"emrstudio-prod.us-gov-east-1.amazonaws.com":4,"emrappui-prod.us-gov-west-1.amazonaws.com":4,"emrnotebooks-prod.us-gov-west-1.amazonaws.com":4,"emrstudio-prod.us-gov-west-1.amazonaws.com":4,"emrappui-prod.us-west-1.amazonaws.com":4,"emrnotebooks-prod.us-west-1.amazonaws.com":4,"emrstudio-prod.us-west-1.amazonaws.com":4,"emrappui-prod.us-west-2.amazonaws.com":4,"emrnotebooks-prod.us-west-2.amazonaws.com":4,"emrstudio-prod.us-west-2.amazonaws.com":4,"cn-north-1.airflow.amazonaws.com.cn":6,"cn-northwest-1.airflow.amazonaws.com.cn":6,"af-south-1.airflow.amazonaws.com":5,"ap-east-1.airflow.amazonaws.com":5,"ap-northeast-1.airflow.amazonaws.com":5,"ap-northeast-2.airflow.amazonaws.com":5,"ap-northeast-3.airflow.amazonaws.com":5,"ap-south-1.airflow.amazonaws.com":5,"ap-south-2.airflow.amazonaws.com":5,"ap-southeast-1.airflow.amazonaws.com":5,"ap-southeast-2.airflow.amazonaws.com":5,"ap-southeast-3.airflow.amazonaws.com":5,"ap-southeast-4.airflow.amazonaws.com":5,"ca-central-1.airflow.amazonaws.com":5,"ca-west-1.airflow.amazonaws.com":5,"eu-central-1.airflow.amazonaws.com":5,"eu-central-2.airflow.amazonaws.com":5,"eu-north-1.airflow.amazonaws.com":5,"eu-south-1.airflow.amazonaws.com":5,"eu-south-2.airflow.amazonaws.com":5,"eu-west-1.airflow.amazonaws.com":5,"eu-west-2.airflow.amazonaws.com":5,"eu-west-3.airflow.amazonaws.com":5,"il-central-1.airflow.amazonaws.com":5,"me-central-1.airflow.amazonaws.com":5,"me-south-1.airflow.amazonaws.com":5,"sa-east-1.airflow.amazonaws.com":5,"us-east-1.airflow.amazonaws.com":5,"us-east-2.airflow.amazonaws.com":5,"us-west-1.airflow.amazonaws.com":5,"us-west-2.airflow.amazonaws.com":5,"s3.dualstack.cn-north-1.amazonaws.com.cn":6,"s3-accesspoint.dualstack.cn-north-1.amazonaws.com.cn":6,"s3-website.dualstack.cn-north-1.amazonaws.com.cn":6,"s3.cn-north-1.amazonaws.com.cn":5,"s3-accesspoint.cn-north-1.amazonaws.com.cn":5,"s3-deprecated.cn-north-1.amazonaws.com.cn":5,"s3-object-lambda.cn-north-1.amazonaws.com.cn":5,"s3-website.cn-north-1.amazonaws.com.cn":5,"s3.dualstack.cn-northwest-1.amazonaws.com.cn":6,"s3-accesspoint.dualstack.cn-northwest-1.amazonaws.com.cn":6,"s3.cn-northwest-1.amazonaws.com.cn":5,"s3-accesspoint.cn-northwest-1.amazonaws.com.cn":5,"s3-object-lambda.cn-northwest-1.amazonaws.com.cn":5,"s3-website.cn-northwest-1.amazonaws.com.cn":5,"s3.dualstack.af-south-1.amazonaws.com":5,"s3-accesspoint.dualstack.af-south-1.amazonaws.com":5,"s3-website.dualstack.af-south-1.amazonaws.com":5,"s3.af-south-1.amazonaws.com":4,"s3-accesspoint.af-south-1.amazonaws.com":4,"s3-object-lambda.af-south-1.amazonaws.com":4,"s3-website.af-south-1.amazonaws.com":4,"s3.dualstack.ap-east-1.amazonaws.com":5,"s3-accesspoint.dualstack.ap-east-1.amazonaws.com":5,"s3.ap-east-1.amazonaws.com":4,"s3-accesspoint.ap-east-1.amazonaws.com":4,"s3-object-lambda.ap-east-1.amazonaws.com":4,"s3-website.ap-east-1.amazonaws.com":4,"s3.dualstack.ap-northeast-1.amazonaws.com":5,"s3-accesspoint.dualstack.ap-northeast-1.amazonaws.com":5,"s3-website.dualstack.ap-northeast-1.amazonaws.com":5,"s3.ap-northeast-1.amazonaws.com":4,"s3-accesspoint.ap-northeast-1.amazonaws.com":4,"s3-object-lambda.ap-northeast-1.amazonaws.com":4,"s3-website.ap-northeast-1.amazonaws.com":4,"s3.dualstack.ap-northeast-2.amazonaws.com":5,"s3-accesspoint.dualstack.ap-northeast-2.amazonaws.com":5,"s3-website.dualstack.ap-northeast-2.amazonaws.com":5,"s3.ap-northeast-2.amazonaws.com":4,"s3-accesspoint.ap-northeast-2.amazonaws.com":4,"s3-object-lambda.ap-northeast-2.amazonaws.com":4,"s3-website.ap-northeast-2.amazonaws.com":4,"s3.dualstack.ap-northeast-3.amazonaws.com":5,"s3-accesspoint.dualstack.ap-northeast-3.amazonaws.com":5,"s3-website.dualstack.ap-northeast-3.amazonaws.com":5,"s3.ap-northeast-3.amazonaws.com":4,"s3-accesspoint.ap-northeast-3.amazonaws.com":4,"s3-object-lambda.ap-northeast-3.amazonaws.com":4,"s3-website.ap-northeast-3.amazonaws.com":4,"s3.dualstack.ap-south-1.amazonaws.com":5,"s3-accesspoint.dualstack.ap-south-1.amazonaws.com":5,"s3-website.dualstack.ap-south-1.amazonaws.com":5,"s3.ap-south-1.amazonaws.com":4,"s3-accesspoint.ap-south-1.amazonaws.com":4,"s3-object-lambda.ap-south-1.amazonaws.com":4,"s3-website.ap-south-1.amazonaws.com":4,"s3.dualstack.ap-south-2.amazonaws.com":5,"s3-accesspoint.dualstack.ap-south-2.amazonaws.com":5,"s3-website.dualstack.ap-south-2.amazonaws.com":5,"s3.ap-south-2.amazonaws.com":4,"s3-accesspoint.ap-south-2.amazonaws.com":4,"s3-object-lambda.ap-south-2.amazonaws.com":4,"s3-website.ap-south-2.amazonaws.com":4,"s3.dualstack.ap-southeast-1.amazonaws.com":5,"s3-accesspoint.dualstack.ap-southeast-1.amazonaws.com":5,"s3-website.dualstack.ap-southeast-1.amazonaws.com":5,"s3.ap-southeast-1.amazonaws.com":4,"s3-accesspoint.ap-southeast-1.amazonaws.com":4,"s3-object-lambda.ap-southeast-1.amazonaws.com":4,"s3-website.ap-southeast-1.amazonaws.com":4,"s3.dualstack.ap-southeast-2.amazonaws.com":5,"s3-accesspoint.dualstack.ap-southeast-2.amazonaws.com":5,"s3-website.dualstack.ap-southeast-2.amazonaws.com":5,"s3.ap-southeast-2.amazonaws.com":4,"s3-accesspoint.ap-southeast-2.amazonaws.com":4,"s3-object-lambda.ap-southeast-2.amazonaws.com":4,"s3-website.ap-southeast-2.amazonaws.com":4,"s3.dualstack.ap-southeast-3.amazonaws.com":5,"s3-accesspoint.dualstack.ap-southeast-3.amazonaws.com":5,"s3-website.dualstack.ap-southeast-3.amazonaws.com":5,"s3.ap-southeast-3.amazonaws.com":4,"s3-accesspoint.ap-southeast-3.amazonaws.com":4,"s3-object-lambda.ap-southeast-3.amazonaws.com":4,"s3-website.ap-southeast-3.amazonaws.com":4,"s3.dualstack.ap-southeast-4.amazonaws.com":5,"s3-accesspoint.dualstack.ap-southeast-4.amazonaws.com":5,"s3-website.dualstack.ap-southeast-4.amazonaws.com":5,"s3.ap-southeast-4.amazonaws.com":4,"s3-accesspoint.ap-southeast-4.amazonaws.com":4,"s3-object-lambda.ap-southeast-4.amazonaws.com":4,"s3-website.ap-southeast-4.amazonaws.com":4,"s3.dualstack.ap-southeast-5.amazonaws.com":5,"s3-accesspoint.dualstack.ap-southeast-5.amazonaws.com":5,"s3-website.dualstack.ap-southeast-5.amazonaws.com":5,"s3.ap-southeast-5.amazonaws.com":4,"s3-accesspoint.ap-southeast-5.amazonaws.com":4,"s3-deprecated.ap-southeast-5.amazonaws.com":4,"s3-object-lambda.ap-southeast-5.amazonaws.com":4,"s3-website.ap-southeast-5.amazonaws.com":4,"s3.dualstack.ca-central-1.amazonaws.com":5,"s3-accesspoint.dualstack.ca-central-1.amazonaws.com":5,"s3-accesspoint-fips.dualstack.ca-central-1.amazonaws.com":5,"s3-fips.dualstack.ca-central-1.amazonaws.com":5,"s3-website.dualstack.ca-central-1.amazonaws.com":5,"s3.ca-central-1.amazonaws.com":4,"s3-accesspoint.ca-central-1.amazonaws.com":4,"s3-accesspoint-fips.ca-central-1.amazonaws.com":4,"s3-fips.ca-central-1.amazonaws.com":4,"s3-object-lambda.ca-central-1.amazonaws.com":4,"s3-website.ca-central-1.amazonaws.com":4,"s3.dualstack.ca-west-1.amazonaws.com":5,"s3-accesspoint.dualstack.ca-west-1.amazonaws.com":5,"s3-accesspoint-fips.dualstack.ca-west-1.amazonaws.com":5,"s3-fips.dualstack.ca-west-1.amazonaws.com":5,"s3-website.dualstack.ca-west-1.amazonaws.com":5,"s3.ca-west-1.amazonaws.com":4,"s3-accesspoint.ca-west-1.amazonaws.com":4,"s3-accesspoint-fips.ca-west-1.amazonaws.com":4,"s3-fips.ca-west-1.amazonaws.com":4,"s3-object-lambda.ca-west-1.amazonaws.com":4,"s3-website.ca-west-1.amazonaws.com":4,"s3.dualstack.eu-central-1.amazonaws.com":5,"s3-accesspoint.dualstack.eu-central-1.amazonaws.com":5,"s3-website.dualstack.eu-central-1.amazonaws.com":5,"s3.eu-central-1.amazonaws.com":4,"s3-accesspoint.eu-central-1.amazonaws.com":4,"s3-object-lambda.eu-central-1.amazonaws.com":4,"s3-website.eu-central-1.amazonaws.com":4,"s3.dualstack.eu-central-2.amazonaws.com":5,"s3-accesspoint.dualstack.eu-central-2.amazonaws.com":5,"s3-website.dualstack.eu-central-2.amazonaws.com":5,"s3.eu-central-2.amazonaws.com":4,"s3-accesspoint.eu-central-2.amazonaws.com":4,"s3-object-lambda.eu-central-2.amazonaws.com":4,"s3-website.eu-central-2.amazonaws.com":4,"s3.dualstack.eu-north-1.amazonaws.com":5,"s3-accesspoint.dualstack.eu-north-1.amazonaws.com":5,"s3.eu-north-1.amazonaws.com":4,"s3-accesspoint.eu-north-1.amazonaws.com":4,"s3-object-lambda.eu-north-1.amazonaws.com":4,"s3-website.eu-north-1.amazonaws.com":4,"s3.dualstack.eu-south-1.amazonaws.com":5,"s3-accesspoint.dualstack.eu-south-1.amazonaws.com":5,"s3-website.dualstack.eu-south-1.amazonaws.com":5,"s3.eu-south-1.amazonaws.com":4,"s3-accesspoint.eu-south-1.amazonaws.com":4,"s3-object-lambda.eu-south-1.amazonaws.com":4,"s3-website.eu-south-1.amazonaws.com":4,"s3.dualstack.eu-south-2.amazonaws.com":5,"s3-accesspoint.dualstack.eu-south-2.amazonaws.com":5,"s3-website.dualstack.eu-south-2.amazonaws.com":5,"s3.eu-south-2.amazonaws.com":4,"s3-accesspoint.eu-south-2.amazonaws.com":4,"s3-object-lambda.eu-south-2.amazonaws.com":4,"s3-website.eu-south-2.amazonaws.com":4,"s3.dualstack.eu-west-1.amazonaws.com":5,"s3-accesspoint.dualstack.eu-west-1.amazonaws.com":5,"s3-website.dualstack.eu-west-1.amazonaws.com":5,"s3.eu-west-1.amazonaws.com":4,"s3-accesspoint.eu-west-1.amazonaws.com":4,"s3-deprecated.eu-west-1.amazonaws.com":4,"s3-object-lambda.eu-west-1.amazonaws.com":4,"s3-website.eu-west-1.amazonaws.com":4,"s3.dualstack.eu-west-2.amazonaws.com":5,"s3-accesspoint.dualstack.eu-west-2.amazonaws.com":5,"s3.eu-west-2.amazonaws.com":4,"s3-accesspoint.eu-west-2.amazonaws.com":4,"s3-object-lambda.eu-west-2.amazonaws.com":4,"s3-website.eu-west-2.amazonaws.com":4,"s3.dualstack.eu-west-3.amazonaws.com":5,"s3-accesspoint.dualstack.eu-west-3.amazonaws.com":5,"s3-website.dualstack.eu-west-3.amazonaws.com":5,"s3.eu-west-3.amazonaws.com":4,"s3-accesspoint.eu-west-3.amazonaws.com":4,"s3-object-lambda.eu-west-3.amazonaws.com":4,"s3-website.eu-west-3.amazonaws.com":4,"s3.dualstack.il-central-1.amazonaws.com":5,"s3-accesspoint.dualstack.il-central-1.amazonaws.com":5,"s3-website.dualstack.il-central-1.amazonaws.com":5,"s3.il-central-1.amazonaws.com":4,"s3-accesspoint.il-central-1.amazonaws.com":4,"s3-object-lambda.il-central-1.amazonaws.com":4,"s3-website.il-central-1.amazonaws.com":4,"s3.dualstack.me-central-1.amazonaws.com":5,"s3-accesspoint.dualstack.me-central-1.amazonaws.com":5,"s3-website.dualstack.me-central-1.amazonaws.com":5,"s3.me-central-1.amazonaws.com":4,"s3-accesspoint.me-central-1.amazonaws.com":4,"s3-object-lambda.me-central-1.amazonaws.com":4,"s3-website.me-central-1.amazonaws.com":4,"s3.dualstack.me-south-1.amazonaws.com":5,"s3-accesspoint.dualstack.me-south-1.amazonaws.com":5,"s3.me-south-1.amazonaws.com":4,"s3-accesspoint.me-south-1.amazonaws.com":4,"s3-object-lambda.me-south-1.amazonaws.com":4,"s3-website.me-south-1.amazonaws.com":4,"s3.amazonaws.com":3,"s3-1.amazonaws.com":3,"s3-ap-east-1.amazonaws.com":3,"s3-ap-northeast-1.amazonaws.com":3,"s3-ap-northeast-2.amazonaws.com":3,"s3-ap-northeast-3.amazonaws.com":3,"s3-ap-south-1.amazonaws.com":3,"s3-ap-southeast-1.amazonaws.com":3,"s3-ap-southeast-2.amazonaws.com":3,"s3-ca-central-1.amazonaws.com":3,"s3-eu-central-1.amazonaws.com":3,"s3-eu-north-1.amazonaws.com":3,"s3-eu-west-1.amazonaws.com":3,"s3-eu-west-2.amazonaws.com":3,"s3-eu-west-3.amazonaws.com":3,"s3-external-1.amazonaws.com":3,"s3-fips-us-gov-east-1.amazonaws.com":3,"s3-fips-us-gov-west-1.amazonaws.com":3,"mrap.accesspoint.s3-global.amazonaws.com":5,"s3-me-south-1.amazonaws.com":3,"s3-sa-east-1.amazonaws.com":3,"s3-us-east-2.amazonaws.com":3,"s3-us-gov-east-1.amazonaws.com":3,"s3-us-gov-west-1.amazonaws.com":3,"s3-us-west-1.amazonaws.com":3,"s3-us-west-2.amazonaws.com":3,"s3-website-ap-northeast-1.amazonaws.com":3,"s3-website-ap-southeast-1.amazonaws.com":3,"s3-website-ap-southeast-2.amazonaws.com":3,"s3-website-eu-west-1.amazonaws.com":3,"s3-website-sa-east-1.amazonaws.com":3,"s3-website-us-east-1.amazonaws.com":3,"s3-website-us-gov-west-1.amazonaws.com":3,"s3-website-us-west-1.amazonaws.com":3,"s3-website-us-west-2.amazonaws.com":3,"s3.dualstack.sa-east-1.amazonaws.com":5,"s3-accesspoint.dualstack.sa-east-1.amazonaws.com":5,"s3-website.dualstack.sa-east-1.amazonaws.com":5,"s3.sa-east-1.amazonaws.com":4,"s3-accesspoint.sa-east-1.amazonaws.com":4,"s3-object-lambda.sa-east-1.amazonaws.com":4,"s3-website.sa-east-1.amazonaws.com":4,"s3.dualstack.us-east-1.amazonaws.com":5,"s3-accesspoint.dualstack.us-east-1.amazonaws.com":5,"s3-accesspoint-fips.dualstack.us-east-1.amazonaws.com":5,"s3-fips.dualstack.us-east-1.amazonaws.com":5,"s3-website.dualstack.us-east-1.amazonaws.com":5,"s3.us-east-1.amazonaws.com":4,"s3-accesspoint.us-east-1.amazonaws.com":4,"s3-accesspoint-fips.us-east-1.amazonaws.com":4,"s3-deprecated.us-east-1.amazonaws.com":4,"s3-fips.us-east-1.amazonaws.com":4,"s3-object-lambda.us-east-1.amazonaws.com":4,"s3-website.us-east-1.amazonaws.com":4,"s3.dualstack.us-east-2.amazonaws.com":5,"s3-accesspoint.dualstack.us-east-2.amazonaws.com":5,"s3-accesspoint-fips.dualstack.us-east-2.amazonaws.com":5,"s3-fips.dualstack.us-east-2.amazonaws.com":5,"s3-website.dualstack.us-east-2.amazonaws.com":5,"s3.us-east-2.amazonaws.com":4,"s3-accesspoint.us-east-2.amazonaws.com":4,"s3-accesspoint-fips.us-east-2.amazonaws.com":4,"s3-deprecated.us-east-2.amazonaws.com":4,"s3-fips.us-east-2.amazonaws.com":4,"s3-object-lambda.us-east-2.amazonaws.com":4,"s3-website.us-east-2.amazonaws.com":4,"s3.dualstack.us-gov-east-1.amazonaws.com":5,"s3-accesspoint.dualstack.us-gov-east-1.amazonaws.com":5,"s3-accesspoint-fips.dualstack.us-gov-east-1.amazonaws.com":5,"s3-fips.dualstack.us-gov-east-1.amazonaws.com":5,"s3.us-gov-east-1.amazonaws.com":4,"s3-accesspoint.us-gov-east-1.amazonaws.com":4,"s3-accesspoint-fips.us-gov-east-1.amazonaws.com":4,"s3-fips.us-gov-east-1.amazonaws.com":4,"s3-object-lambda.us-gov-east-1.amazonaws.com":4,"s3-website.us-gov-east-1.amazonaws.com":4,"s3.dualstack.us-gov-west-1.amazonaws.com":5,"s3-accesspoint.dualstack.us-gov-west-1.amazonaws.com":5,"s3-accesspoint-fips.dualstack.us-gov-west-1.amazonaws.com":5,"s3-fips.dualstack.us-gov-west-1.amazonaws.com":5,"s3.us-gov-west-1.amazonaws.com":4,"s3-accesspoint.us-gov-west-1.amazonaws.com":4,"s3-accesspoint-fips.us-gov-west-1.amazonaws.com":4,"s3-fips.us-gov-west-1.amazonaws.com":4,"s3-object-lambda.us-gov-west-1.amazonaws.com":4,"s3-website.us-gov-west-1.amazonaws.com":4,"s3.dualstack.us-west-1.amazonaws.com":5,"s3-accesspoint.dualstack.us-west-1.amazonaws.com":5,"s3-accesspoint-fips.dualstack.us-west-1.amazonaws.com":5,"s3-fips.dualstack.us-west-1.amazonaws.com":5,"s3-website.dualstack.us-west-1.amazonaws.com":5,"s3.us-west-1.amazonaws.com":4,"s3-accesspoint.us-west-1.amazonaws.com":4,"s3-accesspoint-fips.us-west-1.amazonaws.com":4,"s3-fips.us-west-1.amazonaws.com":4,"s3-object-lambda.us-west-1.amazonaws.com":4,"s3-website.us-west-1.amazonaws.com":4,"s3.dualstack.us-west-2.amazonaws.com":5,"s3-accesspoint.dualstack.us-west-2.amazonaws.com":5,"s3-accesspoint-fips.dualstack.us-west-2.amazonaws.com":5,"s3-fips.dualstack.us-west-2.amazonaws.com":5,"s3-website.dualstack.us-west-2.amazonaws.com":5,"s3.us-west-2.amazonaws.com":4,"s3-accesspoint.us-west-2.amazonaws.com":4,"s3-accesspoint-fips.us-west-2.amazonaws.com":4,"s3-deprecated.us-west-2.amazonaws.com":4,"s3-fips.us-west-2.amazonaws.com":4,"s3-object-lambda.us-west-2.amazonaws.com":4,"s3-website.us-west-2.amazonaws.com":4,"labeling.ap-northeast-1.sagemaker.aws":4,"labeling.ap-northeast-2.sagemaker.aws":4,"labeling.ap-south-1.sagemaker.aws":4,"labeling.ap-southeast-1.sagemaker.aws":4,"labeling.ap-southeast-2.sagemaker.aws":4,"labeling.ca-central-1.sagemaker.aws":4,"labeling.eu-central-1.sagemaker.aws":4,"labeling.eu-west-1.sagemaker.aws":4,"labeling.eu-west-2.sagemaker.aws":4,"labeling.us-east-1.sagemaker.aws":4,"labeling.us-east-2.sagemaker.aws":4,"labeling.us-west-2.sagemaker.aws":4,"notebook.af-south-1.sagemaker.aws":4,"notebook.ap-east-1.sagemaker.aws":4,"notebook.ap-northeast-1.sagemaker.aws":4,"notebook.ap-northeast-2.sagemaker.aws":4,"notebook.ap-northeast-3.sagemaker.aws":4,"notebook.ap-south-1.sagemaker.aws":4,"notebook.ap-south-2.sagemaker.aws":4,"notebook.ap-southeast-1.sagemaker.aws":4,"notebook.ap-southeast-2.sagemaker.aws":4,"notebook.ap-southeast-3.sagemaker.aws":4,"notebook.ap-southeast-4.sagemaker.aws":4,"notebook.ca-central-1.sagemaker.aws":4,"notebook-fips.ca-central-1.sagemaker.aws":4,"notebook.ca-west-1.sagemaker.aws":4,"notebook-fips.ca-west-1.sagemaker.aws":4,"notebook.eu-central-1.sagemaker.aws":4,"notebook.eu-central-2.sagemaker.aws":4,"notebook.eu-north-1.sagemaker.aws":4,"notebook.eu-south-1.sagemaker.aws":4,"notebook.eu-south-2.sagemaker.aws":4,"notebook.eu-west-1.sagemaker.aws":4,"notebook.eu-west-2.sagemaker.aws":4,"notebook.eu-west-3.sagemaker.aws":4,"notebook.il-central-1.sagemaker.aws":4,"notebook.me-central-1.sagemaker.aws":4,"notebook.me-south-1.sagemaker.aws":4,"notebook.sa-east-1.sagemaker.aws":4,"notebook.us-east-1.sagemaker.aws":4,"notebook-fips.us-east-1.sagemaker.aws":4,"notebook.us-east-2.sagemaker.aws":4,"notebook-fips.us-east-2.sagemaker.aws":4,"notebook.us-gov-east-1.sagemaker.aws":4,"notebook-fips.us-gov-east-1.sagemaker.aws":4,"notebook.us-gov-west-1.sagemaker.aws":4,"notebook-fips.us-gov-west-1.sagemaker.aws":4,"notebook.us-west-1.sagemaker.aws":4,"notebook-fips.us-west-1.sagemaker.aws":4,"notebook.us-west-2.sagemaker.aws":4,"notebook-fips.us-west-2.sagemaker.aws":4,"notebook.cn-north-1.sagemaker.com.cn":5,"notebook.cn-northwest-1.sagemaker.com.cn":5,"studio.af-south-1.sagemaker.aws":4,"studio.ap-east-1.sagemaker.aws":4,"studio.ap-northeast-1.sagemaker.aws":4,"studio.ap-northeast-2.sagemaker.aws":4,"studio.ap-northeast-3.sagemaker.aws":4,"studio.ap-south-1.sagemaker.aws":4,"studio.ap-southeast-1.sagemaker.aws":4,"studio.ap-southeast-2.sagemaker.aws":4,"studio.ap-southeast-3.sagemaker.aws":4,"studio.ca-central-1.sagemaker.aws":4,"studio.eu-central-1.sagemaker.aws":4,"studio.eu-central-2.sagemaker.aws":4,"studio.eu-north-1.sagemaker.aws":4,"studio.eu-south-1.sagemaker.aws":4,"studio.eu-south-2.sagemaker.aws":4,"studio.eu-west-1.sagemaker.aws":4,"studio.eu-west-2.sagemaker.aws":4,"studio.eu-west-3.sagemaker.aws":4,"studio.il-central-1.sagemaker.aws":4,"studio.me-central-1.sagemaker.aws":4,"studio.me-south-1.sagemaker.aws":4,"studio.sa-east-1.sagemaker.aws":4,"studio.us-east-1.sagemaker.aws":4,"studio.us-east-2.sagemaker.aws":4,"studio.us-gov-east-1.sagemaker.aws":4,"studio-fips.us-gov-east-1.sagemaker.aws":4,"studio.us-gov-west-1.sagemaker.aws":4,"studio-fips.us-gov-west-1.sagemaker.aws":4,"studio.us-west-1.sagemaker.aws":4,"studio.us-west-2.sagemaker.aws":4,"studio.cn-north-1.sagemaker.com.cn":5,"studio.cn-northwest-1.sagemaker.com.cn":5,"experiments.sagemaker.aws":4,"analytics-gateway.ap-northeast-1.amazonaws.com":4,"analytics-gateway.ap-northeast-2.amazonaws.com":4,"analytics-gateway.ap-south-1.amazonaws.com":4,"analytics-gateway.ap-southeast-1.amazonaws.com":4,"analytics-gateway.ap-southeast-2.amazonaws.com":4,"analytics-gateway.eu-central-1.amazonaws.com":4,"analytics-gateway.eu-west-1.amazonaws.com":4,"analytics-gateway.us-east-1.amazonaws.com":4,"analytics-gateway.us-east-2.amazonaws.com":4,"analytics-gateway.us-west-2.amazonaws.com":4,"amplifyapp.com":2,"awsapprunner.com":3,"webview-assets.aws-cloud9.af-south-1.amazonaws.com":5,"vfs.cloud9.af-south-1.amazonaws.com":5,"webview-assets.cloud9.af-south-1.amazonaws.com":5,"webview-assets.aws-cloud9.ap-east-1.amazonaws.com":5,"vfs.cloud9.ap-east-1.amazonaws.com":5,"webview-assets.cloud9.ap-east-1.amazonaws.com":5,"webview-assets.aws-cloud9.ap-northeast-1.amazonaws.com":5,"vfs.cloud9.ap-northeast-1.amazonaws.com":5,"webview-assets.cloud9.ap-northeast-1.amazonaws.com":5,"webview-assets.aws-cloud9.ap-northeast-2.amazonaws.com":5,"vfs.cloud9.ap-northeast-2.amazonaws.com":5,"webview-assets.cloud9.ap-northeast-2.amazonaws.com":5,"webview-assets.aws-cloud9.ap-northeast-3.amazonaws.com":5,"vfs.cloud9.ap-northeast-3.amazonaws.com":5,"webview-assets.cloud9.ap-northeast-3.amazonaws.com":5,"webview-assets.aws-cloud9.ap-south-1.amazonaws.com":5,"vfs.cloud9.ap-south-1.amazonaws.com":5,"webview-assets.cloud9.ap-south-1.amazonaws.com":5,"webview-assets.aws-cloud9.ap-southeast-1.amazonaws.com":5,"vfs.cloud9.ap-southeast-1.amazonaws.com":5,"webview-assets.cloud9.ap-southeast-1.amazonaws.com":5,"webview-assets.aws-cloud9.ap-southeast-2.amazonaws.com":5,"vfs.cloud9.ap-southeast-2.amazonaws.com":5,"webview-assets.cloud9.ap-southeast-2.amazonaws.com":5,"webview-assets.aws-cloud9.ca-central-1.amazonaws.com":5,"vfs.cloud9.ca-central-1.amazonaws.com":5,"webview-assets.cloud9.ca-central-1.amazonaws.com":5,"webview-assets.aws-cloud9.eu-central-1.amazonaws.com":5,"vfs.cloud9.eu-central-1.amazonaws.com":5,"webview-assets.cloud9.eu-central-1.amazonaws.com":5,"webview-assets.aws-cloud9.eu-north-1.amazonaws.com":5,"vfs.cloud9.eu-north-1.amazonaws.com":5,"webview-assets.cloud9.eu-north-1.amazonaws.com":5,"webview-assets.aws-cloud9.eu-south-1.amazonaws.com":5,"vfs.cloud9.eu-south-1.amazonaws.com":5,"webview-assets.cloud9.eu-south-1.amazonaws.com":5,"webview-assets.aws-cloud9.eu-west-1.amazonaws.com":5,"vfs.cloud9.eu-west-1.amazonaws.com":5,"webview-assets.cloud9.eu-west-1.amazonaws.com":5,"webview-assets.aws-cloud9.eu-west-2.amazonaws.com":5,"vfs.cloud9.eu-west-2.amazonaws.com":5,"webview-assets.cloud9.eu-west-2.amazonaws.com":5,"webview-assets.aws-cloud9.eu-west-3.amazonaws.com":5,"vfs.cloud9.eu-west-3.amazonaws.com":5,"webview-assets.cloud9.eu-west-3.amazonaws.com":5,"webview-assets.aws-cloud9.il-central-1.amazonaws.com":5,"vfs.cloud9.il-central-1.amazonaws.com":5,"webview-assets.aws-cloud9.me-south-1.amazonaws.com":5,"vfs.cloud9.me-south-1.amazonaws.com":5,"webview-assets.cloud9.me-south-1.amazonaws.com":5,"webview-assets.aws-cloud9.sa-east-1.amazonaws.com":5,"vfs.cloud9.sa-east-1.amazonaws.com":5,"webview-assets.cloud9.sa-east-1.amazonaws.com":5,"webview-assets.aws-cloud9.us-east-1.amazonaws.com":5,"vfs.cloud9.us-east-1.amazonaws.com":5,"webview-assets.cloud9.us-east-1.amazonaws.com":5,"webview-assets.aws-cloud9.us-east-2.amazonaws.com":5,"vfs.cloud9.us-east-2.amazonaws.com":5,"webview-assets.cloud9.us-east-2.amazonaws.com":5,"webview-assets.aws-cloud9.us-west-1.amazonaws.com":5,"vfs.cloud9.us-west-1.amazonaws.com":5,"webview-assets.cloud9.us-west-1.amazonaws.com":5,"webview-assets.aws-cloud9.us-west-2.amazonaws.com":5,"vfs.cloud9.us-west-2.amazonaws.com":5,"webview-assets.cloud9.us-west-2.amazonaws.com":5,"awsapps.com":2,"cn-north-1.eb.amazonaws.com.cn":5,"cn-northwest-1.eb.amazonaws.com.cn":5,"elasticbeanstalk.com":2,"af-south-1.elasticbeanstalk.com":3,"ap-east-1.elasticbeanstalk.com":3,"ap-northeast-1.elasticbeanstalk.com":3,"ap-northeast-2.elasticbeanstalk.com":3,"ap-northeast-3.elasticbeanstalk.com":3,"ap-south-1.elasticbeanstalk.com":3,"ap-southeast-1.elasticbeanstalk.com":3,"ap-southeast-2.elasticbeanstalk.com":3,"ap-southeast-3.elasticbeanstalk.com":3,"ca-central-1.elasticbeanstalk.com":3,"eu-central-1.elasticbeanstalk.com":3,"eu-north-1.elasticbeanstalk.com":3,"eu-south-1.elasticbeanstalk.com":3,"eu-west-1.elasticbeanstalk.com":3,"eu-west-2.elasticbeanstalk.com":3,"eu-west-3.elasticbeanstalk.com":3,"il-central-1.elasticbeanstalk.com":3,"me-south-1.elasticbeanstalk.com":3,"sa-east-1.elasticbeanstalk.com":3,"us-east-1.elasticbeanstalk.com":3,"us-east-2.elasticbeanstalk.com":3,"us-gov-east-1.elasticbeanstalk.com":3,"us-gov-west-1.elasticbeanstalk.com":3,"us-west-1.elasticbeanstalk.com":3,"us-west-2.elasticbeanstalk.com":3,"elb.amazonaws.com.cn":5,"elb.amazonaws.com":4,"awsglobalaccelerator.com":2,"private.repost.aws":4,"transfer-webapp.ap-northeast-1.on.aws":4,"transfer-webapp.ap-southeast-1.on.aws":4,"transfer-webapp.ap-southeast-2.on.aws":4,"transfer-webapp.eu-central-1.on.aws":4,"transfer-webapp.eu-north-1.on.aws":4,"transfer-webapp.eu-west-1.on.aws":4,"transfer-webapp.us-east-1.on.aws":4,"transfer-webapp.us-east-2.on.aws":4,"transfer-webapp.us-west-2.on.aws":4,"eero.online":2,"eero-stage.online":2,"apigee.io":2,"panel.dev":2,"siiites.com":2,"appspacehosted.com":2,"appspaceusercontent.com":2,"appudo.net":2,"appwrite.global":2,"appwrite.run":3,"on-aptible.com":2,"f5.si":2,"arvanedge.ir":2,"user.aseinet.ne.jp":4,"gv.vc":2,"d.gv.vc":3,"user.party.eus":3,"pimienta.org":2,"poivron.org":2,"potager.org":2,"sweetpepper.org":2,"myasustor.com":2,"cdn.prod.atlassian-dev.net":4,"translated.page":2,"myfritz.link":2,"myfritz.net":2,"onavstack.net":2,"awdev.ca":3,"advisor.ws":3,"ecommerce-shop.pl":2,"b-data.io":2,"balena-devices.com":2,"base.ec":2,"official.ec":2,"buyshop.jp":2,"fashionstore.jp":2,"handcrafted.jp":2,"kawaiishop.jp":2,"supersale.jp":2,"theshop.jp":2,"shopselect.net":2,"base.shop":2,"beagleboard.io":2,"beget.app":3,"pages.gay":2,"bnr.la":2,"bitbucket.io":2,"blackbaudcdn.net":2,"of.je":2,"square.site":2,"bluebite.io":2,"boomla.net":2,"boutir.com":2,"boxfuse.io":2,"square7.ch":2,"bplaced.com":2,"bplaced.de":2,"square7.de":2,"bplaced.net":2,"square7.net":2,"brave.app":2,"s.brave.app":4,"brave.io":2,"s.brave.io":4,"shop.brendly.hr":3,"shop.brendly.rs":3,"browsersafetymark.io":2,"radio.am":2,"radio.fm":2,"cdn.bubble.io":3,"bubbleapps.io":2,"uk0.bigv.io":3,"dh.bytemark.co.uk":4,"vm.bytemark.co.uk":4,"cafjs.com":2,"canva-apps.cn":2,"my.canvasite.cn":3,"canva-apps.com":2,"my.canva.site":3,"drr.ac":2,"uwu.ai":2,"carrd.co":2,"crd.co":2,"ju.mp":2,"api.gov.uk":3,"cdn77-storage.com":2,"rsc.contentproxy9.cz":3,"r.cdn77.net":3,"cdn77-ssl.net":2,"c.cdn77.org":3,"rsc.cdn77.org":3,"ssl.origin.cdn77-secure.org":4,"za.bz":2,"br.com":2,"cn.com":2,"de.com":2,"eu.com":2,"jpn.com":2,"mex.com":2,"ru.com":2,"sa.com":2,"uk.com":2,"us.com":2,"za.com":2,"com.de":2,"gb.net":2,"hu.net":2,"jp.net":2,"se.net":2,"uk.net":2,"ae.org":2,"com.se":2,"cx.ua":2,"discourse.group":2,"discourse.team":2,"clerk.app":2,"clerkstage.app":2,"lcl.dev":3,"lclstage.dev":3,"stg.dev":3,"stgstage.dev":3,"cleverapps.cc":2,"services.clever-cloud.com":4,"cleverapps.io":2,"cleverapps.tech":2,"clickrising.net":2,"cloudns.asia":2,"cloudns.be":2,"cloud-ip.biz":2,"cloudns.biz":2,"cloudns.cc":2,"cloudns.ch":2,"cloudns.cl":2,"cloudns.club":2,"dnsabr.com":2,"ip-ddns.com":2,"cloudns.cx":2,"cloudns.eu":2,"cloudns.in":2,"cloudns.info":2,"ddns-ip.net":2,"dns-cloud.net":2,"dns-dynamic.net":2,"cloudns.nz":2,"cloudns.org":2,"ip-dynamic.org":2,"cloudns.ph":2,"cloudns.pro":2,"cloudns.pw":2,"cloudns.us":2,"c66.me":2,"cloud66.ws":2,"jdevcloud.com":2,"wpdevcloud.com":2,"cloudaccess.host":2,"freesite.host":2,"cloudaccess.net":2,"cloudbeesusercontent.io":2,"cloudera.site":3,"cf-ipfs.com":2,"cloudflare-ipfs.com":2,"trycloudflare.com":2,"pages.dev":2,"r2.dev":2,"workers.dev":2,"cloudflare.net":2,"cdn.cloudflare.net":3,"cdn.cloudflareanycast.net":3,"cdn.cloudflarecn.net":3,"cdn.cloudflareglobal.net":3,"cust.cloudscale.ch":3,"objects.lpg.cloudscale.ch":4,"objects.rma.cloudscale.ch":4,"lpg.objectstorage.ch":3,"rma.objectstorage.ch":3,"wnext.app":2,"cnpy.gdn":2,"otap.co":3,"co.ca":2,"co.com":2,"codeberg.page":2,"csb.app":2,"preview.csb.app":3,"co.nl":2,"co.no":2,"devinapps.com":3,"webhosting.be":2,"hosting-cluster.nl":2,"ctfcloud.net":2,"convex.app":2,"convex.cloud":2,"convex.site":2,"ac.ru":2,"edu.ru":2,"gov.ru":2,"int.ru":2,"mil.ru":2,"dyn.cosidns.de":3,"dnsupdater.de":2,"dynamisches-dns.de":2,"internet-dns.de":2,"l-o-g-i-n.de":2,"dynamic-dns.info":2,"feste-ip.net":2,"knx-server.net":2,"static-access.net":2,"craft.me":2,"realm.cz":2,"on.crisp.email":3,"cryptonomic.net":3,"cfolks.pl":2,"cyon.link":2,"cyon.site":2,"biz.dk":2,"co.dk":2,"firm.dk":2,"reg.dk":2,"store.dk":2,"dyndns.dappnode.io":3,"builtwithdark.com":2,"darklang.io":2,"demo.datadetect.com":3,"instance.datadetect.com":3,"edgestack.me":2,"dattolocal.com":2,"dattorelay.com":2,"dattoweb.com":2,"mydatto.com":2,"dattolocal.net":2,"mydatto.net":2,"ddnss.de":2,"dyn.ddnss.de":3,"dyndns.ddnss.de":3,"dyn-ip24.de":2,"dyndns1.de":2,"home-webserver.de":2,"dyn.home-webserver.de":3,"myhome-server.de":2,"ddnss.org":2,"debian.net":2,"definima.io":2,"definima.net":2,"deno.dev":2,"deno-staging.dev":2,"deno.net":2,"dedyn.io":2,"deta.app":2,"deta.dev":2,"caffeine.ai":2,"id.ai":2,"icp-api.io":2,"icp0.io":2,"raw.icp0.io":4,"icp1.io":2,"raw.icp1.io":4,"caffeine.site":2,"dfirma.pl":2,"dkonto.pl":2,"you2.pl":2,"ondigitalocean.app":2,"digitaloceanspaces.com":3,"qzz.io":2,"us.kg":2,"xx.kg":2,"dpdns.org":2,"discordsays.com":2,"discordsez.com":2,"jozi.biz":2,"dnshome.de":2,"online.th":2,"shop.th":2,"drayddns.com":2,"shoparena.pl":2,"dreamhosters.com":2,"durumis.com":2,"mydrobo.com":2,"duckdns.org":2,"dy.fi":2,"tunk.org":2,"dyndns.biz":2,"for-better.biz":2,"for-more.biz":2,"for-some.biz":2,"for-the.biz":2,"selfip.biz":2,"webhop.biz":2,"ftpaccess.cc":2,"game-server.cc":2,"myphotos.cc":2,"scrapping.cc":2,"blogdns.com":2,"cechire.com":2,"dnsalias.com":2,"dnsdojo.com":2,"doesntexist.com":2,"dontexist.com":2,"doomdns.com":2,"dyn-o-saur.com":2,"dynalias.com":2,"dyndns-at-home.com":2,"dyndns-at-work.com":2,"dyndns-blog.com":2,"dyndns-free.com":2,"dyndns-home.com":2,"dyndns-ip.com":2,"dyndns-mail.com":2,"dyndns-office.com":2,"dyndns-pics.com":2,"dyndns-remote.com":2,"dyndns-server.com":2,"dyndns-web.com":2,"dyndns-wiki.com":2,"dyndns-work.com":2,"est-a-la-maison.com":2,"est-a-la-masion.com":2,"est-le-patron.com":2,"est-mon-blogueur.com":2,"from-ak.com":2,"from-al.com":2,"from-ar.com":2,"from-ca.com":2,"from-ct.com":2,"from-dc.com":2,"from-de.com":2,"from-fl.com":2,"from-ga.com":2,"from-hi.com":2,"from-ia.com":2,"from-id.com":2,"from-il.com":2,"from-in.com":2,"from-ks.com":2,"from-ky.com":2,"from-ma.com":2,"from-md.com":2,"from-mi.com":2,"from-mn.com":2,"from-mo.com":2,"from-ms.com":2,"from-mt.com":2,"from-nc.com":2,"from-nd.com":2,"from-ne.com":2,"from-nh.com":2,"from-nj.com":2,"from-nm.com":2,"from-nv.com":2,"from-oh.com":2,"from-ok.com":2,"from-or.com":2,"from-pa.com":2,"from-pr.com":2,"from-ri.com":2,"from-sc.com":2,"from-sd.com":2,"from-tn.com":2,"from-tx.com":2,"from-ut.com":2,"from-va.com":2,"from-vt.com":2,"from-wa.com":2,"from-wi.com":2,"from-wv.com":2,"from-wy.com":2,"getmyip.com":2,"gotdns.com":2,"hobby-site.com":2,"homelinux.com":2,"homeunix.com":2,"iamallama.com":2,"is-a-anarchist.com":2,"is-a-blogger.com":2,"is-a-bookkeeper.com":2,"is-a-bulls-fan.com":2,"is-a-caterer.com":2,"is-a-chef.com":2,"is-a-conservative.com":2,"is-a-cpa.com":2,"is-a-cubicle-slave.com":2,"is-a-democrat.com":2,"is-a-designer.com":2,"is-a-doctor.com":2,"is-a-financialadvisor.com":2,"is-a-geek.com":2,"is-a-green.com":2,"is-a-guru.com":2,"is-a-hard-worker.com":2,"is-a-hunter.com":2,"is-a-landscaper.com":2,"is-a-lawyer.com":2,"is-a-liberal.com":2,"is-a-libertarian.com":2,"is-a-llama.com":2,"is-a-musician.com":2,"is-a-nascarfan.com":2,"is-a-nurse.com":2,"is-a-painter.com":2,"is-a-personaltrainer.com":2,"is-a-photographer.com":2,"is-a-player.com":2,"is-a-republican.com":2,"is-a-rockstar.com":2,"is-a-socialist.com":2,"is-a-student.com":2,"is-a-teacher.com":2,"is-a-techie.com":2,"is-a-therapist.com":2,"is-an-accountant.com":2,"is-an-actor.com":2,"is-an-actress.com":2,"is-an-anarchist.com":2,"is-an-artist.com":2,"is-an-engineer.com":2,"is-an-entertainer.com":2,"is-certified.com":2,"is-gone.com":2,"is-into-anime.com":2,"is-into-cars.com":2,"is-into-cartoons.com":2,"is-into-games.com":2,"is-leet.com":2,"is-not-certified.com":2,"is-slick.com":2,"is-uberleet.com":2,"is-with-theband.com":2,"isa-geek.com":2,"isa-hockeynut.com":2,"issmarterthanyou.com":2,"likes-pie.com":2,"likescandy.com":2,"neat-url.com":2,"saves-the-whales.com":2,"selfip.com":2,"sells-for-less.com":2,"sells-for-u.com":2,"servebbs.com":2,"simple-url.com":2,"space-to-rent.com":2,"teaches-yoga.com":2,"writesthisblog.com":2,"ath.cx":2,"fuettertdasnetz.de":2,"isteingeek.de":2,"istmein.de":2,"lebtimnetz.de":2,"leitungsen.de":2,"traeumtgerade.de":2,"barrel-of-knowledge.info":2,"barrell-of-knowledge.info":2,"dyndns.info":2,"for-our.info":2,"groks-the.info":2,"groks-this.info":2,"here-for-more.info":2,"knowsitall.info":2,"selfip.info":2,"webhop.info":2,"forgot.her.name":3,"forgot.his.name":3,"at-band-camp.net":2,"blogdns.net":2,"broke-it.net":2,"buyshouses.net":2,"dnsalias.net":2,"dnsdojo.net":2,"does-it.net":2,"dontexist.net":2,"dynalias.net":2,"dynathome.net":2,"endofinternet.net":2,"from-az.net":2,"from-co.net":2,"from-la.net":2,"from-ny.net":2,"gets-it.net":2,"ham-radio-op.net":2,"homeftp.net":2,"homeip.net":2,"homelinux.net":2,"homeunix.net":2,"in-the-band.net":2,"is-a-chef.net":2,"is-a-geek.net":2,"isa-geek.net":2,"kicks-ass.net":2,"office-on-the.net":2,"podzone.net":2,"scrapper-site.net":2,"selfip.net":2,"sells-it.net":2,"servebbs.net":2,"serveftp.net":2,"thruhere.net":2,"webhop.net":2,"merseine.nu":2,"mine.nu":2,"shacknet.nu":2,"blogdns.org":2,"blogsite.org":2,"boldlygoingnowhere.org":2,"dnsalias.org":2,"dnsdojo.org":2,"doesntexist.org":2,"dontexist.org":2,"doomdns.org":2,"dvrdns.org":2,"dynalias.org":2,"dyndns.org":2,"go.dyndns.org":3,"home.dyndns.org":3,"endofinternet.org":2,"endoftheinternet.org":2,"from-me.org":2,"game-host.org":2,"gotdns.org":2,"hobby-site.org":2,"homedns.org":2,"homeftp.org":2,"homelinux.org":2,"homeunix.org":2,"is-a-bruinsfan.org":2,"is-a-candidate.org":2,"is-a-celticsfan.org":2,"is-a-chef.org":2,"is-a-geek.org":2,"is-a-knight.org":2,"is-a-linux-user.org":2,"is-a-patsfan.org":2,"is-a-soxfan.org":2,"is-found.org":2,"is-lost.org":2,"is-saved.org":2,"is-very-bad.org":2,"is-very-evil.org":2,"is-very-good.org":2,"is-very-nice.org":2,"is-very-sweet.org":2,"isa-geek.org":2,"kicks-ass.org":2,"misconfused.org":2,"podzone.org":2,"readmyblog.org":2,"selfip.org":2,"sellsyourhome.org":2,"servebbs.org":2,"serveftp.org":2,"servegame.org":2,"stuff-4-sale.org":2,"webhop.org":2,"better-than.tv":2,"dyndns.tv":2,"on-the-web.tv":2,"worse-than.tv":2,"is-by.us":2,"land-4-sale.us":2,"stuff-4-sale.us":2,"dyndns.ws":2,"mypets.ws":2,"ddnsfree.com":2,"ddnsgeek.com":2,"giize.com":2,"gleeze.com":2,"kozow.com":2,"loseyourip.com":2,"ooguy.com":2,"theworkpc.com":2,"casacam.net":2,"dynu.net":2,"accesscam.org":2,"camdvr.org":2,"freeddns.org":2,"mywire.org":2,"webredirect.org":2,"myddns.rocks":2,"dynv6.net":2,"e4.cz":2,"easypanel.app":2,"easypanel.host":2,"ewp.live":3,"twmail.cc":2,"twmail.net":2,"twmail.org":2,"mymailer.com.tw":3,"url.tw":2,"at.emf.camp":3,"rt.ht":2,"elementor.cloud":2,"elementor.cool":2,"en-root.fr":2,"mytuleap.com":2,"tuleap-partners.com":2,"encr.app":2,"frontend.encr.app":3,"encoreapi.com":2,"lp.dev":2,"api.lp.dev":3,"objects.lp.dev":3,"eu.encoway.cloud":3,"eu.org":2,"al.eu.org":3,"asso.eu.org":3,"at.eu.org":3,"au.eu.org":3,"be.eu.org":3,"bg.eu.org":3,"ca.eu.org":3,"cd.eu.org":3,"ch.eu.org":3,"cn.eu.org":3,"cy.eu.org":3,"cz.eu.org":3,"de.eu.org":3,"dk.eu.org":3,"edu.eu.org":3,"ee.eu.org":3,"es.eu.org":3,"fi.eu.org":3,"fr.eu.org":3,"gr.eu.org":3,"hr.eu.org":3,"hu.eu.org":3,"ie.eu.org":3,"il.eu.org":3,"in.eu.org":3,"int.eu.org":3,"is.eu.org":3,"it.eu.org":3,"jp.eu.org":3,"kr.eu.org":3,"lt.eu.org":3,"lu.eu.org":3,"lv.eu.org":3,"me.eu.org":3,"mk.eu.org":3,"mt.eu.org":3,"my.eu.org":3,"net.eu.org":3,"ng.eu.org":3,"nl.eu.org":3,"no.eu.org":3,"nz.eu.org":3,"pl.eu.org":3,"pt.eu.org":3,"ro.eu.org":3,"ru.eu.org":3,"se.eu.org":3,"si.eu.org":3,"sk.eu.org":3,"tr.eu.org":3,"uk.eu.org":3,"us.eu.org":3,"eurodir.ru":2,"eu-1.evennode.com":3,"eu-2.evennode.com":3,"eu-3.evennode.com":3,"eu-4.evennode.com":3,"us-1.evennode.com":3,"us-2.evennode.com":3,"us-3.evennode.com":3,"us-4.evennode.com":3,"relay.evervault.app":3,"relay.evervault.dev":3,"expo.app":2,"staging.expo.app":3,"onfabrica.com":2,"ru.net":2,"adygeya.ru":2,"bashkiria.ru":2,"bir.ru":2,"cbg.ru":2,"com.ru":2,"dagestan.ru":2,"grozny.ru":2,"kalmykia.ru":2,"kustanai.ru":2,"marine.ru":2,"mordovia.ru":2,"msk.ru":2,"mytis.ru":2,"nalchik.ru":2,"nov.ru":2,"pyatigorsk.ru":2,"spb.ru":2,"vladikavkaz.ru":2,"vladimir.ru":2,"abkhazia.su":2,"adygeya.su":2,"aktyubinsk.su":2,"arkhangelsk.su":2,"armenia.su":2,"ashgabad.su":2,"azerbaijan.su":2,"balashov.su":2,"bashkiria.su":2,"bryansk.su":2,"bukhara.su":2,"chimkent.su":2,"dagestan.su":2,"east-kazakhstan.su":2,"exnet.su":2,"georgia.su":2,"grozny.su":2,"ivanovo.su":2,"jambyl.su":2,"kalmykia.su":2,"kaluga.su":2,"karacol.su":2,"karaganda.su":2,"karelia.su":2,"khakassia.su":2,"krasnodar.su":2,"kurgan.su":2,"kustanai.su":2,"lenug.su":2,"mangyshlak.su":2,"mordovia.su":2,"msk.su":2,"murmansk.su":2,"nalchik.su":2,"navoi.su":2,"north-kazakhstan.su":2,"nov.su":2,"obninsk.su":2,"penza.su":2,"pokrovsk.su":2,"sochi.su":2,"spb.su":2,"tashkent.su":2,"termez.su":2,"togliatti.su":2,"troitsk.su":2,"tselinograd.su":2,"tula.su":2,"tuva.su":2,"vladikavkaz.su":2,"vladimir.su":2,"vologda.su":2,"channelsdvr.net":2,"u.channelsdvr.net":3,"edgecompute.app":2,"fastly-edge.com":2,"fastly-terrarium.com":2,"freetls.fastly.net":3,"map.fastly.net":3,"a.prod.fastly.net":4,"global.prod.fastly.net":4,"a.ssl.fastly.net":4,"b.ssl.fastly.net":4,"global.ssl.fastly.net":4,"fastlylb.net":2,"map.fastlylb.net":3,"user.fm":3,"fastvps-server.com":2,"fastvps.host":2,"myfast.host":2,"fastvps.site":2,"myfast.space":2,"conn.uk":2,"copro.uk":2,"hosp.uk":2,"fedorainfracloud.org":2,"fedorapeople.org":2,"cloud.fedoraproject.org":3,"app.os.fedoraproject.org":4,"app.os.stg.fedoraproject.org":5,"mydobiss.com":2,"fh-muenster.io":2,"figma.site":2,"preview.site":2,"filegear.me":2,"firebaseapp.com":2,"fldrv.com":2,"on-fleek.app":2,"flutterflow.app":2,"fly.dev":2,"shw.io":2,"edgeapp.net":2,"forgeblocks.com":2,"id.forgerock.io":3,"e2b.app":2,"framer.ai":2,"framer.app":2,"framercanvas.com":2,"framer.media":2,"framer.photos":2,"framer.website":2,"framer.wiki":2,"0e.vc":3,"freebox-os.com":2,"freeboxos.com":2,"fbx-os.fr":2,"fbxos.fr":2,"freebox-os.fr":2,"freeboxos.fr":2,"freedesktop.org":2,"freemyip.com":2,"frusky.de":3,"wien.funkfeuer.at":3,"daemon.asia":2,"dix.asia":2,"mydns.bz":2,"0am.jp":2,"0g0.jp":2,"0j0.jp":2,"0t0.jp":2,"mydns.jp":2,"pgw.jp":2,"wjg.jp":2,"keyword-on.net":2,"live-on.net":2,"server-on.net":2,"mydns.tw":2,"mydns.vc":2,"futurecms.at":3,"ex.futurecms.at":4,"in.futurecms.at":4,"futurehosting.at":2,"futuremailing.at":2,"ex.ortsinfo.at":4,"kunden.ortsinfo.at":4,"statics.cloud":3,"aliases121.com":2,"campaign.gov.uk":3,"service.gov.uk":3,"independent-commission.uk":2,"independent-inquest.uk":2,"independent-inquiry.uk":2,"independent-panel.uk":2,"independent-review.uk":2,"public-inquiry.uk":2,"royal-commission.uk":2,"gehirn.ne.jp":3,"usercontent.jp":2,"gentapps.com":2,"gentlentapis.com":2,"cdn-edges.net":2,"gsj.bz":2,"github.app":2,"githubusercontent.com":2,"githubpreview.dev":2,"github.io":2,"gitlab.io":2,"gitapp.si":2,"gitpage.si":2,"glitch.me":2,"nog.community":2,"co.ro":2,"shop.ro":2,"lolipop.io":2,"angry.jp":2,"babyblue.jp":2,"babymilk.jp":2,"backdrop.jp":2,"bambina.jp":2,"bitter.jp":2,"blush.jp":2,"boo.jp":2,"boy.jp":2,"boyfriend.jp":2,"but.jp":2,"candypop.jp":2,"capoo.jp":2,"catfood.jp":2,"cheap.jp":2,"chicappa.jp":2,"chillout.jp":2,"chips.jp":2,"chowder.jp":2,"chu.jp":2,"ciao.jp":2,"cocotte.jp":2,"coolblog.jp":2,"cranky.jp":2,"cutegirl.jp":2,"daa.jp":2,"deca.jp":2,"deci.jp":2,"digick.jp":2,"egoism.jp":2,"fakefur.jp":2,"fem.jp":2,"flier.jp":2,"floppy.jp":2,"fool.jp":2,"frenchkiss.jp":2,"girlfriend.jp":2,"girly.jp":2,"gloomy.jp":2,"gonna.jp":2,"greater.jp":2,"hacca.jp":2,"heavy.jp":2,"her.jp":2,"hiho.jp":2,"hippy.jp":2,"holy.jp":2,"hungry.jp":2,"icurus.jp":2,"itigo.jp":2,"jellybean.jp":2,"kikirara.jp":2,"kill.jp":2,"kilo.jp":2,"kuron.jp":2,"littlestar.jp":2,"lolipopmc.jp":2,"lolitapunk.jp":2,"lomo.jp":2,"lovepop.jp":2,"lovesick.jp":2,"main.jp":2,"mods.jp":2,"mond.jp":2,"mongolian.jp":2,"moo.jp":2,"namaste.jp":2,"nikita.jp":2,"nobushi.jp":2,"noor.jp":2,"oops.jp":2,"parallel.jp":2,"parasite.jp":2,"pecori.jp":2,"peewee.jp":2,"penne.jp":2,"pepper.jp":2,"perma.jp":2,"pigboat.jp":2,"pinoko.jp":2,"punyu.jp":2,"pupu.jp":2,"pussycat.jp":2,"pya.jp":2,"raindrop.jp":2,"readymade.jp":2,"sadist.jp":2,"schoolbus.jp":2,"secret.jp":2,"staba.jp":2,"stripper.jp":2,"sub.jp":2,"sunnyday.jp":2,"thick.jp":2,"tonkotsu.jp":2,"under.jp":2,"upper.jp":2,"velvet.jp":2,"verse.jp":2,"versus.jp":2,"vivian.jp":2,"watson.jp":2,"weblike.jp":2,"whitesnow.jp":2,"zombie.jp":2,"heteml.net":2,"graphic.design":2,"goip.de":2,"hosted.app":3,"run.app":3,"mtls.run.app":4,"web.app":2,"0emm.com":3,"appspot.com":2,"r.appspot.com":4,"blogspot.com":2,"codespot.com":2,"googleapis.com":2,"googlecode.com":2,"pagespeedmobilizer.com":2,"withgoogle.com":2,"withyoutube.com":2,"gateway.dev":3,"cloud.goog":2,"translate.goog":2,"usercontent.goog":3,"cloudfunctions.net":2,"goupile.fr":2,"pymnt.uk":2,"cloudapps.digital":2,"london.cloudapps.digital":3,"gov.nl":2,"grafana-dev.net":2,"grayjayleagues.com":2,"xn--gnstigbestellen-zvb.de":2,"xn--gnstigliefern-wob.de":2,"xn--hkkinen-5wa.fi":2,"hashbang.sh":2,"hasura.app":2,"hasura-app.io":2,"hatenablog.com":2,"hatenadiary.com":2,"hateblo.jp":2,"hatenablog.jp":2,"hatenadiary.jp":2,"hatenadiary.org":2,"pages.it.hs-heilbronn.de":4,"pages-research.it.hs-heilbronn.de":4,"heiyu.space":2,"helioho.st":2,"heliohost.us":2,"hepforge.org":2,"herokuapp.com":2,"heyflow.page":2,"heyflow.site":2,"ravendb.cloud":2,"ravendb.community":2,"development.run":2,"ravendb.run":2,"homesklep.pl":2,"kin.one":3,"id.pub":3,"kin.pub":3,"hoplix.shop":2,"orx.biz":2,"biz.gl":2,"biz.ng":2,"co.biz.ng":3,"dl.biz.ng":3,"go.biz.ng":3,"lg.biz.ng":3,"on.biz.ng":3,"col.ng":2,"firm.ng":2,"gen.ng":2,"ltd.ng":2,"ngo.ng":2,"plc.ng":2,"hostyhosting.io":2,"hf.space":2,"static.hf.space":3,"hypernode.io":2,"iobb.net":2,"co.cz":2,"moonscale.io":3,"moonscale.net":2,"gr.com":2,"iki.fi":2,"ibxos.it":2,"iliadboxos.it":2,"smushcdn.com":2,"wphostedmail.com":2,"wpmucdn.com":2,"tempurl.host":2,"wpmudev.host":2,"dyn-berlin.de":2,"in-berlin.de":2,"in-brb.de":2,"in-butter.de":2,"in-dsl.de":2,"in-vpn.de":2,"in-dsl.net":2,"in-vpn.net":2,"in-dsl.org":2,"in-vpn.org":2,"oninferno.net":2,"biz.at":2,"info.at":2,"info.cx":2,"ac.leg.br":3,"al.leg.br":3,"am.leg.br":3,"ap.leg.br":3,"ba.leg.br":3,"ce.leg.br":3,"df.leg.br":3,"es.leg.br":3,"go.leg.br":3,"ma.leg.br":3,"mg.leg.br":3,"ms.leg.br":3,"mt.leg.br":3,"pa.leg.br":3,"pb.leg.br":3,"pe.leg.br":3,"pi.leg.br":3,"pr.leg.br":3,"rj.leg.br":3,"rn.leg.br":3,"ro.leg.br":3,"rr.leg.br":3,"rs.leg.br":3,"sc.leg.br":3,"se.leg.br":3,"sp.leg.br":3,"to.leg.br":3,"pixolino.com":2,"na4u.ru":2,"botdash.app":2,"botdash.dev":2,"botdash.gg":2,"botdash.net":2,"botda.sh":2,"botdash.xyz":2,"apps-1and1.com":2,"live-website.com":2,"webspace-host.com":2,"apps-1and1.net":2,"websitebuilder.online":2,"app-ionos.space":2,"iopsys.se":2,"inbrowser.dev":3,"dweb.link":3,"inbrowser.link":3,"ipifony.net":2,"ir.md":2,"is-a-good.dev":2,"is-a.dev":2,"iservschule.de":2,"mein-iserv.de":2,"schuldock.de":2,"schulplattform.de":2,"schulserver.de":2,"test-iserv.de":2,"iserv.dev":2,"iserv.host":2,"mel.cloudlets.com.au":4,"cloud.interhostsolutions.be":3,"alp1.ae.flow.ch":4,"appengine.flow.ch":3,"es-1.axarnet.cloud":3,"diadem.cloud":2,"vip.jelastic.cloud":3,"jele.cloud":2,"it1.eur.aruba.jenv-aruba.cloud":5,"it1.jenv-aruba.cloud":3,"keliweb.cloud":2,"cs.keliweb.cloud":3,"oxa.cloud":2,"tn.oxa.cloud":3,"uk.oxa.cloud":3,"primetel.cloud":2,"uk.primetel.cloud":3,"ca.reclaim.cloud":3,"uk.reclaim.cloud":3,"us.reclaim.cloud":3,"ch.trendhosting.cloud":3,"de.trendhosting.cloud":3,"jele.club":2,"dopaas.com":2,"paas.hosted-by-previder.com":3,"rag-cloud.hosteur.com":3,"rag-cloud-ch.hosteur.com":3,"jcloud.ik-server.com":3,"jcloud-ver-jpc.ik-server.com":3,"demo.jelastic.com":3,"paas.massivegrid.com":3,"jed.wafaicloud.com":3,"ryd.wafaicloud.com":3,"j.scaleforce.com.cy":4,"jelastic.dogado.eu":3,"fi.cloudplatform.fi":3,"demo.datacenter.fi":3,"paas.datacenter.fi":3,"jele.host":2,"mircloud.host":2,"paas.beebyte.io":3,"sekd1.beebyteapp.io":3,"jele.io":2,"jc.neen.it":3,"jcloud.kz":2,"cloudjiffy.net":2,"fra1-de.cloudjiffy.net":3,"west1-us.cloudjiffy.net":3,"jls-sto1.elastx.net":3,"jls-sto2.elastx.net":3,"jls-sto3.elastx.net":3,"fr-1.paas.massivegrid.net":4,"lon-1.paas.massivegrid.net":4,"lon-2.paas.massivegrid.net":4,"ny-1.paas.massivegrid.net":4,"ny-2.paas.massivegrid.net":4,"sg-1.paas.massivegrid.net":4,"jelastic.saveincloud.net":3,"nordeste-idc.saveincloud.net":3,"j.scaleforce.net":3,"sdscloud.pl":2,"unicloud.pl":2,"mircloud.ru":2,"enscaled.sg":2,"jele.site":2,"jelastic.team":2,"orangecloud.tn":2,"j.layershift.co.uk":4,"phx.enscaled.us":3,"mircloud.us":2,"myjino.ru":2,"hosting.myjino.ru":4,"landing.myjino.ru":4,"spectrum.myjino.ru":4,"vps.myjino.ru":4,"jotelulu.cloud":2,"webadorsite.com":2,"jouwweb.site":2,"cns.joyent.com":4,"triton.zone":3,"js.org":2,"kaas.gg":2,"khplay.nl":2,"kapsi.fi":2,"ezproxy.kuleuven.be":3,"kuleuven.cloud":2,"keymachine.de":2,"kinghost.net":2,"uni5.net":2,"knightpoint.systems":2,"koobin.events":2,"webthings.io":2,"krellian.net":2,"oya.to":2,"laravel.cloud":2,"git-repos.de":2,"lcube-server.de":2,"svn-repos.de":2,"leadpages.co":2,"lpages.co":2,"lpusercontent.com":2,"liara.run":2,"iran.liara.run":3,"libp2p.direct":2,"runcontainers.dev":2,"co.business":2,"co.education":2,"co.events":2,"co.financial":2,"co.network":2,"co.place":2,"co.technology":2,"linkyard-cloud.ch":2,"linkyard.cloud":2,"members.linode.com":3,"nodebalancer.linode.com":4,"linodeobjects.com":3,"ip.linodeusercontent.com":3,"we.bs":2,"filegear-sg.me":2,"ggff.net":2,"user.localcert.dev":4,"localcert.net":2,"localtonet.com":2,"localto.net":3,"lodz.pl":2,"pabianice.pl":2,"plock.pl":2,"sieradz.pl":2,"skierniewice.pl":2,"zgierz.pl":2,"loginline.app":2,"loginline.dev":2,"loginline.io":2,"loginline.services":2,"loginline.site":2,"lohmus.me":2,"servers.run":2,"lovable.app":2,"lovableproject.com":2,"krasnik.pl":2,"leczna.pl":2,"lubartow.pl":2,"lublin.pl":2,"poniatowa.pl":2,"swidnik.pl":2,"glug.org.uk":3,"lug.org.uk":3,"lugs.org.uk":3,"barsy.bg":2,"barsy.club":2,"barsycenter.com":2,"barsyonline.com":2,"barsy.de":2,"barsy.dev":2,"barsy.eu":2,"barsy.gr":2,"barsy.in":2,"barsy.info":2,"barsy.io":2,"barsy.me":2,"barsy.menu":2,"barsyonline.menu":2,"barsy.mobi":2,"barsy.net":2,"barsy.online":2,"barsy.org":2,"barsy.pro":2,"barsy.pub":2,"barsy.ro":2,"barsy.rs":2,"barsy.shop":2,"barsyonline.shop":2,"barsy.site":2,"barsy.store":2,"barsy.support":2,"barsy.uk":2,"barsy.co.uk":3,"barsyonline.co.uk":3,"lutrausercontent.com":3,"luyani.app":2,"luyani.net":2,"magentosite.cloud":3,"hb.cldmail.ru":3,"matlab.cloud":2,"modelscape.com":2,"mwcloudnonprod.com":2,"polyspace.com":2,"mayfirst.info":2,"mayfirst.org":2,"mazeplay.com":2,"mcdir.me":2,"mcdir.ru":2,"vps.mcdir.ru":3,"mcpre.ru":2,"mediatech.by":2,"mediatech.dev":2,"hra.health":2,"medusajs.app":2,"miniserver.com":2,"memset.net":2,"messerli.app":2,"atmeta.com":2,"apps.fbsbx.com":3,"cloud.metacentrum.cz":4,"custom.metacentrum.cz":3,"flt.cloud.muni.cz":4,"usr.cloud.muni.cz":4,"meteorapp.com":2,"eu.meteorapp.com":3,"co.pl":2,"azurecontainer.io":3,"azure-api.net":2,"azure-mobile.net":2,"azureedge.net":2,"azurefd.net":2,"azurestaticapps.net":2,"1.azurestaticapps.net":3,"2.azurestaticapps.net":3,"3.azurestaticapps.net":3,"4.azurestaticapps.net":3,"5.azurestaticapps.net":3,"6.azurestaticapps.net":3,"7.azurestaticapps.net":3,"centralus.azurestaticapps.net":3,"eastasia.azurestaticapps.net":3,"eastus2.azurestaticapps.net":3,"westeurope.azurestaticapps.net":3,"westus2.azurestaticapps.net":3,"azurewebsites.net":2,"cloudapp.net":2,"trafficmanager.net":2,"blob.core.windows.net":4,"servicebus.windows.net":3,"routingthecloud.com":2,"sn.mynetname.net":3,"routingthecloud.net":2,"routingthecloud.org":2,"csx.cc":2,"mydbserver.com":2,"webspaceconfig.de":2,"mittwald.info":2,"mittwaldserver.info":2,"typo3server.info":2,"project.space":2,"modx.dev":2,"bmoattachments.org":2,"net.ru":2,"org.ru":2,"pp.ru":2,"hostedpi.com":2,"caracal.mythic-beasts.com":3,"customer.mythic-beasts.com":3,"fentiger.mythic-beasts.com":3,"lynx.mythic-beasts.com":3,"ocelot.mythic-beasts.com":3,"oncilla.mythic-beasts.com":3,"onza.mythic-beasts.com":3,"sphinx.mythic-beasts.com":3,"vs.mythic-beasts.com":3,"x.mythic-beasts.com":3,"yali.mythic-beasts.com":3,"cust.retrosnub.co.uk":4,"ui.nabu.casa":3,"cloud.nospamproxy.com":3,"o365.cloud.nospamproxy.com":4,"netlib.re":2,"netfy.app":2,"netlify.app":2,"4u.com":2,"nfshost.com":2,"ipfs.nftstorage.link":3,"ngo.us":2,"ngrok.app":2,"ngrok-free.app":2,"ngrok.dev":2,"ngrok-free.dev":2,"ngrok.io":2,"ap.ngrok.io":3,"au.ngrok.io":3,"eu.ngrok.io":3,"in.ngrok.io":3,"jp.ngrok.io":3,"sa.ngrok.io":3,"us.ngrok.io":3,"ngrok.pizza":2,"ngrok.pro":2,"torun.pl":2,"nh-serv.co.uk":3,"nimsite.uk":2,"mmafan.biz":2,"myftp.biz":2,"no-ip.biz":2,"no-ip.ca":2,"fantasyleague.cc":2,"gotdns.ch":2,"3utilities.com":2,"blogsyte.com":2,"ciscofreak.com":2,"damnserver.com":2,"ddnsking.com":2,"ditchyourip.com":2,"dnsiskinky.com":2,"dynns.com":2,"geekgalaxy.com":2,"health-carereform.com":2,"homesecuritymac.com":2,"homesecuritypc.com":2,"myactivedirectory.com":2,"mysecuritycamera.com":2,"myvnc.com":2,"net-freaks.com":2,"onthewifi.com":2,"point2this.com":2,"quicksytes.com":2,"securitytactics.com":2,"servebeer.com":2,"servecounterstrike.com":2,"serveexchange.com":2,"serveftp.com":2,"servegame.com":2,"servehalflife.com":2,"servehttp.com":2,"servehumour.com":2,"serveirc.com":2,"servemp3.com":2,"servep2p.com":2,"servepics.com":2,"servequake.com":2,"servesarcasm.com":2,"stufftoread.com":2,"unusualperson.com":2,"workisboring.com":2,"dvrcam.info":2,"ilovecollege.info":2,"no-ip.info":2,"brasilia.me":2,"ddns.me":2,"dnsfor.me":2,"hopto.me":2,"loginto.me":2,"noip.me":2,"webhop.me":2,"bounceme.net":2,"ddns.net":2,"eating-organic.net":2,"mydissent.net":2,"myeffect.net":2,"mymediapc.net":2,"mypsx.net":2,"mysecuritycamera.net":2,"nhlfan.net":2,"no-ip.net":2,"pgafan.net":2,"privatizehealthinsurance.net":2,"redirectme.net":2,"serveblog.net":2,"serveminecraft.net":2,"sytes.net":2,"cable-modem.org":2,"collegefan.org":2,"couchpotatofries.org":2,"hopto.org":2,"mlbfan.org":2,"myftp.org":2,"mysecuritycamera.org":2,"nflfan.org":2,"no-ip.org":2,"read-books.org":2,"ufcfan.org":2,"zapto.org":2,"no-ip.co.uk":3,"golffan.us":2,"noip.us":2,"pointto.us":2,"stage.nodeart.io":3,"developer.app":3,"noop.app":2,"northflank.app":3,"build.run":3,"code.run":3,"database.run":3,"migration.run":3,"noticeable.news":2,"notion.site":2,"dnsking.ch":2,"mypi.co":2,"myiphost.com":2,"forumz.info":2,"soundcast.me":2,"tcp4.me":2,"dnsup.net":2,"hicam.net":2,"now-dns.net":2,"ownip.net":2,"vpndns.net":2,"dynserv.org":2,"now-dns.org":2,"x443.pw":2,"ntdll.top":2,"freeddns.us":2,"nsupdate.info":2,"nerdpol.ovh":2,"nyc.mn":2,"prvcy.page":2,"obl.ong":2,"observablehq.cloud":2,"static.observableusercontent.com":3,"omg.lol":2,"cloudycluster.net":2,"omniwe.site":2,"123webseite.at":2,"123website.be":2,"simplesite.com.br":3,"123website.ch":2,"simplesite.com":2,"123webseite.de":2,"123hjemmeside.dk":2,"123miweb.es":2,"123kotisivu.fi":2,"123siteweb.fr":2,"simplesite.gr":2,"123homepage.it":2,"123website.lu":2,"123website.nl":2,"123hjemmeside.no":2,"service.one":2,"simplesite.pl":2,"123paginaweb.pt":2,"123minsida.se":2,"onid.ca":2,"is-a-fullstack.dev":2,"is-cool.dev":2,"is-not-a.dev":2,"localplayer.dev":2,"is-local.org":2,"opensocial.site":2,"opencraft.hosting":2,"16-b.it":2,"32-b.it":2,"64-b.it":2,"orsites.com":2,"operaunite.com":2,"customer-oci.com":3,"oci.customer-oci.com":4,"ocp.customer-oci.com":4,"ocs.customer-oci.com":4,"oraclecloudapps.com":3,"oraclegovcloudapps.com":3,"oraclegovcloudapps.uk":3,"tech.orange":2,"can.re":2,"authgear-staging.com":2,"authgearapps.com":2,"skygearapp.com":2,"outsystemscloud.com":2,"hosting.ovh.net":4,"webpaas.ovh.net":4,"ownprovider.com":2,"own.pm":2,"owo.codes":3,"ox.rs":2,"oy.lc":2,"pgfog.com":2,"pagexl.com":2,"gotpantheon.com":2,"pantheonsite.io":2,"paywhirl.com":3,"xmit.co":3,"xmit.dev":2,"madethis.site":2,"srv.us":2,"gh.srv.us":3,"gl.srv.us":3,"lk3.ru":2,"mypep.link":2,"perspecta.cloud":2,"on-web.fr":2,"upsun.app":3,"upsunapp.com":2,"ent.platform.sh":3,"eu.platform.sh":3,"us.platform.sh":3,"platformsh.site":3,"tst.site":3,"platter-app.dev":2,"platterp.us":2,"pley.games":2,"onporter.run":2,"co.bn":2,"postman-echo.com":2,"pstmn.io":2,"mock.pstmn.io":3,"httpbin.org":2,"prequalifyme.today":2,"xen.prgmr.com":3,"priv.at":2,"c01.kr":2,"eliv-cdn.kr":2,"eliv-dns.kr":2,"mmv.kr":2,"vki.kr":2,"dev.project-study.com":3,"protonet.io":2,"chirurgiens-dentistes-en-france.fr":2,"byen.site":2,"pubtls.org":2,"pythonanywhere.com":2,"eu.pythonanywhere.com":3,"qa2.com":2,"qcx.io":2,"sys.qcx.io":4,"myqnapcloud.cn":2,"alpha-myqnapcloud.com":2,"dev-myqnapcloud.com":2,"mycloudnas.com":2,"mynascloud.com":2,"myqnapcloud.com":2,"qoto.io":2,"qualifioapp.com":2,"ladesk.com":2,"qbuser.com":2,"quipelements.com":3,"vapor.cloud":2,"vaporcloud.io":2,"rackmaze.com":2,"rackmaze.net":2,"cloudsite.builders":2,"myradweb.net":2,"servername.us":2,"web.in":2,"in.net":2,"myrdbx.io":2,"site.rb-hosting.io":3,"on-rancher.cloud":3,"on-k3s.io":3,"on-rio.io":3,"ravpage.co.il":3,"readthedocs-hosted.com":2,"readthedocs.io":2,"rhcloud.com":2,"instances.spawn.cc":3,"onrender.com":2,"app.render.com":3,"replit.app":2,"id.replit.app":3,"firewalledreplit.co":2,"id.firewalledreplit.co":3,"repl.co":2,"id.repl.co":3,"replit.dev":2,"archer.replit.dev":3,"bones.replit.dev":3,"canary.replit.dev":3,"global.replit.dev":3,"hacker.replit.dev":3,"id.replit.dev":3,"janeway.replit.dev":3,"kim.replit.dev":3,"kira.replit.dev":3,"kirk.replit.dev":3,"odo.replit.dev":3,"paris.replit.dev":3,"picard.replit.dev":3,"pike.replit.dev":3,"prerelease.replit.dev":3,"reed.replit.dev":3,"riker.replit.dev":3,"sisko.replit.dev":3,"spock.replit.dev":3,"staging.replit.dev":3,"sulu.replit.dev":3,"tarpit.replit.dev":3,"teams.replit.dev":3,"tucker.replit.dev":3,"wesley.replit.dev":3,"worf.replit.dev":3,"repl.run":2,"resindevice.io":2,"devices.resinstaging.io":3,"hzc.io":2,"adimo.co.uk":3,"itcouldbewor.se":2,"aus.basketball":2,"nz.basketball":2,"subsc-pay.com":2,"subsc-pay.net":2,"git-pages.rit.edu":3,"rocky.page":2,"rub.de":2,"ruhr-uni-bochum.de":2,"io.noc.ruhr-uni-bochum.de":4,"xn--90amc.xn--p1acf":2,"xn--j1aef.xn--p1acf":2,"xn--j1ael8b.xn--p1acf":2,"xn--h1ahn.xn--p1acf":2,"xn--j1adp.xn--p1acf":2,"xn--c1avg.xn--p1acf":2,"xn--80aaa0cvac.xn--p1acf":2,"xn--h1aliz.xn--p1acf":2,"xn--90a1af.xn--p1acf":2,"xn--41a.xn--p1acf":2,"ras.ru":2,"nyat.app":2,"180r.com":2,"dojin.com":2,"sakuratan.com":2,"sakuraweb.com":2,"x0.com":2,"2-d.jp":2,"bona.jp":2,"crap.jp":2,"daynight.jp":2,"eek.jp":2,"flop.jp":2,"halfmoon.jp":2,"jeez.jp":2,"matrix.jp":2,"mimoza.jp":2,"ivory.ne.jp":3,"mail-box.ne.jp":3,"mints.ne.jp":3,"mokuren.ne.jp":3,"opal.ne.jp":3,"sakura.ne.jp":3,"sumomo.ne.jp":3,"topaz.ne.jp":3,"netgamers.jp":2,"nyanta.jp":2,"o0o0.jp":2,"rdy.jp":2,"rgr.jp":2,"rulez.jp":2,"s3.isk01.sakurastorage.jp":4,"s3.isk02.sakurastorage.jp":4,"saloon.jp":2,"sblo.jp":2,"skr.jp":2,"tank.jp":2,"uh-oh.jp":2,"undo.jp":2,"rs.webaccel.jp":3,"user.webaccel.jp":3,"websozai.jp":2,"xii.jp":2,"squares.net":2,"jpn.org":2,"kirara.st":2,"x0.to":2,"from.tv":2,"sakura.tv":2,"builder.code.com":4,"dev-builder.code.com":4,"stg-builder.code.com":4,"001.test.code-builder-stg.platform.salesforce.com":7,"d.crm.dev":4,"w.crm.dev":4,"wa.crm.dev":4,"wb.crm.dev":4,"wc.crm.dev":4,"wd.crm.dev":4,"we.crm.dev":4,"wf.crm.dev":4,"sandcats.io":2,"logoip.com":2,"logoip.de":2,"fr-par-1.baremetal.scw.cloud":4,"fr-par-2.baremetal.scw.cloud":4,"nl-ams-1.baremetal.scw.cloud":4,"cockpit.fr-par.scw.cloud":4,"fnc.fr-par.scw.cloud":4,"functions.fnc.fr-par.scw.cloud":5,"k8s.fr-par.scw.cloud":4,"nodes.k8s.fr-par.scw.cloud":5,"s3.fr-par.scw.cloud":4,"s3-website.fr-par.scw.cloud":4,"whm.fr-par.scw.cloud":4,"priv.instances.scw.cloud":4,"pub.instances.scw.cloud":4,"k8s.scw.cloud":3,"cockpit.nl-ams.scw.cloud":4,"k8s.nl-ams.scw.cloud":4,"nodes.k8s.nl-ams.scw.cloud":5,"s3.nl-ams.scw.cloud":4,"s3-website.nl-ams.scw.cloud":4,"whm.nl-ams.scw.cloud":4,"cockpit.pl-waw.scw.cloud":4,"k8s.pl-waw.scw.cloud":4,"nodes.k8s.pl-waw.scw.cloud":5,"s3.pl-waw.scw.cloud":4,"s3-website.pl-waw.scw.cloud":4,"scalebook.scw.cloud":3,"smartlabeling.scw.cloud":3,"dedibox.fr":2,"schokokeks.net":2,"gov.scot":2,"service.gov.scot":3,"scrysec.com":2,"client.scrypted.io":3,"firewall-gateway.com":2,"firewall-gateway.de":2,"my-gateway.de":2,"my-router.de":2,"spdns.de":2,"spdns.eu":2,"firewall-gateway.net":2,"my-firewall.org":2,"myfirewall.org":2,"spdns.org":2,"seidat.net":2,"sellfy.store":2,"minisite.ms":2,"senseering.net":2,"servebolt.cloud":2,"biz.ua":2,"co.ua":2,"pp.ua":2,"as.sh.cn":3,"sheezy.games":2,"myshopblocks.com":2,"myshopify.com":2,"shopitsite.com":2,"shopware.shop":2,"shopware.store":2,"mo-siemens.io":2,"1kapp.com":2,"appchizi.com":2,"applinzi.com":2,"sinaapp.com":2,"vipsinaapp.com":2,"siteleaf.net":2,"small-web.org":2,"aeroport.fr":2,"avocat.fr":2,"chambagri.fr":2,"chirurgiens-dentistes.fr":2,"experts-comptables.fr":2,"medecin.fr":2,"notaires.fr":2,"pharmacien.fr":2,"port.fr":2,"veterinaire.fr":2,"vp4.me":2,"snowflake.app":3,"privatelink.snowflake.app":4,"streamlit.app":2,"streamlitapp.com":2,"try-snowplow.com":2,"mafelo.net":2,"playstation-cloud.com":2,"srht.site":2,"apps.lair.io":3,"stolos.io":3,"4.at":2,"my.at":2,"my.de":2,"nxa.eu":3,"nx.gw":2,"customer.speedpartner.de":3,"myspreadshop.at":2,"myspreadshop.com.au":3,"myspreadshop.be":2,"myspreadshop.ca":2,"myspreadshop.ch":2,"myspreadshop.com":2,"myspreadshop.de":2,"myspreadshop.dk":2,"myspreadshop.es":2,"myspreadshop.fi":2,"myspreadshop.fr":2,"myspreadshop.ie":2,"myspreadshop.it":2,"myspreadshop.net":2,"myspreadshop.nl":2,"myspreadshop.no":2,"myspreadshop.pl":2,"myspreadshop.se":2,"myspreadshop.co.uk":3,"w-corp-staticblitz.com":2,"w-credentialless-staticblitz.com":2,"w-staticblitz.com":2,"stackhero-network.com":2,"runs.onstackit.cloud":3,"stackit.gg":2,"stackit.rocks":2,"stackit.run":2,"stackit.zone":2,"musician.io":2,"novecore.site":2,"api.stdlib.com":3,"feedback.ac":2,"forms.ac":2,"assessments.cx":2,"calculators.cx":2,"funnels.cx":2,"paynow.cx":2,"quizzes.cx":2,"researched.cx":2,"tests.cx":2,"surveys.so":2,"ipfs.storacha.link":3,"ipfs.w3s.link":3,"storebase.store":2,"storipress.app":2,"storj.farm":2,"strapiapp.com":2,"media.strapiapp.com":3,"vps-host.net":2,"atl.jelastic.vps-host.net":4,"njs.jelastic.vps-host.net":4,"ric.jelastic.vps-host.net":4,"streak-link.com":2,"streaklinks.com":2,"streakusercontent.com":2,"soc.srcf.net":3,"user.srcf.net":3,"utwente.io":2,"temp-dns.com":2,"supabase.co":2,"supabase.in":2,"supabase.net":2,"syncloud.it":2,"dscloud.biz":2,"direct.quickconnect.cn":3,"dsmynas.com":2,"familyds.com":2,"diskstation.me":2,"dscloud.me":2,"i234.me":2,"myds.me":2,"synology.me":2,"dscloud.mobi":2,"dsmynas.net":2,"familyds.net":2,"dsmynas.org":2,"familyds.org":2,"direct.quickconnect.to":3,"vpnplus.to":2,"mytabit.com":2,"mytabit.co.il":3,"tabitorder.co.il":3,"taifun-dns.de":2,"ts.net":2,"c.ts.net":4,"gda.pl":2,"gdansk.pl":2,"gdynia.pl":2,"med.pl":2,"sopot.pl":2,"taveusercontent.com":2,"p.tawk.email":3,"p.tawkto.email":3,"tche.br":2,"site.tb-hosting.com":3,"edugit.io":2,"s3.teckids.org":3,"telebit.app":2,"telebit.io":2,"telebit.xyz":3,"firenet.ch":3,"svc.firenet.ch":4,"reservd.com":2,"thingdustdata.com":2,"cust.dev.thingdust.io":4,"reservd.dev.thingdust.io":4,"cust.disrec.thingdust.io":4,"reservd.disrec.thingdust.io":4,"cust.prod.thingdust.io":4,"cust.testing.thingdust.io":4,"reservd.testing.thingdust.io":4,"tickets.io":2,"arvo.network":2,"azimuth.network":2,"tlon.network":2,"torproject.net":2,"pages.torproject.net":3,"townnews-staging.com":2,"12hp.at":2,"2ix.at":2,"4lima.at":2,"lima-city.at":2,"12hp.ch":2,"2ix.ch":2,"4lima.ch":2,"lima-city.ch":2,"trafficplex.cloud":2,"de.cool":2,"12hp.de":2,"2ix.de":2,"4lima.de":2,"lima-city.de":2,"1337.pictures":2,"clan.rip":2,"lima-city.rocks":2,"webspace.rocks":2,"lima.zone":2,"transurl.be":3,"transurl.eu":3,"site.transip.me":3,"transurl.nl":3,"tuxfamily.org":2,"dd-dns.de":2,"dray-dns.de":2,"draydns.de":2,"dyn-vpn.de":2,"dynvpn.de":2,"mein-vigor.de":2,"my-vigor.de":2,"my-wan.de":2,"syno-ds.de":2,"synology-diskstation.de":2,"synology-ds.de":2,"diskstation.eu":2,"diskstation.org":2,"typedream.app":2,"pro.typeform.com":3,"uberspace.de":3,"uber.space":2,"hk.com":2,"inc.hk":2,"ltd.hk":2,"hk.org":2,"it.com":2,"unison-services.cloud":2,"virtual-user.de":2,"virtualuser.de":2,"obj.ag":2,"name.pm":2,"sch.tf":2,"biz.wf":2,"sch.wf":2,"org.yt":2,"rs.ba":2,"bielsko.pl":2,"urown.cloud":2,"dnsupdate.info":2,"us.org":2,"v.ua":2,"val.run":2,"web.val.run":3,"vercel.app":2,"v0.build":2,"vercel.dev":2,"vusercontent.net":2,"vercel.run":2,"now.sh":2,"2038.io":2,"v-info.info":2,"vistablog.ir":2,"deus-canvas.com":2,"voorloper.cloud":2,"vultrobjects.com":3,"wafflecell.com":2,"webflow.io":2,"webflowtest.io":2,"webhare.dev":3,"bookonline.app":2,"hotelwithflight.com":2,"reserve-online.com":2,"reserve-online.net":2,"cprapid.com":2,"pleskns.com":2,"wp2.host":2,"pdns.page":2,"plesk.page":2,"cpanel.site":2,"wpsquared.site":2,"wadl.top":3,"remotewd.com":2,"box.ca":2,"pages.wiardweb.com":3,"toolforge.org":2,"wmcloud.org":2,"wmflabs.org":2,"wdh.app":2,"hrsn.dev":2,"windsurf.app":2,"windsurf.build":2,"panel.gg":2,"daemon.panel.gg":3,"wixsite.com":2,"wixstudio.com":2,"editorx.io":2,"wixstudio.io":2,"wix.run":2,"messwithdns.com":2,"woltlab-demo.com":2,"myforum.community":2,"community-pro.de":2,"diskussionsbereich.de":2,"community-pro.net":2,"meinforum.net":2,"affinitylottery.org.uk":3,"raffleentry.org.uk":3,"weeklylottery.org.uk":3,"wpenginepowered.com":2,"js.wpenginepowered.com":3,"half.host":2,"xnbay.com":2,"u2.xnbay.com":3,"u2-local.xnbay.com":3,"cistron.nl":2,"demon.nl":2,"xs4all.space":2,"yandexcloud.net":2,"storage.yandexcloud.net":3,"website.yandexcloud.net":3,"official.academy":2,"yolasite.com":2,"ynh.fr":2,"nohost.me":2,"noho.st":2,"za.net":2,"za.org":2,"zap.cloud":2,"zeabur.app":2,"zerops.app":3,"bss.design":2,"basicserver.io":2,"virtualserver.io":2,"enterprisecloud.nu":2,"zone.id":2}}; - - return tld; -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/common/uuid.js b/data/extensions/jsr@javascriptrestrictor/nscl/common/uuid.js deleted file mode 100644 index 9c8d6a4..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/common/uuid.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * NoScript Commons Library - * Reusable building blocks for cross-browser security/privacy WebExtensions. - * Copyright (C) 2020-2024 Giorgio Maone <https://maone.net> - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see <https://www.gnu.org/licenses/>. - */ - -'use strict'; -{ - const _impl = "randomUUID" in crypto - ? () => crypto.randomUUID() - : () => - ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, - c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4) - .toString(16)) - ; - - // if crypto API is missing or broken - const _fallback = () => - 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => { - let r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); - return v.toString(16); - }); - - var uuid = function() { - try { - return _impl(); - } catch (e) { - return _fallback(); - } - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/content/patchWindow.js b/data/extensions/jsr@javascriptrestrictor/nscl/content/patchWindow.js deleted file mode 100644 index 976470b..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/content/patchWindow.js +++ /dev/null @@ -1,488 +0,0 @@ -/* - * NoScript Commons Library - * Reusable building blocks for cross-browser security/privacy WebExtensions. - * Copyright (C) 2020-2024 Giorgio Maone <https://maone.net> - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see <https://www.gnu.org/licenses/>. - */ - -// depends on /nscl/common/uuid.js - -"use strict"; -/** - * Injects code into page context in a cross-browser way, providing it - * with tools to wrap/patch the DOM and the JavaScript environment - * and propagating the changes to child windows created on the fly in order - * to prevent the modifications to be cancelled by hostile code. - * - * @param {function} patchingCallback - * the (semi)privileged wrapping code to be injected. - * Warning: this is not to be considered a closure, since Chromium - * injection needs it to be reparsed out of context. - * Use the env argument to propagate parameters. - * It will be called as patchingCallback(unwrappedWindow, env). - * @param {object} env - * a JSON-serializable object to made available to patchingCallback as - * its second argument. It gets augmented by two additional properties: - * 1. a Port (port: {postMessage(), onMessage()}) object - * allowing the injected script to communicate with - * the privileged content script by calling port.postMessage(msg, [event]) - * and/or by listening to a port.onMessage(msg, event) user-defined callback. - * 2. A "xray" object property to help handling - * Firefox's XRAY wrappers. - * xray: { - * enabled: true, // false on Chromium - * unwrap(obj), // returns the XPC-wrapped object - or just obj on Chromium - * wrap(obj), // returns the XPC wrapper around the object - or just obj on Chromium - * forPage(obj), // returns cloneInto(obj) including functions and DOM objects - or just obj on Chromium - * window, // the XPC-wrapped version of unwrappedWindow, or unwrappedWindow itself on Chromium - * } - * @returns {object} port - * A Port object allowing the privileged content script to communicate - * with the injected script on the page by calling port.postMessage(msg, [event]) - * and/or by listening to a port.onMessage(msg, event) user-defined callback. - */ - -function patchWindow(patchingCallback, env = {}) { - const forcedPortId = patchingCallback.portId; - const justPort = forcedPortId && !patchingCallback.code; - const portId = forcedPortId || - this && this.portId || - `windowPatchMessages:${uuid()}`; - - const { dispatchEvent, addEventListener } = self; - - function Port(from, to) { - if (!self.document) { - // ServiceWorker scope, dummy port, won't be used. - this.postMessage = () => {}; - return; - } - // we need a double dispatching dance and maintaining a stack of - // return values / thrown errors because Chromium seals the detail object - // (on Firefox we could just append further properties to it...) - let retStack = []; - - function fire(e, detail, target = window) { - dispatchEvent.call(target, new CustomEvent(`${portId}:${e}`, {detail, composed: true})); - } - this.postMessage = function(msg, target = window) { - retStack.push({}); - let detail = {msg}; - fire(to, detail, target); - let ret = retStack.pop(); - if (ret.error) throw ret.error; - return ret.value; - }; - addEventListener.call(window, `${portId}:${from}`, event => { - if (typeof this.onMessage === "function" && event.detail) { - let ret = {}; - try { - ret.value = this.onMessage(event.detail.msg, event); - } catch (error) { - ret.error = error; - } - fire(`return:${to}`, ret); - } - }, true); - addEventListener.call(window, `${portId}:return:${from}`, event => { - let {detail} = event; - if (detail && retStack.length) { - retStack[retStack.length -1] = detail; - } - }, true); - this.onMessage = null; - } - let port = new Port("extension", "page"); - if (patchWindow.disabled) { - return port; - } - if (justPort) { - return port; - } else if (patchingCallback.code) { - patchingCallback = patchingCallback.code; - } - - const nativeExport = typeof exportFunction == "function"; - if (typeof patchingCallback !== "function") { - patchingCallback = - nativeExport ? new Function("unwrappedWindow", "env", patchingCallback) - : `function (unwrappedWindow, env) {\n${patchingCallback}\n}`; - } - if (!(nativeExport || this && this.exportFunction)) { - // Chromium - let exportFunction = (func, targetObject, {defineAs, original} = {}) => { - try { - let [propDef, getOrSet, propName] = defineAs && /^([gs]et)(?:\s+(\w+))$/.exec(defineAs) || [null, null, defineAs]; - let propDes = propName && Object.getOwnPropertyDescriptor(targetObject, propName); - if (getOrSet && !propDes) { // escalate through prototype chain - for (let proto = Object.getPrototypeOf(targetObject); proto; proto = Object.getPrototypeOf(proto)) { - propDes = Object.getOwnPropertyDescriptor(proto, propName); - if (propDes) { - targetObject = proto; - break; - } - } - } - - let toString = Function.prototype.toString; - let strVal; - if (!original) { - original = propDef && propDes ? propDes[getOrSet] : defineAs && targetObject[defineAs]; - } - if (!original) { - // It seems to be a brand new function, rather than a replacement. - // Let's ensure it appears as a native one with little hack: we proxy a Promise callback ;) - Promise.resolve(new Promise(resolve => original = resolve)); - let name = propDef && propDes ? `${getOrSet} ${propName}` : defineAs; - if (name) { - let nameDef = Reflect.getOwnPropertyDescriptor(original, "name"); - nameDef.value = name; - Reflect.defineProperty(original, "name", nameDef); - strVal = toString.call(original).replace(/^function \(\)/, `function ${name}()`) - } - } - - strVal = strVal || toString.call(original); - - let proxy = new Proxy(original, { - apply(target, thisArg, args) { - return func.apply(thisArg, args); - } - }); - - if (!exportFunction._toStringMap) { - let map = new WeakMap(); - exportFunction._toStringMap = map; - let toStringProxy = new Proxy(toString, { - apply(target, thisArg, args) { - return map.has(thisArg) ? map.get(thisArg) : Reflect.apply(target, thisArg, args); - } - }); - map.set(toStringProxy, toString.apply(toString)); - Function.prototype.toString = toStringProxy; - } - exportFunction._toStringMap.set(proxy, strVal); - - if (propName) { - if (!propDes) { - targetObject[propName] = proxy; - } else { - if (getOrSet) { - propDes[getOrSet] = proxy; - } else { - if ("value" in propDes) { - propDes.value = proxy; - } else { - return exportFunction(() => proxy, targetObject, `get ${propName}`); - } - } - Object.defineProperty(targetObject, propName, propDes); - } - } - return proxy; - } catch (e) { - console.error(e, `setting ${targetObject}.${defineAs || original}`, func); - } - return null; - }; - let cloneInto = (obj, targetObject) => { - return obj; // dummy for assignment - }; - - const code = ` - (() => { - let patchWindow = ${patchWindow}; - let cloneInto = ${cloneInto}; - let exportFunction = ${exportFunction}; - let env = ${JSON.stringify(env)}; - let portId = ${JSON.stringify(portId)}; - const console = Object.fromEntries(Object.entries(self.console).map(([n, v]) => v.bind ? [n, v.bind(self.console)] : [n,v])); - - env.port = new (${Port})("page", "extension"); - ({ - patchWindow, - exportFunction, - cloneInto, - portId, - }).patchWindow(${patchingCallback}, env); - })(); - `; - if (!self.document) { - // we're doing it with userScripts on mv3 - return {portId, code}; - } - let script = document.createElement("script"); - script.text = code; - try { - document.documentElement.insertBefore(script, document.documentElement.firstChild); - } catch(e) { - console.error(e, code); - } - script.remove(); - return port; - } - - env.port = new Port("page", "extension"); - - const {xrayEnabled} = patchWindow; - const zombieDanger = xrayEnabled && document.readyState === "complete"; - const isZombieException = e => e.message.includes("dead object"); - - const getSafeMethod = zombieDanger - ? (obj, method, wrappedObj) => { - let actualTarget = obj[method]; - return XPCNativeWrapper.unwrap(new window.Proxy(actualTarget, cloneInto({ - apply(targetFunc, thisArg, args) { - try { - return actualTarget.apply(thisArg, args); - } catch (e) { - if (isZombieException(e)) { - return (actualTarget = (wrappedObj || XPCNativeWrapper(obj))[method]).apply(thisArg, args); - } - throw e; - } - }, - }, window, {cloneFunctions: true, wrapReflectors: true} - ))); - - } : (obj, method) => obj[method]; - - const getSafeDescriptor = (proto, prop, accessor) => { - const des = Reflect.getOwnPropertyDescriptor(proto, prop); - if (zombieDanger) { - const wrappedDescriptor = Reflect.getOwnPropertyDescriptor(xray.wrap(proto), prop); - des[accessor] = getSafeMethod(des, accessor, wrappedDescriptor); - } - return des; - } - - let xrayMake = (enabled, wrap, unwrap = wrap, forPage = wrap) => ({ - enabled, wrap, unwrap, forPage, - getSafeMethod, getSafeDescriptor - }); - - let xray = !xrayEnabled - ? xrayMake(false, o => o) - : xrayMake(true, o => XPCNativeWrapper(o), o => XPCNativeWrapper.unwrap(o), - function(obj, win = this.window || window) { - return cloneInto(obj, win, {cloneFunctions: true, wrapReflectors: true}); - }); - - const patchedWindows = new WeakSet(); // track them to avoid indirect recursion - - // win: window object to modify. - function modifyWindow(win) { - try { - win = xray.unwrap(win); - env.xray = Object.assign({window: xray.wrap(win)}, xray); - - if (patchedWindows.has(win)) return; - patchedWindows.add(win); - patchingCallback(win, env); - modifyWindowOpenMethod(win); - modifyFramingElements(win); - // we don't need to modify win.opener, read skriptimaahinen notes - // at https://forums.informaction.com/viewtopic.php?p=103754#p103754 - } catch (e) { - if (e instanceof DOMException && e.name === "SecurityError") { - // In case someone tries to access SOP restricted window. - // We can just ignore this. - } else throw e; - } - } - - function modifyWindowOpenMethod(win) { - let windowOpen = win.open; - exportFunction(function(...args) { - let newWin = windowOpen.call(this, ...args); - if (newWin) modifyWindow(newWin); - return newWin; - }, win, {defineAs: "open"}); - } - - function modifyFramingElements(win) { - for (let property of ["contentWindow", "contentDocument"]) { - for (let iface of ["Frame", "IFrame", "Object"]) { - let proto = win[`HTML${iface}Element`].prototype; - modifyContentProperties(proto, property) - } - } - // auto-trigger window patching whenever new elements are added to the DOM - let patchAll = () => { - if (patchWindow.disabled) { - observer.disconnect(); - } - for (let j = 0; j in window; j++) { - try { - modifyWindow(window[j]); - } catch (e) { - console.error(e, `Patching frames[${j}]`); - } - } - }; - - let xrayWin = xray.wrap(win); - let observer = new MutationObserver(patchAll); - observer.observe(win.document, { subtree: true, childList: true }); - let patchHandler = { - apply(target, thisArg, args) { - let ret = Reflect.apply(target, thisArg, args); - const wrapped = thisArg && xray.wrap(thisArg); - if (wrapped) { - try { - if ((wrapped.ownerDocument || wrapped) === xrayWin.document) { - patchAll(); - } - } catch (e) { - console.error("Can't propagate patches (likely SOP violation).", e, thisArg, wrapped, location); // DEV_ONLY - } - } - try { - return ret ? xray.forPage(ret, win) : ret; - } catch (e) { - console.error("Can't wrap return value.", e, thisArg, target, args, ret, location); // DEV_ONLY - } - return ret; - } - }; - - let domChangers = { - Element: [ - "set innerHTML", "set outerHTML", - "after", "append", "appendChild", - "before", - "insertAdjacentElement", "insertAdjacentHTML", "insertBefore", - "prepend", - "replaceChildren", "replaceWith", "replaceChild", - "setHTML", - ], - Document: [ - "append", "prepend", "replaceChildren", - "write", "writeln", - ] - }; - - function patch(proto, method) { - let accessor; - if (method.startsWith("set ")) { - accessor = "set"; - method = method.replace("set ", ""); - } else { - accessor = "value"; - } - if (!(method in proto)) return; - while (!proto.hasOwnProperty(method)) { - proto = Object.getPrototypeOf(proto); - if (!proto) { - console.error(`Couldn't find property ${method} on the prototype chain!`); - return; - } - } - let des = getSafeDescriptor(proto, method, accessor); - des[accessor] = exportFunction(new Proxy(des[accessor], patchHandler), proto, {defineAs: `${accessor} ${method}`});; - Reflect.defineProperty(xray.unwrap(proto), method, des); - } - - for (let [obj, methods] of Object.entries(domChangers)) { - let proto = win[obj].prototype; - for (let method of methods) { - patch(proto, method); - } - } - if (patchWindow.onObject) patchWindow.onObject.add(patchAll); - } - - function modifyContentProperties(proto, property) { - let descriptor = getSafeDescriptor(proto, property, "get"); - let origGetter = descriptor.get; - let replacements = { - contentWindow() { - let win = origGetter.call(this); - if (win) modifyWindow(win); - return win; - }, - contentDocument() { - let document = origGetter.call(this); - if (document && document.defaultView) modifyWindow(document.defaultView); - return document; - } - }; - - descriptor.get = exportFunction(replacements[property], proto, {defineAs: `get ${property}`}); - Reflect.defineProperty(proto, property, descriptor); - } - - modifyWindow(window); - return port; -} - -patchWindow.xrayEnabled = typeof XPCNativeWrapper !== "undefined"; -if (patchWindow.xrayEnabled) { - // make up for object element initialization inconsistencies on Firefox - let callbacks = new Set(); - patchWindow.onObject = { - add(callback) { - callbacks.add(callback); - }, - fire() { - for (let callback of [...callbacks]) { - callback(); - } - } - }; - - const eventId = "__nscl_patchWindow_onObject__"; - const intercepted = new WeakSet(); - addEventListener(eventId, e => { - let {target} = e; - if (target instanceof HTMLObjectElement && - target.contentWindow && - !intercepted.has(target.contentWindow)) { - intercepted.add(target.contentWindow); - e.stopImmediatePropagation(); - patchWindow.onObject.fire(); - } - }, true); - - if (frameElement instanceof HTMLObjectElement) { - frameElement.dispatchEvent(new CustomEvent(eventId)); - } -} - -Object.defineProperty(patchWindow, "disabled", { - get() { - if (typeof ns === "object" && ns) { - if (ns.allows && ns.policy) { - const value = !ns.allows("script"); - Object.defineProperty(patchWindow, "disabled", { value, configurable: true }); - return value; - } - if (typeof ns.on === "function") { - ns.on("capabilities", () => { - if (ns.allows) { - this.disabled; - } - }); - } - } - return false; - }, - set(value) { - Object.defineProperty(patchWindow, "disabled", { value, configurable: true }); - return value; - }, - configurable: true, -});
\ No newline at end of file diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/lib/browser-polyfill.js b/data/extensions/jsr@javascriptrestrictor/nscl/lib/browser-polyfill.js deleted file mode 100644 index e4ac9ea..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/lib/browser-polyfill.js +++ /dev/null @@ -1,1224 +0,0 @@ -(function (global, factory) { - if (typeof define === "function" && define.amd) { - define("webextension-polyfill", ["module"], factory); - } else if (typeof exports !== "undefined") { - factory(module); - } else { - var mod = { - exports: {} - }; - factory(mod); - global.browser = mod.exports; - } -})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (module) { - /* webextension-polyfill - v0.12.0 - Tue May 14 2024 18:01:29 */ - /* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */ - /* vim: set sts=2 sw=2 et tw=80: */ - /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - "use strict"; - - if (!(globalThis.chrome && globalThis.chrome.runtime && globalThis.chrome.runtime.id)) { - throw new Error("This script should only be loaded in a browser extension."); - } - if (!(globalThis.browser && globalThis.browser.runtime && globalThis.browser.runtime.id)) { - const CHROME_SEND_MESSAGE_CALLBACK_NO_RESPONSE_MESSAGE = "The message port closed before a response was received."; - - // Wrapping the bulk of this polyfill in a one-time-use function is a minor - // optimization for Firefox. Since Spidermonkey does not fully parse the - // contents of a function until the first time it's called, and since it will - // never actually need to be called, this allows the polyfill to be included - // in Firefox nearly for free. - const wrapAPIs = extensionAPIs => { - // NOTE: apiMetadata is associated to the content of the api-metadata.json file - // at build time by replacing the following "include" with the content of the - // JSON file. - const apiMetadata = { - "alarms": { - "clear": { - "minArgs": 0, - "maxArgs": 1 - }, - "clearAll": { - "minArgs": 0, - "maxArgs": 0 - }, - "get": { - "minArgs": 0, - "maxArgs": 1 - }, - "getAll": { - "minArgs": 0, - "maxArgs": 0 - } - }, - "bookmarks": { - "create": { - "minArgs": 1, - "maxArgs": 1 - }, - "get": { - "minArgs": 1, - "maxArgs": 1 - }, - "getChildren": { - "minArgs": 1, - "maxArgs": 1 - }, - "getRecent": { - "minArgs": 1, - "maxArgs": 1 - }, - "getSubTree": { - "minArgs": 1, - "maxArgs": 1 - }, - "getTree": { - "minArgs": 0, - "maxArgs": 0 - }, - "move": { - "minArgs": 2, - "maxArgs": 2 - }, - "remove": { - "minArgs": 1, - "maxArgs": 1 - }, - "removeTree": { - "minArgs": 1, - "maxArgs": 1 - }, - "search": { - "minArgs": 1, - "maxArgs": 1 - }, - "update": { - "minArgs": 2, - "maxArgs": 2 - } - }, - "browserAction": { - "disable": { - "minArgs": 0, - "maxArgs": 1, - "fallbackToNoCallback": true - }, - "enable": { - "minArgs": 0, - "maxArgs": 1, - "fallbackToNoCallback": true - }, - "getBadgeBackgroundColor": { - "minArgs": 1, - "maxArgs": 1 - }, - "getBadgeText": { - "minArgs": 1, - "maxArgs": 1 - }, - "getPopup": { - "minArgs": 1, - "maxArgs": 1 - }, - "getTitle": { - "minArgs": 1, - "maxArgs": 1 - }, - "openPopup": { - "minArgs": 0, - "maxArgs": 0 - }, - "setBadgeBackgroundColor": { - "minArgs": 1, - "maxArgs": 1, - "fallbackToNoCallback": true - }, - "setBadgeText": { - "minArgs": 1, - "maxArgs": 1, - "fallbackToNoCallback": true - }, - "setIcon": { - "minArgs": 1, - "maxArgs": 1 - }, - "setPopup": { - "minArgs": 1, - "maxArgs": 1, - "fallbackToNoCallback": true - }, - "setTitle": { - "minArgs": 1, - "maxArgs": 1, - "fallbackToNoCallback": true - } - }, - "browsingData": { - "remove": { - "minArgs": 2, - "maxArgs": 2 - }, - "removeCache": { - "minArgs": 1, - "maxArgs": 1 - }, - "removeCookies": { - "minArgs": 1, - "maxArgs": 1 - }, - "removeDownloads": { - "minArgs": 1, - "maxArgs": 1 - }, - "removeFormData": { - "minArgs": 1, - "maxArgs": 1 - }, - "removeHistory": { - "minArgs": 1, - "maxArgs": 1 - }, - "removeLocalStorage": { - "minArgs": 1, - "maxArgs": 1 - }, - "removePasswords": { - "minArgs": 1, - "maxArgs": 1 - }, - "removePluginData": { - "minArgs": 1, - "maxArgs": 1 - }, - "settings": { - "minArgs": 0, - "maxArgs": 0 - } - }, - "commands": { - "getAll": { - "minArgs": 0, - "maxArgs": 0 - } - }, - "contextMenus": { - "remove": { - "minArgs": 1, - "maxArgs": 1 - }, - "removeAll": { - "minArgs": 0, - "maxArgs": 0 - }, - "update": { - "minArgs": 2, - "maxArgs": 2 - } - }, - "cookies": { - "get": { - "minArgs": 1, - "maxArgs": 1 - }, - "getAll": { - "minArgs": 1, - "maxArgs": 1 - }, - "getAllCookieStores": { - "minArgs": 0, - "maxArgs": 0 - }, - "remove": { - "minArgs": 1, - "maxArgs": 1 - }, - "set": { - "minArgs": 1, - "maxArgs": 1 - } - }, - "devtools": { - "inspectedWindow": { - "eval": { - "minArgs": 1, - "maxArgs": 2, - "singleCallbackArg": false - } - }, - "panels": { - "create": { - "minArgs": 3, - "maxArgs": 3, - "singleCallbackArg": true - }, - "elements": { - "createSidebarPane": { - "minArgs": 1, - "maxArgs": 1 - } - } - } - }, - "downloads": { - "cancel": { - "minArgs": 1, - "maxArgs": 1 - }, - "download": { - "minArgs": 1, - "maxArgs": 1 - }, - "erase": { - "minArgs": 1, - "maxArgs": 1 - }, - "getFileIcon": { - "minArgs": 1, - "maxArgs": 2 - }, - "open": { - "minArgs": 1, - "maxArgs": 1, - "fallbackToNoCallback": true - }, - "pause": { - "minArgs": 1, - "maxArgs": 1 - }, - "removeFile": { - "minArgs": 1, - "maxArgs": 1 - }, - "resume": { - "minArgs": 1, - "maxArgs": 1 - }, - "search": { - "minArgs": 1, - "maxArgs": 1 - }, - "show": { - "minArgs": 1, - "maxArgs": 1, - "fallbackToNoCallback": true - } - }, - "extension": { - "isAllowedFileSchemeAccess": { - "minArgs": 0, - "maxArgs": 0 - }, - "isAllowedIncognitoAccess": { - "minArgs": 0, - "maxArgs": 0 - } - }, - "history": { - "addUrl": { - "minArgs": 1, - "maxArgs": 1 - }, - "deleteAll": { - "minArgs": 0, - "maxArgs": 0 - }, - "deleteRange": { - "minArgs": 1, - "maxArgs": 1 - }, - "deleteUrl": { - "minArgs": 1, - "maxArgs": 1 - }, - "getVisits": { - "minArgs": 1, - "maxArgs": 1 - }, - "search": { - "minArgs": 1, - "maxArgs": 1 - } - }, - "i18n": { - "detectLanguage": { - "minArgs": 1, - "maxArgs": 1 - }, - "getAcceptLanguages": { - "minArgs": 0, - "maxArgs": 0 - } - }, - "identity": { - "launchWebAuthFlow": { - "minArgs": 1, - "maxArgs": 1 - } - }, - "idle": { - "queryState": { - "minArgs": 1, - "maxArgs": 1 - } - }, - "management": { - "get": { - "minArgs": 1, - "maxArgs": 1 - }, - "getAll": { - "minArgs": 0, - "maxArgs": 0 - }, - "getSelf": { - "minArgs": 0, - "maxArgs": 0 - }, - "setEnabled": { - "minArgs": 2, - "maxArgs": 2 - }, - "uninstallSelf": { - "minArgs": 0, - "maxArgs": 1 - } - }, - "notifications": { - "clear": { - "minArgs": 1, - "maxArgs": 1 - }, - "create": { - "minArgs": 1, - "maxArgs": 2 - }, - "getAll": { - "minArgs": 0, - "maxArgs": 0 - }, - "getPermissionLevel": { - "minArgs": 0, - "maxArgs": 0 - }, - "update": { - "minArgs": 2, - "maxArgs": 2 - } - }, - "pageAction": { - "getPopup": { - "minArgs": 1, - "maxArgs": 1 - }, - "getTitle": { - "minArgs": 1, - "maxArgs": 1 - }, - "hide": { - "minArgs": 1, - "maxArgs": 1, - "fallbackToNoCallback": true - }, - "setIcon": { - "minArgs": 1, - "maxArgs": 1 - }, - "setPopup": { - "minArgs": 1, - "maxArgs": 1, - "fallbackToNoCallback": true - }, - "setTitle": { - "minArgs": 1, - "maxArgs": 1, - "fallbackToNoCallback": true - }, - "show": { - "minArgs": 1, - "maxArgs": 1, - "fallbackToNoCallback": true - } - }, - "permissions": { - "contains": { - "minArgs": 1, - "maxArgs": 1 - }, - "getAll": { - "minArgs": 0, - "maxArgs": 0 - }, - "remove": { - "minArgs": 1, - "maxArgs": 1 - }, - "request": { - "minArgs": 1, - "maxArgs": 1 - } - }, - "runtime": { - "getBackgroundPage": { - "minArgs": 0, - "maxArgs": 0 - }, - "getPlatformInfo": { - "minArgs": 0, - "maxArgs": 0 - }, - "openOptionsPage": { - "minArgs": 0, - "maxArgs": 0 - }, - "requestUpdateCheck": { - "minArgs": 0, - "maxArgs": 0 - }, - "sendMessage": { - "minArgs": 1, - "maxArgs": 3 - }, - "sendNativeMessage": { - "minArgs": 2, - "maxArgs": 2 - }, - "setUninstallURL": { - "minArgs": 1, - "maxArgs": 1 - } - }, - "sessions": { - "getDevices": { - "minArgs": 0, - "maxArgs": 1 - }, - "getRecentlyClosed": { - "minArgs": 0, - "maxArgs": 1 - }, - "restore": { - "minArgs": 0, - "maxArgs": 1 - } - }, - "storage": { - "local": { - "clear": { - "minArgs": 0, - "maxArgs": 0 - }, - "get": { - "minArgs": 0, - "maxArgs": 1 - }, - "getBytesInUse": { - "minArgs": 0, - "maxArgs": 1 - }, - "remove": { - "minArgs": 1, - "maxArgs": 1 - }, - "set": { - "minArgs": 1, - "maxArgs": 1 - } - }, - "managed": { - "get": { - "minArgs": 0, - "maxArgs": 1 - }, - "getBytesInUse": { - "minArgs": 0, - "maxArgs": 1 - } - }, - "sync": { - "clear": { - "minArgs": 0, - "maxArgs": 0 - }, - "get": { - "minArgs": 0, - "maxArgs": 1 - }, - "getBytesInUse": { - "minArgs": 0, - "maxArgs": 1 - }, - "remove": { - "minArgs": 1, - "maxArgs": 1 - }, - "set": { - "minArgs": 1, - "maxArgs": 1 - } - } - }, - "tabs": { - "captureVisibleTab": { - "minArgs": 0, - "maxArgs": 2 - }, - "create": { - "minArgs": 1, - "maxArgs": 1 - }, - "detectLanguage": { - "minArgs": 0, - "maxArgs": 1 - }, - "discard": { - "minArgs": 0, - "maxArgs": 1 - }, - "duplicate": { - "minArgs": 1, - "maxArgs": 1 - }, - "executeScript": { - "minArgs": 1, - "maxArgs": 2 - }, - "get": { - "minArgs": 1, - "maxArgs": 1 - }, - "getCurrent": { - "minArgs": 0, - "maxArgs": 0 - }, - "getZoom": { - "minArgs": 0, - "maxArgs": 1 - }, - "getZoomSettings": { - "minArgs": 0, - "maxArgs": 1 - }, - "goBack": { - "minArgs": 0, - "maxArgs": 1 - }, - "goForward": { - "minArgs": 0, - "maxArgs": 1 - }, - "highlight": { - "minArgs": 1, - "maxArgs": 1 - }, - "insertCSS": { - "minArgs": 1, - "maxArgs": 2 - }, - "move": { - "minArgs": 2, - "maxArgs": 2 - }, - "query": { - "minArgs": 1, - "maxArgs": 1 - }, - "reload": { - "minArgs": 0, - "maxArgs": 2 - }, - "remove": { - "minArgs": 1, - "maxArgs": 1 - }, - "removeCSS": { - "minArgs": 1, - "maxArgs": 2 - }, - "sendMessage": { - "minArgs": 2, - "maxArgs": 3 - }, - "setZoom": { - "minArgs": 1, - "maxArgs": 2 - }, - "setZoomSettings": { - "minArgs": 1, - "maxArgs": 2 - }, - "update": { - "minArgs": 1, - "maxArgs": 2 - } - }, - "topSites": { - "get": { - "minArgs": 0, - "maxArgs": 0 - } - }, - "webNavigation": { - "getAllFrames": { - "minArgs": 1, - "maxArgs": 1 - }, - "getFrame": { - "minArgs": 1, - "maxArgs": 1 - } - }, - "webRequest": { - "handlerBehaviorChanged": { - "minArgs": 0, - "maxArgs": 0 - } - }, - "windows": { - "create": { - "minArgs": 0, - "maxArgs": 1 - }, - "get": { - "minArgs": 1, - "maxArgs": 2 - }, - "getAll": { - "minArgs": 0, - "maxArgs": 1 - }, - "getCurrent": { - "minArgs": 0, - "maxArgs": 1 - }, - "getLastFocused": { - "minArgs": 0, - "maxArgs": 1 - }, - "remove": { - "minArgs": 1, - "maxArgs": 1 - }, - "update": { - "minArgs": 2, - "maxArgs": 2 - } - } - }; - if (Object.keys(apiMetadata).length === 0) { - throw new Error("api-metadata.json has not been included in browser-polyfill"); - } - - /** - * A WeakMap subclass which creates and stores a value for any key which does - * not exist when accessed, but behaves exactly as an ordinary WeakMap - * otherwise. - * - * @param {function} createItem - * A function which will be called in order to create the value for any - * key which does not exist, the first time it is accessed. The - * function receives, as its only argument, the key being created. - */ - class DefaultWeakMap extends WeakMap { - constructor(createItem, items = undefined) { - super(items); - this.createItem = createItem; - } - get(key) { - if (!this.has(key)) { - this.set(key, this.createItem(key)); - } - return super.get(key); - } - } - - /** - * Returns true if the given object is an object with a `then` method, and can - * therefore be assumed to behave as a Promise. - * - * @param {*} value The value to test. - * @returns {boolean} True if the value is thenable. - */ - const isThenable = value => { - return value && typeof value === "object" && typeof value.then === "function"; - }; - - /** - * Creates and returns a function which, when called, will resolve or reject - * the given promise based on how it is called: - * - * - If, when called, `chrome.runtime.lastError` contains a non-null object, - * the promise is rejected with that value. - * - If the function is called with exactly one argument, the promise is - * resolved to that value. - * - Otherwise, the promise is resolved to an array containing all of the - * function's arguments. - * - * @param {object} promise - * An object containing the resolution and rejection functions of a - * promise. - * @param {function} promise.resolve - * The promise's resolution function. - * @param {function} promise.reject - * The promise's rejection function. - * @param {object} metadata - * Metadata about the wrapped method which has created the callback. - * @param {boolean} metadata.singleCallbackArg - * Whether or not the promise is resolved with only the first - * argument of the callback, alternatively an array of all the - * callback arguments is resolved. By default, if the callback - * function is invoked with only a single argument, that will be - * resolved to the promise, while all arguments will be resolved as - * an array if multiple are given. - * - * @returns {function} - * The generated callback function. - */ - const makeCallback = (promise, metadata) => { - return (...callbackArgs) => { - if (extensionAPIs.runtime.lastError) { - promise.reject(new Error(extensionAPIs.runtime.lastError.message)); - } else if (metadata.singleCallbackArg || callbackArgs.length <= 1 && metadata.singleCallbackArg !== false) { - promise.resolve(callbackArgs[0]); - } else { - promise.resolve(callbackArgs); - } - }; - }; - const pluralizeArguments = numArgs => numArgs == 1 ? "argument" : "arguments"; - - /** - * Creates a wrapper function for a method with the given name and metadata. - * - * @param {string} name - * The name of the method which is being wrapped. - * @param {object} metadata - * Metadata about the method being wrapped. - * @param {integer} metadata.minArgs - * The minimum number of arguments which must be passed to the - * function. If called with fewer than this number of arguments, the - * wrapper will raise an exception. - * @param {integer} metadata.maxArgs - * The maximum number of arguments which may be passed to the - * function. If called with more than this number of arguments, the - * wrapper will raise an exception. - * @param {boolean} metadata.singleCallbackArg - * Whether or not the promise is resolved with only the first - * argument of the callback, alternatively an array of all the - * callback arguments is resolved. By default, if the callback - * function is invoked with only a single argument, that will be - * resolved to the promise, while all arguments will be resolved as - * an array if multiple are given. - * - * @returns {function(object, ...*)} - * The generated wrapper function. - */ - const wrapAsyncFunction = (name, metadata) => { - return function asyncFunctionWrapper(target, ...args) { - if (args.length < metadata.minArgs) { - throw new Error(`Expected at least ${metadata.minArgs} ${pluralizeArguments(metadata.minArgs)} for ${name}(), got ${args.length}`); - } - if (args.length > metadata.maxArgs) { - throw new Error(`Expected at most ${metadata.maxArgs} ${pluralizeArguments(metadata.maxArgs)} for ${name}(), got ${args.length}`); - } - return new Promise((resolve, reject) => { - if (metadata.fallbackToNoCallback) { - // This API method has currently no callback on Chrome, but it return a promise on Firefox, - // and so the polyfill will try to call it with a callback first, and it will fallback - // to not passing the callback if the first call fails. - try { - target[name](...args, makeCallback({ - resolve, - reject - }, metadata)); - } catch (cbError) { - console.warn(`${name} API method doesn't seem to support the callback parameter, ` + "falling back to call it without a callback: ", cbError); - target[name](...args); - - // Update the API method metadata, so that the next API calls will not try to - // use the unsupported callback anymore. - metadata.fallbackToNoCallback = false; - metadata.noCallback = true; - resolve(); - } - } else if (metadata.noCallback) { - target[name](...args); - resolve(); - } else { - target[name](...args, makeCallback({ - resolve, - reject - }, metadata)); - } - }); - }; - }; - - /** - * Wraps an existing method of the target object, so that calls to it are - * intercepted by the given wrapper function. The wrapper function receives, - * as its first argument, the original `target` object, followed by each of - * the arguments passed to the original method. - * - * @param {object} target - * The original target object that the wrapped method belongs to. - * @param {function} method - * The method being wrapped. This is used as the target of the Proxy - * object which is created to wrap the method. - * @param {function} wrapper - * The wrapper function which is called in place of a direct invocation - * of the wrapped method. - * - * @returns {Proxy<function>} - * A Proxy object for the given method, which invokes the given wrapper - * method in its place. - */ - const wrapMethod = (target, method, wrapper) => { - return new Proxy(method, { - apply(targetMethod, thisObj, args) { - return wrapper.call(thisObj, target, ...args); - } - }); - }; - let hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty); - - /** - * Wraps an object in a Proxy which intercepts and wraps certain methods - * based on the given `wrappers` and `metadata` objects. - * - * @param {object} target - * The target object to wrap. - * - * @param {object} [wrappers = {}] - * An object tree containing wrapper functions for special cases. Any - * function present in this object tree is called in place of the - * method in the same location in the `target` object tree. These - * wrapper methods are invoked as described in {@see wrapMethod}. - * - * @param {object} [metadata = {}] - * An object tree containing metadata used to automatically generate - * Promise-based wrapper functions for asynchronous. Any function in - * the `target` object tree which has a corresponding metadata object - * in the same location in the `metadata` tree is replaced with an - * automatically-generated wrapper function, as described in - * {@see wrapAsyncFunction} - * - * @returns {Proxy<object>} - */ - const wrapObject = (target, wrappers = {}, metadata = {}) => { - let cache = Object.create(null); - let handlers = { - has(proxyTarget, prop) { - return prop in target || prop in cache; - }, - get(proxyTarget, prop, receiver) { - if (prop in cache) { - return cache[prop]; - } - if (!(prop in target)) { - return undefined; - } - let value = target[prop]; - if (typeof value === "function") { - // This is a method on the underlying object. Check if we need to do - // any wrapping. - - if (typeof wrappers[prop] === "function") { - // We have a special-case wrapper for this method. - value = wrapMethod(target, target[prop], wrappers[prop]); - } else if (hasOwnProperty(metadata, prop)) { - // This is an async method that we have metadata for. Create a - // Promise wrapper for it. - let wrapper = wrapAsyncFunction(prop, metadata[prop]); - value = wrapMethod(target, target[prop], wrapper); - } else { - // This is a method that we don't know or care about. Return the - // original method, bound to the underlying object. - value = value.bind(target); - } - } else if (typeof value === "object" && value !== null && (hasOwnProperty(wrappers, prop) || hasOwnProperty(metadata, prop))) { - // This is an object that we need to do some wrapping for the children - // of. Create a sub-object wrapper for it with the appropriate child - // metadata. - value = wrapObject(value, wrappers[prop], metadata[prop]); - } else if (hasOwnProperty(metadata, "*")) { - // Wrap all properties in * namespace. - value = wrapObject(value, wrappers[prop], metadata["*"]); - } else { - // We don't need to do any wrapping for this property, - // so just forward all access to the underlying object. - Object.defineProperty(cache, prop, { - configurable: true, - enumerable: true, - get() { - return target[prop]; - }, - set(value) { - target[prop] = value; - } - }); - return value; - } - cache[prop] = value; - return value; - }, - set(proxyTarget, prop, value, receiver) { - if (prop in cache) { - cache[prop] = value; - } else { - target[prop] = value; - } - return true; - }, - defineProperty(proxyTarget, prop, desc) { - return Reflect.defineProperty(cache, prop, desc); - }, - deleteProperty(proxyTarget, prop) { - return Reflect.deleteProperty(cache, prop); - } - }; - - // Per contract of the Proxy API, the "get" proxy handler must return the - // original value of the target if that value is declared read-only and - // non-configurable. For this reason, we create an object with the - // prototype set to `target` instead of using `target` directly. - // Otherwise we cannot return a custom object for APIs that - // are declared read-only and non-configurable, such as `chrome.devtools`. - // - // The proxy handlers themselves will still use the original `target` - // instead of the `proxyTarget`, so that the methods and properties are - // dereferenced via the original targets. - let proxyTarget = Object.create(target); - return new Proxy(proxyTarget, handlers); - }; - - /** - * Creates a set of wrapper functions for an event object, which handles - * wrapping of listener functions that those messages are passed. - * - * A single wrapper is created for each listener function, and stored in a - * map. Subsequent calls to `addListener`, `hasListener`, or `removeListener` - * retrieve the original wrapper, so that attempts to remove a - * previously-added listener work as expected. - * - * @param {DefaultWeakMap<function, function>} wrapperMap - * A DefaultWeakMap object which will create the appropriate wrapper - * for a given listener function when one does not exist, and retrieve - * an existing one when it does. - * - * @returns {object} - */ - const wrapEvent = wrapperMap => ({ - addListener(target, listener, ...args) { - target.addListener(wrapperMap.get(listener), ...args); - }, - hasListener(target, listener) { - return target.hasListener(wrapperMap.get(listener)); - }, - removeListener(target, listener) { - target.removeListener(wrapperMap.get(listener)); - } - }); - const onRequestFinishedWrappers = new DefaultWeakMap(listener => { - if (typeof listener !== "function") { - return listener; - } - - /** - * Wraps an onRequestFinished listener function so that it will return a - * `getContent()` property which returns a `Promise` rather than using a - * callback API. - * - * @param {object} req - * The HAR entry object representing the network request. - */ - return function onRequestFinished(req) { - const wrappedReq = wrapObject(req, {} /* wrappers */, { - getContent: { - minArgs: 0, - maxArgs: 0 - } - }); - listener(wrappedReq); - }; - }); - const onMessageWrappers = new DefaultWeakMap(listener => { - if (typeof listener !== "function") { - return listener; - } - - /** - * Wraps a message listener function so that it may send responses based on - * its return value, rather than by returning a sentinel value and calling a - * callback. If the listener function returns a Promise, the response is - * sent when the promise either resolves or rejects. - * - * @param {*} message - * The message sent by the other end of the channel. - * @param {object} sender - * Details about the sender of the message. - * @param {function(*)} sendResponse - * A callback which, when called with an arbitrary argument, sends - * that value as a response. - * @returns {boolean} - * True if the wrapped listener returned a Promise, which will later - * yield a response. False otherwise. - */ - return function onMessage(message, sender, sendResponse) { - let didCallSendResponse = false; - let wrappedSendResponse; - let sendResponsePromise = new Promise(resolve => { - wrappedSendResponse = function (response) { - didCallSendResponse = true; - resolve(response); - }; - }); - let result; - try { - result = listener(message, sender, wrappedSendResponse); - } catch (err) { - result = Promise.reject(err); - } - const isResultThenable = result !== true && isThenable(result); - - // If the listener didn't returned true or a Promise, or called - // wrappedSendResponse synchronously, we can exit earlier - // because there will be no response sent from this listener. - if (result !== true && !isResultThenable && !didCallSendResponse) { - return false; - } - - // A small helper to send the message if the promise resolves - // and an error if the promise rejects (a wrapped sendMessage has - // to translate the message into a resolved promise or a rejected - // promise). - const sendPromisedResult = promise => { - promise.then(msg => { - // send the message value. - sendResponse(msg); - }, error => { - // Send a JSON representation of the error if the rejected value - // is an instance of error, or the object itself otherwise. - let message; - if (error && (error instanceof Error || typeof error.message === "string")) { - message = error.message; - } else { - message = "An unexpected error occurred"; - } - sendResponse({ - __mozWebExtensionPolyfillReject__: true, - message - }); - }).catch(err => { - // Print an error on the console if unable to send the response. - console.error("Failed to send onMessage rejected reply", err); - }); - }; - - // If the listener returned a Promise, send the resolved value as a - // result, otherwise wait the promise related to the wrappedSendResponse - // callback to resolve and send it as a response. - if (isResultThenable) { - sendPromisedResult(result); - } else { - sendPromisedResult(sendResponsePromise); - } - - // Let Chrome know that the listener is replying. - return true; - }; - }); - const wrappedSendMessageCallback = ({ - reject, - resolve - }, reply) => { - if (extensionAPIs.runtime.lastError) { - // Detect when none of the listeners replied to the sendMessage call and resolve - // the promise to undefined as in Firefox. - // See https://github.com/mozilla/webextension-polyfill/issues/130 - if (extensionAPIs.runtime.lastError.message === CHROME_SEND_MESSAGE_CALLBACK_NO_RESPONSE_MESSAGE) { - resolve(); - } else { - reject(new Error(extensionAPIs.runtime.lastError.message)); - } - } else if (reply && reply.__mozWebExtensionPolyfillReject__) { - // Convert back the JSON representation of the error into - // an Error instance. - reject(new Error(reply.message)); - } else { - resolve(reply); - } - }; - const wrappedSendMessage = (name, metadata, apiNamespaceObj, ...args) => { - if (args.length < metadata.minArgs) { - throw new Error(`Expected at least ${metadata.minArgs} ${pluralizeArguments(metadata.minArgs)} for ${name}(), got ${args.length}`); - } - if (args.length > metadata.maxArgs) { - throw new Error(`Expected at most ${metadata.maxArgs} ${pluralizeArguments(metadata.maxArgs)} for ${name}(), got ${args.length}`); - } - return new Promise((resolve, reject) => { - const wrappedCb = wrappedSendMessageCallback.bind(null, { - resolve, - reject - }); - args.push(wrappedCb); - apiNamespaceObj.sendMessage(...args); - }); - }; - const staticWrappers = { - devtools: { - network: { - onRequestFinished: wrapEvent(onRequestFinishedWrappers) - } - }, - runtime: { - onMessage: wrapEvent(onMessageWrappers), - onMessageExternal: wrapEvent(onMessageWrappers), - sendMessage: wrappedSendMessage.bind(null, "sendMessage", { - minArgs: 1, - maxArgs: 3 - }) - }, - tabs: { - sendMessage: wrappedSendMessage.bind(null, "sendMessage", { - minArgs: 2, - maxArgs: 3 - }) - } - }; - const settingMetadata = { - clear: { - minArgs: 1, - maxArgs: 1 - }, - get: { - minArgs: 1, - maxArgs: 1 - }, - set: { - minArgs: 1, - maxArgs: 1 - } - }; - apiMetadata.privacy = { - network: { - "*": settingMetadata - }, - services: { - "*": settingMetadata - }, - websites: { - "*": settingMetadata - } - }; - return wrapObject(extensionAPIs, staticWrappers, apiMetadata); - }; - - // The build process adds a UMD wrapper around this file, which makes the - // `module` variable available. - module.exports = wrapAPIs(chrome); - } else { - module.exports = globalThis.browser; - } -}); diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/service/DocStartInjection.js b/data/extensions/jsr@javascriptrestrictor/nscl/service/DocStartInjection.js deleted file mode 100644 index 65571ab..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/service/DocStartInjection.js +++ /dev/null @@ -1,287 +0,0 @@ -/* - * NoScript Commons Library - * Reusable building blocks for cross-browser security/privacy WebExtensions. - * Copyright (C) 2020-2024 Giorgio Maone <https://maone.net> - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see <https://www.gnu.org/licenses/>. - */ - -// depends on /nscl/common/sha256.js -// depends on /nscl/common/uuid.js - -"use strict"; - -var DocStartInjection = (() => { - const MSG_ID = "__DocStartInjection__"; - const repeating = !("contentScripts" in browser); - const mv3Callbacks = repeating && !browser.tabs.executeScript; // mv3 on Chrome - - let scriptBuilders = new Set(); - let getId = ({requestId, tabId, frameId, url}) => requestId || `${tabId}:${frameId}:${url}`; - let pending = new Map(); - - function onMessage(msg, sender) { - let payload = msg[MSG_ID]; - if (!payload) return; - let {id, tabId, frameId, url} = payload; - let ret = false; - if (tabId === sender.tab.id && frameId === sender.frameId && url === sender.url) { - end(payload, true); - ret = true; - } - return Promise.resolve(ret); - } - - async function begin(request) { - let scripts = new Set(); - let {tabId, frameId, url} = request; - if (tabId < 0 || !/^(?:(?:https?|ftp|data|blob|file):|about:blank$)/.test(url)) return; - - await Promise.allSettled([...scriptBuilders].map(async buildScript => { - let script; - try { - script = await buildScript({tabId, frameId, url}); - if (!script) return; - if (mv3Callbacks) { - if (typeof script !== "object") { - throw new Error('On MV3 only {data: jsonObject, callback: "globalFunctionName", assign: "globalScopeVarName"} injection can work!') - } - const {data, callback, assign} = script; - scripts.add({ - data, - callback, - assign, - }); - return; - } - // mv2 - scripts.add(`try { - ${typeof script === "function" ? `(${script})();` : script} - } catch (e) { - console.error("Error in DocStartInjection script", e); - }` - ); - } catch (e) { - error(`Error calling DocStartInjection scriptBuilder: buildScript ${buildScript} - script: ${script}`, e); - } - })); - - if (scripts.size === 0) { - debug(`DocStartInjection: no script to inject in ${url}`); - return; - } - - let id = getId(request); - - if (repeating) { - let injectionId = `injection:${uuid()}:${await sha256(Math.random().toString(16))}`; - let args = mv3Callbacks ? - // mv3 browser.scripting.executeScript() - { - func: (url, injectionId, scripts) => { - if (document.readyState === "complete" || - window[injectionId] || - document.URL !== url - ) return window[injectionId]; - window[injectionId] = true; - for (s of scripts) { - const {callback, assign, data} = s; - try { - if (assign && !(assign in globalThis)) { - globalThis[assign] = data; - } - if (callback) { - let cb = globalThis[callback]; - if (typeof cb == "function") { - cb.call(globalThis, data); - } else { - console.warn(`callback globalThis.${callback} is not a function (${cb}).`); - } - } - } catch (e) { - console.error(`Error in DocStartInjection script ${JSON.stringify(s)}`, e); - } - } - return document.readyState === "loading"; - }, - args: [url, injectionId, [...scripts]], - target: {tabId, frameIds: [frameId]}, - injectImmediately: true, - } : - // mv2 browser.tabs.executeScript() - { - code: `(() => { - let injectionId = ${JSON.stringify(injectionId)}; - if (document.readyState === "complete" || - window[injectionId] || - document.URL !== ${JSON.stringify(url)} - ) return window[injectionId]; - window[injectionId] = true; - ${[...scripts].join("\n")} - return document.readyState === "loading"; - })();`, - runAt: "document_start", - frameId, - }; - pending.set(id, args); - await run(request, true); - } else { - let matches = [url]; - try { - let urlObj = new URL(url); - if (urlObj.port) { - urlObj.port = ""; - matches[0] = urlObj.toString(); - } - } catch (e) {} - - let ackMsg = JSON.stringify({ - [MSG_ID]: {id, tabId, frameId, url} - }); - scripts.add(`if (document.readyState !== "complete") browser.runtime.sendMessage(${ackMsg});`); - - let options = { - js: [...scripts].map(code => ({code})), - runAt: "document_start", - matchAboutBlank: true, - matches, - allFrames: true, - }; - let current = pending.get(id); - if (current) { - current.unregister(); - } - pending.set(id, await browser.contentScripts.register(options)); - } - } - - async function run(request, repeat = false) { - const id = getId(request); - const args = pending.get(id); - if (!args) return; - let {url, tabId} = request; - let attempts = 0; - let success = false; - const execute = mv3Callbacks ? - async () => { - const ret = await browser.scripting.executeScript(args); - return ret[0].result; - } - : async() => { - const ret = await browser.tabs.executeScript(tabId, args); - return ret[0]; - }; - for (; pending.has(id);) { - attempts++; - try { - if (attempts % 1000 === 0) { - let tab = await browser.tabs.get(request.tabId); - if (tab.url !== url) { - console.error(`Tab mismatch: ${tab.url} <> ${url} (download-triggered?)`); - break; - } - console.error(`DocStartInjection at ${url} ${attempts} failed attempts so far...`); - } - if (execute()) { - success = true; - break; - } - } catch (e) { - if (/No tab\b/.test(e.message)) { - break; - } - if (!/\baccess\b/.test(e.message)) { - console.error(e.message); - } - if (!browser.tabs.executeScript) { - console.error(`MV3 fatality, cannot script tab ${tabId}! ${JSON.stringify(args)}`); - break; - } - if (attempts % 1000 === 0) { - console.error(`DocStartInjection at ${url} ${attempts} failed attempts`, e); - } - } finally { - if (!repeat) break; - } - } - pending.delete(id); - debug(`DocStartInjection at ${url}, ${attempts} attempts, success = ${success}, repeat = ${repeat}.`); - } - - function end(request, immediate = false) { - let id = getId(request); - let script = pending.get(id); - if (script) { - if (repeating) { - run(request, false); - } else { - pending.delete(id); - if (immediate) { - script.unregister(); - } else { - setTimeout(() => script.unregister(), 500); - } - } - } - } - - let listeners = { - onBeforeNavigate: begin, - onErrorOccurred: end, - onCompleted: end, - } - - function listen(enabled) { - let {webNavigation, webRequest} = browser; - let method = `${enabled ? "add" : "remove"}Listener`; - let reqFilter = {urls: ["<all_urls>"], types: ["main_frame", "sub_frame", "object"]}; - function setup(api, eventName, listener, ...args) { - let event = api[eventName]; - if (event) { - event[method].apply(event, enabled ? [listener, ...args] : [listener]); - } - } - if (repeating) { - // Just Chromium - setup(webRequest, "onResponseStarted", begin, reqFilter); - } else { - // add or remove Firefox's webNavigation listeners for non-http loads - // and asynchronous blocking onHeadersReceived for registration on http - let navFilter = enabled && {url: [{schemes: ["file", "ftp"]}]}; - for (let [eventName, listener] of Object.entries(listeners)) { - setup(webNavigation, eventName, listener, navFilter) - } - setup(webRequest, "onHeadersReceived", begin, reqFilter, ["blocking"]); - browser.runtime.onMessage[method](onMessage); - } - - // add or remove common webRequest listener - for (let [eventName, listener] of Object.entries(listeners)) { - setup(webRequest, eventName, listener, reqFilter); - } - } - - return { - mv3Callbacks, - register(scriptBuilder) { - if (scriptBuilders.size === 0) listen(true); - scriptBuilders.add(scriptBuilder); - }, - unregister(scriptBuilder) { - scriptBuilders.delete(scriptBuilder); - if (scriptBuilders.size === 0) listen(false); - } - }; -})();
\ No newline at end of file diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/service/NavCache.js b/data/extensions/jsr@javascriptrestrictor/nscl/service/NavCache.js deleted file mode 100644 index 28bdb0d..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/service/NavCache.js +++ /dev/null @@ -1,83 +0,0 @@ -/* - * NoScript Commons Library - * Reusable building blocks for cross-browser security/privacy WebExtensions. - * Copyright (C) 2020-2024 Giorgio Maone <https://maone.net> - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see <https://www.gnu.org/licenses/>. - */ - -var NavCache = (() => { - - let tabs = {}; - let listeners = new Set(); - - let clone = structuredClone || (o => JSON.parse(JSON.stringify(o))); - - browser.webNavigation.onCommitted.addListener(({tabId, frameId, url, parentFrameId}) => { - let tab = tabs[tabId]; - let frame = tab && tab[frameId]; - if (!tab || frameId == 0) { - tabs[tabId] = tab = {}; - } - let previousUrl = frame && frame.url; - frame = tab[frameId] = {previousUrl, url, parentFrameId}; - if (previousUrl !== url) { - for (let l of listeners) { - try { - l(Object.assign({tabId, frameId}, frame)); - } catch (e) { - console.error(e); - } - } - } - }); - - browser.tabs.onRemoved.addListener(tabId => { - delete tabs[tabId]; - }); - - - return { - wakening: (async () => { - async function populateFrames(tab) { - let tabId = tab.id; - let frames = await browser.webNavigation.getAllFrames({tabId}); - if (!frames) return; // invalid tab - if (!tabs[tabId]) tabs[tabId] = {}; - let top = tabs[tabId]; - for ({frameId, url, parentFrameId} of frames) { - tab[frameId] = {url, parentFrameId}; - } - } - await Promise.all((await browser.tabs.query({})).map(populateFrames)); - return true; - })(), - - getTab(tabId) { - return clone(tabs[tabId] || {}); - }, - getFrame(tabId, frameId) { - return clone((tabs[tabId] || {})[frameId]); - }, - onUrlChanged: { - addListener(listener) { - listeners.add(listener); - }, - removeListener(listener) { - listeners.remove(listeners); - } - } - }; -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/nscl/service/TabCache.js b/data/extensions/jsr@javascriptrestrictor/nscl/service/TabCache.js deleted file mode 100644 index eb290f0..0000000 --- a/data/extensions/jsr@javascriptrestrictor/nscl/service/TabCache.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * NoScript Commons Library - * Reusable building blocks for cross-browser security/privacy WebExtensions. - * Copyright (C) 2020-2024 Giorgio Maone <https://maone.net> - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) any later - * version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see <https://www.gnu.org/licenses/>. - */ - -var TabCache = (() => { - - const cache = new Map(); - - browser.tabs.onUpdated.addListener((tabId, changes, tab) => { - cache.set(tabId, tab); - }); - - browser.tabs.onRemoved.addListener(tabId => { - cache.delete(tabId); - }); - - return { - wakening: (async () => { - for (let tab of await browser.tabs.query({})) { - cache.set(tab.id, tab); - } - })(), - get(tabId) { - return cache.get(tabId); - }, - async async(tabId) { - return cache.get(tabId) || await browser.tabs.get(tabId); - } - }; -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/options.css b/data/extensions/jsr@javascriptrestrictor/options.css deleted file mode 100644 index 130900f..0000000 --- a/data/extensions/jsr@javascriptrestrictor/options.css +++ /dev/null @@ -1,276 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2021-2019 Libor Polčák - * SPDX-FileCopyrightText: 2021-2019 Martin Timko - * SPDX-FileCopyrightText: 2022-2021 Marek Saloň - * - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -body { - display: grid; - grid-template-columns: 10em 1fr; - grid-template-areas: - "logo content" - "menu content" - "versions content" - "footer footer"; - grid-gap: 3em; -} - -section.logo { - grid-area: logo; -} -nav.menu { - grid-area: menu; -} -section.content { - grid-area: content; -} -section.versions { - grid-area: versions; -} -footer { - grid-area: footer; -} - -@media (max-width: 600px) { - body { - /* Redefine the grid into a single column layout. */ - grid-template-columns: 1fr; - grid-template-areas: - "content" - "menu" - "logo" - "versions" - "footer"; - } -} - -@media (min-width: 1300px) { - body { - /* Redefine the grid into a three column layout with empty space on the left and right. */ - grid-template-columns: 1fr 10em 1000px 10% 1fr; - grid-template-areas: - "left-empty logo content right-empty" - "left-empty menu content right-empty" - "left-empty menu footer right-empty" - } - section.logo { - padding-top: 3em; - } -} - -section.logo img { - display: block; - margin-left: auto; - margin-right: auto; - background-color: white; -} - -nav.menu { - font-family: sans-serif; -} - -@media (min-width: 601px) { - nav.menu { - padding-top: 3em; - } -} - -nav.menu ul { - list-style-type: none; - margin: 0; - padding: 0; -} - -nav.menu { - color: var(--title-color); - background-color: var(--menu-background); -} - -nav.menu ul ul { - padding-left: 1em; -} - -nav.menu ul p:after { - content: "__MSG_ExternalLinksSeparator__"; -} - -nav.menu ul a:visited, nav.menu ul a, nav.menu ul p { - color: var(--menu-color); - background-color: var(--menu-background); - font-weight: bold; - display: block; - text-decoration: none; - padding-top: 1ex; - padding-bottom: 1ex; - padding-right: 1em; - padding-left: 1em; - margin: 0; -} - -nav.menu ul a:hover { - color: var(--light-logo-contrast); - background-color: var(--light-logo); -} - -section.content { - text-align: justify; -} - -section.content section#configuration_area #tweaks div.more, section.content div.tweakgrid div.more { - text-align: left; -} - -.main-section { - padding: 0.5em; -} - -.main-section + div:not(.main-section) { - padding-top: 0em; - padding-left: 3em; - padding-bottom: 1em; -} - -#levels-list li, #domain-level-list li { - list-style-type: none; - margin: 0px; - padding-top: 0.5em; -} - -.level { - margin: 0px; - padding: 0.5em; -} - -.undo { - background-color: var(--attention-background); - color: var(--attention-color); - font-weight: bold; -} - -.undo a, .alert a { - color: var(--attention-color); -} - -.alert{ - padding: 1em; -} - -.hidden{ - display: none; -} - -.domain { - font-weight: bold; - font-size: large; -} - -.tweakgrid, #tweaks { - display: grid; - grid: auto / auto auto 5ex 1fr; - gap: 1em; - align-items: center; -} - -#proxy-protection-config, #fingerprinting-protection-config -{ - display:flex; - flex-direction: column; -} - -#nbs-whitelist-select, #fpd-whitelist-select -{ - width:40%; - max-width: 400px; - min-width: 200px; - font-size: 12pt; - margin-bottom:3px; - margin-top: 3px; -} - -#nbs-whitelist-input, #fpd-whitelist-input -{ - width: 39.5%; - max-width: 394px; - min-width: 194px; - font-size: 12pt; -} - -.unsupported_api { - color: var(--good-news); -} - -.notsupportedapis { - display: none; -} - -section#sect-devel { - display: none; -} - -button.level { - min-width: 80%; - max-width: 80%; -} -label.level_button_descr { - display: inline-block; - width: 80%; -} - -#levels-storage-text { - width: 100%; - height: 50ex; -} - -fieldset { - border: 0; -} - -.more + .less { - display: none; -} - -#current-level-tweaks input[type=range], #builtin-jss-tweaks input[type=range] { - pointer-events:none; /* do not allow modifications, https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events */ -} - -.protection-title { - display: flex; - align-items:center; -} - -.protection-title > .shield-onoff-label { - padding-right: 10px; -} - -#jss-shield-settings { - display: flex; -} - -.jss-shield-settings-item { - flex: 1; -} - -#current-level-tweaks-detail { - flex: 2; -} - -form { - margin: 2em; -} - -#builtin-jss-tweaks { - display: grid; - grid-template-columns: auto auto auto auto; - column-gap: 3em; - row-gap: 3ex; -} - -#builtin-jss-tweaks span { - text-align: left; -} - -#builtin-jss-tweaks .tweak_domain { - color: var(--title-color); -} diff --git a/data/extensions/jsr@javascriptrestrictor/options.html b/data/extensions/jsr@javascriptrestrictor/options.html deleted file mode 100644 index 9cfec6c..0000000 --- a/data/extensions/jsr@javascriptrestrictor/options.html +++ /dev/null @@ -1,185 +0,0 @@ -<!DOCTYPE html> -<!-- -SPDX-FileCopyrightText: 2021 2019 Libor Polčák -SPDX-FileCopyrightText: 2021 2019 Martin Timko -SPDX-FileCopyrightText: 2022 2021 Marek Saloň - -SPDX-License-Identifier: GPL-3.0-or-later ---> -<html lang="en"> -<head> - <meta charset="utf-8"> - <link rel="icon" type="image/x-icon" href="/img/logo.svg"> - <link rel="stylesheet" type="text/css" href="common.css"> - <link rel="stylesheet" type="text/css" href="options.css"> - <script src="/nscl/lib/browser-polyfill.js" type="text/javascript"></script> - <script src="levels_browser.js" type="text/javascript"></script> - <script src="settings_tweaks.js" type="text/javascript" defer></script> - <script src="levels.js" type="text/javascript"></script> - <script src="options_init.js" type="text/javascript" defer></script> - <script src="helpers.js" type="text/javascript" defer></script> - <script src="tweaks_gui.js" type="text/javascript" defer></script> - <script src="options.js" type="text/javascript" defer></script> - <script src="i18n_translate_dom.js" type="text/javascript" defer></script> - <script src="options_nbs.js" type="text/javascript" defer></script> <!-- This file appends text to - the div translated by i18n_translate_dom.js, keep this script after i18n_translate_dom.js --> - <title data-localize="JShelterOptions">JShelter options</title> -</head> -<body> - <section class="logo"> - <img src="img/icon-128.png" alt="JShelter logo" id="logoimg"> - </section> - <nav class="menu"> - <ul> - <li><a href="options.html" data-localize="MainSettings">Main settings</a></li> - <li><a href="options_domains.html" data-localize="JSSShieldDetails">JS Shield details</a></li> - <li><a href="options_advanced.html" data-localize="AdvancedOptions">Advanced options</a></li> - <li> - <p data-localize="ExternalLinks">External links</p> - <ul> - <li><a href="https://JShelter.org/threatmodel/" data-localize="ThreatModel">Threat model</a></li> - <li><a href="https://JShelter.org/faq/" data-localize="FAQ">FAQ</a></li> - <li><a href="https://polcak.github.io/jsrestrictor/test/test.html" data-localize="TestPage">Test page</a></li> - <li><a href="https://JShelter.org/permissions/" data-localize="Permissions">Permissions</a></li> - <li><a href="https://pagure.io/JShelter/webextension/" data-localize="SourceCode">Source code</a></li> - <li><a href="https://pagure.io/JShelter/webextension/issues" data-localize="IssueTracker">Issue tracker</a></li> - <li><a href="https://JShelter.org/credits/" data-localize="Credits">Credits</a></li> - </ul> - </li> - </ul> - </nav> - - - <section class="content"> - - <h1>JShelter</h1> - -<section id="configuration_area"> - <div id="levels-config"> - <h2 id="set-default-level" data-localize="JavascriptShield">JavaScript Shield</h2> - <div class="jss_description" data-localize="JavascriptShieldDescription" htmltranslation></div> - - <p class="alert mv3" id="mv3-devmode-required" issue166-localize="MV3DevmodeRequired" htmltranslation></p> - - <h3 data-localize="JavascriptShieldLevelsMainLevelOptionHeading">Create custom levels and set the default level</h3> - <p class="alert" data-localize="newLevelsNotRecommended" htmltranslation>We do not recommend creating own levels and - changing configuration if you are concerned about browser fingerprinting. Please read - <a href="https://jshelter.org/faq/">FAQ</a> and our <a - href="https://arxiv.org/abs/2204.01392">paper</a>. By diverging from the configuration of - other users, you make your re-identification easier.</p> - <div id="jss-shield-settings"> - <div class="jss-shield-settings-item"> - <ul id="levels-list"> - </ul> - <fieldset> - <button id="new_level" class="jsr-button" data-localize="AddCustomLevel">Add custom level</button> - </fieldset> - </div> - <div id="current-level-tweaks-detail" class="jss-shield-settings-item"> - <h3 id="current-level-tweaks-heading"></h3> - <div id="current-level-tweaks" class="tweakgrid"> - </div> - </div> - </div> - </div> - - <div id="proxy-protection-config" class="mv2"> - <div class="protection-title"> - <h2 class="shield-onoff-label" for="nbs-switch" data-localize="NetworkBoundaryShield">Network Boundary Shield</h2> - <label class="switch"> - <input id="nbs-switch" type="checkbox" checked> - <span class="slider"></span> - </label> - </div> - <div class="nbs_description" data-localize="NBSDescription" htmltranslation></div> - <fieldset> - <div class="tweakgrid" id="nbs-settings"> - - </div> - </fieldset> - <fieldset> - <button id="nbs-whitelist-show" class="jsr-button" data-localize="ManageWhitelist">Manage whitelist ⤵</button> - <button id="nbs-whitelist-hide" class="jsr-button hidden" data-localize="HideWhitelist">Hide whitelist ⤵</button> - </fieldset> - <fieldset id="nbs-whitelist-container" class="hidden"> - <div> - <input id="nbs-whitelist-input" type="text" name="nbs-whitelist-hostname" placeholder="example.com"> - <button id="nbs-whitelist-add-button" class="jsr-button" data-localize="ButtonDisableForDomain" htmltranslation>Disable for the domain</button> - </div> - <select id="nbs-whitelist-select" name="sometext" size="10" multiple> - - </select> - <div> - <button id="nbs-whitelist-remove-button" class="jsr-button" data-localize="ButtonEnableForSelectedDomains" htmltranslation>Enable for the selected domains</button> - <p data-localize="ManageWhitelistDescription" htmltranslation> - Please note, that these domain names are checked with domain hierarchy, so whitelisting - <strong>example.com</strong> does also whitelist <strong>news.example.com</strong>. - </p> - </div> - </fieldset> - </div> - - <p class="alert mv3" data-localize="MV3BrokenFeatures" htmltranslation></p> - - <div id="fingerprinting-protection-config"> - <div class="protection-title"> - <h2 class="shield-onoff-label" for="fpd-switch" data-localize="FingerprintDetector">Fingerprint Detector</h2> - <label class="switch"> - <input id="fpd-switch" type="checkbox" checked> - <span class="slider"></span> - </label> - </div> - <div class="fpd_description" data-localize="FPDDescription" htmltranslation></div> - <fieldset> - <div class="tweakgrid" id="fpd-settings"> - - </div> - </fieldset> - <fieldset> - <button id="fpd-whitelist-show" class="jsr-button" data-localize="ManageWhitelist">Manage whitelist ⤵</button> - <button id="fpd-whitelist-hide" class="jsr-button hidden" data-localize="HideWhitelist">Hide whitelist ⤵</button> - </fieldset> - <fieldset id="fpd-whitelist-container" class="hidden"> - <div> - <input id="fpd-whitelist-input" type="text" name="fpd-whitelist-hostname" placeholder="example.com"> - <button id="fpd-whitelist-add-button" class="jsr-button" data-localize="ButtonDisableForDomain" htmltranslation>Disable for the domain</button> - </div> - <select id="fpd-whitelist-select" name="sometext" size="10" multiple> - - </select> - <div> - <button id="fpd-whitelist-remove-button" class="jsr-button" data-localize="ButtonEnableForSelectedDomains" htmltranslation>Enable for the selected domains</button> - <p data-localize="ManageWhitelistDescription" htmltranslation> - Please note, that these domain names are checked with domain hierarchy, so whitelisting - <strong>example.com</strong> does also whitelist <strong>news.example.com</strong>. - </p> - </div> - </fieldset> - </div> - -</section> - - </section> - - - <template id="tweak-head"> - </template> - <template id="tweak-row"> - <label>Wrapper group name</label> - <div class="tweak"> - <input class="tlev" type="range" min="0" max="3" /><output></output> - </div> - <button class="help">⤵</button> - <div class="tweakfill"></div> - <div class="explainer hidden_descr"> - <span class="description"></span> - <p> - <div class="more"></div> - </p> - <div class="status"></div> - </div> - </template> - - -</body> -</html> diff --git a/data/extensions/jsr@javascriptrestrictor/options.js b/data/extensions/jsr@javascriptrestrictor/options.js deleted file mode 100644 index 2fe31c7..0000000 --- a/data/extensions/jsr@javascriptrestrictor/options.js +++ /dev/null @@ -1,505 +0,0 @@ -/** \file - * \brief Code that handles the configuration of the extension - * - * \author Copyright (C) 2019 Libor Polcak - * \author Copyright (C) 2019 Martin Timko - * \author Copyright (C) 2020 Peter Hornak - * \author Copyright (C) 2020 Pavel Pohner - * \author Copyright (C) 2022 Marek Salon - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - - -const MANDATORY_METADATA = ["level_id", "level_text", "level_description"]; - - -function prepare_level_config(action_descr, params) { - var configuration_area_el = document.getElementById("configuration_area"); - configuration_area_el.textContent = ""; - function find_unsupported_apis(html, wrapper) { - if (is_api_undefined(wrapper)) { - return html + `<li> <code>${wrapper}</code>.</li>`; - } - return html; - } - var unsupported_apis = wrapping_groups.groups.reduce((acc, group) => - group.wrappers.reduce(find_unsupported_apis, acc), ""); - if (unsupported_apis !== "") { - unsupported_apis = `<div class="unsupported_api">${browser.i18n.getMessage("omittedAPIsHeading")} ${unsupported_apis}</div>`; - } - var fragment = document.createRange().createContextualFragment(` -<div> - <div> - <h2>${action_descr}</h2> - </div> - <p class="alert"> - ${browser.i18n.getMessage("newLevelsNotRecommended")} - </p> - <form> - - <!-- Metadata --> - <div class="main-section"> - <label for="level_text">${browser.i18n.getMessage("formlabelName")}</label> - <input id="level_text" value="${escape(params.level_text)}"></input> - <input type="hidden" id="level_id" ${params.level_id != "" ? "disabled" : ""} value="${escape(params.level_id)}"></input> - </div> - <div class="main-section"> - <label for="level_description">${browser.i18n.getMessage("formlabelDescription")}</label> - <input id="level_description" value="${escape(params.level_description)}"></input> - </div> - - <div id="tweaks"></div> - - <button id="cancel" class="jsr-button">${browser.i18n.getMessage("ButtonCancel")}</button> - <button id="save" class="jsr-button">${browser.i18n.getMessage("ButtonSaveCustomLevel")}</button> - </form> - ${unsupported_apis} -</div>`); - configuration_area_el.appendChild(fragment); - - delete params["wrappers"]; - let tweaks = Object.assign({}, wrapping_groups.empty_level, params); - let tweaksContainer = document.getElementById("tweaks"); - let tweaksBusiness = Object.create(tweaks_gui); - tweaksBusiness.get_current_tweaks = function() { - let current = Object.assign({}, tweaks); - for (id of MANDATORY_METADATA) { - delete current[id]; - } - return current; - }; - tweaksBusiness.tweak_changed = function(group_id, desired_tweak) { - tweaks[group_id] = desired_tweak; - } - tweaksBusiness.create_tweaks_html(tweaksContainer); - - document.getElementById("save").addEventListener("click", function(e) { - e.preventDefault(); - let new_level = tweaks; - for (id of MANDATORY_METADATA) { - let elem = document.getElementById(id); - new_level[id] = elem.value; - }; - - if (new_level.level_id.length > 0 && new_level.level_text.length > 0 && new_level.level_description.length) { - async function updateLevels(new_level, stored_levels) { - custom_levels = stored_levels.custom_levels; - let ok = false; - if (new_level.level_id in custom_levels) { - ok = window.confirm(browser.i18n.getMessage("customLevelAlreadyExistsItWillBeOverridden", new_level.level_id)); - } - else { - ok = true; - } - if (ok) { - custom_levels[new_level.level_id] = new_level; - try { - await browser.storage.sync.set({custom_levels: custom_levels}); - location = ""; - } - catch (err) { - alert(browser.i18n.getMessage("customLevelWereNotUpdated")); - } - } - } - browser.storage.sync.get("custom_levels").then(updateLevels.bind(null, new_level)); - } - else { - alert(browser.i18n.getMessage("NewLevelMissingNameOrDescription")); - } - }); - document.getElementById("cancel").addEventListener("click", function(e) { - document.location = "options.html"; - }); -} - -function edit_level(id) { - prepare_level_config(browser.i18n.getMessage("JSSeditLevelHeading", escape(levels[id].level_text)), levels[id]); -} - -function restore_level(id, level_params) { - function restoreLevel(settings) { - var custom_levels = settings.custom_levels; - custom_levels[id] = level_params; - browser.storage.sync.set({"custom_levels": custom_levels}); - var existPref = document.getElementById(`li-exist-group-${escape(id)}`); - existPref.classList.remove("hidden"); - var removedPref = document.getElementById(`li-removed-group-${escape(id)}`); - removedPref.classList.add("hidden"); - var lielem = document.getElementById(`li-${id}`); - lielem.classList.remove("undo"); - } - browser.storage.sync.get("custom_levels").then(restoreLevel); -} - -function show_existing_level(levelsEl, level) { - let currentId = `level-${level}`; - var fragment = document.createRange().createContextualFragment(`<li id="li-${escape(level)}"> - <button class="level" id="${escape(currentId)}" title="${escape(levels[level].level_description)}"> - ${escape(levels[level].level_text)} - </button><span></span> - <p class="hidden_help_text"><label class="level_button_descr" for="${escape(currentId)}">${escape(levels[level].level_description)}</label></p> - </li>`); - levelsEl.appendChild(fragment); - var lielem = document.getElementById(`li-${level}`); // Note that FF here requires unescaped ID - if (levels[level].builtin !== true) { - var existPref = document.createElement("span"); - existPref.setAttribute("id", `li-exist-group-${escape(level)}`); - lielem.appendChild(existPref); - var edit = document.createElement("button"); - existPref.appendChild(edit); - edit.addEventListener("click", edit_level.bind(edit, level)); - edit.appendChild(document.createTextNode(browser.i18n.getMessage("ButtonEdit"))); - var remove = document.createElement("button"); - existPref.appendChild(remove); - remove.addEventListener("click", remove_level.bind(remove, level)); - remove.appendChild(document.createTextNode(browser.i18n.getMessage("ButtonRemove"))); - var removedPref = document.createElement("span"); - removedPref.setAttribute("id", `li-removed-group-${escape(level)}`); - removedPref.classList.add("hidden"); - lielem.appendChild(removedPref); - var restore = document.createElement("button"); - removedPref.appendChild(restore); - restore.addEventListener("click", restore_level.bind(restore, level, levels[level])); - restore.appendChild(document.createTextNode(browser.i18n.getMessage("ButtonRestore"))); - } - prepareHiddenHelpText(lielem.getElementsByClassName('hidden_help_text'), []); - var current = document.getElementById(escape(currentId)) - current.addEventListener("click", function() { - for (let child of levelsEl.children) { - child.children[0].classList.remove("active"); - } - this.classList.add("active"); - setDefaultLevel(level); - }); - current.addEventListener("mouseenter", function() { - if (level !== default_level.level_id) { - lev = levels[level]; - update_level_details(lev.level_text + " level (currently not applied by default), details:", lev); - } - }); - current.addEventListener("mouseout", update_level_details_default); -} - -function remove_level(id) { - function remove_level(settings) { - var custom_levels = settings.custom_levels; - // See https://alistapart.com/article/neveruseawarning/ - var existPref = document.getElementById(`li-exist-group-${escape(id)}`); - existPref.classList.add("hidden"); - var removedPref = document.getElementById(`li-removed-group-${escape(id)}`); - removedPref.classList.remove("hidden"); - var lielem = document.getElementById(`li-${id}`); - lielem.classList.add("undo"); - delete custom_levels[id]; - browser.storage.sync.set({"custom_levels": custom_levels}); - } - browser.storage.sync.get("custom_levels").then(remove_level); -} - -function update_level_details(heading, level) { - document.getElementById("current-level-tweaks-heading").textContent = heading; - var currentTweaksEl = document.getElementById("current-level-tweaks"); - let tweaksBusiness = Object.create(tweaks_gui); - tweaksBusiness.get_current_tweaks = function() { - return getTweaksForLevel(level.level_id, {}); - }; - tweaksBusiness.create_tweaks_html(currentTweaksEl); -} - -function update_level_details_default() { - update_level_details(default_level.level_text + " level (currently applied by default), details:", default_level); -} - -function insert_levels() { - // Insert all known levels to GUI - var allLevelsElement = document.getElementById("levels-list"); - for (let level in levels) { - show_existing_level(allLevelsElement, level); - } - // Select default level - document.getElementById("level-" + default_level.level_id).classList.add("active"); - update_level_details_default(); -} - -window.addEventListener("load", async function() { - if (!levels_initialised) { - levels_updated_callbacks.push(insert_levels); - } - else { - insert_levels(); - } - await Promise.all([ - load_module_settings("nbs"), - load_module_settings("fpd") - ]) - loadWhitelist("nbs"); - load_on_off_switch("nbs"); - loadWhitelist("fpd"); - load_on_off_switch("fpd"); -}); - -document.getElementById("new_level").addEventListener("click", function() { - let new_level = Object.assign({}, wrapping_groups.empty_level); - let seq = Object.keys(levels).length; - let new_id; - do { - new_id = "Custom" + String(seq); - seq++; - } while (levels[new_id] !== undefined) - new_level.level_id = new_id; - prepare_level_config(browser.i18n.getMessage("JSSaddLevelHeading"), new_level) -}); - -document.getElementById("nbs-whitelist-show").addEventListener("click", () => show_whitelist("nbs")); -document.getElementById("nbs-whitelist-hide").addEventListener("click", () => hide_whitelist("nbs")); -document.getElementById("nbs-whitelist-add-button").addEventListener("click", () => add_to_whitelist("nbs")); -document.getElementById("nbs-whitelist-input").addEventListener('keydown', (e) => {if (e.key === 'Enter') add_to_whitelist("nbs")}); -document.getElementById("nbs-whitelist-remove-button").addEventListener("click", () => remove_from_whitelist("nbs")); -document.getElementById("nbs-whitelist-select").addEventListener('keydown', (e) => {if (e.key === 'Delete') remove_from_whitelist("nbs")}); -document.getElementsByClassName("slider")[0].addEventListener("click", () => {setTimeout(control_slider, 200, "nbs")}); - -document.getElementById("fpd-whitelist-show").addEventListener("click", () => show_whitelist("fpd")); -document.getElementById("fpd-whitelist-hide").addEventListener("click", () => hide_whitelist("fpd")); -document.getElementById("fpd-whitelist-add-button").addEventListener("click", () => add_to_whitelist("fpd")); -document.getElementById("fpd-whitelist-input").addEventListener('keydown', (e) => {if (e.key === 'Enter') add_to_whitelist("fpd")}); -document.getElementById("fpd-whitelist-remove-button").addEventListener("click", () => remove_from_whitelist("fpd")); -document.getElementById("fpd-whitelist-select").addEventListener('keydown', (e) => {if (e.key === 'Delete') remove_from_whitelist("fpd")}); -document.getElementsByClassName("slider")[1].addEventListener("click", () => {setTimeout(control_slider, 200, "fpd")}); - -async function load_module_settings(prefix) { - let settings = await browser.runtime.sendMessage({purpose: prefix + "-get-settings"}); - if (settings) { - let tweaksBusiness = Object.create(tweaks_gui); - tweaksBusiness.previousValues = new Object(); - tweaksBusiness.tweak_changed = function(key, val) { - let permissions = settings.def[key].params[val].permissions || []; - browser.permissions.request({permissions: permissions}).then((granted) => { - if (granted) { - tweaksBusiness.previousValues[key] = val; - } - else { - let inputElement = document.querySelector(`#${prefix}-${key}-setting input`); - inputElement.value = tweaksBusiness.previousValues[key]; - inputElement.dispatchEvent(new Event("input")); - } - browser.runtime.sendMessage({purpose: prefix + "-set-settings", id: key, value: tweaksBusiness.previousValues[key]}); - }); - } - - let targetElement = document.getElementById(prefix + "-settings"); - for ([key, setting] of Object.entries(settings.def)) { - tweaksBusiness.previousValues[key] = settings.val[key]; - tweaksBusiness.add_tweak_row(targetElement, {}, key, settings.val[key], setting.label, setting, true); - } - } -} - -function show_whitelist(prefix) { - loadWhitelist(prefix); - var whitelist = document.getElementById(prefix + "-whitelist-container"); - whitelist.classList.toggle("hidden"); - document.getElementById(prefix + "-whitelist-show").classList.add("hidden"); - document.getElementById(prefix + "-whitelist-hide").classList.remove("hidden"); -} - -function hide_whitelist(prefix) { - var whitelist = document.getElementById(prefix + "-whitelist-container"); - whitelist.classList.toggle("hidden"); - document.getElementById(prefix + "-whitelist-show").classList.remove("hidden"); - document.getElementById(prefix + "-whitelist-hide").classList.add("hidden"); -} - -function add_to_whitelist(prefix) -{ - //obtain input value - var to_whitelist = document.getElementById(prefix + "-whitelist-input").value; - if (to_whitelist.trim() !== '') - { - var listbox = document.getElementById(prefix + "-whitelist-select"); - //Check if it's not in whitelist already - for (var i = 0; i < listbox.length; i++) - { - if (to_whitelist == listbox.options[i].text) - { - alert("Hostname is already in the whitelist."); - return; - } - } - //Insert it - listbox.options[listbox.options.length] = new Option(to_whitelist, to_whitelist); - //Update background - update_whitelist(listbox, prefix); - - } - else - { - alert("Please fill in the hostname first."); - } - -} - -function remove_from_whitelist(prefix) -{ - var listbox = document.getElementById(prefix + "-whitelist-select"); - var selectedIndexes = getSelectValues(listbox); - - var j = 0; - for (var i = 0; i < selectedIndexes.length; i++) - { - listbox.remove(selectedIndexes[i]-j); - j++; - } - update_whitelist(listbox, prefix); -} - -function update_whitelist(listbox, prefix) -{ - //Create new associative array - var whitelistedHosts = new Object(); - //Obtain all whitelisted hosts from listbox - for (var i = 0; i < listbox.length; i++) - { - whitelistedHosts[listbox.options[i].text] = true; - } - - if (prefix == "nbs") setStorageAndSendMessage({"nbsWhitelist":whitelistedHosts}, {message:"whitelist updated"}); - if (prefix == "fpd") setStorageAndSendMessage({"fpdWhitelist":whitelistedHosts}, {purpose:"update-fpd-whitelist"}); -} - -//Overwrite the whitelist in storage and send message to background -function setStorageAndSendMessage(setter, message) -{ - browser.storage.sync.set(setter); - browser.runtime.sendMessage(message); -} - -//Auxilary function for obtaining selected values from listbox -function getSelectValues(select) -{ - var result = []; - var options = select && select.options; - var opt; - - for (var i=0, iLen=options.length; i<iLen; i++) { - opt = options[i]; - - if (opt.selected) { - result.push(i); - } - } - return result; -} - -//Function called on window load, obtains whitelist from storage -//Displays it in listbox -function loadWhitelist(prefix) -{ - var listbox = document.getElementById(prefix + "-whitelist-select"); - listbox.options.length = 0; - - var whitelistName = prefix + "Whitelist"; - - //Get the whitelist - browser.storage.sync.get([whitelistName]).then(function(result) - { - if (result[whitelistName] != undefined) - { - //Create list box options for each item - var it = 0; - Object.keys(result[whitelistName]).forEach(function(key, index) { - listbox.options[it++] = new Option(key, key); - }, result[whitelistName]); - } - }); -} - -//Function called on window load, obtains whether is the protection on or off -function load_on_off_switch(prefix) -{ - var checkbox = document.getElementById(prefix + "-switch"); - - var flagName; - if (prefix == "nbs") flagName = "requestShieldOn"; - if (prefix == "fpd") flagName = "fpDetectionOn"; - - //Obtain the information from storage - browser.storage.sync.get([flagName]).then(function(result) - { - //Check the box - if (result[flagName] || result[flagName] == undefined) - { - checkbox.checked = true; - toggleSettings(prefix, true); - } - else - { - checkbox.checked = false; - toggleSettings(prefix, false); - } - }); -} - -//OnClick event handler for On/Off slider -function control_slider(prefix) -{ - var checkbox = document.getElementById(prefix + "-switch"); - //Send appropriate message and store state into storage - if (checkbox.checked) //Turn ON - { - if (prefix == "nbs") setStorageAndSendMessage({"requestShieldOn": true}, {message:"turn request shield on"}); - if (prefix == "fpd") setStorageAndSendMessage({"fpDetectionOn": true}, {purpose:"fpd-state-change"}); - toggleSettings(prefix, true); - } - else - { - if (prefix == "nbs") setStorageAndSendMessage({"requestShieldOn": false}, {message:"turn request shield off"}); - if (prefix == "fpd") setStorageAndSendMessage({"fpDetectionOn": false}, {purpose:"fpd-state-change"}); - toggleSettings(prefix, false); - } -} - -function toggleSettings(prefix, enable) { - tweaksArr = document.querySelectorAll(`#${prefix}-settings input.tlev`); - tweaksArr.forEach((node) => { - node.disabled = !enable; - }) -} - -function prepareHiddenHelpText(originally_hidden_elements, originally_visible_elements = []) { - Array.prototype.forEach.call(originally_hidden_elements, it => it.classList.add("hidden_descr")); - let all_elements = Array.from(originally_hidden_elements).concat(Array.from(originally_visible_elements)); - var ctrl = document.createElement("button"); - ctrl.innerText = "?"; - ctrl.classList.add("help"); - ctrl.addEventListener("click", function(ev) { - Array.prototype.forEach.call(all_elements, it => it.classList.toggle("hidden_descr")); - ev.preventDefault(); - }); - originally_hidden_elements[0].previousElementSibling.insertAdjacentElement("beforeend", ctrl); -} - -window.addEventListener("DOMContentLoaded", function() { - function prepareHelpText(prefix) { - prepareHiddenHelpText(document.getElementsByClassName(prefix + "_description")); - } - - prepareHelpText("jss"); - prepareHelpText("nbs"); - prepareHelpText("fpd"); -}); diff --git a/data/extensions/jsr@javascriptrestrictor/options_advanced.html b/data/extensions/jsr@javascriptrestrictor/options_advanced.html deleted file mode 100644 index 1838113..0000000 --- a/data/extensions/jsr@javascriptrestrictor/options_advanced.html +++ /dev/null @@ -1,99 +0,0 @@ -<!DOCTYPE html> -<!-- -SPDX-FileCopyrightText: 2021 2019 Libor Polčák -SPDX-FileCopyrightText: 2021 2019 Martin Timko - -SPDX-License-Identifier: GPL-3.0-or-later ---> -<html lang="en"> -<head> - <meta charset="utf-8"> - <link rel="icon" type="image/x-icon" href="/img/logo.svg"> - <link rel="stylesheet" type="text/css" href="common.css"> - <link rel="stylesheet" type="text/css" href="options.css"> - <script src="/nscl/lib/browser-polyfill.js" type="text/javascript"></script> - <script src="levels_browser.js" type="text/javascript" defer></script> - <script src="settings_tweaks.js" type="text/javascript" defer></script> - <script src="levels.js" type="text/javascript" defer></script> - <script src="options_init.js" type="text/javascript" defer></script> - <script src="update.js" type="text/javascript" defer></script> - <script src="tweaks_gui.js" type="text/javascript" defer></script> - <script src="options_advanced.js" type="text/javascript" defer></script> - <script src="i18n_translate_dom.js" type="text/javascript" defer></script> - <title data-localize="JShelterOptionsAdvanced">JShelter advanced options</title> -</head> -<body> - <section class="logo"> - <img src="img/icon-128.png" alt="JShelter logo"> - </section> - <nav class="menu"> - <ul> - <li><a href="options.html" data-localize="MainSettings">Main settings</a></li> - <li><a href="options_domains.html" data-localize="JSSShieldDetails">JS Shield details</a></li> - <li><a href="options_advanced.html" data-localize="AdvancedOptions">Advanced options</a></li> - <li> - <p data-localize="ExternalLinks">External links</p> - <ul> - <li><a href="https://JShelter.org/threatmodel/" data-localize="ThreatModel">Threat model</a></li> - <li><a href="https://JShelter.org/faq/" data-localize="FAQ">FAQ</a></li> - <li><a href="https://polcak.github.io/jsrestrictor/test/test.html" data-localize="TestPage">Test page</a></li> - <li><a href="https://JShelter.org/permissions/" data-localize="Permissions">Permissions</a></li> - <li><a href="https://pagure.io/JShelter/webextension/" data-localize="SourceCode">Source code</a></li> - <li><a href="https://pagure.io/JShelter/webextension/issues" data-localize="IssueTracker">Issue tracker</a></li> - <li><a href="https://JShelter.org/credits/" data-localize="Credits">Credits</a></li> - </ul> - </li> - </ul> - </nav> - - - <section class="content"> - - <h1 data-localize="AdvancedOptions">Advanced options</h1> - - <p class="alert" data-localize="DoNotModifyThisConfiguration"> - BEWARE! Do not modify this configuration unless you know what you are doing. - </p> - - <section id="configuration_area"> - - <h3 data-localize="JShelterFullConfiguration">Extension configuration</h3> - <textarea id="levels-storage-text"> - </textarea> - <button id="levels-storage-load" class="jsr-button" data-localize="ExpertLoadCurrentlyStoredConfiguration">Load currently stored configuration</button> - <button id="levels-storage-save" class="jsr-button" data-localize="ExpertOverwriteConfiguration">Overwrite configuration</button> - <button id="levels-storage-reset" class="jsr-button" data-localize="ExpertResetConfiguration">Reset the configuration (remove all custom changes)</button> - <button id="levels-storage-undo" class="jsr-button" data-localize="ExpertUndoConfiguration">Undo (discard last configuration override)</button> - - <div id="result-save"></div> - - </section> - - <section> - <h3 data-localize="JSSBuiltinExceptions">Built-in tweaks for JavaScript Shield</h3> - <div id="builtin-jss-tweaks"> - </div> - </section> - - </section> - - <template id="tweak-head"> - </template> - <template id="tweak-row"> - <label>Wrapper group name</label> - <div class="tweak"> - <input class="tlev" type="range" min="0" max="3" /><output></output> - </div> - <button class="help">⤵</button> - <div class="tweakfill"></div> - <div class="explainer hidden_descr"> - <span class="description"></span> - <p> - <div class="more"></div> - </p> - <div class="status"></div> - </div> - </template> - -</body> -</html> diff --git a/data/extensions/jsr@javascriptrestrictor/options_advanced.js b/data/extensions/jsr@javascriptrestrictor/options_advanced.js deleted file mode 100644 index ce2641b..0000000 --- a/data/extensions/jsr@javascriptrestrictor/options_advanced.js +++ /dev/null @@ -1,103 +0,0 @@ -/** \file - * \brief Code that handles the configuration of the extension - * - * \author Copyright (C) 2022 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -let original_config = undefined; -document.getElementById("levels-storage-undo").classList.add("hidden"); - -function load_config_to_text(keep_config = false) { - browser.storage.sync.get(null).then(function (item) { - document.getElementById("levels-storage-text").value = JSON.stringify(item, null, '\t'); - if (keep_config) { - original_config = item; - } - }); -} - -window.addEventListener("DOMContentLoaded", function() { - load_config_to_text(true); -}); - -document.getElementById("levels-storage-load").addEventListener("click", function() { - load_config_to_text(); -}); - -document.getElementById("levels-storage-save").addEventListener("click", async function() { - try { - await checkAndSaveConfig(JSON.parse(document.getElementById("levels-storage-text").value)); - } - catch (e) { - alert("The configuration is not valid."); - return; - } - load_config_to_text(); - document.getElementById("levels-storage-undo").classList.remove("hidden"); -}); - -document.getElementById("levels-storage-reset").addEventListener("click", async function() { - await checkAndSaveConfig({}); - load_config_to_text(); - document.getElementById("levels-storage-undo").classList.remove("hidden"); -}); - -document.getElementById("levels-storage-undo").addEventListener("click", async function() { - if (original_config !== undefined) { - try { - let current_config = await browser.storage.sync.get(null); - await checkAndSaveConfig(original_config); - load_config_to_text(); - original_config = current_config; - } - catch (e) { - alert("An unexpected error during configuration restore. Please check and fix the configuration manually."); - } - } -}); - -window.addEventListener("DOMContentLoaded", function() { - function appendElement(innerText, type="span") { - let el = document.createElement(type); - el.innerText = innerText; - parent.appendChild(el); - return el; - } - let parent = document.getElementById("builtin-jss-tweaks"); - if (Object.keys(tweak_domains_builtin).length > 0) { - appendElement(browser.i18n.getMessage("JSSBuiltinExceptionsDomain"), "h4"); - appendElement(browser.i18n.getMessage("JSSBuiltinExceptionsLevels"), "h4"); - appendElement(browser.i18n.getMessage("JSSBuiltinExceptionsChanges"), "h4"); - appendElement(browser.i18n.getMessage("JSSBuiltinExceptionsReason"), "h4"); - } - for ([d, settings] of Object.entries(tweak_domains_builtin)) { - appendElement(d).classList.add("tweak_domain"); - appendElement((settings.level_id.map((id) => levels[id].level_text)).join(browser.i18n.getMessage("JSSBuiltinExceptionsLevelsSeparator"))); - let currentTweaksEl = appendElement("", "div"); - currentTweaksEl.classList.add("tweakgrid"); - let tweaksBusiness = Object.create(tweaks_gui); - tweaksBusiness.get_current_tweaks = function() { - return settings.tweaks; - }; - tweaksBusiness.create_tweaks_html(currentTweaksEl); - let reasonEl = appendElement(settings.explanation, "a"); - reasonEl.href = settings.explanation; - } -}); - diff --git a/data/extensions/jsr@javascriptrestrictor/options_domains.html b/data/extensions/jsr@javascriptrestrictor/options_domains.html deleted file mode 100644 index c251f55..0000000 --- a/data/extensions/jsr@javascriptrestrictor/options_domains.html +++ /dev/null @@ -1,101 +0,0 @@ -<!DOCTYPE html> -<!-- -SPDX-FileCopyrightText: 2021 2019 Libor Polčák -SPDX-FileCopyrightText: 2021 2019 Martin Timko - -SPDX-License-Identifier: GPL-3.0-or-later ---> -<html lang="en"> -<head> - <meta charset="utf-8"> - <link rel="icon" type="image/x-icon" href="/img/logo.svg"> - <link rel="stylesheet" type="text/css" href="common.css"> - <link rel="stylesheet" type="text/css" href="options.css"> - <script src="/nscl/lib/browser-polyfill.js" type="text/javascript"></script> - <script src="levels_browser.js" type="text/javascript"></script> - <!--<script src="settings_tweaks.js" type="text/javascript" defer></script> Intentionally not - included so that the user sees only own tweaks on this page --> - <script src="levels.js" type="text/javascript"></script> - <script src="options_init.js" type="text/javascript" defer></script> - <script src="helpers.js" type="text/javascript" defer></script> - <script src="tweaks_gui.js" type="text/javascript" defer></script> - <script src="options_domains.js" type="text/javascript" defer></script> - <script src="i18n_translate_dom.js" type="text/javascript" defer></script> - <title data-localize="JShelterOptionsJSSFineTune">JShelter options - per domain protection</title> -</head> -<body> - <section class="logo"> - <img src="img/icon-128.png" alt="JShelter logo"> - </section> - <nav class="menu"> - <ul> - <li><a href="options.html" data-localize="MainSettings">Main settings</a></li> - <li><a href="options_domains.html" data-localize="JSSShieldDetails">JS Shield details</a></li> - <li><a href="options_advanced.html" data-localize="AdvancedOptions">Advanced options</a></li> - <li> - <p data-localize="ExternalLinks">External links</p> - <ul> - <li><a href="https://JShelter.org/threatmodel/" data-localize="ThreatModel">Threat model</a></li> - <li><a href="https://JShelter.org/faq/" data-localize="FAQ">FAQ</a></li> - <li><a href="https://polcak.github.io/jsrestrictor/test/test.html" data-localize="TestPage">Test page</a></li> - <li><a href="https://JShelter.org/permissions/" data-localize="Permissions">Permissions</a></li> - <li><a href="https://pagure.io/JShelter/webextension/" data-localize="SourceCode">Source code</a></li> - <li><a href="https://pagure.io/JShelter/webextension/issues" data-localize="IssueTracker">Issue tracker</a></li> - <li><a href="https://JShelter.org/credits/" data-localize="Credits">Credits</a></li> - </ul> - </li> - </ul> - </nav> - - - <section class="content"> - - <h1 data-localize="JavaScriptShieldPerWebsiteConfiguration">JavaScript Shield per-website configuration</h1> - -<section id="configuration_area"> - - <div id="second-row"> - <h2 id="set-domain-level" data-localize="SetJavaScriptShieldForWebsite">Set JavaScript Shield for website:</h2> - <form id="domain-form"> - <input id="domain-text" type="text" placeholder="example.com or en.example.com"> - <select id="domain-level"> - <option value="0" selected>level 0</option> - <option value="1">level 1</option> - <option value="2">level 2</option> - <option value="3">level 3</option> - </select> - <button id="add_domain" type="submit" class="jsr-button" data-localize="AddToList">Add to list</button> - </form> - <h2 data-localize="AListOfWebsiteWithRedefinedJavaScriptShield">A list of website with redefined JavaScript Shield:</h2> - <ul id="domain-level-list"> - </ul> - <button id="save-all-domain-levels" data-localize="SaveAll">Save all</button> - <button id="delete-all-domain-levels" data-localize="DeleteAll">Delete all</button> - </div> -</section> - - </section> - - - - <template id="tweak-head"> - </template> - <template id="tweak-row"> - <label>Wrapper group name</label> - <div class="tweak"> - <input class="tlev" type="range" min="0" max="3" /><output></output> - </div> - <button class="help">⤵</button> - <div class="tweakfill"></div> - <div class="explainer hidden_descr"> - <span class="description"></span> - <p> - <div class="more"></div> - </p> - <div class="status"></div> - </div> - </template> - - -</body> -</html> diff --git a/data/extensions/jsr@javascriptrestrictor/options_domains.js b/data/extensions/jsr@javascriptrestrictor/options_domains.js deleted file mode 100644 index 09a81fe..0000000 --- a/data/extensions/jsr@javascriptrestrictor/options_domains.js +++ /dev/null @@ -1,247 +0,0 @@ -/** \file - * \brief Code that handles domain-specific levels handling in options - * - * \author Copyright (C) 2019-2022 Libor Polcak - * \author Copyright (C) 2019 Martin Timko - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - - -function restore_domain(domain, settings) { - domains[domain] = settings; - saveDomainLevels(); - var existPref = document.getElementById(`li-exist-group-${escape(domain)}`); - existPref.classList.remove("hidden"); - var removedPref = document.getElementById(`li-removed-group-${escape(domain)}`); - removedPref.classList.add("hidden"); - var lielem = document.getElementById(`dl-${escape(domain)}`); - lielem.classList.remove("undo"); -} - -function remove_domain(domain) { - // See https://alistapart.com/article/neveruseawarning/ - var existPref = document.getElementById(`li-exist-group-${escape(domain)}`); - existPref.classList.add("hidden"); - var removedPref = document.getElementById(`li-removed-group-${escape(domain)}`); - removedPref.classList.remove("hidden"); - var lielem = document.getElementById(`dl-${escape(domain)}`); - lielem.classList.add("undo"); - delete domains[domain]; - saveDomainLevels(); -} - -function show_restore_domain_level(levelLiEl, domain) { - let level = Object.assign({}, levels[domains[domain].restore]); - if (domains[domain].restore_tweaks) { - level.tweaks = domains[domain].restore_tweaks; - } - if (!level) { - return false; - } - var fragment = document.createRange().createContextualFragment(` - <span class="domain"> - ${escape(domain)} - </span> - <span>JavaScript shield disabled</span> - <button id="enable-jss-${escape(domain)}">${browser.i18n.getMessage("ButtonRestoreLevel", escape(level.level_id))}</button>`); - levelLiEl.appendChild(fragment); - document.getElementById(`enable-jss-${escape(domain)}`).addEventListener("click", function(e) { - e.preventDefault(); - domains[domain] = level; - levelLiEl.innerHTML = ""; - saveDomainLevels(); - show_domain_level_custom_level(levelLiEl, domain); - }); - return true; -} - -function show_domain_level(levelsEl, domain) { - var displayedEl = document.getElementById(`dl-${escape(domain)}`); - if (displayedEl !== null) { - displayedEl.remove(); - } - var fragment = document.createRange().createContextualFragment(`<li class="custom_domain_level" id="dl-${escape(domain)}" jsr_domain="${escape(domain)}"> - </li>`); - levelsEl.appendChild(fragment); - let levelLiEl = document.getElementById(`dl-${escape(domain)}`); - if (domains[domain].restore) { - if (show_restore_domain_level(levelLiEl, domain)) { - return; - } - else { - domains[domain] = level_0; - saveDomainLevels(); - } - } - show_domain_level_custom_level(levelLiEl, domain); -} - -function show_domain_level_custom_level(levelLiEl, domain) { - let tweaks = Object.assign({}, domains[domain].tweaks || {}); - var fragment = document.createRange().createContextualFragment(` - <span class="domain"> - ${escape(domain)} - </span> - <select id="dl-change-${escape(domain)}"></select> - <span id="tweaks-text-${escape(domain)}">tweaked</span> - <button id="show-tweaks-${escape(domain)}" class="help">${browser.i18n.getMessage("ButtonSignExpandOneCharacterDown")}</button> - <span id="li-exist-group-${escape(domain)}"> - <button id="overwrite-dl-${escape(domain)}">${browser.i18n.getMessage("ButtonSave")}</button> - <button id="delete-dl-${escape(domain)}">${browser.i18n.getMessage("ButtonRemove")}</button> - </span> - <span id="li-removed-group-${escape(domain)}" class="hidden"> - <button id="restore-dl-${escape(domain)}">${browser.i18n.getMessage("ButtonRestore")}</button> - </span> - <div class="tweakgrid" id="tweaks-${escape(domain)}"></div>`); - levelLiEl.appendChild(fragment); - let levelSelectEl = document.getElementById(`dl-change-${escape(domain)}`); - update_domain_level(levelSelectEl, domains[domain].level_id); - document.getElementById(`overwrite-dl-${escape(domain)}`).addEventListener("click", function(e) { - e.preventDefault(); - let domainLevel = levelSelectEl.value; - domains[domain] = { - level_id: domainLevel, - } - if (Object.keys(tweaks).length > 0) { - domains[domain].tweaks = tweaks; - } - saveDomainLevels(); - }); - document.getElementById(`delete-dl-${escape(domain)}`).addEventListener("click", remove_domain.bind(null, domain)); - document.getElementById(`restore-dl-${escape(domain)}`).addEventListener("click", restore_domain.bind(null, domain, domains[domain])); - let tweaksEl = document.getElementById(`tweaks-${escape(domain)}`); - let tweaksTextEl = document.getElementById(`tweaks-text-${escape(domain)}`); - let tweaksBusiness = Object.create(tweaks_gui); - tweaksBusiness.get_current_tweaks = function() { - return getTweaksForLevel(domains[domain].level_id, tweaks); - }; - tweaksBusiness.tweak_changed = function(group_id, desired_tweak) { - if ((desired_tweak === levels[levelSelectEl.value][group_id]) || (desired_tweak === 0 && levels[levelSelectEl.value][group_id] === undefined)) { - delete tweaks[group_id]; - } - else { - tweaks[group_id] = desired_tweak; - } - if (Object.keys(tweaks).length > 0) { - domains[domain].tweaks = tweaks; - tweaksTextEl.classList.remove("hidden_descr"); - } - else { - tweaksTextEl.classList.add("hidden_descr"); - } - } - tweaksBusiness.create_tweaks_html(tweaksEl); - if (Object.keys(tweaks).length == 0) { - tweaksEl.classList.add("hidden_descr"); - tweaksTextEl.classList.add("hidden_descr"); - } - levelSelectEl.addEventListener("change", function(e) { - let oldtweaks = domains[domain].tweaks || {}; - domains[domain] = { - level_id: this.value, - } - if (Object.keys(oldtweaks).length > 0) { - domains[domain].tweaks = oldtweaks; - } - tweaksBusiness.create_tweaks_html(tweaksEl); - }); - document.getElementById(`show-tweaks-${escape(domain)}`).addEventListener("click", function(ev) { - tweaksEl.classList.toggle("hidden_descr"); - ev.preventDefault(); - }); -} - -function insert_domain_levels() { - // Insert all known levels to GUI - var allDomainsElement = document.getElementById("domain-level-list"); - for (let domain in domains) { - if (domain === escape(domain)) { - // Do not display invalid domains inserted before https://pagure.io/JShelter/webextension/issue/45 fix - // Note that an invalid domain can be inserted through advanced options - show_domain_level(allDomainsElement, domain); - } - else { - console.error("Invalid domain in configuration: " + domain); - } - } -} - -window.addEventListener("load", function() { - if (!levels_initialised) { - levels_updated_callbacks.push(insert_domain_levels); - levels_updated_callbacks.push(update_domain_level.bind(null, document.getElementById("domain-level"))); - } - else { - insert_domain_levels(); - update_domain_level(document.getElementById("domain-level")); - } -}); - -document.getElementById("add_domain").addEventListener("click", function (e) { - e.preventDefault(); - let domainEl = document.getElementById("domain-text"); - let domain = domainEl.value; - if (escape(domain) !== domain) { - alert("Unsupported domain " + domain); - return; - } - let domainLevel = document.getElementById("domain-level"); - if (domain in domains) { - let ok = confirm(browser.i18n.getMessage("JSSAdvancedConfirmOverwrite", domain)); - if (!ok) { - return; - } - } - domains[domain] = { - level_id: domainLevel.value, - } - saveDomainLevels(); - domainEl.value = ""; - var allDomainsElement = document.getElementById("domain-level-list"); - show_domain_level(allDomainsElement, domain); -}); - -function update_domain_level(dlel, set_value) { - var finalValue = set_value || dlel.value; - dlel.textContent = ""; - for (let levelid in levels) { - let descr = levels[levelid].level_description; - dlel.appendChild(document.createRange().createContextualFragment(`<option value="${escape(levelid)}">${browser.i18n.getMessage("LevelAndDescription", [escape(levels[levelid].level_text), escape(create_short_text(descr, 50))])}</option>`)); - }; - dlel.value = finalValue; -} - -document.getElementById("save-all-domain-levels").addEventListener("click", function (e) { - e.preventDefault(); - Array.prototype.forEach.call(document.getElementsByClassName("undo"), (el) => el.remove()); - Array.prototype.forEach.call(document.getElementsByClassName("custom_domain_level"), function (el) { - let new_val = el.getElementsByTagName("select")[0].value; - domains[el.attributes["jsr_domain"].value].level_id = new_val; - }); - saveDomainLevels(); -}); - -document.getElementById("delete-all-domain-levels").addEventListener("click", function (e) { - domains = {}; - saveDomainLevels(); - Array.from(document.getElementsByClassName("custom_domain_level")).forEach((el) => el.remove()); -}); - -window.addEventListener("DOMContentLoaded", function() { - document.getElementById("domain-text").attributes.placeholder.nodeValue = browser.i18n.getMessage("ExampleDomainsText") -}); diff --git a/data/extensions/jsr@javascriptrestrictor/options_init.js b/data/extensions/jsr@javascriptrestrictor/options_init.js deleted file mode 100644 index fcb455b..0000000 --- a/data/extensions/jsr@javascriptrestrictor/options_init.js +++ /dev/null @@ -1,27 +0,0 @@ -/** \file - * \brief Code that handles initialization in the options pages - * - * \author Copyright (C) 2023 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -// Make sure that updateLevels() is called while fp_levels_initialised is set to true -// Note that the options pages do not initialize real FPD. This is needed to call -// callbacks directly -fp_levels_initialised = true; -browser.storage.sync.get(null).then(updateLevels); diff --git a/data/extensions/jsr@javascriptrestrictor/options_nbs.js b/data/extensions/jsr@javascriptrestrictor/options_nbs.js deleted file mode 100644 index 1febf1b..0000000 --- a/data/extensions/jsr@javascriptrestrictor/options_nbs.js +++ /dev/null @@ -1,27 +0,0 @@ -/** \file - * \brief Code that handles NBS options specific to Firefox - * - * \author Copyright (C) 2023 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -var fragment = document.createRange().createContextualFragment(` - <p>${browser.i18n.getMessage("NBSHttpProxyDNSAPINote")}</p> - `); -var nbs_description_div = document.querySelector("#proxy-protection-config .nbs_description:last-of-type"); -nbs_description_div.appendChild(fragment); diff --git a/data/extensions/jsr@javascriptrestrictor/popup.css b/data/extensions/jsr@javascriptrestrictor/popup.css deleted file mode 100644 index 6a4b90a..0000000 --- a/data/extensions/jsr@javascriptrestrictor/popup.css +++ /dev/null @@ -1,208 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2021 2019 Libor Polčák - * SPDX-FileCopyrightText: 2021 2019 Martin Timko - * SPDX-FileCopyrightText: 2022 2021 Giorgio Maone - * - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -body { - padding: 0.5em; - margin: 0em; - min-width: 38em; -} - -content { - padding: 0.5em; - margin: 0.5em; -} - -header, footer, .section-header { - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - font-size: large; -} - -header { - margin-bottom: .5em; - border-bottom: 2px solid #aaa; -} - - -footer { - margin-top: .5em; - border-top: 2px solid #aaa; -} - -label[for]:first-child { - flex: 5; - display: block; - cursor: pointer; - padding: .2em 0; -} - -h3 { - font-size: 3ex; -} - -.buttons { - text-align: end; - margin: 0 0 1em 0; -} - -#logo { - width: 32px; - margin: 0 0.5em 0 0; - display: inline; -} - -#titletext { - display: inline; - font-size: large; - text-align: left; -} - -#site-settings, #site-settings:not(.enabled) ~ #globals { - display: none; -} -#site-settings.enabled { - display: initial; -} - - -#refresh-page, #global-settings, .js-toggle { - font-size: large; - font-weight: bold; - vertical-align: 50%; -} - -#current-site { - font-size: large; - margin: 0 0.5em; -} - -#level-select { - display: flex; - flex-flow: row; - flex-wrap: wrap; - justify-content: center; -} - -.level { - font-size: large; - margin: 0.7ex; - padding: 0.7ex; -} - -input#js-toggle { - position: absolute; - visibility: hidden; - opacity: 0; -} - -label.js-toggle { - max-height: 34px; - padding: 3.5px; - cursor: pointer; - border: 1px var(--separator-color) solid; - background-color: var(--button-background-color); - color: var(--button-text-color); -} - -label.js-toggle:hover { - background-color: var(--button-background-hover-color); - color: var(--button-text-hover-color); -} - -input#js-toggle:checked + label { - background-color: var(--button-background-active-color); - color: var(--button-text-active-color); -} - -input#js-toggle:checked + label:after { - content: " -"; -} - -label.js-toggle:after { - content: " ⤵" -} - -.toggle:not(.toggled) ~ .section-body { - display: none; -} - -.off_message{ - font-size: large; - display: none; - margin: 0px; - height: 34px; - line-height: 34px; - vertical-align: middle; -} - -.off > .off_message { - display: inline-block; -} - -.off > .switch_wrapper { - display: none; -} - -.switch_wrapper { - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; -} - -.switch_wrapper > label { - font-size: large; - white-space: nowrap; -} - -#btn-tweak:disabled { - display: none; -} - -#tweaks { - display: none; -} - -.tweak { - display: flex; -} - -.tweaking #tweaks { - display: grid; - grid: auto / auto auto 5ex 1fr; - gap: 1em; - align-items: center; -} - -.head { - font-weight: bold; -} - -.hidden { - display: none; -} - -#severity_value { - color: #e8e6e3; - cursor: pointer; -} - -#severity_value:hover { - color: #e8e6e3; - filter: brightness(110%); -} - -#level_controls, #nbs_whitelist, #fpd_whitelist { - margin: 6px 0; -} - -label[for=severity_value], #severity_value { - display: inline !important; -} diff --git a/data/extensions/jsr@javascriptrestrictor/popup.html b/data/extensions/jsr@javascriptrestrictor/popup.html deleted file mode 100644 index 795e9ea..0000000 --- a/data/extensions/jsr@javascriptrestrictor/popup.html +++ /dev/null @@ -1,122 +0,0 @@ -<!DOCTYPE html> -<!-- -SPDX-FileCopyrightText: 2021 2019 Libor Polčák -SPDX-FileCopyrightText: 2021 2019 Martin Timko -SPDX-FileCopyrightText: 2021 2021 Marek Saloň -SPDX-FileCopyrightText: 2022 2021 Giorgio Maone - -SPDX-License-Identifier: GPL-3.0-or-later ---> -<html> -<head> - <meta charset="utf-8"> - <link rel="stylesheet" type="text/css" href="common.css"> - <link rel="stylesheet" type="text/css" href="popup.css"> - <script src="/nscl/lib/browser-polyfill.js" type="text/javascript"></script> - <script src="url.js" type="text/javascript"></script> - <script src="levels_browser.js" type="text/javascript"></script> - <script src="settings_tweaks.js" type="text/javascript" defer></script> - <script src="levels.js" type="text/javascript"></script> - <script src="helpers.js" type="text/javascript" defer></script> - <script src="tweaks_gui.js" type="text/javascript" defer></script> - <script src="popup.js" type="text/javascript" defer></script> - <script src="i18n_translate_dom.js" type="text/javascript" defer></script> -</head> -<body> - - <header> - <div class="flex align-items-center"> - <div><img class="logo" id="logo" src="../img/icon-128.png" alt="JShelter logo" /></div> - <div><h3 id="titletext">JShelter</h3></div> - </div> - <button id="global-settings" title="Open global settings" data-localize="globalSettings">Global settings</button> - </header> - <p class="alert mv3" id="mv3-devmode-required" issue166-localize="MV3DevmodeRequired" htmltranslation></p> - <content id="site-settings"> - <div class="flex align-items-center justify-content-between"> - <label class="text-large" data-localize="settingsForDomain">Settings for domain</label> - <h3 id="current-site"></h3> - <button id="refresh-page" data-localize="refreshPage" disabled>Refresh page</button> - </div> - - <section id="level_controls"> - <div class="section-header toggle"> - <label for="jss-switch" data-localize="javascriptShield">JavaScript Shield</label> - <input type="checkbox" id="js-toggle" name="js-toggle" title="Edit JavaScript Shield settings" /> - <label for="js-toggle" id="js-toggle-btn" class="js-toggle" data-localize="modifyJSSPopup">Modify</label> - <label class="switch"> - <input id="jss-switch" type="checkbox" checked> - <label for="jss-switch" class="slider"></label> - </label> - </div> - <div id="js-settings" class="section-body"> - <div id="current_site_level_settings"> - <div id="level-select"> - </div> - <p id="current-level"> - <strong id="level-text"></strong><span id="level-description"></span> - <a class="more hidden_descr" href="#" data-localize="descriptionMore">(more...)</a> - <a class="less hidden_descr" href="#" data-localize="descriptionLess">(less...)</a> - </p> - </div> - <div class="buttons"><button id="btn-tweak" data-localize="detailTweaksOfJSShieldForThisSite">Detail tweaks of JS shield for this site</button></div> - <div id="tweaks"></div> - </div> - </section> - - - <template id="tweak-head"> - <span class="head" data-localize="wrappers">Group of APIs</span> - <span class="head" data-localize="levelOfDefense">Level of defense</span></span><span></span> - <span class="head" data-localize="numberOfCalls">Number of calls</span> - </template> - <template id="tweak-row"> - <label>Wrapper group name</label> - <div class="tweak"> - <input class="tlev" type="range" min="0" max="3" /><output></output> - </div> - <button class="help">⤵</button> - <div class="hits"></div> - <div class="explainer hidden_descr"> - <span class="description"></span> - <p> - <div class="more"></div> - </p> - <div class="status"></div> - </div> - </template> - - - <section id="nbs_whitelist" class="mv2"> - <p class="off_message" data-localize="NBSgloballyOff">Network Boundary Shield is globally off.</p> - <div class="switch_wrapper"> - <label for="nbs-switch" data-localize="networkBoundaryShield">Network Boundary Shield</label> - <label class="switch"> - <input id="nbs-switch" type="checkbox" checked> - <label for="nbs-switch" class="slider"></label> - </label> - </div> - </div> - </section> - - <section id="fpd_whitelist"> - <p class="off_message" data-localize="FPDgloballyOff">Fingerprint Detector is globally off.</p> - <div class="switch_wrapper"> - <label for="fpd-switch" data-localize="fingerprintDetector">Fingerprint Detector</label> - <label class="switch"> - <input id="fpd-switch" type="checkbox" checked> - <label for="fpd-switch" class="slider"></label> - </label> - </div> - </section> - - <div id="severity_container" class="hidden"> - <label for="severity_value" data-localize="FingerprintQualityLabel">⤷ - Likelihood that the page fingerprinted you: </label> - <button id="severity_value"></button> - </div> - - </content> -</body> - -</html> diff --git a/data/extensions/jsr@javascriptrestrictor/popup.js b/data/extensions/jsr@javascriptrestrictor/popup.js deleted file mode 100644 index 69771c0..0000000 --- a/data/extensions/jsr@javascriptrestrictor/popup.js +++ /dev/null @@ -1,449 +0,0 @@ -/** \file
- * \brief JS code for pop up
- *
- * \author Copyright (C) 2019 Martin Timko
- * \author Copyright (C) 2019 Libor Polcak
- * \author Copyright (C) 2020 Pavel Pohner
- * \author Copyright (C) 2021 Marek Salon
- * \author Copyright (C) 2022 Giorgio Maone
- *
- * \license SPDX-License-Identifier: GPL-3.0-or-later
- */
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-//
-
-var site; // "https://www.example.com" from current tab will become "example.com"
-var pageConfiguration = {};
-var hits;
-var current_level;
-var default_lev_button;
-var fpd_active = false;
-
-// Provide cusom handlers for Tweaks GUI
-let popup_tweaks = Object.create(tweaks_gui);
-popup_tweaks.get_current_tweaks = function() {
- return getTweaksForLevel(current_level.level_id, current_level.tweaks);
-};
-popup_tweaks.tweak_changed = function(group_id, desired_tweak) {
- if (!current_level.tweaks) {
- current_level.tweaks = {};
- }
- current_level.tweaks[group_id] = desired_tweak;
- domains[site] = current_level;
- saveDomainLevels();
- enableRefreshIfNeeded();
-};
-popup_tweaks.assign_custom_params = function(group) {
- group.groupHits = hits[group.name] || 0;
-};
-popup_tweaks.customize_tweak_row = function (tweakRow, group) {
- // Don't show hits for WASM optimization group tweak
- if (group.name === "wasm") {
- tweakRow.querySelector(".hits").textContent = "-";
- return;
- }
-
- let groupHits = group.groupHits;
- if (groupHits >= 999) {
- groupHits = "1000 or more";
- }
- else if (!fpd_active) {
- let main = current_level[group.name];
- let tweaks = current_level.tweaks;
- if (!(tweaks && (tweaks[group.name] > 0))) {
- if ((tweaks && tweaks[group.name] === 0) || (!(main > 0))) {
- groupHits = String(groupHits) + " (unreliable)";
- }
- }
- }
- tweakRow.querySelector(".hits").textContent = groupHits;
-};
-popup_tweaks.cmp_groups = function (firstObj, secondObj) {
- let firstGr = firstObj.group;
- let secondGr = secondObj.group;
- return secondGr.groupHits - firstGr.groupHits;
-};
-
-/**
- * Enable the refresh page option.
- */
-function showRefreshPageOption(toggle = true) {
- let button = document.getElementById('refresh-page');
- button.addEventListener('click', function (e) {
- browser.tabs.reload();
- window.close();
- });
- (showRefreshPageOption = function(toggle = true) {
- button.disabled = !toggle;
- })(toggle);
-}
-
-/**
- * Visaully highlights the active level.
- */
-function changeActiveLevel(activeEl) {
- Array.prototype.forEach.call(document.getElementsByClassName("level_control"),
- (el) => el.classList.remove("active"));
- activeEl.classList.add("active");
- showRefreshPageOption();
-}
-
-/**
- * Control the state of the Refresh button
- */
-function enableRefreshIfNeeded() {
- let pageLevel = pageConfiguration.currentLevel;
-
- let level4comp = ({level_id, tweaks}) => JSON.stringify({level_id, tweaks});
-
- let needsRefresh = !pageLevel ||
- level4comp(pageLevel) !== level4comp(current_level);
-
- if (needsRefresh) {
- showRefreshPageOption();
- }
-}
-
-/**
- * Save level settings for current page, show correct button
- */
-function modify_level(level, levelButton, forceUpdateLevels = false) {
- if (level) {
- current_level = level;
- saveDomainLevels();
- if (levelButton) {
- changeActiveLevel(levelButton);
- }
- update_level_info();
- if (forceUpdateLevels) {
- function refresh() {
- current_level = getCurrentLevelJSON("https://" + site);
- update_tweaks();
- }
- browser.storage.sync.get(null).then(updateLevels).then(refresh);
- }
- else {
- update_tweaks();
- }
- }
-}
-
-/**
- * Disable JSS for this page.
- */
-async function disable_jss(orig_level) {
- //document.getElementById("jss-switch").checked = false;
- current_level = Object.assign(orig_level ? {restore: orig_level.level_id} : {}, level_0);
- if (orig_level && orig_level.tweaks) {
- current_level.restore_tweaks = orig_level.tweaks;
- }
- document.getElementById("js-settings").classList.add("hidden");
- document.getElementById("js-toggle-btn").classList.add("hidden");
- domains[site] = current_level;
- modify_level(current_level);
- document.getElementById("jss-switch").onchange = () => {
- enable_jss(orig_level);
- let widget = document.getElementById("js-toggle");
- widget.checked = true;
- widget.parentElement.classList.toggle("toggled", true);
- };
-}
-
-async function enable_jss(level) {
- let isdefault = !domains[site];
- if (!level) {
- level = Object.assign({}, default_level);
- if (level.level_id === level_0.level_id) {
- level = Object.assign({}, level_2);
- isdefault = false;
- }
- else {
- isdefault = true;
- }
- }
- if (level.level_id === level_0.level_id) {
- document.getElementById("jss-switch").checked = false;
- let restore = level.restore;
- if (restore) {
- disable_jss(Object.assign(level.restore_tweaks ? {tweaks: level.restore_tweaks} : {}, levels[restore]));
- }
- else {
- disable_jss();
- }
- return;
- }
- if (isdefault) {
- delete domains[site];
- }
- else {
- domains[site] = level;
- }
- modify_level(level, isdefault ? default_lev_button : levels[level.level_id].button);
- document.getElementById("js-settings").classList.remove("hidden");
- document.getElementById("js-toggle-btn").classList.remove("hidden");
- document.getElementById("jss-switch").onchange = () => {
- isdefault ? disable_jss() : disable_jss(current_level);
- };
-}
-
-/**
- * Load levels and add level setting buttons
- */
-function add_level_buttons() {
- var selectEl = document.getElementById("level-select");
- function addButton(level) {
- let b = document.createElement("button");
- b.id = `select-${level.level_id}`;
- b.className = "level level_control";
- b.textContent = level.level_text;
- b.title = level.level_description;
- level.button = b;
- return selectEl.appendChild(b);
- }
- // Add default level button
- default_lev_button = addButton({level_id: "DEFAULT", level_description: browser.i18n.getMessage("popupDefaultLevelHelpText"), level_text: browser.i18n.getMessage("defaultLevelSelection", default_level.level_text)});
- default_lev_button.addEventListener("click", ev => {
- delete domains[site];
- modify_level(default_level, ev.target, true); // We need to force update config to display built-in tweaks
- });
- // Load built-in and custom levels
- for (let level_id in levels) {
- let level = levels[level_id];
- addButton(level).addEventListener("click", function (ev) {
- domains[site] = {
- level_id: level.level_id,
- };
- modify_level(level, ev.target);
- });
- }
- let currentEl = document.getElementById(`select-${current_level.is_default ? "DEFAULT" : current_level.level_id}`);
- if (currentEl !== null) {
- currentEl.classList.add("active");
- }
-}
-
-
-function update_level_info() {
- const LIMIT = 300;
- document.getElementById("level-text").textContent = current_level.level_text;
- let descriptionEl = document.getElementById("level-description");
- let moreEl = document.getElementById("current_site_level_settings").querySelector(".more");
- let lessEl = document.getElementById("current_site_level_settings").querySelector(".less");
- let shortDescr = create_short_text(current_level.level_description, LIMIT);
- descriptionEl.textContent = ` - ${shortDescr}`;
- if (current_level.level_description != shortDescr) {
- lessEl.classList.add("hidden_descr");
- moreEl.classList.remove("hidden_descr");
- moreEl.onclick = function() {
- descriptionEl.textContent = " - " + current_level.level_description;
- moreEl.classList.add("hidden_descr");
- lessEl.classList.remove("hidden_descr");
- return false;
- }
- lessEl.onclick = function() {
- descriptionEl.textContent = ` - ${shortDescr}`;
- lessEl.classList.add("hidden_descr");
- moreEl.classList.remove("hidden_descr");
- return false;
- }
- }
- else {
- lessEl.classList.add("hidden_descr");
- moreEl.classList.add("hidden_descr");
- }
-}
-
-function update_tweaks() {
- let tweaksContainer = document.getElementById("tweaks");
- document.body.classList.remove("tweaking");
- let tweakBtn = document.getElementById("btn-tweak");
- tweakBtn.disabled = true;
-
- if (current_level.tweaks && Object.keys(current_level.tweaks).length) {
- popup_tweaks.create_tweaks_html(tweaksContainer);
- tweakBtn.disabled = true;
- }
- else if (current_level.level_id !== "0") {
- tweakBtn.disabled = false;
- tweakBtn.onclick = function() {
- popup_tweaks.create_tweaks_html(tweaksContainer);
- tweakBtn.disabled = true;
- };
- }
-}
-
-/**
- * Fill the content of the JS Shield settings
- */
-function fill_jsshield(msg) {
- current_level = msg;
- enable_jss(msg);
- enableRefreshIfNeeded();
- fpdGetSeverity();
-
- add_level_buttons();
- update_level_info();
- update_tweaks();
-}
-
-async function init_jsshield() {
- // get the site of current tab
- site = await getCurrentSite();
- // abort per-site options if it can't be accessed
- if (!site) return;
- document.getElementById('site-settings').classList.add("enabled");
- document.getElementById('current-site').textContent = site;
-
- // fill the popup
- var port_to_background = browser.runtime.connect({name:"port_from_popup"});
- current_level = { level_id: "?" };
-
- port_to_background.onMessage.addListener(fill_jsshield);
-}
-
-// Open options in a new tab when clicking on the icon
-document.getElementById("global-settings").addEventListener('click', function(e) {
- browser.runtime.openOptionsPage();
- window.close();
- });
-
-{
- let widget = document.getElementById('js-toggle');
- let key = `controls-${widget.id}-checked`;
- widget.checked = localStorage.getItem(key) === 'true';
- (widget.onchange = () => {
- let {checked} = widget;
- widget.parentElement.classList.toggle("toggled", checked);
- localStorage.setItem(key, checked);
- })();
-}
-
-document.getElementById("nbs-switch").addEventListener("change", () => {setTimeout(control_whitelist, 200, "nbs")});
-document.getElementById("fpd-switch").addEventListener("change", () => {setTimeout(control_whitelist, 200, "fpd")});
-
-async function getCurrentSite() {
- if (typeof site !== "undefined") return site;
- try {
- let [tab] = await browser.tabs.query({currentWindow: true, active: true});
- // Check whether content scripts are allowed on the current tab:
- // if an exception is thrown, showing per-site settings is pointless,
- // because we couldn't operate here anyway
- if ("executeScript" in browser.tabs) {
- [pageConfiguration = {}] = await browser.tabs.executeScript({
- code: `typeof pageConfiguration === "object" && pageConfiguration || {};`
- });
- } else {
- pageConfiguration = (await browser.scripting.executeScript({
- injectImmediately: true,
- func: () => typeof pageConfiguration === "object" && pageConfiguration || {},
- target: {tabId: tab.id},
- }))[0].result;
- }
-
- hits = await browser.runtime.sendMessage({purpose: 'fpd-fetch-hits', tabId: tab.id});
- // Obtain and normalize hostname
- return site = getEffectiveDomain(tab.url);
- } catch (e) {
- if (/^Error: (?:Missing host permissions|Could not establish connection)/.test(e.toString())) {
- console.warn("Recoverable timing error during popup startup, retrying in 300ms", e);
- await async_sleep(200);
- return await getCurrentSite();
- }
- console.error(e);
- return site = null;
- }
-}
-
-
-document.getElementById("severity_value").addEventListener("click", async function () {
- let [tab] = await browser.tabs.query({currentWindow: true, active: true});
- browser.runtime.sendMessage({purpose: "fpd-create-report", tabId: tab.id});
-});
-
-/// Get fingerprinting severity from FPD and show it in a popup
-async function fpdGetSeverity() {
- let [tab] = await browser.tabs.query({currentWindow: true, active: true});
- let response = await browser.runtime.sendMessage({purpose: "fpd-fetch-severity", tabId: tab.id});
- if (response) {
- let element = document.getElementById("severity_value");
- if (response[1]) {
- element.innerText = response[1];
- document.getElementById("severity_container").classList.remove("hidden");
- }
- if (response[2]) {
- element.style.backgroundColor = response[2];
- }
- }
- setTimeout(fpdGetSeverity, 2000);
-}
-
-/// Load switch state from storage for current site
-async function load_on_off_switch(prefix)
-{
- var flagName;
- if (prefix == "nbs") flagName = "requestShieldOn";
- if (prefix == "fpd") flagName = "fpDetectionOn";
-
- let result = await browser.storage.sync.get([flagName]);
- let container = document.getElementById(prefix + "_whitelist");
- if (result[flagName] === false)
- {
- container.classList.add("off");
- }
- else
- {
- container.classList.remove("off");
- //Ask background whether is this site whitelisted or not
- if (prefix == "nbs")
- {
- let response = await browser.runtime.sendMessage({message: "is current site whitelisted?", site});
- document.getElementById(prefix + "-switch").checked = response !== "current site is whitelisted";
- }
- if (prefix == "fpd")
- {
- let response = await browser.runtime.sendMessage({purpose: "fpd-whitelist-check", url: site});
- document.getElementById(prefix + "-switch").checked = !response;
- fpd_active = !response;
- }
- }
-}
-
-/// Event handler for On/off switch
-async function control_whitelist(prefix)
-{
- let site = await getCurrentSite();
- var message;
- if (document.getElementById(prefix + "-switch").checked) {
- if (prefix == "nbs") message = "remove site from whitelist";
- if (prefix == "fpd") message = "remove-fpd-whitelist";
- }
- else {
- if (prefix == "nbs") message = "add site to whitelist";
- if (prefix == "fpd") message = "add-fpd-whitelist";
- }
-
- if (prefix == "nbs") browser.runtime.sendMessage({message, site});
- if (prefix == "fpd") browser.runtime.sendMessage({purpose: message, url: site});
- showRefreshPageOption();
-}
-
-addEventListener("DOMContentLoaded", async () => {
- await init_jsshield();
- if (!site) {
- return;
- }
- load_on_off_switch("nbs");
- load_on_off_switch("fpd");
-});
diff --git a/data/extensions/jsr@javascriptrestrictor/session_hash.js b/data/extensions/jsr@javascriptrestrictor/session_hash.js deleted file mode 100644 index 1a3938c..0000000 --- a/data/extensions/jsr@javascriptrestrictor/session_hash.js +++ /dev/null @@ -1,60 +0,0 @@ -/** \file - * \brief A cache for session and domain hashes, used for Farbling - * - * \author Copyright (C) 2021 Matus Svancar - * \author Copyright (C) 2021 Giorgio Maone - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** - * Object for generating and caching domain/session hashes - * getFor method used to get domain hashes from given url - * - * \note cached visited domains with related keys are only deleted after end of the session - */ - -// depends on /nscl/common/CachedStorage.js - -var Hashes = { - async getFor(url){ - let site = getSiteForURL(url); - let {sessionHash, visitedDomains} = await CachedStorage.init({ - sessionHash: null, - visitedDomains: {} - }, "Hashes"); - this.sessionHash = sessionHash ??= gen_random64().toString(); - let siteHashes = visitedDomains[site]; - if (!siteHashes) { - let hmac = sha256.hmac.create(this.sessionHash); - hmac.update(site); - const domainHash = hmac.hex(); - const hash = sha256.create(); - hash.update(JSON.stringify(domainHash)); - // Redefine the domainHash for incognito context: - // Compute the SHA256 hash of the original hash so that the incognito hash is: - // * significantly different to the original domainHash, - // * computationally difficult to revert, - // * the same for all incognito windows (for the same domain). - const incognitoHash = hash.hex(); - visitedDomains[site] = siteHashes = {domainHash, incognitoHash}; - await CachedStorage.save(this); - } - return siteHashes; - } -}; - diff --git a/data/extensions/jsr@javascriptrestrictor/settings_tweaks.js b/data/extensions/jsr@javascriptrestrictor/settings_tweaks.js deleted file mode 100644 index 1e9efd4..0000000 --- a/data/extensions/jsr@javascriptrestrictor/settings_tweaks.js +++ /dev/null @@ -1,61 +0,0 @@ -/** \file - * \brief Fine-tuning of the JShelter settings, for example, based on domains - * - * \author Copyright (C) 2023 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/// Tweaks for specific domains that are built-in for all users -var tweak_domains_builtin = { - "docs.google.com": { - "explanation": "https://pagure.io/JShelter/webextension/issue/122", - "level_id": ["1", "2"], - "tweaks": { - "webworker": 2 - } - }, - "app.mediafire.com": { - "explanation": "https://github.com/polcak/jsrestrictor/issues/207", - "level_id": ["1", "2"], - "tweaks": { - "webworker": 2 - } - }, - "pad.riseup.net": { - "explanation": "https://pagure.io/JShelter/webextension/issue/152", - "level_id": ["1", "2"], - "tweaks": { - "webworker": 2 - } - }, - "kiwi.com": { - "explanation": "https://pagure.io/JShelter/webextension/issue/153", - "level_id": ["1", "2"], - "tweaks": { - "webworker": 2 - } - }, -}; - -// TODO: implement the possibility of community-currated lists of exceptions -// See https://pagure.io/JShelter/webextension/issue/20 - -// Merge built-in and community-currated exceptions -/// All domain tweaks that are not created by the local user. Usually, you should -/// work with tweak_domains outside of this file and not the partial content like -/// tweak_domains_builtin. -var tweak_domains = tweak_domains_builtin; diff --git a/data/extensions/jsr@javascriptrestrictor/tweaks_gui.js b/data/extensions/jsr@javascriptrestrictor/tweaks_gui.js deleted file mode 100644 index 99aaa21..0000000 --- a/data/extensions/jsr@javascriptrestrictor/tweaks_gui.js +++ /dev/null @@ -1,154 +0,0 @@ -/** \file - * \brief JS code for the JS Shield tweak GUI - * - * \author Copyright (C) 2022 Giorgio Maone - * \author Copyright (C) 2022 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -let tweaks_gui = { - - create_group_descriptors: function (group_map) { - let tweakEntries = Object.entries(this.get_current_tweaks()).map(([group_id, tlev_id]) => { - let group = group_map[group_id]; - let label = group.label || group.name; - this.assign_custom_params(group); - return { group_id, tlev_id, label, group, toString() { return this.label } }; - } - ); - return tweakEntries; - }, - - sort_group_descriptors: function (tweakEntries) { - return tweakEntries.sort((firstObj, secondObj) => this.cmp_groups(firstObj, secondObj)); - }, - - add_tweak_row: function (tweaksContainer, group_map, group_id, tlev_id, label, group, no_default=false) { - let tweakRow = document.getElementById("tweak-row").content.cloneNode(true); - tweakRow.querySelector("label").textContent = label; - this.customize_tweak_row(tweakRow, group); - - let tlevUI = tweakRow.querySelector(".tlev"); - tlevUI.max = group.params.length; // 0 (off) .. array length - if (no_default) { // without 0 (off) - tlevUI.max = tlevUI.max-1; - } - let status = tweakRow.querySelector(".status"); - let help = tweakRow.querySelector(".help"); - let explainer = tweakRow.querySelector(".explainer"); - tweakRow.querySelector(".description").textContent = group.description; - let more = tweakRow.querySelector(".more"); - let longDescription = group.description2; - for (let line of longDescription) { - more.appendChild(document.createElement("p")).textContent = line; - } - - tlevUI.value = parseInt(tlev_id); - let updateLevelInfo = function (changed) { - let desired_tweak = parseInt(tlevUI.value); - let showStatus = (l) => { - tlevUI.nextElementSibling.value = l.short; - status.innerHTML = `<strong>${l.description}</strong>`; - if (l.description2) { - for (let line of l.description2) { - status.innerHTML += `<p>${line}</p>`; - } - } - } - if (no_default) { - showStatus(group.params[desired_tweak]); - } - else { - if (desired_tweak !== 0) { - showStatus(group.params[desired_tweak - 1]); - } - else { - showStatus({short:browser.i18n.getMessage("jssgroupUnprotected"), description:browser.i18n.getMessage("jssgroupUnprotected")}); - } - } - if (changed) { - this.tweak_changed(group_id, desired_tweak); - } - }.bind(this); - updateLevelInfo(); - tlevUI.addEventListener("input", updateLevelInfo.bind(this, false)); - tlevUI.addEventListener("change", updateLevelInfo.bind(this, true)); - tlevUI.addEventListener("input", function() { // See https://pagure.io/JShelter/webextension/issue/95 - explainer.classList.remove("hidden_descr"); - }); - - help.addEventListener("click", function(ev) { - explainer.classList.toggle("hidden_descr"); - ev.preventDefault(); - }); - tweaksContainer.appendChild(tweakRow); - }, - - create_tweaks_html: function (tweaksContainer) { - tweaksContainer.innerHTML = ""; - tweaksContainer.appendChild(document.getElementById("tweak-head").content); - let {group_map} = wrapping_groups; - let tweakEntries = this.sort_group_descriptors(this.create_group_descriptors(group_map)); - - for (let { group_id, tlev_id, label, group} of tweakEntries) { - this.add_tweak_row(tweaksContainer, group_map, group_id, tlev_id, label, group, group_id === "wasm"); - } - document.body.classList.add("tweaking"); - }, - - /** - * Return tweaks to be displayed. - */ - get_current_tweaks: function() { - return {}; - }, - - /** - * Redefine if you want to perform an action when the user changes tweaks - */ - tweak_changed: function(group_id, desired_tweak) { - }, - - /** - * Add custom parameters to this processed groups (called for each group) - * - * Redefined if you want to display dynamic values, such as number of calls on current page. - * You should use this value in modified customize_tweak_row() or cmp_groups(). - * Otherwise, it will not have any effect. - */ - assign_custom_params: function(group) { - }, - - /** - * Display custom parameters on a row to user (called for each row, i.e. group) - */ - customize_tweak_row: function(tweakRow, group) { - }, - - /** - * Compare two groups - * - * The default implementation keeps the original positions. Note that Array.prototype.sort assigns - * items in a different order in Firefox and Chrome-based browsers. - * - * \return 0: No change in position. - */ - cmp_groups: function(firstGr, secondGr) { - return 0; - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/update.js b/data/extensions/jsr@javascriptrestrictor/update.js deleted file mode 100644 index 83ccbb8..0000000 --- a/data/extensions/jsr@javascriptrestrictor/update.js +++ /dev/null @@ -1,543 +0,0 @@ -/** \file - * \brief Code that updates configuration stored by the user after upgrades - * - * \author Copyright (C) 2019 Martin Timko - * \author Copyright (C) 2019-2021 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -let defaultNbsWhitelistDomain = "duckduckgo.com"; -let defaultNbsWhitelist = {}; -defaultNbsWhitelist[defaultNbsWhitelistDomain] = true; - -async function installUpdate() { - /** - * 0.3+ storage - * { - * __default__: 2, // Default protection level - * version: 2.2, // The version of this storage - * custom_levels: {}, // associative array of custom level (key, its id => object) - * {level_id: short string used for example on the badge - * level_text: Short level description - * level_description: Full level description - * ... - * wrapping_params (key-value pairs), see wrapping_groups for the list of params and - * supported values - * } - * domains: {}, // associative array of levels associated with specific domains (key, the domain => object) - * {level_id: short string of the level in use - * } - * nbsWhitelist: {} // associative array of hosts that are removed from http protection control (hostname => boolean) - * requestShieldOn: {} // Boolean, if it's TRUE or undefined, the http request protection is turned on, if it's FALSE, the protection si turned off - * fpDetectionOn: {} // Boolean, if it's TRUE, the fingerprint detection is turned on, if it's FALSE or undefined, the protection si turned off - * - * - */ - let item = await browser.storage.sync.get(null); - if (!item.hasOwnProperty("version") || (item.version < 2.1)) { - browser.storage.sync.clear(); - console.log("All JavaScript Restrictor data cleared! Unfortunately, we do not migrate settings from versions bellow 0.3."); - item = { - __default__: 2, - version: 2.1, - custom_levels: {}, - domains: {}, - }; - } - if (item.version == 2.1) { - // No Geolocation below 2.2 - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - if (l.time_precision) { - l.geolocation = true; - if (l.time_precision_randomize) { - l.geolocation_locationObfuscationType = 5; - } - else if (l.time_precision_precision == 2) { - l.geolocation_locationObfuscationType = 2; - } - else if (l.time_precision_precision == 1) { - l.geolocation_locationObfuscationType = 3; - } - else if (l.time_precision_precision == 0) { - l.geolocation_locationObfuscationType = 4; - } - else { - l.geolocation_locationObfuscationType = -1; - } - // note that the obfuscation type might be redefined below - } - if (l.shared_array || l.webworker || l.xhr || l.arrays) { - l.geolocation = true; - l.geolocation_locationObfuscationType = 0; - } - if (l.geolocation_locationObfuscationType === undefined && l.htmlcanvaselement) { - l.geolocation = true; - l.geolocation_locationObfuscationType = 3; - } - } - item.version = 2.2; - } - if (item.version == 2.2) { - // No window.name wrapping below 2.2 - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - let count = 0; - count += Number(Boolean(l.time_precision)) + - Number(Boolean(l.hardware)) + - Number(Boolean(l.battery)) + - Number(Boolean(l.geolocation)) + - Number(Boolean(l.shared_array)) + - Number(Boolean(l.webworker)) + - Number(Boolean(l.xhr)) + - Number(Boolean(l.arrays)) + - Number(Boolean(l.htmlcanvaselement)); - if (count >= 3) { - l.windowname = true; - } - } - item.version = 2.3; - } - if (item.version == 2.3) { - // No enumerateDevices wrapping below 2.4 - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - let count = 0; - count += Number(Boolean(l.time_precision)) + - Number(Boolean(l.hardware)) + - Number(Boolean(l.battery)) + - Number(Boolean(l.geolocation)) + - Number(Boolean(l.shared_array)) + - Number(Boolean(l.webworker)) + - Number(Boolean(l.xhr)) + - Number(Boolean(l.arrays)) + - 100*Number(Boolean(l.htmlcanvaselement)); - if (count >= 102) { - l.enumerateDevices = true; - } - } - item.version = 2.4; - } - if (item.version < 2.6) { - // No Beacon API (analytics) wrapping below 2.6 - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - if (l.windowname || l.battery || l.geolocation || l.enumerateDevices || l.time_precision || l.hardware) { - l.analytics = true; - } - } - item.version = 2.6; - } - if (item.version < 2.7) { - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - if (l.htmlcanvaselement) { - l.htmlcanvaselement_method = 1; - l.audiobuffer = true; - l.audiobuffer_method = 0; - l.webgl = true; - l.webgl_method = 0; - } - } - item.version = 2.7; - } - if (item.version < 2.8) { - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - if (l.htmlcanvaselement) { - l.plugins = true; - if (l.htmlcanvaselement_method == 0) { - l.plugins_method = 0; - } - else { - l.plugins_method = 2; - } - } - } - item.version = 2.8; - } - if (item.version < 2.9) { - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - if (l.analytics) { - l.gamepads = true; - } - } - item.version = 2.9; - } - if (item.version < 3) { - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - if (l.gamepads) { - l.vr = true; - } - } - item.version = 3; - } - if (item.version < 4) { - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - if (l.hardware || l.battery || l.windowname) { - l.physical_environment = true; - l.physical_environment_emulateStationaryDevice = true; - } - } - item.version = 4; - } - if (item.version < 5) { - item.fpDetectionOn = false; - item.version = 5; - } - if (item.version < 6) { - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - // time_precision - if (l.time_precision) { - if (l.time_precision_randomize || l.time_precision_precision < 1) { - l.time_precision = 3; - } - else if (l.time_precision_precision == 1) { - l.time_precision = 2; - } - else if (l.time_precision_precision > 1) { - l.time_precision = 1; - } - else { - delete l.time_precision; - } - } - else { - delete l.time_precision; - } - delete l.time_precision_precision; - delete l.time_precision_randomize; - // regular farbling - for (farblable of ["htmlcanvaselement", "audiobuffer", "webgl", "plugins", "enumerateDevices", "hardware"]) { - if (l[farblable]) { - if (l[farblable + "_method"] !== undefined) { - l[farblable] = l[farblable + "_method"] + 1; - } - else { - l[farblable] = 2; - } - } - else { - delete l[farblable]; - } - delete l[farblable + "_method"]; - } - // xhr - if (l.xhr) { - if (l.xhr_behaviour_block && !l.xhr_behaviour_ask) { - l.xhr = 2; - } - else { - l.xhr = 1; - } - } - else { - delete l.xhr; - } - delete l.xhr_behaviour_block; - delete l.xhr_behaviour_ask; - // arrays - if (l.arrays) { - if (l.arrays_mapping) { - l.arrays = 2; - } - else { - l.arrays = 1; - } - } - else { - delete l.arrays; - } - delete l.arrays_mapping; - //sharred_array - if (l.shared_array) { - if (l.shared_array_approach_block) { - l.shared_array = 2; - } - else { - l.shared_array = 1; - } - } - else { - delete l.shared_array; - } - delete l.shared_array_approach_block; - delete l.shared_array_approach_polyfill; - // webworker - if (l.webworker) { - if (l.webworker_approach_polyfill) { - l.webworker = 2; - } - else { - l.webworker = 1; - } - } - else { - delete l.webworker; - } - delete l.webworker_approach_polyfill; - delete l.webworker_approach_slow; - // geolocation - if (l.geolocation) { - if (l.geolocation_locationObfuscationType == 0) { - l.geolocation = 6; - } - else if (l.geolocation_locationObfuscationType == 2) { - l.geolocation = 2; - } - else if (l.geolocation_locationObfuscationType == 3) { - l.geolocation = 3; - } - else if (l.geolocation_locationObfuscationType == 4) { - l.geolocation = 4; - } - else if (l.geolocation_locationObfuscationType == 5) { - l.geolocation = 5; - } - else if (l.geolocation_locationObfuscationType == -1) { - l.geolocation = 1; - } - else { - l.geolocation = 3; - } - } - else { - delete l.geolocation; - } - delete l.geolocation_locationObfuscationType; - // others - for (wrap of ["physical_environment", "gamepads", "vr", "analytics", "battery", "windowname"]) { - if (l[wrap]) { - l[wrap] = 1; - } - else { - delete l[wrap]; - } - } - delete l.physical_environment_emulateStationaryDevice; - } - item.version = 6; - } - if (item.version < 6.1) { - // We no longer ship level 1 as its content is not defined well, the tweaks allow the user - // to relax the level conditions specifically to each page - for (domain in item.domains) { - let level = item.domains[domain]; - // Select the default level if the default level is not 3 (if level 3 is the default, set - // level 2) - if (level.level_id == "1") { - if ([2, 3, "2", "3"].includes(item.__default__)) { - level.level_id = "2"; - } - else { - level.level_id = String(item.__default__); - } - } - } - item.version = 6.1; - } - if (item.version < 6.2) { - if (item.fpDetectionOn) { - item.fpdSettings = { - behavior: 3 - }; - } - else { - item.fpdSettings = { - behavior: 1 - }; - } - item.fpDetectionOn = true; - item.nbsWhitelist = item.whitelistedHosts ? item.whitelistedHosts : defaultNbsWhitelist; - delete item.whitelistedHosts; - item.nbsSettings = { - notifications: 1 - }; - item.version = 6.2; - } - if (item.version < 6.3) { - if (level_2.windowname === undefined) { // Firefox - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - if (!(l.arrays || l.shared_array)) { - delete l.windowname; - } - } - } - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - l.webworker = 2; - } - item.version = 6.3; - } - if (item.version < 6.4) { - if (item.nbsSettings) { - item.nbsSettings.blocking = 1; - } - if (item.fpdSettings) { - item.fpdSettings.detection = 0; - } - item.version = 6.4; - } - if (item.version < 6.5) { - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - if (l.time_precision && l.analytics && l.geolocation) { - l.coopschedule = 1; - l.net = 1; - l.nfc = 1; - l.useridle = 1; - if (l.htmlcanvaselement || l.audiobuffer || l.enumerateDevices) { - l.useridle = 2; - if (l.htmlcanvaselement === 2 || l.audiobuffer === 2 || l.enumerateDevices === 3) { - l.useridle = 3; - l.playback = 2; - } - } - } - } - item.version = 6.5; - } - if (item.version < 6.6) { - if (item.fpdSettings) { - switch (item.fpdSettings.behavior) { - case 0: - item.fpdSettings.notifications = 0; - break; - case 1: - item.fpdSettings.behavior = 0; - item.fpdSettings.notifications = 1; - break; - case 2: - item.fpdSettings.behavior = 1; - item.fpdSettings.notifications = 1; - break; - case 3: - item.fpdSettings.behavior = 2; - item.fpdSettings.notifications = 1; - } - } - item.version = 6.6; - } - if (item.version < 6.7) { - await browser.storage.sync.remove("whitelistedHosts"); // Renamed in 6.2 but not removed - item.version = 6.7; - } - if (item.version < 6.8) { - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - if (l.webworker === 2) { - let score = 0; - for (group of ["time_precision", "net", "geolocation", "physical_environment", "useridle", "coopschedule", "gamepads", "vr", "analytics", "nfc"]) { - if (l[group] !== undefined) { - score++; - } - } - for (group of ["htmlcanvaselement", "audiobuffer", "webgl", "hardware"]) { - if (l[group] === 1) { - score--; - } - else if (l[group] > 1) { - score++; - } - } - for (group of ["enumerateDevices", "plugins"]) { - if (l[group] === 1 || l[group] === 2) { - score--; - } - else if (l[group] > 2) { - score++; - } - } - if (score > 8) { // L0: 0, L1: 10, L2: 4, L3: 16 - l.webworker = 3; - } - } - } - item.version = 6.8; - } - if (item.version < 7) { - for (level in item["custom_levels"]) { - let l = item["custom_levels"][level]; - if (l.audiobuffer === 1 || l.htmlcanvaselement === 1) { - l.wasm = 1; - } - } - item.nbsWhitelist[defaultNbsWhitelistDomain] = true; - item.version = 7; - } - - - - await browser.storage.sync.set(item); - // origin of update.js must be recognized (background script vs. options page) - if (typeof fpdLoadConfiguration === "function") { - fpdLoadConfiguration(); - } - else { - browser.runtime.sendMessage({purpose: "fpd-load-config"}); - } - if (typeof nbsLoadConfiguration === "function") { - nbsLoadConfiguration(); - } - else { - browser.runtime.sendMessage({purpose: "nbs-load-config"}) - } -} -browser.runtime.onInstalled.addListener(installUpdate); -// fallback - populate storage with valid data (if onInstalled won't fire) -browser.storage.sync.get(null).then((item) => { - checkAndSaveConfig(item, false); // level might not be loaded by this time -}); - -async function checkAndSaveConfig(conf, check_default = true) { - let checkSettingRange = (module, setting, range, defValue) => { - if (!(conf[module][setting] in range)) { - conf[module][setting] = defValue; - } - } - let checkExistAndType = (name, type, defValue) => { - if (!(name in conf && typeof(conf[name]) === type)) { - conf[name] = defValue; - } - } - checkExistAndType("version", "number", 2.1); - checkExistAndType("requestShieldOn", "boolean", true); - checkExistAndType("fpDetectionOn", "boolean", false); - checkExistAndType("custom_levels", "object", {}); - if (!("__default__" in conf) || typeof(conf.__default__) !== "string" || - (!(conf.__default__ in levels) && check_default)) { - conf.__default__ = "2"; - } - checkExistAndType("domains", "object", {}); - checkExistAndType("nbsWhitelist", "object", defaultNbsWhitelist); - checkExistAndType("nbsSettings", "object", {}); - checkSettingRange("nbsSettings", "blocking", [0,1], 1); - checkSettingRange("nbsSettings", "notifications", [0,1], 1); - checkExistAndType("fpdWhitelist", "object", {}); - checkExistAndType("fpdSettings", "object", {}); - checkSettingRange("fpdSettings", "behavior", [0,1,2,3], 1); - checkSettingRange("fpdSettings", "notifications", [0,1], 1); - checkSettingRange("fpdSettings", "detection", [0,1], 0); - await browser.storage.sync.set(conf); - await installUpdate(); -} diff --git a/data/extensions/jsr@javascriptrestrictor/url.js b/data/extensions/jsr@javascriptrestrictor/url.js deleted file mode 100644 index 119bf61..0000000 --- a/data/extensions/jsr@javascriptrestrictor/url.js +++ /dev/null @@ -1,76 +0,0 @@ -/** \file - * \brief Functions that handles working with URLs - * - * \author Copyright (C) 2018 Zbynek Cervinka - * \author Copyright (C) 2019 Libor Polcak - * \author Copyright (C) 2019 Martin Timko - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - - -/** - * Get all sub domains for a domain. - * - * @param thisDomain Domain name string, e.g. www.fit.vutbr.cz - * IPv4 address, e.g. 147.229.9.23 - * IPv6 address, e.g. 2001:67c:1220:809::93e5:917 - * - * @returns List of strings representing all subdomains, including TLD. The - * list starts with the most generic domain and continues with the more and - * more specific domains. For example, www.fit.vutbr.cz -> [ "cz", "vutbr.cz", - * "fit.vutbr.cz", "www.fit.vutbr.cz" ] - */ -function extractSubDomains(thisDomain) { - var splitArr = thisDomain.split('.'); - var arrLen = splitArr.length; - // Check if the string is an IPv4 address - if (arrLen == 4) { - let correct = true; // initial value - try { - for (num of splitArr) { - let octet = Number(num); - if (octet !== octet /* NaN */ || octet < 0 || octet > 255) { - correct = false; - } - } - } - catch (error) { - correct = false; - } - if (correct === true) { - return [thisDomain]; // It is an IPv4 address - } - } - // Ignore the trailing "." - if (splitArr[arrLen - 1] === "") { - splitArr.pop(); - arrLen -= 1; - } - if (arrLen === 0) { - return [""]; - } - // Create the list of subdomains - let domains = []; - let subDomain = splitArr[arrLen - 1]; - domains.push(subDomain); - for (let i = arrLen - 2; i >= 0; i--) { - subDomain = splitArr[i] + '.' + subDomain; - domains.push(subDomain); - } - return domains; -} diff --git a/data/extensions/jsr@javascriptrestrictor/wrapping.js b/data/extensions/jsr@javascriptrestrictor/wrapping.js deleted file mode 100644 index 94b2c7a..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrapping.js +++ /dev/null @@ -1,74 +0,0 @@ -/** \file - * \brief Main file handling wrappers - * - * \author Copyright (C) 2019 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** - * \defgroup wrappers JavaScript Shield - * - * \brief Wrappers are small pieces of code that modifies the original functionalty of a function, - * or property defined by standards. - * - * $(PROJECT_NAME) defines wrappers to modify the behaviour of the JavaScript environment. The - * purpose of the most of the wrappers can be divided into several categories: - * - * * Block APIs: some APIs are not generally needed and can be blocked for most of the pages. - * * Precision reduction: The returned value is too precise which might result into attacks on the - * browser or can be used to fingerprint users. - * * Hide information: Some APIs provide information that is not generally needed and can be hidden - * from most of the pages. - * * Provide fake information: We provide fake information mostly to confuse fingerprinters. - */ - -/** - * The object carrying all the wrappers - */ -var build_wrapping_code = {}; - -/** - * Adds a list of wrapping objects to the build_wrapping_code. - * - * This function is called from each wrapper in its file. - */ -function add_wrappers(wrappers) { - for (wrapper of wrappers) { - build_wrapping_code[wrapper.parent_object + "." + wrapper.parent_object_property] = wrapper; - } -} - -/** - * Function to be used by wrapped code used for rounding - */ -var rounding_function = `function rounding_function(numberToRound, precision) { - return numberToRound - (numberToRound % precision); -}`; - -/** - * Function to be used by wrapped code for adding randomized noise - */ -var noise_function = `let lastValue = 0; - function noise_function(numberToChange, precision) { - const noise = Math.floor(Math.random() * precision); - var value = numberToChange + noise; - if (lastValue < value) { - lastValue = value; - } - return lastValue; -}`; diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingL-CANVAS.js b/data/extensions/jsr@javascriptrestrictor/wrappingL-CANVAS.js deleted file mode 100644 index e7e843a..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingL-CANVAS.js +++ /dev/null @@ -1,65 +0,0 @@ -/** \file - * \brief Library of functions for the Canvas API wrappers - * - * \see https://www.w3.org/TR/generic-sensor/ - * - * \author Copyright (C) 2022 Libor Polčák - * \author Copyright (C) 2021 Matus Svancar - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ - // - // This program is free software: you can redistribute it and/or modify - // it under the terms of the GNU General Public License as published by - // the Free Software Foundation, either version 3 of the License, or - // (at your option) any later version. - // - // This program is distributed in the hope that it will be useful, - // but WITHOUT ANY WARRANTY; without even the implied warranty of - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - // GNU General Public License for more details. - // - // You should have received a copy of the GNU General Public License - // along with this program. If not, see <https://www.gnu.org/licenses/>. - // - /** \file - * \ingroup wrappers - * - * Supporting fuctions for Canvas API Wrappers - */ - -/** - * Farble image data, original Brave implementation-like - * - * \param data RGBA shallow array, (0,0) coordinates are at the top left, - * see CanvasRenderingContext2D.prototype.getImageData for more details on the - * expected format. Note that the data are modified during the call. - * \param height Height of the original canvas. - * \param width Width of the original canvas. - */ -function farbleCanvasDataBrave(rowIterator, width) { - // PRNG function needs to depend on the original canvas, so that the same - // image is farbled the same way but different images are farbled differently - // See https://pagure.io/JShelter/webextension/issue/23 - let crc = new CRC16(); - for (row of rowIterator()) { - crc.next(row); - } - var thiscanvas_prng = alea(domainHash, "CanvasFarbling", crc.crc); - var data_count = width * 4; - - for (row of rowIterator()) { - for (let i = 0; i < data_count; i++) { - if ((i % 4) === 3) { - // Do not modify alpha - continue; - } - if (thiscanvas_prng.get_bits(1)) { // Modify data with probability of 0.5 - // Possible improvements: - // Copy a neighbor pixel (possibly with modifications - // Make bigger canges than xoring with 1 - row[i] ^= 1; - } - } - } -} diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingL-SENSOR.js b/data/extensions/jsr@javascriptrestrictor/wrappingL-SENSOR.js deleted file mode 100644 index 8d351a7..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingL-SENSOR.js +++ /dev/null @@ -1,173 +0,0 @@ -/** \file - * \brief Library of functions for the Generic Sensor API wrappers - * - * \see https://www.w3.org/TR/generic-sensor/ - * - * \author Copyright (C) 2021 Radek Hranicky - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ - // - // This program is free software: you can redistribute it and/or modify - // it under the terms of the GNU General Public License as published by - // the Free Software Foundation, either version 3 of the License, or - // (at your option) any later version. - // - // This program is distributed in the hope that it will be useful, - // but WITHOUT ANY WARRANTY; without even the implied warranty of - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - // GNU General Public License for more details. - // - // You should have received a copy of the GNU General Public License - // along with this program. If not, see <https://www.gnu.org/licenses/>. - // - /** \file - * \ingroup wrappers - * - * Supporting fuctions for Generic Sensor API Wrappers - */ - -/* - * Functions for generating pseudorandom numbers. - * To make the behavior deterministic and same on the same domain, - * the generator uses domain hash as a seed. - */ -var sensorapi_prng_functions = ` - // Generates a 32-bit from a string. Inspired by MurmurHash3 algorithm - // See: https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp - function sen_generateSeed(s) { - var h; - for(var i = 0, h = 1779033703 ^ s.length; i < s.length; i++) - h = Math.imul(h ^ s.charCodeAt(i), 3432918353), - h = h << 13 | h >>> 19; - return h; - } - - // Get seed for PRNG: prefer existing seed, then domain hash, session hash - var sen_seed = sen_seed || - sen_generateSeed(domainHash); - - - // PRNG based on Mulberry32 algorithm - // See: https://gist.github.com/tommyettinger/46a874533244883189143505d203312c - // To the extent possible under law, the author has dedicated all copyright - // and related and neighboring rights to this software to the public domain - // worldwide. - function sen_prng() { - // expects "seed" variable to be a 32-bit value - var t = sen_seed += 0x6D2B79F5; - t = Math.imul(t ^ t >>> 15, t | 1); - t ^= t + Math.imul(t ^ t >>> 7, t | 61); - return ((t ^ t >>> 14) >>> 0) / 4294967296; - } - - // Generates a number around the input number - function sen_generateAround(number, tolerance) { - let min = number - number * tolerance; - let max = number + number * tolerance; - - return sen_prng() * (max - min) + min; - } - - // Rounds a number to a fixed amount of decimal places - // Returns a NUMBER - function fixedNumber(num, digits, base) { - var pow = Math.pow(base||10, digits); - return Math.round(num*pow) / pow; - } -`; - -/* - * Functions for simulation of the device orientation. - * Those allow to create a fake orientation of the device in axis angles - * and create a rotation matrix. Support for multiplication of a 3D vector - * with the rotation matrix is included. - * - * Note: The code needs supporting function from the - * "sensorapi_prng_functions" above. - * - * In case of a non-rotated phone with a display oriented directly to the - * face of the user, the device's axes are oriented as follows: - * x-axis is oriented from the user's left to the right - * y-axis from the bottom side of the display towards the top side - * z-axis is perpendicular to the display, it leads from the phone's - * display towards the user's face - * - * The yaw, pitch, and roll define the rotation of the phone in the Earth's - * reference coordinate system. In case, all are 0: - * x is oriented towards the EAST - * y is oriented towards the NORTH (Earth's magnetic) - * -z is oriented toward the center of the Earth - * - * y (roll) - * / (NORTH if yaw = pitch = 0) - * / - * +----------+ - * / / / - * (top) / z(yaw) / - * / |/ / - * / +-----/----> x (pitch) - * / / (EAST if yaw = roll = 0) - * / _ _ / - * / /__/ / - * +----------+ - * (bottom) - * - */ -var device_orientation_functions = ` - // Calcultes a rotation matrix for the given yaw, pitch, and roll - // (in radians) of the device. - function calculateRotationMatrix(yaw, pitch, roll) { - var rotMat = [ - [Math.cos(yaw) * Math.cos(pitch), - Math.cos(yaw) * Math.sin(pitch) * Math.sin(roll) - Math.sin(yaw) * Math.cos(roll), - Math.cos(yaw) * Math.sin(pitch) * Math.cos(roll) + Math.sin(yaw) * Math.sin(roll) - ], - [Math.sin(yaw) * Math.cos(pitch), - Math.sin(yaw) * Math.sin(pitch) * Math.sin(roll) + Math.cos(yaw) * Math.cos(roll), - Math.sin(yaw) * Math.sin(pitch) * Math.cos(roll) - Math.cos(yaw) * Math.sin(roll) - ], - [(-1) * Math.sin(pitch), - Math.cos(pitch) * Math.sin(roll), - Math.cos(pitch) * Math.cos(roll) - ] - ]; - return rotMat; - } - - // Initial draw of the (fake) device orientation - // TODO: Limit to oriententations that make sense for a mobile device - function generateDeviceOrientation() { - var orient = {}; - /* - * Yaw (couterclockwise rotation of the Z-axis) - * Pitch (counterclockwise rotation of the Y-axis) - * Roll (counterclockwise rotation of the X-axis) - */ - var yaw = Math.floor(sen_prng() * 2 * Math.PI); - var pitch = Math.floor(sen_prng() * 2 * Math.PI); - var roll = Math.floor(sen_prng() * 2 * Math.PI); - - orient.yaw = yaw; - orient.pitch = pitch; - orient.roll = roll; - - // Calculate the rotation matrix - orient.rotMat = calculateRotationMatrix(yaw, pitch, roll); - - return orient; - } - - var orient = orient || generateDeviceOrientation(); - - // Multiplies a 3D strength vector (1x3) with a 3D rotation matrix (3x3) - // Returns the resulting 3D vector (1x3) - function multVectRot(vec, mat) { - var result = [ - vec[0]*mat[0][0] + vec[1]*mat[0][1] + vec[2]*mat[0][2], - vec[0]*mat[1][0] + vec[1]*mat[1][1] + vec[2]*mat[1][2], - vec[0]*mat[2][0] + vec[1]*mat[2][1] + vec[2]*mat[2][2] - ] - return result; - } -`; diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-AJAX.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-AJAX.js deleted file mode 100644 index 751eb72..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-AJAX.js +++ /dev/null @@ -1,89 +0,0 @@ -/** \file - * \brief Wrappers for XMLHttpRequest standard - * - * \see https://xhr.spec.whatwg.org/ - * - * \author Copyright (C) 2019 Libor Polcak - * \author Copyright (C) 2021 Giorgio Maone - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * XHR may be misused to exfiltrate data from the browser to the server. - * We provide a wrapper that either blocks all XHR requests or lets the - * user decide. - * - * \bug There are two flaws in the current implementation: - * - * * There are many ways (see e.g. https://github.com/cure53/HTTPLeaks) to replace - * XHR and consequently evade the wrapper. This can be mitigating by monitoring - * the requests using Web Request API. - * * The confirm method puts a lot of responsibility on the user who needs to - * have a good knowledge about the requests on each visited page. - * - * \note We expect to remove the wrapper once we release JShelter - * with Fingerprint Detector (FPD). FPD should solve both issues above. - */ - - -/* - * Create private namespace - */ -(function() { - var wrappers = [ - { - parent_object: "XMLHttpRequest.prototype", - parent_object_property: "open", - wrapped_objects: [ - { - original_name: "XMLHttpRequest.prototype.open", - wrapped_name: "originalOpen", - }, - ], - helping_code: "var blockEveryXMLHttpRequest = args[0]; var confirmEveryXMLHttpRequest = args[1];", - wrapping_function_args: "...args", - wrapping_function_body: ` - let {XHR_blocked} = WrapHelper.shared; - if (blockEveryXMLHttpRequest || (confirmEveryXMLHttpRequest && !confirm('There is a XMLHttpRequest on URL ' + args[1] + '. Do you want to continue?'))) { - XHR_blocked.add(this); - return []; - } - XHR_blocked.delete(this); - return originalOpen.call(this, ...args); - `, - }, - { - parent_object: "XMLHttpRequest.prototype", - parent_object_property: "send", - wrapped_objects: [ - { - original_name: "XMLHttpRequest.prototype.send", - wrapped_name: "originalSend", - }, - ], - - helping_code: "WrapHelper.shared.XHR_blocked = new WeakSet();", - wrapping_function_args: "...args", - wrapping_function_body: ` - if (!WrapHelper.shared.XHR_blocked.has(this)) return originalSend.call(this, ...args); - `, - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-BATTERY-CR.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-BATTERY-CR.js deleted file mode 100644 index f8fe1bf..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-BATTERY-CR.js +++ /dev/null @@ -1,72 +0,0 @@ -/** \file - * \brief Wrappers for Battery Status API - * - * \see https://www.w3.org/TR/battery-status/ - * - * \author Copyright (C) 2021 Libor Polčák - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * The `navigator.getBattery()` reports the state of the battery and can be - * misused to fingerprint users for a short term. The API was removed from - * Firefox, but is still supported in browsers derived from Chromium. - * The wrapper mimics Firefox behaviour. - * - * \see <https://lukaszolejnik.com/battery> - * - * \bug Because we mimic Firefox behaviour, a Chromium derived browser - * becomes more easily fingerprintable. This can be fixed by properly - * wrapping `BatteryManager.prototype` getters and setters. - */ - - -/* - * Create private namespace - */ -(function() { - var wrappers = [ - { - parent_object: "Navigator.prototype", - parent_object_property: "getBattery", - wrapped_objects: [], - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "Navigator.prototype", - delete_properties: ["getBattery"], - } - ], - }, - { - parent_object: "window", - parent_object_property: "BatteryManager", - wrapped_objects: [], - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "window", - delete_properties: ["BatteryManager"], - } - ], - }, - ]; - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-BE.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-BE.js deleted file mode 100644 index 01e7eba..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-BE.js +++ /dev/null @@ -1,55 +0,0 @@ -/** \file - * \brief Wrappers for that disables the Beacon API. - * - * \see https://www.w3.org/TR/beacon/ - * - * \author Copyright (C) 2021 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * The `navigator.sendBeacon()` method asynchronously sends a small - * amount of data over HTTP to a web server. It is intended to be - * used for sending analytics data to a web server. For more details - * see the MDN docs on the [Beacon API](https://developer.mozilla.org/en-US/docs/Web/API/Beacon_API) and - * [sendBeacon](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon). - * - * `navigator.sendBeacon` is the only method currently defined for the - * Beacon API. - */ - -/* - * Create private namespace - */ -(function() { - var wrappers = [ - { - parent_object: "Navigator.prototype", - parent_object_property: "sendBeacon", - wrapped_objects: [], - helping_code: "", - /// Although we should return false, we spoof returning true as ClearURL does - wrapping_function_body: ` - return true; - `, - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-COOP-SCHEDULING.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-COOP-SCHEDULING.js deleted file mode 100644 index b23fa71..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-COOP-SCHEDULING.js +++ /dev/null @@ -1,103 +0,0 @@ -/** \file - * \brief Wrappers for Cooperative Scheduling of Background Tasks API - * - * \see https://w3c.github.io/requestidlecallback/#the-requestidlecallback-method - * - * \author Copyright (C) 2022 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * The `window.requestIdleCallback()` API can schedule background tasks - * such that they do not introduce delays to other high priority tasks - * that share the same event loop, such as input processing, animations - * and frame compositing. - * - * But the API leaks information about the other tasks running in the - * browser as it leaks information on currently scheduled tasks, vsync - * deadlines, user-interaction and so on. - * - * JShelter modifies the return call to: - * - * 1. Never leak the information that the call was triggered by an - * expired timeout. - * 2. Fake the information on remaining time in synchronization with the - * `Date.now()` wrapper. Returns up to 50% more time compared to the - * original value. - */ - -/* - * Create private namespace - */ -(function() { - var wrappers = [ - { - parent_object: "IdleDeadline.prototype", - parent_object_property: "didTimeout", - wrapped_objects: [], - helping_code: ``, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "IdleDeadline.prototype", - parent_object_property: "didTimeout", - wrapped_objects: [], - /** \brief replaces IdleDeadline.prototype.didTimeout getter - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - return false; - }`, - }, - ], - } - ], - }, - { - parent_object: "IdleDeadline.prototype", - parent_object_property: "timeRemaining", - wrapped_objects: [ - { - original_name: "IdleDeadline.prototype.timeRemaining", - wrapped_name: "originalF", - }, - ], - helping_code: "var lastEnd = 0;", - wrapping_function_args: "", - wrapping_function_body: ` - let ret; - let now = Date.now(); - if (now > lastEnd) { - let originalTimeR = originalF.call(this); - ret = prng() * originalTimeR * 1.5; - lastEnd = now + ret; - } - else { - ret = lastEnd - now; - } - return ret; - `, - }, - ] - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-DM.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-DM.js deleted file mode 100644 index 2df5996..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-DM.js +++ /dev/null @@ -1,107 +0,0 @@ -/** \file - * \brief Wrappers for navigator.deviceMemory property - * - * \see https://xhr.spec.whatwg.org/ - * - * \author Copyright (C) 2019 Libor Polcak - * \author Copyright (C) 2021 Matus Svancar - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - * \license SPDX-License-Identifier: MPL-2.0 - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// -// Alternatively, the contents of this file may be used under the terms -// of the Mozilla Public License, v. 2.0, as described below: -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this file, -// You can obtain one at http://mozilla.org/MPL/2.0/. -// -// \copyright Copyright (c) 2020 The Brave Authors. - -/** \file - * This file contains a wrapper for [navigator.deviceMemory](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory). - * \ingroup wrappers - * - * The goal is to prevent fingerprinting by modifying the return value of the `navigator.deviceMemory` parameter. - * - * This wrapper operates with three levels of protection: - * - * * (0) - return random valid value from range [0.25 - real value] - * * (1) - return random valid value from range [0.25 - 8] - * * (2) - return 4 - * - * These approaches are inspired by the algorithms created by [Brave Software](https://brave.com) - * available [here](https://github.com/brave/brave-core/blob/master/chromium_src/third_party/blink/renderer/core/frame/navigator_device_memory.cc). - * - */ - -/* - * Create private namespace - */ -(function() { - var wrappers = [ - { - parent_object: "Navigator.prototype", - parent_object_property: "deviceMemory", - wrapped_objects: [], - helping_code: ` - let dm_prng = alea(domainHash, "navigator.deviceMemory"); - var validValues = [0.25, 0.5, 1.0, 2.0, 4.0, 8.0]; - var ret = 4; - var realValue = navigator.deviceMemory; - if(args[0]!=2 && realValue==0.25){ - ret = realValue; - } - else if(args[0]==0){ - var maxIndex = validValues.indexOf(realValue); - if(maxIndex == -1){ - maxIndex = validValues.length-1; - } - ret = validValues[Math.floor((dm_prng()*(maxIndex+1)))]; - } - else if(args[0]==1){ - ret = validValues[Math.floor(dm_prng()*(validValues.length))]; - } - `, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Navigator.prototype", - parent_object_property: "deviceMemory", - wrapped_objects: [], - /** \brief replaces navigator.deviceMemory getter - * - * Depending on level chosen this property returns: - * * (0) - random valid value from range [0.25 - real value] - * * (1) - random valid value from range [0.25 - 8] - * * (2) - 4 - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - return ret; - }`, - }, - ], - } - ], - }, - ] - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-DOM.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-DOM.js deleted file mode 100644 index 5f726af..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-DOM.js +++ /dev/null @@ -1,84 +0,0 @@ -/** \file - * \brief This file contains wrappers for the DOM API - * - * \see https://dom.spec.whatwg.org/ - * - * \author Copyright (C) 2021 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * The events carry timestamp of their creation. As we allow wrapping of - * several ways to obtain timestamps, we need to provide the same precision - * for the Event API. - */ - -(function() { - var remember_past_values = `var precision = args[0]; - var doNoise = args[1]; - var pastValues = {}; - ${rounding_function} - ${noise_function} - var mitigationF = rounding_function; - if (doNoise === true){ - mitigationF = function(value, precision) { - let params = [value, precision]; - if (params in pastValues) { - return pastValues[params]; - } - let result = noise_function(...params); - pastValues[params] = result; - return result; - } - } - `; - var wrappers = [ - { - /** - * \see https://dom.spec.whatwg.org/#ref-for-dom-event-timestamp%E2%91%A0 - */ - parent_object: "Event.prototype", - parent_object_property: "timeStamp", - wrapped_objects: [], - helping_code: remember_past_values + `let origGet = Object.getOwnPropertyDescriptor(Event.prototype, "timeStamp").get`, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Event.prototype", - parent_object_property: "timeStamp", - wrapped_objects: [], - /** \brief replaces Event.prototype.timeStamp getter to create - * a timestamp with the desired precision. - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - return mitigationF(origGet.call(this), precision); - }`, - }, - ], - } - ], - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-ECMA-ARRAY.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-ECMA-ARRAY.js deleted file mode 100644 index b5f56b2..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-ECMA-ARRAY.js +++ /dev/null @@ -1,694 +0,0 @@ -/** \file - * \brief Wrappers for arrays from the ECMA standard library - * - * \author Copyright (C) 2020 Peter Hornak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * This wrapper aims on prevention of microarchitectural attacks like Meltdown and Spectre. This - * code was originally a part of [ChromeZero](https://github.com/IAIK/ChromeZero). - * - * \bug The `subarray()` method always ruturns the full array. - * - * The wrappers support the following behaviour: - * - * * Offset: The content of the buffer is shifted by a fix offset. This is a faster method but can - * be removed. - * * Random mapping: All items are mapped randomly. This is a slower method but more reliable. - * - * \see <https://www.fit.vut.cz/study/thesis/22374/?year=0&sup=Pol%C4%8D%C3%A1k>, especially Sect. 5.1 - */ - - -/// \see This function was adopted from https://github.com/inexorabletash/polyfill/blob/master/typedarray.js under MIT licence. -function packIEEE754(v, ebits, fbits) { - var bias = (1 << (ebits - 1)) - 1; - - function roundToEven(n) { - var w = Math.floor(n), f = n - w; - if (f < 0.5) - return w; - if (f > 0.5) - return w + 1; - return w % 2 ? w + 1 : w; - } - - // Compute sign, exponent, fraction - var s, e, f; - if (v !== v) { - // NaN - // http://dev.w3.org/2006/webapi/WebIDL/#es-type-mapping - e = (1 << ebits) - 1; - f = Math.pow(2, fbits - 1); - s = 0; - } else if (v === Infinity || v === -Infinity) { - e = (1 << ebits) - 1; - f = 0; - s = (v < 0) ? 1 : 0; - } else if (v === 0) { - e = 0; - f = 0; - s = (1 / v === -Infinity) ? 1 : 0; - } else { - s = v < 0; - v = Math.abs(v); - - if (v >= Math.pow(2, 1 - bias)) { - // Normalized - e = Math.min(Math.floor(Math.log(v) / Math.LN2), 1023); - var significand = v / Math.pow(2, e); - if (significand < 1) { - e -= 1; - significand *= 2; - } - if (significand >= 2) { - e += 1; - significand /= 2; - } - var d = Math.pow(2, fbits); - f = roundToEven(significand * d) - d; - e += bias; - if (f / d >= 1) { - e += 1; - f = 0; - } - if (e > 2 * bias) { - // Overflow - e = (1 << ebits) - 1; - f = 0; - } - } else { - // Denormalized - e = 0; - f = roundToEven(v / Math.pow(2, 1 - bias - fbits)); - } - } - - // Pack sign, exponent, fraction - var bits = [], i; - for (i = fbits; i; i -= 1) { - bits.push(f % 2 ? 1 : 0); - f = Math.floor(f / 2); - } - for (i = ebits; i; i -= 1) { - bits.push(e % 2 ? 1 : 0); - e = Math.floor(e / 2); - } - bits.push(s ? 1 : 0); - bits.reverse(); - var str = bits.join(''); - - // Bits to bytes - var bytes = []; - while (str.length) { - bytes.unshift(parseInt(str.substring(0, 8), 2)); - str = str.substring(8); - } - return bytes; -} - -/// \see This function was adopted from https://github.com/inexorabletash/polyfill/blob/master/typedarray.js under MIT licence. -function unpackIEEE754(bytes, ebits, fbits) { - // Bytes to bits - var bits = [], i, j, b, str, - bias, s, e, f; - - for (i = 0; i < bytes.length; ++i) { - b = bytes[i]; - for (j = 8; j; j -= 1) { - bits.push(b % 2 ? 1 : 0); - b = b >> 1; - } - } - bits.reverse(); - str = bits.join(''); - - // Unpack sign, exponent, fraction - bias = (1 << (ebits - 1)) - 1; - s = parseInt(str.substring(0, 1), 2) ? -1 : 1; - e = parseInt(str.substring(1, 1 + ebits), 2); - f = parseInt(str.substring(1 + ebits), 2); - - // Produce number - if (e === (1 << ebits) - 1) { - return f !== 0 ? NaN : s * Infinity; - } else if (e > 0) { - // Normalized - return s * Math.pow(2, e - bias) * (1 + f / Math.pow(2, fbits)); - } else if (f !== 0) { - // Denormalized - return s * Math.pow(2, -(bias - 1)) * (f / Math.pow(2, fbits)); - } else { - return s < 0 ? -0 : 0; - } -} - -/// \see Function was adopted from https://github.com/inexorabletash/polyfill/blob/master/typedarray.js under MIT licence. -function unpackF64(b) { - return unpackIEEE754(b, 11, 52); -} - -/// \see Function was adopted from https://github.com/inexorabletash/polyfill/blob/master/typedarray.js under MIT licence. -function packF64(v) { - return packIEEE754(v, 11, 52); -} - -/// \see Function was adopted from https://github.com/inexorabletash/polyfill/blob/master/typedarray.js under MIT licence. -function unpackF32(b) { - return unpackIEEE754(b, 8, 23); -} - -/// \see Function was adopted from https://github.com/inexorabletash/polyfill/blob/master/typedarray.js under MIT licence. -function packF32(v) { - return packIEEE754(v, 8, 23); -} - -function constructDecorator(wrapped) { - return function () { - const res = wrapped.apply(originalF, arguments); - return replacementF(res); - } -} - -function offsetDecorator(wrapped, type, proxyRef, offsetF) { - return function () { - var ref = proxyRef; - let newArr = []; - // Create a copy of array - for (let i = 0; i < this.length; i++) { - newArr[i] = this[offsetF(i)] - } - // Shift to original - for (let i = 0; i < this.length; i++) { - this[i] = newArr[i]; - } - // Do func - let res; - if (type === 3) { - res = new this.__proto__.constructor(this)[wrapped.name.split(' ')[1]]() - } else { - res = wrapped.apply(this, arguments); - } - // Create copy of new arr - let secArr = []; - for (let i = 0; i < this.length; i++) { - secArr[i] = this[i]; - } - for (let i = 0; i < this.length; i++) { - this[offsetF(i)] = secArr[i]; - } - switch (type) { - case 0: - return ref; - case 1: - return replacementF(res); - case 2: - return res; - default: - return res - } - } -} - -function redefineNewArrayFunctions(target, offsetF) { - target['sort'] = offsetDecorator(target['sort'], 0, target, offsetF); - target['reverse'] = offsetDecorator(target['reverse'], 0, target, offsetF); - target['fill'] = offsetDecorator(target['fill'], 0, target, offsetF); - target['copyWithin'] = offsetDecorator(target['copyWithin'], 0, target, offsetF); - target['subarray'] = offsetDecorator(target['subarray'], 0, target, offsetF); - target['slice'] = offsetDecorator(target['slice'], 1, target, offsetF); - target['map'] = offsetDecorator(target['map'], 1, target, offsetF); - target['filter'] = offsetDecorator(target['filter'], 1, target, offsetF); - target['set'] = offsetDecorator(target['set'], 2, target, offsetF); - target['reduce'] = offsetDecorator(target['reduce'], 2, target, offsetF); - target['reduceRight'] = offsetDecorator(target['reduceRight'], 2, target, offsetF); - target['lastIndexOf'] = offsetDecorator(target['lastIndexOf'], 2, target, offsetF); - target['indexOf'] = offsetDecorator(target['indexOf'], 2, target, offsetF); - target['forEach'] = offsetDecorator(target['forEach'], 2, target, offsetF); - target['find'] = offsetDecorator(target['find'], 2, target, offsetF); - target['join'] = offsetDecorator(target['join'], 2, target, offsetF); - target['entries'] = offsetDecorator(target['entries'], 3, target, offsetF); - target['keys'] = offsetDecorator(target['keys'], 3, target, offsetF); - target['values'] = offsetDecorator(target['values'], 3, target, offsetF); -} - -function redefineNewArrayConstructors(target) { - target['from'] = constructDecorator(originalF['from']); - target['of'] = constructDecorator(originalF['of']); -} - -/// Default proxy handler for Typed Arrays -var proxyHandler = `{ - get(target, key, receiver) { - var random_idx = Math.floor(Math.random() * target['length']); - // Load random index from array - var rand_val = target[random_idx]; - /* - let proto_keys = ['buffer', 'byteLength', 'byteOffset', 'length']; - if (proto_keys.indexOf(key) >= 0) { - return target[key]; - } - */ - // offsetF argument needs to be in array range - if (typeof key !== 'symbol' && Number(key) >= 0 && Number(key) < target.length) { - key = offsetF(key) - } - let value = target[key] - return typeof value == 'function' ? value.bind(target) : value; - }, - set(target, key, value) { - var random_idx = Math.floor(Math.random() * (target['length'])); - // Load random index from array - var rand_val = target[random_idx]; - rand_val = rand_val; - if (typeof key !== 'symbol' && Number(key) >= 0 && Number(key) < target.length) { - key = offsetF(key) - } - return target[key] = value; - } -}`; - -function getByteDecorator(wrapped, offsetF, name, doMapping) { - return function () { - const originalIdx = arguments[0]; - const endian = arguments[1]; - if (name === 'getUint8') { - // Random access - let ran = wrapped.apply(this, [Math.floor(Math.random() * (this.byteLength))]); - // Call original func - arguments[0] = offsetF(originalIdx); - return wrapped.apply(this, arguments); - } - if (!doMapping){ - this.getUint8(0); - return wrapped.apply(this, arguments); - } - const byteNumber = (parseInt(name[name.length - 2] + name[name.length - 1]) || parseInt(name[name.length - 1])) / 8; - let res = 0; - let swapNumber = byteNumber - 1; - for (let i = 0; i < byteNumber; i++) { - if (endian) { - // Shift starting with 0,1,2 - swapNumber = i * 2; - } - res += this.getUint8(originalIdx + i) << ((swapNumber - i) * 8); - } - return res; - } -} - -function setByteDecorator(wrapped, offsetF, name, doMapping) { - function toNBitBin(n, bits) { - if (n < 0) { - n = 0xFFFFFFFF + n + 1; - } - function makeString(n) { - let s = ""; - for (let i = 0; i < n; i++) { - s += "0"; - } - return s; - } - return (makeString(bits) + parseInt(n, 10).toString(2)).substr(-bits); - } - - return function () { - if (!doMapping){ - this.getUint8(0); - return wrapped.apply(this, arguments); - } - const originalIdx = arguments[0]; - const value = arguments[1]; - const endian = arguments[2]; - if (name === 'setUint8') { - // Random access - this.getUint8(0); - // Call original func - arguments[0] = offsetF(originalIdx); - return wrapped.apply(this, arguments); - } - const byteNumber = (parseInt(name[name.length - 2] + name[name.length - 1]) || parseInt(name[name.length - 1])) / 8; - const binNumber = toNBitBin(value, byteNumber * 8); - let numberPart; - for (let i = 0; i < byteNumber; i++) { - numberPart = binNumber.substr(i * 8, 8); - numberPart = parseInt(numberPart, 2); - if (endian) { - this.setUint8(originalIdx + byteNumber - i - 1, numberPart); - } else { - this.setUint8(originalIdx + i, numberPart); - } - } - return undefined; - } -} - -function getFloatDecorator(wrapped, name, doMapping) { - return function () { - if (!doMapping){ - this.getUint8(0); - return wrapped.apply(this, arguments); - } - const originalIdx = arguments[0]; - if (originalIdx === undefined) { - wrapped.apply(this, arguments) - } - const endian = arguments[1]; - const byteNumber = (parseInt(name[name.length - 2] + name[name.length - 1]) || parseInt(name[name.length - 1])) / 8; - let binArray = []; - // Random access - this.getUint8(0); - for (let i = 0; i < byteNumber; i++) { - binArray[binArray.length] = this.getUint8(originalIdx + i); - } - if (endian) { - binArray = binArray.reverse() - } - if (byteNumber === 4) { - return unpackF32(binArray); - } else { - return unpackF64(binArray); - } - } -} - -function setFloatDecorator(wrapped, name, doMapping) { - return function () { - if (!doMapping){ - this.getUint8(0); - return wrapped.apply(this, arguments); - } - const originalIdx = arguments[0]; - const value = arguments[1]; - if (originalIdx === undefined || value === undefined) { - wrapped.apply(this, arguments) - } - const endian = arguments[2]; - const byteNumber = (parseInt(name[name.length - 2] + name[name.length - 1]) || parseInt(name[name.length - 1])) / 8; - let binArray; - - // Random access - this.getUint8(0); - if (byteNumber === 4) { - binArray = packF32(value); - } else { - binArray = packF64(value); - } - for (let i = 0; i < binArray.length; i++) { - if (endian) { - this.setUint8(originalIdx + byteNumber - i - 1, binArray[i]); - } else { - this.setUint8(originalIdx + i, binArray[i]); - } - } - return undefined; - } -} - -function getBigIntDecorator(wrapped, doMapping) { - return function () { - if (!doMapping){ - this.getUint8(0); - return wrapped.apply(this, arguments); - } - const originalIdx = arguments[0]; - if (originalIdx === undefined) { - wrapped.apply(this, arguments) - } - const endian = arguments[1]; - let hex = []; - let binArray = []; - for (let i = 0; i < 8; i++) { - binArray[binArray.length] = this.getUint8(originalIdx + i); - } - if (endian) { - binArray = binArray.reverse(); - } - for (let i of binArray) { - let h = i.toString(16); - if (h.length % 2) { - h = '0' + h; - } - hex.push(h); - } - let result = BigInt('0x' + hex.join('')); - if (binArray[0] >= 128) { - return result - 18446744073709551615n - 1n; - } - return result - } -} - -function setBigIntDecorator(wrapped, doMapping) { - return function () { - if (!doMapping){ - this.getUint8(0); - return wrapped.apply(this, arguments); - } - const originalIdx = arguments[0]; - let value = arguments[1]; - if (originalIdx === undefined || value === undefined || typeof value !== 'bigint') { - return wrapped.apply(this, arguments) - } - const endian = arguments[2]; - if (value < 0n) { - value = 18446744073709551615n + value + 1n; - } - let hex = BigInt(value).toString(16); - if (hex.length % 2) { - hex = '0' + hex; - } - - const len = hex.length / 2; - let binArray = []; - let j = 0; - // Random access - this.getUint8(0); - for (let i = 0; i < 8; i++) { - if (i < 8 - len) { - binArray[binArray.length] = 0; - } else { - binArray[binArray.length] = parseInt(hex.slice(j, j + 2), 16); - j += 2; - } - } - if (endian) { - binArray.reverse(); - } - for (let i in binArray) { - this.setUint8(originalIdx + parseInt(i), binArray[i]) - } - return undefined; - } -} - -function redefineDataViewFunctions(target, offsetF, doMapping) { - // Replace functions working with Ints - var dataViewTypes = ['getInt8', 'getInt16', 'getInt32', 'getUint8', 'getUint16', 'getUint32']; - for (type of dataViewTypes) { - target[type] = getByteDecorator(target[type], offsetF, type, doMapping); - type = 's' + type.substr(1); - target[type] = setByteDecorator(target[type], offsetF, type, doMapping); - } - - var dataViewTypes2 = ['getFloat32', 'getFloat64']; - for (type of dataViewTypes2) { - target[type] = getFloatDecorator(target[type], type, doMapping); - type = 's' + type.substr(1); - target[type] = setFloatDecorator(target[type], type, doMapping); - } - var dataViewTypes3 = ['getBigInt64', 'getBigUint64']; - for (type of dataViewTypes3) { - target[type] = getBigIntDecorator(target[type], doMapping); - type = 's' + type.substr(1); - target[type] = setBigIntDecorator(target[type], doMapping); - } - -}; - -(function () { - var common_function_body = ` - let _data; - if (typeof target === 'object' && target !== null) { - if (is_proxy in target){ - // If already Proxied array is passed as arg return it - return target; - } - } - _data = new originalF(...arguments); - // No offset - var offsetF = function(x) { - return x; - }; - if (doMapping) { - // Random numbers for offset function - let n = _data.length; - let a; - while (true){ - a = Math.floor(Math.random() * 4096); - if (gcd(a,n) === 1){ - break; - } - } - let b = Math.floor(Math.random() * 4096); - // Define function to calculate offset; - offsetF = function(x) { - if (x === undefined){ - return x; - } - x = x < 0 ? n + x : x; - return (a*x + b) % n ; - }; - let arr = [] - for (let i = 0; i < _data.length; i++) { - arr[i] = _data[i]; - } - - for (let i = 0; i < _data.length; i++) { - _data[offsetF(i)] = arr[i]; - } - } - var proxy = new newProxy(_data, ${proxyHandler}); - // Proxy has to support all methods, original object supports. - ${offsetDecorator}; - ${redefineNewArrayFunctions}; - if (doMapping) { - // Methods have to work with offsets; - redefineNewArrayFunctions(proxy, offsetF); - } - // Preload array - let j; - for (let i = 0; i < _data['length']; i++) { - j = _data[i]; - } - return proxy; - `; - - var wrappers = [ - { - parent_object: 'window', - parent_object_property: 'DataView', - original_function: 'window.DataView', - wrapped_objects: [], - wrapping_function_args: 'buffer, byteOffset, byteLength', - helping_code: packIEEE754 + unpackIEEE754 + packF32 + unpackF32 + packF64 + unpackF64 + ` - function gcd(x, y) { - while(y) { - var t = y; - y = x % y; - x = t; - } - return x; - } - var doMapping = args[0]; - `, - wrapping_function_body: ` - let _data = new originalF(...arguments); - let n = _data.byteLength; - let a; - while (true){ - a = Math.floor(Math.random() * 4096); - if (gcd(a,n) === 1){ - break; - } - } - let b = Math.floor(Math.random() * 4096); - // Define function to calculate offset; - offsetF = function(x) { - if (x === undefined){ - return x; - } - x = x < 0 ? n + x : x; - return (a*x + b) % n ; - }; - ${getByteDecorator} - ${setByteDecorator} - ${getFloatDecorator} - ${setFloatDecorator} - ${getBigIntDecorator} - ${setBigIntDecorator} - ${redefineDataViewFunctions} - for (let i = 0; i < n; i++) { - let random = _data.getUint8(i); - } - if (!doMapping){ - offsetF = function(x) { - return x; - } - } - redefineDataViewFunctions(_data, offsetF, doMapping); - return _data; - `, - }, - ]; - - - let DEFAULT_TYPED_ARRAY_WRAPPER = { - parent_object: 'window', - parent_object_property: '_PROPERTY_', - original_function: 'window._PROPERTY_', - wrapped_objects: [], - helping_code:` - let doMapping = args[0]; - var proxyHandler = ${proxyHandler}; - function gcd(x, y) { - while(y) { - var t = y; - y = x % y; - x = t; - } - return x; - } - - const is_proxy = Symbol('is_proxy'); - const originalProxy = Proxy; - var proxyHandler = { - has (target, key) { - return (is_proxy === key) || (key in target); - } - }; - let newProxy = new originalProxy(originalProxy, { - construct(target, args) { - return new originalProxy(new target(...args), proxyHandler); - } - }); - `, - wrapping_function_args: `target`, - wrapping_function_body: common_function_body, - post_replacement_code: ` - ${constructDecorator} - ${redefineNewArrayConstructors} - redefineNewArrayConstructors(window._PROPERTY_); - ` - }; - - var typedTypes = ['Uint8Array', 'Int8Array', 'Uint8ClampedArray', 'Int16Array', 'Uint16Array', 'Int32Array', 'Uint32Array', 'Float32Array', 'Float64Array', 'BigInt64Array', 'BigUint64Array']; - for (let p of typedTypes) { - let wrapper = {...DEFAULT_TYPED_ARRAY_WRAPPER}; - wrapper.parent_object_property = wrapper.parent_object_property.replace('_PROPERTY_', p); - wrapper.original_function = wrapper.original_function.replace('_PROPERTY_', p); - wrapper.post_replacement_code = wrapper.post_replacement_code.split('_PROPERTY_').join(p); - wrapper.wrapping_function_body += `// ${p};`; - wrappers.push(wrapper); - } - - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-ECMA-DATE.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-ECMA-DATE.js deleted file mode 100644 index befaa2d..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-ECMA-DATE.js +++ /dev/null @@ -1,122 +0,0 @@ -/** \file - * \brief Wrappers for the Date object - * - * \author Copyright (C) 2019 Libor Polcak - * \author Copyright (C) 2020 Peter Hornak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - - -/** \file - * \ingroup wrappers - * - * This wrapper aims on prevention of microarchitectural attacks, clock-skew attacks, and other time - * related attacks. The goal is to limit the precision of the time returned by the Date object. - * - * \see <https://www.fit.vut.cz/study/thesis/22308/?year=0&sup=Pol%C4%8D%C3%A1k>, especially Sect. - * 7.2. - * - * \see Tom Van Goethem, Wouter Joosen, Nick Nikiforakis. The Clock is Still Ticking: - * Timing Attacks in the Modern Web. CCS'15. [Link](https://lirias.kuleuven.be/retrieve/389086), - * [DOI](http://dx.doi.org/10.1145/2810103.2813632) - * - * \see Schwarz, M., Lipp, M. a Gruss, D. JavaScript Zero: Real JavaScript and Zero -Side-Channel Attacks. NDSS'18. - * - * \see Schwarz M., Maurice C., Gruss D., Mangard S. (2017) Fantastic Timers and Where to Find Them: High-Resolution Microarchitectural Attacks in JavaScript. In: Kiayias A. (eds) Financial Cryptography and Data Security. FC 2017. Lecture Notes in Computer Science, vol 10322. Springer, Cham. https://doi.org/10.1007/978-3-319-70972-7_13 - * - * The wrappers support the following behaviour: - * - * * Round timestamp: Limit the precision by removing (a part of) the decimal part of the timestamp. - * * Randomize after rounding: Create a fake decimal part to confuse attackers and to create - * timestamps that look similar to expected timestamps. - */ - - -/* - * Create private namespace - */ -(function() { - var wrappers = [ - { - parent_object: "window", - parent_object_property: "Date", - wrapped_objects: [ - { - original_name: "Date", - wrapped_name: "originalDateConstructor", - }, - ], - helping_code: rounding_function + noise_function + - ` - var precision = args[0]; - var doNoise = args[1]; - var func = rounding_function; - if (doNoise) { - func = noise_function; - } - `, - wrapping_function_args: "", - wrapping_function_body: ` - var wrapped = new originalDateConstructor(...arguments); - if (arguments[0] === undefined) { - // Don't change value if custom arguments are passed - var changedValue = func(wrapped.getTime(), precision); - wrapped.setTime(changedValue); - } - return wrapped; - `, - wrapper_prototype: "originalDateConstructor", - post_wrapping_code: [ - { - code_type: "function_define", - original_function: "originalDateConstructor.now", - parent_object: "window.Date", - parent_object_property: "now", - wrapping_function_args: "", - wrapping_function_body: "return func(originalF.call(Date), precision);", - }, - { - code_type: "function_export", - parent_object: "window.Date", - parent_object_property: "parse", - export_function_name: "originalDateConstructor.parse", - }, - { - code_type: "function_export", - parent_object: "window.Date", - parent_object_property: "UTC", - export_function_name: "originalDateConstructor.UTC", - }, - { - code_type: "assign", - parent_object: "window.Date", - parent_object_property: "prototype", - value: "originalDateConstructor.prototype", - }, - { - code_type: "assign", - parent_object: "window.Date.prototype", - parent_object_property: "constructor", - value: "window.Date", - }, - ] - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-ECMA-SHARED.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-ECMA-SHARED.js deleted file mode 100644 index 0ba8e21..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-ECMA-SHARED.js +++ /dev/null @@ -1,92 +0,0 @@ -/** \file - * \brief Wrappers for SharedArrayBuffer - * - * \author Copyright (C) 2020 Peter Hornak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * This wrapper aims on prevention of misusing `SharedArrayBuffer` to create perfect timers and to - * perfrom microarchitectural attacks. This code was originally a part of [ChromeZero](https://github.com/IAIK/ChromeZero). - * - * \see https://www.fit.vut.cz/study/thesis/22374/?year=0&sup=Pol%C4%8D%C3%A1k, especially Sect. 5.1 - * - * \see Schwarz M., Maurice C., Gruss D., Mangard S. (2017) Fantastic Timers and Where to Find Them: High-Resolution Microarchitectural Attacks in JavaScript. In: Kiayias A. (eds) Financial Cryptography and Data Security. FC 2017. Lecture Notes in Computer Science, vol 10322. Springer, Cham. https://doi.org/10.1007/978-3-319-70972-7_13 - */ - - -var proxyHandler = `{ - get(target, key, receiver) { - let j; - let slow = Math.floor(Math.random() * 10000) - for (let i = 0; i < slow;) { - j = i; - i = j + 1; - } - let value = target[key]; - return typeof value == 'function' ? value.bind(target) : value; - }, - set(target, key, value) { - let j; - let slow = Math.floor(Math.random() * 10000); - for (let i = 0; i < slow;) { - j = i; - i = j + 1; - } - return Reflect.set(...arguments); - } -}`; - -/* - * Create private namespace - */ - -(function () { - var wrappingFunctionBody = ` - let _target = target; - let _data = new originalF(target); - var proxy = new Proxy(_data, ${proxyHandler}); - return proxy; - `; - - var wrappers = [ - { - parent_object: "window", - parent_object_property: "SharedArrayBuffer", - original_function: "window.SharedArrayBuffer", - wrapped_objects: [], - helping_code: ` - if (window.SharedArrayBuffer === undefined) { - return; - } - let forbid = args[0]; - `, - wrapping_function_args: `target`, - wrapping_function_body: wrappingFunctionBody, - post_replacement_code: ` - if (forbid) { - delete(window.SharedArrayBuffer); - } - `, - } - ]; - - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-EME.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-EME.js deleted file mode 100644 index 822ef1d..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-EME.js +++ /dev/null @@ -1,83 +0,0 @@ -/** \file - * \brief This file contains wrappers for the EME standard - * - * \see https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMediaKeySystemAccess - * - * \author Copyright (C) 2022 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * `Navigator.requestMediaKeySystemAccess()` provides access to `MediaKeySystemAccess` object that - * allows to query supported encryption mechanisms and other information about the system. - * - * For example, visit https://www.fit.vutbr.cz/~polcak/jsr/hdcp/ and try a different browser or - * computer. - * - * \see https://w3c.github.io/encrypted-media/ - * \see https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMediaKeySystemAccess - * \see https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess - * \see https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/getConfiguration - * - * We provide two modes of protection: - * - * 1. Strict approach prevents accessing the API. - * 2. Farbling approach changes the output to a non-existing key system with 12.5% probability. - */ - -/* - * Create private namespace - */ -(function() { - var helping_code = `var approach = args[0];`; - var wrappers = [ - { - parent_object: "Navigator.prototype", - parent_object_property: "requestMediaKeySystemAccess", - wrapped_objects: [{ - original_name: "Navigator.prototype.requestMediaKeySystemAccess", - wrapped_name: "origMKSA", - }], - helping_code: helping_code, - wrapping_function_args: "keySystem, queriedConfigs, ...args", - wrapping_function_body: ` - if (approach == 2) { - return new Promise(() => {}); // Never resolves - } - else if (approach == 1) { - keySystem = "org.jshelter"; - return origMKSA.call(this, keySystem, queriedConfigs, ...args); - } - else { - var eme_prng = alea(domainHash, "requestMediaKeySystemAccess", keySystem); - var rnd = eme_prng.get_bits(3); - if (rnd == 0) { - keySystem = "org.jshelter"; - return origMKSA.call(this, keySystem, queriedConfigs, ...args); - } - else { - return origMKSA.call(this, keySystem, queriedConfigs, ...args); - } - } - `, - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-GEO.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-GEO.js deleted file mode 100644 index a23ba47..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-GEO.js +++ /dev/null @@ -1,383 +0,0 @@ -/** \file - * \brief This file contains wrappers for the Geolocation API - * - * \see https://www.w3.org/TR/geolocation-API/ - * - * \author Copyright (C) 2019 Martin Timko - * \author Copyright (C) 2020 Libor Polcak - * \author Copyright (C) 2020 Peter Marko - * \author Copyright (C) 2021 Giorgio Maone - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * The goal is to prevent leaks of user current position. The Geolocation API also provides access - * to high precision timestamps which can be used to various web attacks (see for example, - * http://www.jucs.org/jucs_21_9/clock_skew_based_computer, - * https://lirias.kuleuven.be/retrieve/389086). - * - * Although it is true that the user needs to specificaly approve access to location facilities, - * these wrappers aim on improving the control of the precision of the geolocation. - * - * The wrappers support the following controls: - * - * * Accurate data: the extension provides precise geolocation position but modifies the time - * precision in conformance with the Date and Performance wrappers. - * * Modified position: the extension modifies the time precision of the time stamps in - * conformance with the Date and Performance wrappers, and additionally, allows to limit the - * precision of the current position to hundered of meters, kilometers, tens, or hundereds of - * kilometers. - * - * When modifying position: - * - * * Repeated calls of `navigator.geolocation.getCurrentPosition()` return the same position - * without page load and typically return another position after page reload. - * * `navigator.geolocation.watchPosition()` does not change position. - */ - -(function() { - var processOriginalGPSDataObject_globals = ` - let geo_prng = alea(domainHash, "Geolocation"); - let randomx = geo_prng(); - let randomy = geo_prng(); - /** - * Make sure that repeated calls shows the same position (BUT different objects, via cloning) - * to reduce fingerprintablity. - */ - let previouslyReturnedCoords; - let clone = obj => Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj)); - - /** - * \brief Store the limit for the returned timestamps. - * - * This is used to avoid returning older readings compared to the previous readings. - * The timestamp needs to be the same as was last time or newser. - */ - var geoTimestamp = Date.now(); - `; - /** - * \brief Modifies the given PositionObject according to settings - * - * \param expectedMaxAge The maximal age of the returned time stamps as defined by the wrapped API - * (https://www.w3.org/TR/geolocation-API/#max-age) - * \param originalPositionObject the position object to be returned without this wrapper, see the - * Position interface (https://www.w3.org/TR/geolocation-API/#position) - * - * The function modifies the originalPositionObject and stores it for later readins. The returned - * position does not modify during the life time of a pages. The returned postion can be different - * after a page reload. - * - * The goal of the behavoiur is to prevent learning the current position so that different - * original postion can be mapped to the same position and the same position should generally - * yield a different outcome to prevent correlation of user activities. - * - * The algorithm works as follows: - * 1. The Earth surface is partitioned into squares (tiles) with the edge derived from the desired - * accuracy. - * 2. The position from the originalPositionObject is mapped to its tile and eight adjacent tiles. - * 3. A position in the current tile and the eight adjacent tiles is selected randomly. - * - * The returned timestamp is not older than 1 hour and it is the same as was during the last call - * or newer. Different calls to the function can yield different timestamps. - * - * \bug The tile-based approach does not work correctly near poles but: - * * The function returns fake locations near poles. - * * As there are not many people near poles, we do not believe this wrapping is useful near poles - * so we do not consider this bug as important. - */ - - function spoofCall(fakeData, originalPositionObject, successCallback) { - // proxying the original object lessens the fingerprintable weirdness - // (e.g. accessors on the instance rather than on the prototype) - fakeData = clone(fakeData); - let pos = new Proxy(originalPositionObject, { - get(target, key) { - return (key in fakeData) ? fakeData[key] : target[key]; - }, - getPrototypeOf(target) { - return Object.getPrototypeOf(target); - } - }); - successCallback(pos); - } - - function processOriginalGPSDataObject(expectedMaxAge, originalPositionObject) { - if (expectedMaxAge === undefined) { - expectedMaxAge = 0; // default value - } - // Set reasonable expectedMaxAge of 1 hour for later computation - expectedMaxAge = Math.min(3600000, expectedMaxAge); - geoTimestamp = Math.max(geoTimestamp, Date.now() - Math.random()*expectedMaxAge); - - let spoofPos = coords => { - let pos = { timestamp: geoTimestamp }; - if (coords) pos.coords = coords; - spoofCall(pos, originalPositionObject, successCallback); - }; - - if (provideAccurateGeolocationData) { - return spoofPos(); - } - if (previouslyReturnedCoords) { - return spoofPos(clone(previouslyReturnedCoords)); - } - - const EQUATOR_LEN = 40074; - const HALF_MERIDIAN = 10002; - const DESIRED_ACCURACY_KM = desiredAccuracy*2; - - var lat = originalPositionObject.coords.latitude; - var lon = originalPositionObject.coords.longitude; - // Compute (approximate) distance from 0 meridian [m] - var x = (lon * (EQUATOR_LEN * Math.cos((lat/90)*(Math.PI/2))) / 180); - // Compute (approximate) distance from equator [m] - var y = (lat / 90) * (HALF_MERIDIAN); - - // Compute the coordinates of the left bottom corner of the tile in which the orig position is - var xmin = Math.floor(x / DESIRED_ACCURACY_KM) * DESIRED_ACCURACY_KM; - var ymin = Math.floor(y / DESIRED_ACCURACY_KM) * DESIRED_ACCURACY_KM; - - // The position to be returned should be in the original tile and the 8 adjacent tiles: - // +----+----+----+ - // | | | | - // +----+----+----+ - // | |orig| | - // +----+----+----+ - // | | | | - // +----+----+----+ - var newx = xmin + randomx * 3 * DESIRED_ACCURACY_KM - DESIRED_ACCURACY_KM; - var newy = ymin + randomy * 3 * DESIRED_ACCURACY_KM - DESIRED_ACCURACY_KM; - - if (Math.abs(newy) > (HALF_MERIDIAN)) { - newy = (HALF_MERIDIAN + HALF_MERIDIAN - Math.abs(newy)) * (newy < 0 ? -1 : 1); - newx = -newx; - } - - var newLatitude = newy / HALF_MERIDIAN * 90; - var newLongitude = newx * 180 / (EQUATOR_LEN * Math.cos((newLatitude/90)*(Math.PI/2))); - - while (newLongitude < -180) { - newLongitude += 360; - } - while (newLongitude > 180) { - newLongitude -= 360; - } - - var newAccuracy = DESIRED_ACCURACY_KM * 1000 * 2.5; // in meters - - previouslyReturnedCoords = { - latitude: newLatitude, - longitude: newLongitude, - altitude: null, - accuracy: newAccuracy, - altitudeAccuracy: null, - heading: null, - speed: null, - __proto__: originalPositionObject.coords.__proto__ - }; - spoofPos(previouslyReturnedCoords); - }; - /** - * \brief process the parameters of the wrapping function - * - * Checks if the wrappers should be active, and the position modified. Transforms the desired - * precision into kilometers. - */ - var setArgs = ` - var enableGeolocation = (args[0] !== 0); - var provideAccurateGeolocationData = (args[0] === -1); - let desiredAccuracy = 0; - switch (args[0]) { - case 2: - desiredAccuracy = 0.1; - break; - case 3: - desiredAccuracy = 1; - break; - case 4: - desiredAccuracy = 10; - break; - case 5: - desiredAccuracy = 100; - break; - } - `; - - var wrappers = [ - { - parent_object: "Navigator.prototype", - parent_object_property: "geolocation", - wrapped_objects: [], - helping_code: setArgs, - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "Navigator.prototype", - apply_if: "!enableGeolocation", - delete_properties: ["geolocation"], - } - ], - }, - { - parent_object: "window", - parent_object_property: "Geolocation", - wrapped_objects: [], - helping_code: setArgs, - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "window", - apply_if: "!enableGeolocation", - delete_properties: ["Geolocation"], - } - ], - }, - { - parent_object: "window", - parent_object_property: "GeolocationCoordinates", - wrapped_objects: [], - helping_code: setArgs, - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "window", - apply_if: "!enableGeolocation", - delete_properties: ["GeolocationCoordinates"], - } - ], - }, - { - parent_object: "window", - parent_object_property: "GeolocationPosition", - wrapped_objects: [], - helping_code: setArgs, - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "window", - apply_if: "!enableGeolocation", - delete_properties: ["GeolocationPosition"], - } - ], - }, - { - parent_object: "window", - parent_object_property: "GeolocationPositionError", - wrapped_objects: [], - helping_code: setArgs, - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "window", - apply_if: "!enableGeolocation", - delete_properties: ["GeolocationPositionError"], - } - ], - }, - { - parent_object: "Geolocation.prototype", - parent_object_property: "getCurrentPosition", - - wrapped_objects: [ - { - original_name: "Geolocation.prototype.getCurrentPosition", - callable_name: "originalGetCurrentPosition", - }, - ], - helping_code: setArgs + processOriginalGPSDataObject_globals, - wrapping_function_args: "successCallback, errorCallback, origOptions", - /** \fn fake Geolocation.prototype.getCurrentPosition - * \brief Provide a fake geolocation position - */ - wrapping_function_body: ` - ${spoofCall} - ${processOriginalGPSDataObject} - var options = { - enableHighAccuracy: false, - }; - if (origOptions) try { - if ("timeout" in origOptions) { - options.timeout = origOptions.timeout; - } - if ("maximumAge" in origOptions) { - option.maximumAge = origOptions.maximumAge; - } - } - catch { /* Undefined or another error */} - originalGetCurrentPosition.call(this, processOriginalGPSDataObject.bind(null, options.maximumAge), errorCallback, options); - `, - }, - { - parent_object: "Geolocation.prototype", - parent_object_property: "watchPosition", - wrapped_objects: [ - { - original_name: "Geolocation.prototype.watchPosition", - wrapped_name: "originalWatchPosition", - }, - ], - helping_code: setArgs + processOriginalGPSDataObject_globals + "let watchPositionCounter = 0;", - wrapping_function_args: "successCallback, errorCallback, origOptions", - /** \fn fake Geolocation.prototype.watchPosition - * Geolocation.prototype.watchPosition intended use concerns tracking user position changes. - * JShelter provides four modes of operaion: - * * current position approximation: Always return the same data, the same as getCurrentPosition() - * * accurate data: Return exact position but fake timestamp - */ - wrapping_function_body: ` - if (provideAccurateGeolocationData) { - function wrappedSuccessCallback(originalPositionObject) { - geoTimestamp = Date.now(); // Limit the timestamp accuracy by calling possibly wrapped function - return spoofCall({ timestamp: geoTimestamp }, originalPositionObject, succesCallback); - } - originalWatchPosition.call(this, wrappedSuccessCallback, errorCallback, origOptions); - } - else { - // Re-use the wrapping of n.g.getCurrentPosition() - Geolocation.prototype.getCurrentPosition(successCallback, errorCallback, origOptions); - watchPositionCounter++; - return watchPositionCounter; - } - `, - }, - { - parent_object: "Geolocation.prototype", - parent_object_property: "clearWatch", - wrapped_objects: [ - { - original_name: "Geolocation.prototype.clearWatch", - wrapped_name: "originalClearWatch", - }, - ], - helping_code: setArgs, - wrapping_function_args: "id", - /** \fn fake_or_original Geolocation.prototype.clearWatch - * If the Geolocation API provides correct data, call the original implementation, - * otherwise do nothing as the watchPosition object was not created. - */ - wrapping_function_body: ` - if (provideAccurateGeolocationData) { - originalClearWatch.call(Geolocation.prototype, id); - } - `, - } - ] - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-GP.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-GP.js deleted file mode 100644 index 202ac21..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-GP.js +++ /dev/null @@ -1,143 +0,0 @@ -/** \file - * \brief This file contains wrappers for the Gamepad API - * - * \see https://w3c.github.io/gamepad/ - * - * \author Copyright (C) 2021 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * navigator.getGamepads() allows any page script to learn the gamepads - * connected to the computer if the feature is not blocked by the - * Feature-Policy. - * - * The "Fingerprinting the Fingerprinters" paper (see reference below) observed - * that the interface is used in the wild to fingerprint users. As it is likely - * that only a minority of users have a gamepad connected and the API - * provides additional information on the HW, it is likely that users with - * a gamepad connected are easily fingerprintable. - * - * As we expect that the majority of the users does not have a gamepad - * connected, we provide only a single mitigation - the wrapped APIs return - * an empty list. - * - * \bug The standard provides an event `gamepadconnected` and - * `gamepaddisconnected` that fires at least on the window object. We do not - * mitigate the event to fire and consequently, it is possible that an - * adversary can learn that a gamepad was (dis)connected but there was no - * change in the result of the `navigator.getGamepads()` API. - * - * The gamepad representing object carries a timestamp of the last change of - * the gamepad. As we allow wrapping of several ways to obtain timestamps, - * we need to provide the same precision for the Gamepad object. - * - * \see U. Iqbal, S. Englehardt and Z. Shafiq, [Fingerprinting the - * Fingerprinters: Learning to Detect Browser Fingerprinting - * Behaviors](https://github.com/uiowa-irl/FP-Inspector/blob/master/Data/potential_fingerprinting_APIs.md) - * in 2021 2021 IEEE Symposium on Security and Privacy (SP), San Francisco, - * CA, US, 2021 pp. 283-301 - */ - -(function() { - var remember_past_ts_values = `var precision = args[0]; - var doNoise = args[1]; - var pastValues = {}; - ${rounding_function} - ${noise_function} - var mitigationF = rounding_function; - if (doNoise === true){ - mitigationF = function(value, precision) { - let params = [value, precision]; - if (params in pastValues) { - return pastValues[params]; - } - let result = noise_function(...params); - pastValues[params] = result; - return result; - } - } - `; - var wrappers = [ - { - parent_object: "Navigator.prototype", - parent_object_property: "getGamepads", - wrapped_objects: [{ - original_name: "Navigator.prototype.getGamepads", - wrapped_name: "origGamepads", - }], - helping_code: "", - wrapping_function_body: ` - origGamepadsRes = origGamepads.call(navigator); - if (Array.isArray(origGamepadsRes)) { - // e.g. Gecko - return new window.Array(); - } - else { - // e.g. Chromium based - var l = new window.Object(); - // Based on our experiments and web search results like - // https://stackoverflow.com/questions/41251051/is-the-html5-gamepad-api-limited-to-only-4-controllers - // https://stackoverflow.com/questions/32619456/navigator-getgamepads-return-an-array-of-undefineds - // we try to mimic common value of the property - l[0] = null; - l[1] = null; - l[2] = null; - l[3] = null; - l.length = 4; - window.Object.setPrototypeOf(l, origGamepadsRes.__proto__); - return l; - } - `, - }, - { - /** - * \see https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/timestamp - * \note that at the time of the writing of the prototype, the timestamp - * property was not supported by any browser. - */ - parent_object: "Gamepad.prototype", - parent_object_property: "timestamp", - wrapped_objects: [], - helping_code: remember_past_ts_values + `let origGet = Object.getOwnPropertyDescriptor(Gamepad.prototype, "timestamp").get`, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Gamepad.prototype", - parent_object_property: "timestamp", - wrapped_objects: [], - /** \brief replaces Gamepad.timestamp getter to create - * a timestamp with the desired precision. - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - return mitigationF(origGet.call(this), precision); - }`, - }, - ], - } - ], - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-H-C.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-H-C.js deleted file mode 100644 index f641d4b..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-H-C.js +++ /dev/null @@ -1,337 +0,0 @@ -/** \file - * \brief This file contains wrappers for Canvas-related calls - * - * \see https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API - * \see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D - * \see https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas - * - * \author Copyright (C) 2019 Libor Polcak - * \author Copyright (C) 2021 Matus Svancar - * \author Copyright (C) 2023 Martin Zmitko - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - * \license SPDX-License-Identifier: MPL-2.0 - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// -// Alternatively, the contents of this file may be used under the terms -// of the Mozilla Public License, v. 2.0, as described below: -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this file, -// You can obtain one at http://mozilla.org/MPL/2.0/. -// -// \copyright Copyright (c) 2020 The Brave Authors. - -/** \file - * \ingroup wrappers - * This file contains wrappers for calls related to the Canvas API, about which you can read more at MDN: - * * [Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) - * * [CanvasRenderingContext2D](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D) - * * [OffscreenCanvas](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas) - * - * The goal is to prevent fingerprinting by modifying the values that can be read from the canvas. - * So the visual content of wrapped canvases as displayed on the screen is the same as intended. - * - * The modified content can be either an empty image or a fake image that is modified according to - * session and domain keys to be different than the original albeit very similar (i.e. the approach - * inspired by the algorithms created by [Brave Software](https://brave.com) available [here](https://github.com/brave/brave-core/blob/master/chromium_src/third_party/blink/renderer/core/execution_context/execution_context.cc). - * - * Note that both approaches are detectable by a fingerprinter that checks if a predetermined image - * inserted to the canvas is the same as the read one, see [here](https://arkenfox.github.io/TZP/tests/canvasnoise.html) for an example, - * Nevertheless, the aim of the wrappers is to limit the finerprintability. - * - * Also note that a determined fingerprinter can reveal the modifications and consequently uncover - * the original image. This can be avoided with the approach that completely clears the data stored - * in the canvas. Use the modifications based on session and domain keys if you want to provide an - * image that is similar to the original or if you want to produce a fake image that is not - * obviously spoofed to a naked eye. Otherwise, use the clearing approach. - */ - -/* - * Create private namespace - */ -(function() { - - const DEF_CANVAS_COPY = ` - let canvasCopy = ctx => { - let {width, height} = ctx.canvas; - let fake = document.createElement("canvas"); - fake.setAttribute("width", width); - fake.setAttribute("height", height); - let stx = fake.getContext("2d"); - let imageData = window.CanvasRenderingContext2D.prototype.getImageData.call(ctx, 0, 0, width, height); - stx.putImageData(imageData, 0, 0); - return fake; - }; - `; - - /** @var String helping_code. - * Selects if the canvas should be cleared (1) or a fake image should be created based on session - * and domain keys (0). - */ - var helping_code = `var approach = args[0];`; - var wrappers = [{ - parent_object: "HTMLCanvasElement.prototype", - parent_object_property: "toDataURL", - wrapped_objects: [{ - original_name: "HTMLCanvasElement.prototype.toDataURL", - wrapped_name: "origToDataURL", - }], - helping_code: helping_code, - wrapping_code_function_name: "wrapping", - wrapping_code_function_params: "parent", - wrapping_code_function_call_window: true, - original_function: "parent.HTMLCanvasElement.prototype.toDataURL", - replace_original_function: true, - wrapping_function_args: "...args", - /** \fn fake HTMLCanvasElement.prototype.toDataURL - * \brief Returns fake canvas content, see CanvasRenderingContext2D.prototype for more details. - * - * Internally creates a fake canvas of the same height and width as the original and calls - * CanvasRenderingContext2D.getImageData() that determines the result. If canvas uses WebGLRenderingContext - * the content is copied to new canvas using CanvasRenderingContext2D and function toDataURL is called on it. - */ - wrapping_function_body: ` - var ctx = this.getContext("2d"); - if(ctx){ - ${DEF_CANVAS_COPY} - return origToDataURL.call(canvasCopy(ctx), ...args); - } - else { - var ctx = this.getContext("webgl2", {preserveDrawingBuffer: true}) || - this.getContext("experimental-webgl2", {preserveDrawingBuffer: true}) || - this.getContext("webgl", {preserveDrawingBuffer: true}) || - this.getContext("experimental-webgl", {preserveDrawingBuffer: true}) || - this.getContext("moz-webgl", {preserveDrawingBuffer: true}); - if(ctx){ - var fake = document.createElement("canvas"); - fake.setAttribute("width", this.width); - fake.setAttribute("height", this.height); - var stx = fake.getContext("2d"); - stx.drawImage(ctx.canvas, 0, 0); - return HTMLCanvasElement.prototype.toDataURL.call(fake); - } - } - `, - }, - { - parent_object: "CanvasRenderingContext2D.prototype", - parent_object_property: "getImageData", - wrapped_objects: [{ - original_name: "CanvasRenderingContext2D.prototype.getImageData", - wrapped_name: "origGetImageData", - }], - helping_code: helping_code + farbleCanvasDataBrave.toString() + ` - var farble = function(context, fake) { - if(approach === 1){ - fake.fillStyle = "white"; - fake.fillRect(0, 0, context.canvas.width, context.canvas.height); - return; - } - else if(approach === 0){ - const width = context.canvas.width; - const height = context.canvas.height; - const imageData = origGetImageData.call(context, 0, 0, width, height); - const len = imageData.data.length; - if (wasm.ready && wasm.grow(len)) { - try { - farblePixelsWASM(); - } catch (e) { - console.error("WebAssembly optimized farbling failed, falling back to JavaScript implementation", e); - farblePixelsJS(); - } - } else { - farblePixelsJS(); - } - // Do not modify the original canvas, always modify the fake canvas. - // Always farble the whole image so that the farbled data do not depend - // on the page-specified extraction data rectangle. - fake.putImageData(imageData, 0, 0); - - function farblePixelsWASM() { - wasm.set(imageData.data); - const crc = wasm.crc16(len); - const mash = new Mash(); - mash.addData(' '); - mash.addData(domainHash); - mash.addData("CanvasFarbling"); - mash.addData(crc); - wasm.farbleBytes(len, mash.n | 0, true); - imageData.data.set(wasm.get(len)); - } - - function farblePixelsJS() { - const BYTES_PER_ROW = width * 4; - farbleCanvasDataBrave(function*() { - let data = imageData.data; - let offset = 0; - while (offset < len) { - yield data.subarray(offset, offset + BYTES_PER_ROW); - offset += BYTES_PER_ROW; - } - }, width); - } - } - };`, - wrapping_code_function_name: "wrapping", - wrapping_code_function_params: "parent", - wrapping_code_function_call_window: true, - original_function: "parent.CanvasRenderingContext2D.prototype.getImageData", - replace_original_function: true, - wrapping_function_args: "...args", - /** \fn fake CanvasRenderingContext2D.prototype.getImageData - * \brief Returns a fake image data of the same height and width as stored in the original canvas. - * - * Internally calls the farbling that select the output which can be either an empty image or - * a fake image that is modified according to session and domain keys to be different than the - * original albeit very similar. - */ - wrapping_function_body: ` - var fake = document.createElement("canvas"); - fake.setAttribute("width", this.canvas.width); - fake.setAttribute("height", this.canvas.height); - var stx = fake.getContext("2d"); - farble(this,stx); - return origGetImageData.call(stx, ...args); - `, - }, - { - parent_object: "HTMLCanvasElement.prototype", - parent_object_property: "toBlob", - wrapped_objects: [{ - original_name: "HTMLCanvasElement.prototype.toBlob", - wrapped_name: "origToBlob", - }], - helping_code: ``, - wrapping_code_function_name: "wrapping", - wrapping_code_function_params: "parent", - wrapping_code_function_call_window: true, - original_function: "parent.HTMLCanvasElement.prototype.toBlob", - replace_original_function: true, - wrapping_function_args: "...args", - /** \fn fake HTMLCanvasElement.prototype.toBlob - * \brief Returns fake canvas content, see CanvasRenderingContext2D.prototype for more details. - * - * Internally creates a fake canvas of the same height and width as the original and calls - * CanvasRenderingContext2D.getImageData() that detemines the result. - */ - wrapping_function_body: ` - ${DEF_CANVAS_COPY} - return origToBlob.call(canvasCopy(this.getContext("2d")), ...args); - `, - }, - { - parent_object: "OffscreenCanvas.prototype", - parent_object_property: "convertToBlob", - wrapped_objects: [{ - original_name: "OffscreenCanvas.prototype.convertToBlob", - wrapped_name: "origConvertToBlob", - }], - helping_code: ``, - wrapping_code_function_name: "wrapping", - wrapping_code_function_params: "parent", - wrapping_code_function_call_window: true, - original_function: "parent.OffscreenCanvas.prototype.convertToBlob", - replace_original_function: true, - wrapping_function_args: "...args", - /** \fn fake OffscreenCanvas.prototype.convertToBlob - * \brief Returns fake canvas content, see CanvasRenderingContext2D.prototype for more details. - * - * Internally creates a fake canvas of the same height and width as the original and calls - * CanvasRenderingContext2D.getImageData() that detemines the result. - */ - wrapping_function_body: ` - ${DEF_CANVAS_COPY} - return origConvertToBlob.call(canvasCopy(this.getContext("2d")), ...args); - `, - }, - { - parent_object: "CanvasRenderingContext2D.prototype", - parent_object_property: "isPointInPath", - wrapped_objects: [{ - original_name: "CanvasRenderingContext2D.prototype.isPointInPath", - wrapped_name: "origIsPointInPath", - }], - helping_code: helping_code + ` - function farbleIsPointInPath(ctx, ...args){ - if(approach === 0){ - var ret = origIsPointInPath.call(ctx, ...args); - return (ret && ((prng()*20) > 1)); - } - else if(approach === 1){ - return false; - } - }; - `, - wrapping_code_function_name: "wrapping", - wrapping_code_function_params: "parent", - wrapping_code_function_call_window: true, - original_function: "parent.CanvasRenderingContext2D.prototype.isPointInPath", - replace_original_function: true, - wrapping_function_args: "...args", - /** \fn fake CanvasRenderingContext2D.prototype.isPointInPath - * \brief Returns modified result - * - * Either returns false or original function return value which is changed to false with 1/20 probability - * - * \bug Changing value with probability has some issues: - * * multiple calls with the same pixel can return different values - * * inconsistencies among adjacent pixels - */ - wrapping_function_body: ` - return farbleIsPointInPath(this, ...args); - `, - }, - { - parent_object: "CanvasRenderingContext2D.prototype", - parent_object_property: "isPointInStroke", - wrapped_objects: [{ - original_name: "CanvasRenderingContext2D.prototype.isPointInStroke", - wrapped_name: "origIsPointInStroke", - }], - helping_code: helping_code + ` - function farbleIsPointInStroke(ctx, ...args){ - if(approach === 0){ - var ret = origIsPointInStroke.call(ctx, ...args); - return (ret && ((prng()*20) > 1)); - } - else if(approach === 1){ - return false; - } - }; - `, - wrapping_code_function_name: "wrapping", - wrapping_code_function_params: "parent", - wrapping_code_function_call_window: true, - original_function: "parent.CanvasRenderingContext2D.prototype.isPointInStroke", - replace_original_function: true, - wrapping_function_args: "...args", - /** \fn fake CanvasRenderingContext2D.prototype.isPointInStroke - * \brief Returns modified result - * - * Either returns false or original function return value which is changed to false with 1/20 probability - * - * \bug Changing value with probability has some issues: - * * multiple calls with the same pixel can return different values - * * inconsistencies among adjacent pixels - */ - wrapping_function_body: ` - return farbleIsPointInStroke(this, ...args); - `, - }, - ] - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-HRT.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-HRT.js deleted file mode 100644 index 066ff5b..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-HRT.js +++ /dev/null @@ -1,81 +0,0 @@ -/** \file - * \brief Wrappers for High Resolution Time (Level 2) standard - * - * \see https://w3c.github.io/hr-time/ - * - * \author Copyright (C) 2019 Libor Polcak - * \author Copyright (C) 2020 Peter Hornak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - - -/** \file - * \ingroup wrappers - * - * This wrapper aims on prevention of microarchitectural attacks, clock-skew attacks, and other time - * related attacks. The goal is to limit the precision of the time returned by the Performance API. - * - * \see https://www.fit.vut.cz/study/thesis/22308/?year=0&sup=Pol%C4%8D%C3%A1k, especially Sect. - * 7.2. - * - * \see Tom Van Goethem, Wouter Joosen, Nick Nikiforakis. The Clock is Still Ticking: -Timing Attacks in the Modern Web. CCS'15. DOI: http://dx.doi.org/10.1145/2810103.2813632. -https://lirias.kuleuven.be/retrieve/389086 - * - * \see Schwarz, M., Lipp, M. a Gruss, D. JavaScript Zero: Real JavaScript and Zero - * Side-Channel Attacks. NDSS'18. - * - * \see Schwarz M., Maurice C., Gruss D., Mangard S. (2017) Fantastic Timers and Where to Find Them: High-Resolution Microarchitectural Attacks in JavaScript. In: Kiayias A. (eds) Financial Cryptography and Data Security. FC 2017. Lecture Notes in Computer Science, vol 10322. Springer, Cham. https://doi.org/10.1007/978-3-319-70972-7_13 - * - * The wrappers support the following behaviour: - * - * * Round timestamp: Limit the precision by removing (a part of) the decimal part of the timestamp. - * * Randomize after rounding: Create a fake decimal part to confuse attackers and to create - * timestamps that look similar to expected timestamps. - */ - - - -/* - * Create private namespace - */ -(function() { - var wrappers = [ - { - parent_object: "Performance.prototype", - parent_object_property: "now", - wrapped_objects: [ - { - original_name: "Performance.prototype.now", - wrapped_name: "origNow", - } - ], - helping_code: rounding_function + noise_function + ` - let precision = args[0]; - let doNoise = args[1]; - `, - wrapping_function_args: "", - wrapping_function_body: ` - var originalPerformanceValue = origNow.call(window.performance); - var limit_precision = doNoise ? noise_function : rounding_function; - return limit_precision(originalPerformanceValue, precision); - `, - }, - ]; - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-HTML-LS.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-HTML-LS.js deleted file mode 100644 index 52920c9..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-HTML-LS.js +++ /dev/null @@ -1,142 +0,0 @@ -/** \file - * \brief Wrappers for Workers - * - * \author Copyright (C) 2019-2022 Libor Polcak - * \author Copyright (C) 2020 Peter Hornak - * \author Copyright (C) 2021 Matus Svancar - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * This wrapper aims on prevention of microarchitectural attacks. This - * code was originally a part of [ChromeZero](https://github.com/IAIK/ChromeZero). - * - * The wrappers support the following behaviour: - * - * * Polyfill: Completely eliminates the paralelism. - * * Randomly slow messages: Add noise to the `postMessage` method execution. - * - * \see Lipp, M., Gruss, D., Schwarz, M., Bidner, D., Maurice, C. et al. Practical -Keystroke Timing Attacks in Sandboxed JavaScript. In:. August 2017, s. 191–209. -ISBN 978-3-319-66398-2. - * - * \see Schwarz, M., Lipp, M. a Gruss, D. JavaScript Zero: Real JavaScript and Zero - * Side-Channel Attacks. NDSS'18. - * - * \see <https://www.fit.vut.cz/study/thesis/22374/?year=0&sup=Pol%C4%8D%C3%A1k> - */ - - - -/* - * Create private namespace - */ -(function() { - var strictWorkerWrapperBody = ` - // We create a Worker to limit fingerprinting but we intentionally use a non-existing URL. - return new originalF("https://[ff00::]/worker.js"); - `; - - var slowBody = ` - let _data = new originalF(path, ...args); - let _old = _data.postMessage; - _data.postMessage = function(message) { - let delay = Math.floor(Math.random() * 10**9) - let j; - for (let i = 0; i < delay;) { - j = i; - i = j + 1; - } - return _old.call(_data, message); - } - return _data; - `; - - var wrappers = [ - { - parent_object: "Navigator.prototype", - parent_object_property: "hardwareConcurrency", - wrapped_objects: [], - helping_code: ` - var hw_prng = alea(domainHash, "Navigator.prototype.hardwareConcurrency"); - var ret = 2; - if(args[0]==0){ - var realValue = navigator.hardwareConcurrency; - ret = Math.floor(2+hw_prng()*(realValue-2)); - } - else if(args[0]==1){ - ret = Math.floor(2+(hw_prng()*6)); - } - `, - post_wrapping_code: [ - { - code_type: "object_properties", - wrapped_name: "origConcurrency", - wrapped_objects: [], - parent_object: "Navigator.prototype", - parent_object_property: "hardwareConcurrency", - /** \brief replaces navigator.hardwareConcurrency getter - * - * Depending on level chosen this property returns: - * * (0) - random valid value from range [2 - real value] - * * (1) - random valid value from range [2 - 8] - * * (2) - 2 - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - return ret; - }`, - }, - ], - } - ], - }, - { - parent_object: "window", - parent_object_property: "Worker", - original_function: "window.Worker", - wrapped_objects: [], - helping_code: ` - let strictWrappers = args[0]; - let removeWorkers = args[1]; - `, - wrapping_function_args: `path, ...args`, - wrapping_function_body: ` - if (!removeWorkers && strictWrappers) { - ${strictWorkerWrapperBody} - } else { - ${slowBody} - } - `, - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "window", - apply_if: "removeWorkers", - delete_properties: ["Worker"], - } - ], - } - ] - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-HTML.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-HTML.js deleted file mode 100644 index 9893381..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-HTML.js +++ /dev/null @@ -1,56 +0,0 @@ -/** \file - * \brief This file contains wrapper that clears the window.name property - * - * \see https://developer.mozilla.org/en-US/docs/Web/API/Window/name - * - * \author Copyright (C) 2020 Martin Bednar, Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * `window.name` provides a simple cross-origin tracking method of the same tab: - * - * ```js - * window.name = "8pdRoEaQCpsjtC8w07dOy7xwXjXrHDyxxmPWBUxQKrh7xfJ4SYFH8QClp6U9T+Ypa8IEa5AwFw3x" - * ``` - * - * Go to completely different web site and window.name stays the same. - * - * \see https://2019.www.torproject.org/projects/torbrowser/design/ provides a library build on - * top of `window.name`: https://www.thomasfrank.se/sessionvars.html. - * - * \see https://html.spec.whatwg.org/#history-traversal; this feature should not be ncessary - * for Firefox 86 or newer https://bugzilla.mozilla.org/show_bug.cgi?id=444222. - */ - -/* - * Create private namespace - */ -(function() { - var wrappers = [ - { - parent_object: "window", - parent_object_property: "name", - wrapped_objects: [], - helping_code: "/* window.name = ''; */", // we actually do this in level_cache.js on eTLD+1 domain changes - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-HTML5.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-HTML5.js deleted file mode 100644 index c1bebfd..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-HTML5.js +++ /dev/null @@ -1,76 +0,0 @@ -/** \file - * \brief This file contains wrappers for HTML Audio and Video elements - * - * \see https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canPlayType - * - * \author Copyright (C) 2022 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * Supported codecs (multimedia media types) can be misued for fingerprinting, - * see for example the [FPMon paper](https://fpmon.github.io/fingerprinting-monitor/files/FPMON.pdf). - * - * JShelter provides two modes of protection: - * - * 1. Strict approach returns all media types as not supported. - * 2. Modifies the output of probably/maybe supported codecs. - */ - -/* - * Create private namespace - */ -(function() { - var wrappers = [ - { - parent_object: "HTMLMediaElement.prototype", - parent_object_property: "canPlayType", - wrapped_objects: [{ - original_name: "HTMLMediaElement.prototype.canPlayType", - wrapped_name: "origF", - }], - helping_code: `var approach = args[0];`, - wrapping_function_args: "media, ...args", - wrapping_function_body: ` - if ((approach == 2) || (approach == 1)) { - return ""; - } - else { - var normalized = media.replace(/\s|\\n|\\t|\\r/g, ''); - var origVal = origF.call(this, media); - if (origVal === "") { - return origVal; - } - else { - var medcap_prng = alea(domainHash, "MediaCapabilities.prototype.encodingInfo", normalized); - var rnd = medcap_prng.get_bits(1); - if (rnd == 0) { - return "probably"; - } - else { - return "maybe"; - } - } - } - `, - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-IDLE.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-IDLE.js deleted file mode 100644 index 785b2f4..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-IDLE.js +++ /dev/null @@ -1,142 +0,0 @@ -/** \file - * \brief Wrappers for Idle Detection API - * - * \see https://wicg.github.io/idle-detection/ - * - * \author Copyright (C) 2022 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * \see https://web.dev/idle-detection/ - * \see https://developer.mozilla.org/en-US/docs/Web/API/IdleDetector - * - * The Idle Detection API can detect inactive users and locked screens. - * JShelter either removes the API (IdleDetector), or disables permission - * requests and returns user activity and unlocked screen (for previously - * granted permissions), or just always report user activity and unlocked - * screen. - * - * \bug JShelter does not block events, so the page is notified that - * something changed but it cannot read what changed. - */ - -/* - * Create private namespace - */ -(function() { - var setArgs = ` - var deleteapi = (args[0] === 2); - var disableapi = (args[0] === 1); - var confuse = (args[0] === 0); - `; - var wrappers = [ - { - parent_object: "window", - parent_object_property: "IdleDetector", - wrapped_objects: [], - helping_code: setArgs, - apply_if: "deleteapi", - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "window", - delete_properties: ["IdleDetector"], - } - ], - }, - { - parent_object: "IdleDetector", - parent_object_property: "requestPermission", - wrapped_objects: [], - helping_code: setArgs, - apply_if: "disableapi", - wrapping_function_args: "", - wrapping_function_body: ` - return Promise.resolve('denied'); - `, - }, - { - parent_object: "IdleDetector.prototype", - parent_object_property: "screenState", - helping_code: setArgs + `let originalF = Object.getOwnPropertyDescriptor(IdleDetector.prototype, "screenState").get;`, - apply_if: "disableapi || confuse", - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "IdleDetector.prototype", - parent_object_property: "screenState", - wrapped_objects: [], - /** \brief replaces IdleDeadline.prototype.didTimeout getter - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - if (disableapi) { - return null; - } - let orig = originalF.call(this); - if (orig === null) { - return orig; - } - return 'unlocked'; - }`, - }, - ], - } - ], - }, - { - parent_object: "IdleDetector.prototype", - parent_object_property: "userState", - helping_code: setArgs + `let originalF = Object.getOwnPropertyDescriptor(IdleDetector.prototype,"userState").get;`, - apply_if: "disableapi || confuse", - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "IdleDetector.prototype", - parent_object_property: "userState", - wrapped_objects: [], - /** \brief replaces IdleDeadline.prototype.didTimeout getter - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - if (disableapi) { - return null; - } - let orig = originalF.call(this); - if (orig === null) { - return orig; - } - return 'active'; - }`, - }, - ], - } - ], - }, - ] - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-MCS.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-MCS.js deleted file mode 100644 index a475221..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-MCS.js +++ /dev/null @@ -1,167 +0,0 @@ -/** \file - * \brief Wrappers for Media Capture and Streams standard - * - * \see https://www.w3.org/TR/mediacapture-streams/ - * - * \author Copyright (C) 2021 Libor Polcak - * \author Copyright (C) 2021 Matus Svancar - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - * \license SPDX-License-Identifier: MPL-2.0 - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// -// Alternatively, the contents of this file may be used under the terms -// of the Mozilla Public License, v. 2.0, as described below: -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this file, -// You can obtain one at http://mozilla.org/MPL/2.0/. -// -// \copyright Copyright (c) 2020 The Brave Authors. - -/** \file - * This file contains wrapper for MediaDevices.enumerateDevices https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices - * \ingroup wrappers - * - * The goal is to prevent fingerprinting by modifying return value of enumerateDevices. - * - * This wrapper operates with three levels of protection: - * - * * (0) - return promise with shuffled array - * * (1) - return promise with shuffled array with additional 0-4 fake devices - * * (2) - return empty promise - * - * The shuffling approach is inspired by the algorithms created by [Brave Software](https://brave.com) - * available [here](https://github.com/brave/brave-core/blob/master/chromium_src/third_party/blink/renderer/modules/mediastream/media_devices.cc). - */ -/* - -/* - * Create private namespace - */ -(function() { - /** - * \brief change reurn value of enumerateDevices - * - * Depending on level chosen this function returns: - * * (0,1) - promise with modified device array - * * (2) - empty promise - */ - function farbleEnumerateDevices() { - // to emulate correctly we need a fresh Promise and a fresh Array (with same values) on every call - return cachedDevices.then(r => { - r = r.concat(); - return r; - }); - } - /** - * \brief create and return MediaDeviceInfo object by overlaying a native one with fake properties - * - * \param device Device is any native MediaInfoDevice object (https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo) - * \param fd_prng Initialized PRNG to be deterministically used by the function - */ - function fakeDevice(device, fd_prng){ - var kinds = ["videoinput", "audioinput", "audiooutput"]; - // browserEnum specifies the browser: 0 - Chrome 1 - Firefox - let browserEnum = device.groupId.length == 44 ? 1 : 0; - var deviceId = browserEnum == 1 ? randomString(43, browserEnum, fd_prng)+ "=" : ""; - let fakeData = { - deviceId, - groupId: deviceRandomString(browserEnum), - kind: kinds[Math.floor(fd_prng() * 3)], - label: "", - }; - let json = JSON.stringify(fakeData); - fakeData.toJSON = () => json; - let overlay = WrapHelper.overlay(device, fakeData); - return overlay; - } - /** - * \brief return random string for MediaDeviceInfo parameters - * - * \param browserEnum enum specifying browser 0 - Chrome 1 - Firefox - */ - function deviceRandomString(browserEnum) { - var ret = ""; - var lengths = [64, 43]; - var charSets = ["abcdefghijklmnopqrstuvwxyz0123456789","abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/"]; - var length = lengths[browserEnum]; - var charSet = charSets[browserEnum]; - for ( var i = 0; i < length; i++ ) { - ret += charSet.charAt(Math.floor(Math.random() * charSet.length)); - } - if(browserEnum == 1) - ret += "="; - return ret; - } - var wrappers = [ - { - parent_object: "MediaDevices.prototype", - parent_object_property: "enumerateDevices", - wrapped_objects: [{ - original_name: "MediaDevices.prototype.enumerateDevices", - callable_name: "origEnumerateDevices", - }], - helping_code: farbleEnumerateDevices + shuffleArray + deviceRandomString + randomString + fakeDevice + ` - var fd_prng = alea(domainHash, "S-MCS MediaDevices.prototype.enumerateDevices"); - let [level] = args; - let cachedDevices = level < 2 ? - origEnumerateDevices.call(navigator.mediaDevices).then(result => { - try { - let shuffle = () => { - if (result.length > 1) shuffleArray(result); - return result; - }; - if (level === 1 && result.length) { - var enumd_prng = alea(domainHash, "MediaDevices.prototype.enumerateDevices"); - let additional = Math.floor(enumd_prng()*4); - if (additional > 0) { - let adding = []; - while (additional-- > 0) { - adding.push(origEnumerateDevices.call(navigator.mediaDevices).then(([device]) => { - let fake = fakeDevice(device, fd_prng); - result.push(fake); - })); - } - return Promise.all(adding).then(r => { - return shuffle(); - }); - } - } - return shuffle(); - } catch (e) { - console.error("Error in farble promise callback", e); - throw e; - } - }) - : Promise.resolve([]); - `, - wrapping_function_args: "", - /** \fn fake MediaDevices.prototype.enumerateDevices - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - promise with shuffled array - * * (1) - promise with shuffled array with additional 0-4 fake devices - * * (2) - empty promise - */ - wrapping_function_body: ` - return farbleEnumerateDevices(); - `, - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-MEDIA-CAPABILITIES.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-MEDIA-CAPABILITIES.js deleted file mode 100644 index 2123df7..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-MEDIA-CAPABILITIES.js +++ /dev/null @@ -1,133 +0,0 @@ -/** \file - * \brief This file contains wrappers for the Media Capabilities APIs - * - * \see https://developer.mozilla.org/en-US/docs/Web/API/Media_Capabilities_API - * - * \author Copyright (C) 2022 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * `` provides access to `MediaKeySystemAccess` object that - * allows to query supported codecs and other informations about the system. - * - * For example, visit https://www.fit.vutbr.cz/~polcak/jsr/hdcp/ and try a different browser or - * computer. - * - * \see https://w3c.github.io/media-capabilities/ - * - * We provide two modes of protection: - * - * 1. Strict approach prevents accessing the API. - * 2. Farbling approach changes the output to a non-existing codec with 12.5% probability. - */ - -/* - * Create private namespace - */ -(function() { - var helping_code = `var approach = args[0];`; - function prepareConfig(config) { - let changed = { - type: config.type, - }; - if (config.audio) { - changed.audio = { - contentType: prng().toString(), - channels: config.audio.channels, - bitrate: config.audio.bitrate, - samplerate: config.audio.samplerate, - }; - } - else { - changed.video = { - contentType: prng().toString(), - width: config.video.width, - height: config.video.height, - bitrate: config.video.bitrate, - framerate: config.video.framerate, - }; - } - return forPage(changed); - } - var wrappers = [ - { - parent_object: "MediaCapabilities.prototype", - parent_object_property: "encodingInfo", - wrapped_objects: [{ - original_name: "MediaCapabilities.prototype.encodingInfo", - wrapped_name: "origF", - }], - helping_code: helping_code + prepareConfig, - wrapping_function_args: "config", - wrapping_function_body: ` - if (approach == 2) { - return new Promise(() => {}); // Never resolves - } - else if (approach == 1) { - return origF.call(this, prepareConfig(config)); - } - else { - let media = config.audio || config.video; - var normalized = media.contentType.replace(/\s|\\n|\\t|\\r/g, ''); - var medcap_prng = alea(domainHash, "MediaCapabilities.prototype.encodingInfo", normalized); - var rnd = medcap_prng.get_bits(3); - if (rnd == 0) { - return origF.call(this, prepareConfig(config)); - } - else { - return origF.call(this, config); - } - } - `, - }, - { - parent_object: "MediaCapabilities.prototype", - parent_object_property: "decodingInfo", - wrapped_objects: [{ - original_name: "MediaCapabilities.prototype.decodingInfo", - wrapped_name: "origF", - }], - helping_code: helping_code + prepareConfig, - wrapping_function_args: "config", - wrapping_function_body: ` - if (approach == 2) { - return new Promise(() => {}); // Never resolves - } - else if (approach == 1) { - return origF.call(this, prepareConfig(config)); - } - else { - let media = config.audio || config.video; - var normalized = media.contentType.replace(/\s|\\n|\\t|\\r/g, ''); - var medcap_prng = alea(domainHash, "MediaCapabilities.prototype.decodingInfo", normalized); - var rnd = medcap_prng.get_bits(3); - if (rnd == 0) { - return origF.call(this, prepareConfig(config)); - } - else { - return origF.call(this, config); - } - } - `, - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-NET.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-NET.js deleted file mode 100644 index 6c1404b..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-NET.js +++ /dev/null @@ -1,73 +0,0 @@ -/** \file - * \brief Wrappers for NetworkInformation - * - * \see https://wicg.github.io/netinfo/#networkinformation-interface - * - * \author Copyright (C) 2022 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - - -/** \file - * This file contains a wrapper for [NetworkInformation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation#specifications). - * \ingroup wrappers - * - * NetworkInformation allows sites to learn about local network conditions by querying `navigator.connection`. - * Fingerprinters can misuse the feature. Long-term observers may learn about traveling patterns - * through observation of repeated values (for example a network at work, home, travel, etc.). - * - * We implement the same protection as Brave: https://github.com/brave/brave-browser/issues/20122. - * - * ``` - * navigator.connection === undefined - * "connection" in window.navigator === false - * ``` -*/ - -/* - * Create private namespace - */ -(function() { - var wrappers = [ - { - parent_object: "Navigator.prototype", - parent_object_property: "connection", - wrapped_objects: [], - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "Navigator.prototype", - delete_properties: ["connection"], - } - ], - }, - { - parent_object: "window", - parent_object_property: "NetworkInformation", - wrapped_objects: [], - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "window", - delete_properties: ["NetworkInformation"], - } - ], - }, - ]; - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-NFC.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-NFC.js deleted file mode 100644 index c44d3cd..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-NFC.js +++ /dev/null @@ -1,76 +0,0 @@ -/** \file - * \brief Wrappers for Web NFC API - * - * \see https://w3c.github.io/web-nfc/ - * - * \author Copyright (C) 2022 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - - -/** \file - * This file contains a wrapper for [Web NFC API](https://developer.mozilla.org/en-US/docs/Web/API/Web_NFC_API). - * \ingroup wrappers - * - * This API is not broadly supported and we just disable all objects. -*/ - -/* - * Create private namespace - */ -(function() { - var wrappers = [ - { - parent_object: "window", - parent_object_property: "NDEFMessage", - wrapped_objects: [], - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "window", - delete_properties: ["NDEFMessage"], - } - ], - }, - { - parent_object: "window", - parent_object_property: "NDEFReader", - wrapped_objects: [], - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "window", - delete_properties: ["NDEFReader"], - } - ], - }, - { - parent_object: "window", - parent_object_property: "NDEFRecord", - wrapped_objects: [], - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "window", - delete_properties: ["NDEFRecord"], - } - ], - }, - ]; - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-NP.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-NP.js deleted file mode 100644 index 4bcd333..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-NP.js +++ /dev/null @@ -1,383 +0,0 @@ -/** \file - * \brief Wrappers for NavigatorPlugins - * - * \author Copyright (C) 2021 Matus Svancar - * \author Copyright (C) 2022 Martin Bednar - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - * \license SPDX-License-Identifier: MPL-2.0 - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// -// Alternatively, the contents of this file may be used under the terms -// of the Mozilla Public License, v. 2.0, as described below: -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this file, -// You can obtain one at http://mozilla.org/MPL/2.0/. -// -// \copyright Copyright (c) 2020 The Brave Authors. - -/** \file - * This file contains wrappers for NavigatorPlugins. See the MDN docs on the [plugins](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorPlugins/plugins) - * and [MIME types](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorPlugins/mimeTypes). - * - * \ingroup wrappers - * - * The goal is to prevent fingerprinting by modifying value returned by getters navigator.plugins and navigator.mimeTypes - * - * This wrapper operates with three levels of protection: - * - * * (0) - replace by shuffled edited PluginArray with two added fake plugins, edited MimeTypeArray - * * (1) - replace by shuffled PluginArray with two fake plugins, empty MimeTypeArray - * * (2) - replace by empty PluginArray and MimeTypeArray - * - * These approaches are inspired by the algorithms created by [Brave Software](https://brave.com) - * available [here](https://github.com/brave/brave-core/blob/master/chromium_src/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc). - * - * The purpose of the wrappers is solely to prevent fingerprinting. However, - * browsers modyfing the array stand out of the crowd, which makes them more - * fingerprintable. Consequently, JShelter does not modify an empty list. So - * no matter the configuration, an empty list is not populated by the wrappers. - * - * If PDF inline viewing is supported, Firefox returns 5 plugins: - * * "PDF Viewer" - * * "Chrome PDF Viewer" - * * "Chromium PDF Viewer" - * * "Microsoft Edge PDF Viewer" - * * "WebKit built-in PDF" - * - * A list containing exactly these plugins is treated as the empty list and it is not modified. - */ - -/* - * Create private namespace - */ -(function() { - /** - * \brief create and return fake MimeType object - * - */ - function fakeMime(){ - var ret = Object.create(MimeType.prototype); - Object.defineProperties(ret, { - type:{ - value: "" - }, - suffixes:{ - value: "" - }, - description:{ - value: randomString(32, 0, fp_prng) - }, - enabledPlugin:{ - value: null - } - }); - return ret; - } - /** - * \brief create and return fake MimeType object created from given mime and plugin - * - * \param mime original MimeType object https://developer.mozilla.org/en-US/docs/Web/API/MimeType - * \param plugin original Plugin object https://developer.mozilla.org/en-US/docs/Web/API/Plugin - */ - function farbleMime(mime, plugin){ - var ret = Object.create(MimeType.prototype); - Object.defineProperties(ret, { - type:{ - value: mime.type - }, - suffixes:{ - value: mime.suffixes - }, - description:{ - value: mime.description - }, - enabledPlugin:{ - value: plugin - } - }); - return ret; - } - /** - * \brief create and return fake Plugin object - * - * \param descLength enum specifying browser 0 - Chrome 1 - Firefox - * \param filenameLength enum specifying browser 0 - Chrome 1 - Firefox - * \param nameLength enum specifying browser 0 - Chrome 1 - Firefox - */ - function fakePlugin(descLength, filenameLength, nameLength){ - var ret = Object.create(Plugin.prototype); - var mime = fakeMime(); - Object.defineProperties(ret, { - 0:{ - value: mime - }, - "":{ - value: mime - }, - name:{ - value: randomString(nameLength, 0, fp_prng) - }, - filename:{ - value: randomString(filenameLength, 0, fp_prng) - }, - description:{ - value: randomString(descLength, 0, fp_prng) - }, - version:{ - value: null - }, - length:{ - value: 1 - } - }); - ret.__proto__.item = item; - ret.__proto__.namedItem = namedItem; - return ret; - } - /** - * \brief create and return fake PluginArray object containing given plugins - * - * \param plugins array of Plugin objects https://developer.mozilla.org/en-US/docs/Web/API/Plugin - */ - function fakePluginArrayF(plugins){ - var ret = Object.create(PluginArray.prototype); - var count = 0; - for(var i = 0; i<plugins.length; i++) { - ret[i] = plugins[i]; - if(plugins[i][0].type != "") { - Object.defineProperty(ret, plugins[i].name, { - value: plugins[count], - }); - count++; - } - } - Object.defineProperty(ret, 'length', { - value: plugins.length, - }); - ret.__proto__.item = item; - ret.__proto__.namedItem = namedItem; - ret.__proto__.refresh = refresh; - return ret; - } - /** - * \brief create and return fake MimeTypeArray object - * - * \param plugins PluginArray object https://developer.mozilla.org/en-US/docs/Web/API/PluginArray - */ - function fakeMimeTypeArrayF(plugins){ - var ret = Object.create(MimeTypeArray.prototype); - ret.__proto__.item = item; - ret.__proto__.namedItem = namedItem; - ret.__proto__.refresh = refresh; - var counter = 0; - for(var i = 0;i<plugins.length;i++){ - for(var j = 0;j>=0;j++){ - // (plugins[i][j].type != "") <- Exclude fake plugins. Fake plugin has type == "". - if((typeof plugins[i][j] != 'undefined') && (ret.namedItem(plugins[i][j].name)==null) && (plugins[i][j].type != "")){ - ret[counter] = farbleMime(plugins[i][j], plugins[i]); - ret[plugins[i][j].type] = plugins[i][j]; - counter++; - } - else{ - break; - } - } - } - - Object.defineProperty(ret, 'length', { - value: counter - }); - return ret; - } - function item(arg){ - if(typeof arg != 'undefined' && Number.isInteger(Number(arg))) - return this[arg]; - else return null; - } - - function namedItem(arg){ - if(typeof arg != 'undefined' && this[arg]) - return this[arg]; - else return null; - } - function refresh(){ - return undefined; - } - /** - * \brief create modified Plugin object from given plugin - * - * \param plugin original Plugin object https://developer.mozilla.org/en-US/docs/Web/API/Plugin - * - * Replaces words in name and description parameters in PDF plugins (default plugins in most browsers) - */ - function farblePlugin(plugin, fp_prng){ - var name = plugin.name; - var description = plugin.description; - if(plugin.name.includes("PDF")){ - let chrome = ["Chrome ", "Chromium ", "Web ", "Browser ", "OpenSource ", "Online ", "JavaScript ", ""]; - let pdf = ["PDF ", "Portable Document Format ", "portable-document-format ", "document ", "doc ", "PDF and PS ", "com.adobe.pdf "]; - let viewer = ["Viewer", "Renderer", "Display", "Plugin", "plug-in", "plug in", "extension", ""]; - name = chrome[Math.floor(fp_prng() * (chrome.length))]+pdf[Math.floor(fp_prng() * (pdf.length))]+viewer[Math.floor(fp_prng() * (viewer.length))]; - description = pdf[Math.floor(fp_prng() * (pdf.length))]; - } - var ret = Object.create(Plugin.prototype); - var counter = 0; - while(1){ - if(typeof plugin[counter] != 'undefined'){ - Object.defineProperties(ret, { - [counter]:{ - value: farbleMime(plugin[counter],ret) - }, - [plugin[counter].type]:{ - value: farbleMime(plugin[counter],ret) - } - }); - } - else { - break; - } - counter++; - } - Object.defineProperties(ret, { - name:{ - value: name - }, - filename:{ - value: randomString(32, 0, fp_prng), - }, - description:{ - value: description - }, - version:{ - value: null - }, - length:{ - value: 1 - } - }); - ret.__proto__.item = item; - ret.__proto__.namedItem = namedItem; - ret.__proto__.refresh = refresh; - return ret; - } - var methods = item + namedItem + refresh + shuffleArray + randomString; - var farbles = farblePlugin + farbleMime; - var fakes = fakeMime + fakePlugin + fakePluginArrayF + fakeMimeTypeArrayF; - var wrappers = [ - { - parent_object: "Navigator.prototype", - parent_object_property: "plugins", - apply_if: "applyWrapper", - wrapped_objects: [], - helping_code: - methods + farbles + fakes +` - var applyWrapper = true; // Possibly overridden below - if (navigator.plugins.length === 0) { - applyWrapper = false; - } - if (navigator.plugins.length === 5) { - let plugins = Array.prototype.reduce.call( - navigator.plugins, - function (acc, o) {acc.push(o.name); return acc;}, []); - if (plugins.includes("PDF Viewer") && - plugins.includes("Chrome PDF Viewer") && - plugins.includes("Chromium PDF Viewer") && - plugins.includes("Microsoft Edge PDF Viewer") && - plugins.includes( "WebKit built-in PDF")) { - applyWrapper = false; // See https://developer.mozilla.org/en-US/docs/Web/API/Navigator/plugins - } - } - if (applyWrapper) { - var fp_prng = alea(domainHash, "S-NP"); - var plugins = navigator.plugins; - var buffer = []; - if(args[0]==0){ - for(var i = 0;i<plugins.length;i++){ - buffer.push(farblePlugin(plugins[i], fp_prng)); - } - } - if(args[0]==1){ - for(var i = 0;i<plugins.length;i++){ - buffer.push(plugins[i]); - } - shuffleArray(buffer); - } - if(args[0]==0 || args[0]==1){ - var fakePlugin1 = fakePlugin(32, 16, 8); - var fakePlugin2 = fakePlugin(31, 15, 7); - buffer.push(fakePlugin1, fakePlugin2); - shuffleArray(buffer); - } - var fakePluginArray = fakePluginArrayF(buffer); - if(args[0]==1 || args[0]==2){ - var fakeMimeTypeArray = fakeMimeTypeArrayF([]); - } - else { - var fakeMimeTypeArray = fakeMimeTypeArrayF(fakePluginArray); - } - } - `, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Navigator.prototype", - parent_object_property: "plugins", - wrapped_objects: [], - /** \brief replaces navigator.plugins getter - * - * Depending on level chosen this property returns: - * * (0) - shuffled PluginArray object with modified original plugins and two fake plugins - * * (1) - shuffled PluginArray object with two fake Plugins - * * (2) - empty PluginArray object - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - return fakePluginArray; - }`, - }, - ], - }, - { - code_type: "object_properties", - parent_object: "Navigator.prototype", - parent_object_property: "mimeTypes", - wrapped_objects: [], - /** \brief replaces navigator.mimeTypes getter - * - * Depending on level chosen this property returns: - * * (0) - modified MimeTypeArray with links to updated Plugins - * * (1,2) - empty MimeTypeArray object - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - return fakeMimeTypeArray; - }`, - }, - ], - } - ], - }, - ]; - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-PT2.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-PT2.js deleted file mode 100644 index 1f304b4..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-PT2.js +++ /dev/null @@ -1,151 +0,0 @@ -/** \file - * \brief Wrappers for Performance Timeline (Level 2) standard - * - * \see https://w3c.github.io/performance-timeline - * - * \author Copyright (C) 2019 Libor Polcak - * \author Copyright (C) 2020 Peter Hornak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - - -/** \file - * \ingroup wrappers - * - * This wrapper aims on prevention of microarchitectural attacks, clock-skew attacks, and other time - * related attacks. The goal is to limit the precision of the time returned by the Performance Timeline API. - * - * \see https://www.fit.vut.cz/study/thesis/22308/?year=0&sup=Pol%C4%8D%C3%A1k, especially Sect. - * 7.2. - * - * \see Tom Van Goethem, Wouter Joosen, Nick Nikiforakis. The Clock is Still Ticking: -Timing Attacks in the Modern Web. CCS'15. DOI: http://dx.doi.org/10.1145/2810103.2813632. -https://lirias.kuleuven.be/retrieve/389086 - * - * \see Schwarz, M., Lipp, M. a Gruss, D. JavaScript Zero: Real JavaScript and Zero - * Side-Channel Attacks. NDSS'18. - * - * \see Schwarz M., Maurice C., Gruss D., Mangard S. (2017) Fantastic Timers and Where to Find Them: High-Resolution Microarchitectural Attacks in JavaScript. In: Kiayias A. (eds) Financial Cryptography and Data Security. FC 2017. Lecture Notes in Computer Science, vol 10322. Springer, Cham. https://doi.org/10.1007/978-3-319-70972-7_13 - * - * The wrappers support the following behaviour: - * - * * Round timestamp: Limit the precision by removing (a part of) the decimal part of the timestamp. - * * Randomize after rounding: Create a fake decimal part to confuse attackers and to create - * timestamps that look similar to expected timestamps. - */ - - -/* - * Create private namespace - */ -(function() { - var helping_code = `var precision = args[0]; - var doNoise = args[1]; - var pastValues = {}; - ${rounding_function} - ${noise_function} - var func = rounding_function; - if (doNoise === true){ - func = function(value, precision) { - let params = [value, precision]; - if (params in pastValues) { - return pastValues[params]; - } - let result = noise_function(...params); - pastValues[params] = result; - return result; - } - } - `; - - var wrappers = [ - { - parent_object: "PerformanceEntry", - parent_object_property: "prototype", - wrapped_objects: [], - helping_code: helping_code, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "PerformanceEntry.prototype", - parent_object_property: "startTime", - wrapped_objects: [ - { - original_name: "Object.getOwnPropertyDescriptor(PerformanceEntry.prototype, 'startTime')['get']", - wrapped_name: "originalST", - }, - ], - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - let originalVal = originalST.call(this, ...arguments); - return func(originalVal, precision); - }`, - }, - ], - }, - { - code_type: "object_properties", - parent_object: "PerformanceEntry.prototype", - parent_object_property: "duration", - wrapped_objects: [ - { - original_name: "Object.getOwnPropertyDescriptor(PerformanceEntry.prototype, 'duration')['get']", - wrapped_name: "originalD", - }, - ], - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - let originalVal = originalD.call(this, ...arguments); - return func(this.startTime + originalVal, precision) - this.startTime; - }`, - }, - ], - }, - { - code_type: "object_properties", - parent_object: "PerformanceEntry.prototype", - parent_object_property: "toJSON", - wrapped_objects: [], - wrapped_properties: [ - { - property_name: "value", - property_value: ` - function() { - let res = { - entryType: this.entryType, - name: this.name, - startTime: this.startTime, - duration: this.duration, - toJSON: function() {return this}, - }; - return res.toJSON(); - }`, - }, - ], - }, - ], - }, - ] - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-ACCEL.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-ACCEL.js deleted file mode 100644 index 9023c1f..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-ACCEL.js +++ /dev/null @@ -1,451 +0,0 @@ -/** \file - * \brief Wrappers for the Accelerometer Sensor, LinearAccelerationSensor, - * and GravitySensor - * - * \see https://www.w3.org/TR/accelerometer/ - * \see https://www.w3.org/TR/accelerometer/#linearaccelerationsensor - * \see https://www.w3.org/TR/accelerometer/#gravitysensor - * - * \author Copyright (C) 2021 Radek Hranicky - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ - // - // This program is free software: you can redistribute it and/or modify - // it under the terms of the GNU General Public License as published by - // the Free Software Foundation, either version 3 of the License, or - // (at your option) any later version. - // - // This program is distributed in the hope that it will be useful, - // but WITHOUT ANY WARRANTY; without even the implied warranty of - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - // GNU General Public License for more details. - // - // You should have received a copy of the GNU General Public License - // along with this program. If not, see <https://www.gnu.org/licenses/>. - // - - /** \file - * \ingroup wrappers - * MOTIVATION - * Readings from the Accelerometer, LinearAccelerationSensor, and GravitySensor - * of the Generic Sensor API should be secured as they provide a potentially - * valuable data for creating fingerprints. There are multiple options. - * A unique fingerprint can be obtained by describing the device's vibrations - * (See https://link.springer.com/chapter/10.1007/978-3-319-30806-7_7). - * Using trajectory inference and matching of the model to map data, one may - * use the readings from the Accelerometer to determing the device's position - * (See https://www.researchgate.net/publication/220990763_ACComplice_Location_ - * inference_using_accelerometers_on_smartphones). - * Accelerometer readings can also be used for determining human walking patterns - * (See https://www.researchgate.net/publication/322835708_Classifying_Human_ - * Walking_Patterns_using_Accelerometer_Data_from_Smartphone). - * - * - * WRAPPING - * The wrapper replaces the "XYZ" getters of the Accelerometer sensor, - * LinearAccelerationSensor, and GravitySensor. The wrapping's goal is to - * simulate a stationary device that can be possibly rotated. The rotation - * of the device is represented by the fake rotation matrix "orient.rotMat". - * - * The GravitySensor should provide readings of gravity acceleration applied - * to the device. This is represented by a vector made of x, y, z portions. - * To get this faked gravity vector for the device, the reference vector - * [0, 0, 9.8] is multipled with the rotation matrix. Wrappers for the - * GravitySensor's getters return x, y, z portions of the fake gravity vector. - * - * Next, the LinearAccelerationSensor should return acceleration values without - * the contribution of gravity. For a stationary device, it should be all zeroes. - * Yet, there could be vibrations that may change values a little bit, e.g., - * spin around -0.1 to +0.1, as seen on the examined devices. This usually does - * not happed with every reading but only in intervals of seconds. And thus, - * after a few seconds we pseudo-randomly change these values. - * - * Finally, the Accelerometer sensor combines the previous two. Our wrappers thus - * return tha values from the LinearAccelerationSensor with the fake gravity - * vector portions added. - * - * - * POSSIBLE IMPROVEMENTS - * Support for simulation of a non-stationary device where the rotation - * can change. Currently, the calculation of the gravity vector is done - * only once by the initDataGenerator() where the reference vector is - * multiplied with the rotation matrix. If orient.rotMat could change, - * the dataGen would have to be updated periodically. - * Moreover, such a change should also be taken into account in wrappers - * for other movement-related sensors (Gyroscope, etc.). - * - */ - - /* - * Create private namespace - */ -(function() { - /* - * \brief Initialization of data for storing sensor readings - */ - var init_data = ` - var currentReading = currentReading || {orig_x: null, orig_y: null, orig_z: null, timestamp: null, - fake_x: null, fake_y: null, fake_z: null, gVector: null}; - var previousReading = previousReading || {orig_x: null, orig_y: null, orig_z: null, timestamp: null, - fake_x: null, fake_y: null, fake_z: null, gVector: null}; - var emulateStationaryDevice = (typeof args === 'undefined') ? true : args[0]; - var debugMode = false; - - const TWOPI = 2 * Math.PI; - `; - - /* - * \brief Property getters of the original sensor object - */ - var orig_getters = ` - var origGetX = Object.getOwnPropertyDescriptor(Accelerometer.prototype, "x").get; - var origGetY = Object.getOwnPropertyDescriptor(Accelerometer.prototype, "y").get; - var origGetZ = Object.getOwnPropertyDescriptor(Accelerometer.prototype, "z").get; - var origGetTimestamp = Object.getOwnPropertyDescriptor(Sensor.prototype, "timestamp").get; - `; - - /* - * \brief Changes the value on the given axis to a new one from the given interval - * - * \param the axis object (min, max, value, and decimalPlaces properties required) - */ - function shake(axis) { - val = sen_prng() * (axis.max - axis.min) + axis.min; - - var precision = Math.pow(10, -1 * axis.decimalPlaces); - if (val < precision) { - val = 0; - } - - if (axis.canBeNegative) { - val *= Math.round(sen_prng()) ? 1 : -1; - } - - if (val == 0) { - axis.value = 0; - } else { - axis.value = fixedNumber(val, axis.decimalPlaces); - } - } - - /* - * \brief The data generator for creating fake accelerometer values - */ - class DataGenerator { - constructor() { - this.NEXT_CHANGE_MS_MIN = 1000; - this.NEXT_CHANGE_MS_MAX = 10000; - - /* Reference gravity vector - * For a non-rotated device lying bottom-down on a flat surface, - * only axis "z" is afected by g. - */ - let referenceGravityVector = [0, 0, 9.8]; - - /* - * For a rotated device, the reference gravity vector needs to be - * multiplied by the rotation matrix. - * Here we calculate and store the device gravity vector - */ - this.gVector = multVectRot(referenceGravityVector, orient.rotMat); - - /* - * Values for the linear acceleration are fluctuating - */ - this.x = { - name: "x", - min: 0.0, - max: 0.11, - decimalPlaces: 1, - canBeNegative: true, - value: null - }; - this.y = { - name: "y", - min: 0.0, - max: 0.11, - decimalPlaces: 1, - canBeNegative: true, - value: null - }; - this.z = { - name: "z", - min: 0.0, - max: 0.11, - decimalPlaces: 1, - canBeNegative: true, - value: null - }; - this.nextChangeTimeX = null; // miliseconds - this.nextChangeTimeY = null; - this.nextChangeTimeZ = null; - } - - /* - * \brief Updates the x/y/z axes values based on the current timestamp - * - * \param Current timestamp from the sensor object - */ - update(currentTimestamp) { - // Simulate the Gyroscope changes - if (this.shouldWeUpdateX(currentTimestamp)) { - shake(this.x); - this.setNextChangeX(currentTimestamp); - }; - if (this.shouldWeUpdateY(currentTimestamp)) { - shake(this.y); - this.setNextChangeY(currentTimestamp); - }; - if (this.shouldWeUpdateZ(currentTimestamp)) { - shake(this.z); - this.setNextChangeZ(currentTimestamp); - }; - } - - /* - * \brief Boolean function that decides if the value on the axis X - * should be updated. Returns true if update is needed. - * - * \param Current timestamp from the sensor object - */ - shouldWeUpdateX(currentTimestamp) { - if (currentTimestamp === null || this.nextChangeTimeX === null) { - return true; - } - if (currentTimestamp >= this.nextChangeTimeX) { - return true; - } else { - return false; - } - } - - /* - * \brief Boolean function that decides if the value on the axis Y - * should be updated. Returns true if update is needed. - * - * \param Current timestamp from the sensor object - */ - shouldWeUpdateY(currentTimestamp) { - if (currentTimestamp === null || this.nextChangeTimeY === null) { - return true; - } - if (currentTimestamp >= this.nextChangeTimeY) { - return true; - } else { - return false; - } - } - - /* - * \brief Boolean function that decides if the value on the axis Z - * should be updated. Returns true if update is needed. - * - * \param Current timestamp from the sensor object - */ - shouldWeUpdateZ(currentTimestamp) { - if (currentTimestamp === null || this.nextChangeTimeZ === null) { - return true; - } - if (currentTimestamp >= this.nextChangeTimeZ) { - return true; - } else { - return false; - } - } - - /* - * \brief Sets the timestamp of the next update of value on the axis X. - * - * \param Current timestamp from the sensor object - */ - setNextChangeX(currentTimestamp) { - let interval_ms = Math.floor( - sen_prng() * (this.NEXT_CHANGE_MS_MAX - this.NEXT_CHANGE_MS_MIN + 1) - + this.NEXT_CHANGE_MS_MIN - ); - this.nextChangeTimeX = currentTimestamp + interval_ms; - } - - /* - * \brief Sets the timestamp of the next update of value on the axis Y. - * - * \param Current timestamp from the sensor object - */ - setNextChangeY(currentTimestamp) { - let interval_ms = Math.floor( - sen_prng() * (this.NEXT_CHANGE_MS_MAX - this.NEXT_CHANGE_MS_MIN + 1) - + this.NEXT_CHANGE_MS_MIN - ); - this.nextChangeTimeY = currentTimestamp + interval_ms; - } - - /* - * \brief Sets the timestamp of the next update of value on the axis Z. - * - * \param Current timestamp from the sensor object - */ - setNextChangeZ(currentTimestamp) { - let interval_ms = Math.floor( - sen_prng() * (this.NEXT_CHANGE_MS_MAX - this.NEXT_CHANGE_MS_MIN + 1) - + this.NEXT_CHANGE_MS_MIN - ); - this.nextChangeTimeZ = currentTimestamp + interval_ms; - } - } - - /* - * \brief Updates the stored (both real and fake) sensor readings - * according to the data from the sensor object. - * - * \param The sensor object - */ - function updateReadings(sensorObject) { - - // We need the original reading's timestamp to see if it differs - // from the previous sample. If so, we need to update the faked x,y,z - let previousTimestamp = previousReading.timestamp; - let currentTimestamp = origGetTimestamp.call(sensorObject); - - if (debugMode) { - // [!] Debug mode: overriding timestamp - // This allows test suites to set a custom timestamp externally - // by modifying the property of the sensor object directly. - currentTimestamp = sensorObject.timestamp; - } - - if (currentTimestamp === previousReading.timestamp) { - // No new reading, nothing to update - return; - } - - // Rotate the readings: previous <- current - previousReading = JSON.parse(JSON.stringify(currentReading)); - - // Update current reading - // NOTE: Original values are also stored for possible future use - currentReading.orig_x = origGetX.call(sensorObject); - currentReading.orig_y = origGetY.call(sensorObject); - currentReading.orig_z = origGetZ.call(sensorObject); - currentReading.timestamp = currentTimestamp; - - dataGenerator.update(currentTimestamp); - - currentReading.fake_x = dataGenerator.x.value; - currentReading.fake_y = dataGenerator.y.value; - currentReading.fake_z = dataGenerator.z.value; - currentReading.fake_gVector = dataGenerator.gVector; - - if (debugMode) { - } - } - - /* - * \brief Initializes the related generators - */ - var generators = ` - // Initialize the data generator, if not initialized before - var dataGenerator = dataGenerator || new DataGenerator(); - `; - - var helping_functions = sensorapi_prng_functions + device_orientation_functions - + DataGenerator + shake + updateReadings; - var hc = init_data + orig_getters + helping_functions + generators; - - var wrappers = [ - { - parent_object: "Accelerometer.prototype", - parent_object_property: "x", - wrapped_objects: [], - helping_code: hc, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Accelerometer.prototype", - parent_object_property: "x", - wrapped_objects: [], - /** \brief replaces Sensor.prototype.x getter to return a faked value - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - updateReadings(this); - if (this.__proto__.constructor.name === 'GravitySensor') { - return fixedNumber(currentReading.fake_gVector[0], 1); - } else if (this.__proto__.constructor.name === 'LinearAccelerationSensor') { - return fixedNumber(currentReading.fake_x, 1); - } - return fixedNumber(currentReading.fake_x + currentReading.fake_gVector[0], 1); - }`, - }, - ], - } - ], - }, - { - parent_object: "Accelerometer.prototype", - parent_object_property: "y", - wrapped_objects: [], - helping_code: hc, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Accelerometer.prototype", - parent_object_property: "y", - wrapped_objects: [], - /** \brief replaces Sensor.prototype.y getter to return a faked value - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - updateReadings(this); - if (this.__proto__.constructor.name === 'GravitySensor') { - return fixedNumber(currentReading.fake_gVector[1], 1); - } else if (this.__proto__.constructor.name === 'LinearAccelerationSensor') { - return fixedNumber(currentReading.fake_y, 1); - } - return fixedNumber(currentReading.fake_y + currentReading.fake_gVector[1], 1); - }`, - }, - ], - } - ], - }, - { - parent_object: "Accelerometer.prototype", - parent_object_property: "z", - wrapped_objects: [], - helping_code: hc, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Accelerometer.prototype", - parent_object_property: "z", - wrapped_objects: [], - /** \brief replaces Sensor.prototype.z getter to return a faked value - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - updateReadings(this); - if (this.__proto__.constructor.name === 'GravitySensor') { - return fixedNumber(currentReading.fake_gVector[2], 1); - } else if (this.__proto__.constructor.name === 'LinearAccelerationSensor') { - return fixedNumber(currentReading.fake_z, 1); - } - return fixedNumber(currentReading.fake_z + currentReading.fake_gVector[2], 1); - }`, - }, - ], - } - ], - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-GYRO.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-GYRO.js deleted file mode 100644 index f4ceebd..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-GYRO.js +++ /dev/null @@ -1,387 +0,0 @@ -/** \file - * \brief Wrappers for the Gyroscope Sensor - * - * \see https://www.w3.org/TR/Gyroscope/ - * - * \author Copyright (C) 2021 Radek Hranicky - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ - // - // This program is free software: you can redistribute it and/or modify - // it under the terms of the GNU General Public License as published by - // the Free Software Foundation, either version 3 of the License, or - // (at your option) any later version. - // - // This program is distributed in the hope that it will be useful, - // but WITHOUT ANY WARRANTY; without even the implied warranty of - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - // GNU General Public License for more details. - // - // You should have received a copy of the GNU General Public License - // along with this program. If not, see <https://www.gnu.org/licenses/>. - // - - /** \file - * \ingroup wrappers - * MOTIVATION - * Gyroscope readings can be used for speech recognition: https://crypto.stanford.edu/gyrophone/ - * and various fingerprinting operations. For stationary devices, the resonance of the unique internal or - * external sounds affects angular velocities affect the Gyroscope and allow to create a fingerprint: - * https://www.researchgate.net/publication/356678825_Mobile_Device_Fingerprint_Identification_Using_Gyroscope_Resonance - * For moving devices, one of the options is using the Gyroscope analyze human walking patterns: - * https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7071017/ - * - * - * WRAPPING - * The Gyroscope sensor provides readings of the angular velocity of the device alongthe x/y/z axes. - * For a stationary device, all velocities should be zero in an ideal state. As we observed on the - * examined devices, device sensor imperfections andlittle vibrations cause the `x`, `y` and `z` to - * oscillate between -0.002 and 0.002 on the examined devices. The wrapper simulates the same behavior. - * - * - * POSSIBLE IMPROVEMENTS - * Support for simulation of a non-stationary device. This would require - * modifications to other movement-related sensors (Accelerometer, etc.) - * - */ - - /* - * Create private namespace - */ -(function() { - /* - * \brief Initialization of data for storing sensor readings - */ - var init_data = ` - var currentReading = currentReading || {orig_x: null, orig_y: null, orig_z: null, timestamp: null, - fake_x: null, fake_y: null, fake_z: null}; - var previousReading = previousReading || {orig_x: null, orig_y: null, orig_z: null, timestamp: null, - fake_x: null, fake_y: null, fake_z: null}; - var emulateStationaryDevice = (typeof args === 'undefined') ? true : args[0]; - var debugMode = false; - - const TWOPI = 2 * Math.PI; - `; - - /* - * \brief Property getters of the original sensor object - */ - var orig_getters = ` - var origGetX = Object.getOwnPropertyDescriptor(Gyroscope.prototype, "x").get; - var origGetY = Object.getOwnPropertyDescriptor(Gyroscope.prototype, "y").get; - var origGetZ = Object.getOwnPropertyDescriptor(Gyroscope.prototype, "z").get; - var origGetTimestamp = Object.getOwnPropertyDescriptor(Sensor.prototype, "timestamp").get; - `; - - /* - * \brief Changes the value on the given axis to a new one from the given interval - * - * \param the axis object (min, max, value, and decimalPlaces properties required) - */ - function shake(axis) { - val = sen_prng() * (axis.max - axis.min) + axis.min; - - var precision = Math.pow(10, -1 * axis.decimalPlaces); - if (val < precision) { - val = 0; - } - - if (axis.canBeNegative) { - val *= Math.round(sen_prng()) ? 1 : -1; - } - - if (val == 0) { - axis.value = 0; - } else { - axis.value = fixedNumber(val, axis.decimalPlaces); - } - } - - /* - * \brief The data generator for creating fake Gyroscope values - */ - class DataGenerator { - constructor() { - this.NEXT_CHANGE_MS_MIN = 500; - this.NEXT_CHANGE_MS_MAX = 2000; - this.x = { - name: "x", - min: 0.0, - max: 0.0021, - decimalPlaces: 3, - canBeNegative: true, - value: null - }; - this.y = { - name: "y", - min: 0.0, - max: 0.0021, - decimalPlaces: 3, - canBeNegative: true, - value: null - }; - this.z = { - name: "z", - min: 0.0, - max: 0.0021, - decimalPlaces: 3, - canBeNegative: true, - value: null - }; - this.nextChangeTimeX = null; // miliseconds - this.nextChangeTimeY = null; - this.nextChangeTimeZ = null; - } - - /* - * \brief Updates the x/y/z axes values based on the current timestamp - * - * \param Current timestamp from the sensor object - */ - update(currentTimestamp) { - // Simulate the Gyroscope changes - if (this.shouldWeUpdateX(currentTimestamp)) { - shake(this.x); - this.setNextChangeX(currentTimestamp); - }; - if (this.shouldWeUpdateY(currentTimestamp)) { - shake(this.y); - this.setNextChangeY(currentTimestamp); - }; - if (this.shouldWeUpdateZ(currentTimestamp)) { - shake(this.z); - this.setNextChangeZ(currentTimestamp); - }; - } - - /* - * \brief Boolean function that decides if the value on the axis X - * should be updated. Returns true if update is needed. - * - * \param Current timestamp from the sensor object - */ - shouldWeUpdateX(currentTimestamp) { - if (currentTimestamp === null || this.nextChangeTimeX === null) { - return true; - } - if (currentTimestamp >= this.nextChangeTimeX) { - return true; - } else { - return false; - } - } - - /* - * \brief Boolean function that decides if the value on the axis Y - * should be updated. Returns true if update is needed. - * - * \param Current timestamp from the sensor object - */ - shouldWeUpdateY(currentTimestamp) { - if (currentTimestamp === null || this.nextChangeTimeY === null) { - return true; - } - if (currentTimestamp >= this.nextChangeTimeY) { - return true; - } else { - return false; - } - } - - /* - * \brief Boolean function that decides if the value on the axis Z - * should be updated. Returns true if update is needed. - * - * \param Current timestamp from the sensor object - */ - shouldWeUpdateZ(currentTimestamp) { - if (currentTimestamp === null || this.nextChangeTimeZ === null) { - return true; - } - if (currentTimestamp >= this.nextChangeTimeZ) { - return true; - } else { - return false; - } - } - - /* - * \brief Sets the timestamp of the next update of value on the axis X. - * - * \param Current timestamp from the sensor object - */ - setNextChangeX(currentTimestamp) { - let interval_ms = Math.floor( - sen_prng() * (this.NEXT_CHANGE_MS_MAX - this.NEXT_CHANGE_MS_MIN + 1) - + this.NEXT_CHANGE_MS_MIN - ); - this.nextChangeTimeX = currentTimestamp + interval_ms; - } - - /* - * \brief Sets the timestamp of the next update of value on the axis Y. - * - * \param Current timestamp from the sensor object - */ - setNextChangeY(currentTimestamp) { - let interval_ms = Math.floor( - sen_prng() * (this.NEXT_CHANGE_MS_MAX - this.NEXT_CHANGE_MS_MIN + 1) - + this.NEXT_CHANGE_MS_MIN - ); - this.nextChangeTimeY = currentTimestamp + interval_ms; - } - - /* - * \brief Sets the timestamp of the next update of value on the axis Z. - * - * \param Current timestamp from the sensor object - */ - setNextChangeZ(currentTimestamp) { - let interval_ms = Math.floor( - sen_prng() * (this.NEXT_CHANGE_MS_MAX - this.NEXT_CHANGE_MS_MIN + 1) - + this.NEXT_CHANGE_MS_MIN - ); - this.nextChangeTimeZ = currentTimestamp + interval_ms; - } - }; - - /* - * \brief Updates the stored (both real and fake) sensor readings - * according to the data from the sensor object. - * - * \param The sensor object - */ - function updateReadings(sensorObject) { - - // We need the original reading's timestamp to see if it differs - // from the previous sample. If so, we need to update the faked x,y,z - let previousTimestamp = previousReading.timestamp; - let currentTimestamp = origGetTimestamp.call(sensorObject); - - if (debugMode) { - // [!] Debug mode: overriding timestamp - // This allows test suites to set a custom timestamp externally - // by modifying the property of the sensor object directly. - currentTimestamp = sensorObject.timestamp; - } - - if (currentTimestamp === previousReading.timestamp) { - // No new reading, nothing to update - return; - } - - // Rotate the readings: previous <- current - previousReading = JSON.parse(JSON.stringify(currentReading)); - - // Update current reading - // NOTE: Original values are also stored for possible future use - currentReading.orig_x = origGetX.call(sensorObject); - currentReading.orig_y = origGetY.call(sensorObject); - currentReading.orig_z = origGetZ.call(sensorObject); - currentReading.timestamp = currentTimestamp; - - dataGenerator.update(currentTimestamp); - - currentReading.fake_x = dataGenerator.x.value; - currentReading.fake_y = dataGenerator.y.value; - currentReading.fake_z = dataGenerator.z.value; - - if (debugMode) { - } - } - - /* - * \brief Initializes the related generators - */ - var generators = ` - // Initialize the data generator, if not initialized before - var dataGenerator = dataGenerator || new DataGenerator(); - `; - - var helping_functions = sensorapi_prng_functions - + DataGenerator + shake + updateReadings; - var hc = init_data + orig_getters + helping_functions + generators; - - var wrappers = [ - { - parent_object: "Gyroscope.prototype", - parent_object_property: "x", - wrapped_objects: [], - helping_code: hc, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Gyroscope.prototype", - parent_object_property: "x", - wrapped_objects: [], - /** \brief replaces Sensor.prototype.x getter to return a faked value - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - updateReadings(this); - return currentReading.fake_x; - }`, - }, - ], - } - ], - }, - { - parent_object: "Gyroscope.prototype", - parent_object_property: "y", - wrapped_objects: [], - helping_code: hc, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Gyroscope.prototype", - parent_object_property: "y", - wrapped_objects: [], - /** \brief replaces Sensor.prototype.y getter to return a faked value - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - updateReadings(this); - return currentReading.fake_y; - }`, - }, - ], - } - ], - }, - { - parent_object: "Gyroscope.prototype", - parent_object_property: "z", - wrapped_objects: [], - helping_code: hc, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Gyroscope.prototype", - parent_object_property: "z", - wrapped_objects: [], - /** \brief replaces Sensor.prototype.z getter to return a faked value - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - updateReadings(this); - return currentReading.fake_z; - }`, - }, - ], - } - ], - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-LIGHT.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-LIGHT.js deleted file mode 100644 index f995640..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-LIGHT.js +++ /dev/null @@ -1,96 +0,0 @@ -/** \file - * \brief Wrappers for the Ambient Light Sensor - * - * \see https://www.w3.org/TR/ambient-light/ - * - * \author Copyright (C) 2021 Radek Hranicky - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ - // - // This program is free software: you can redistribute it and/or modify - // it under the terms of the GNU General Public License as published by - // the Free Software Foundation, either version 3 of the License, or - // (at your option) any later version. - // - // This program is distributed in the hope that it will be useful, - // but WITHOUT ANY WARRANTY; without even the implied warranty of - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - // GNU General Public License for more details. - // - // You should have received a copy of the GNU General Public License - // along with this program. If not, see <https://www.gnu.org/licenses/>. - // - - /** \file - * \ingroup wrappers - * MOTIVATION - * The AmbientLightSensor returns illuminance of the device's environment. This - * is another value that describes the nearby physical surrounding of the device, - * and can thus be used together with other readings for creating a unique fingerprint. - * - * WRAPPING - * On examined stationary devices inside an office, the illuminance measured - * was between 500 and 900, depending on the concrete position's light conditions. - * All measured values were rounded to nearest 50 illuminance value. - * The wrapper silumlates the same behavior. At start, a pseudorandom illuminance - * value is drawn. As we simulate a stationary device, this value remains constant - * for all AmbientLightSensor.prototype.illuminance calls. - * - * POSSIBLE IMPROVEMENTS - * Simulation of changes in the illuminance. - */ - - /* - * Create private namespace - */ -(function() { - /* - * \brief Generates a pseudorandom faked illuminance value - */ - function drawIlluminance() { - const ILLUMINANCE_MIN = 500 - const ILLUMINANCE_MAX = 900 - const ILLUMINANCE_NEAREST = 50 - - var ilu = sen_prng() * (ILLUMINANCE_MAX - ILLUMINANCE_MIN) + ILLUMINANCE_MIN; - return Math.round(ilu / ILLUMINANCE_NEAREST) * ILLUMINANCE_NEAREST; - } - /* - * \brief Initialization of the illuminance; - */ - var init_data = ` - var illuminance = illuminance || drawIlluminance(); - `; - - var hc = sensorapi_prng_functions + drawIlluminance + init_data; - - var wrappers = [ - { - parent_object: "AmbientLightSensor.prototype", - parent_object_property: "illuminance", - wrapped_objects: [], - helping_code: hc, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "AmbientLightSensor.prototype", - parent_object_property: "illuminance", - wrapped_objects: [], - /** \brief replaces AmbientLightSensor.prototype.illuminance getter to return a faked value - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - return illuminance; - }`, - }, - ], - } - ], - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-MAGNET.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-MAGNET.js deleted file mode 100644 index c713834..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-MAGNET.js +++ /dev/null @@ -1,552 +0,0 @@ -/** \file - * \brief Wrappers for the Magnetometer Sensor - * - * \see https://www.w3.org/TR/magnetometer/ - * - * \author Copyright (C) 2021 Radek Hranicky - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ - // - // This program is free software: you can redistribute it and/or modify - // it under the terms of the GNU General Public License as published by - // the Free Software Foundation, either version 3 of the License, or - // (at your option) any later version. - // - // This program is distributed in the hope that it will be useful, - // but WITHOUT ANY WARRANTY; without even the implied warranty of - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - // GNU General Public License for more details. - // - // You should have received a copy of the GNU General Public License - // along with this program. If not, see <https://www.gnu.org/licenses/>. - // - - /** \file - * \ingroup wrappers - * - * MOTIVATION - * - * Magnetometer is a platform sensor available under the Generic Sensor API. - * Magnetometer measures strength and direction of the magnetic field at device's - * location. The interface offers sensor readings using three properties: x, y, and z. - * Each returns a number that describes the magnetic field aroud the particular axis. - * The numbers have a double precision and can be positive or negative, depending - * on the orientation of the field. The total strength of the magnetic field (M) - * can be calculated as M = sqrt(x^2 + z^2 + y^2). The unit is in microtesla (µT). - * - * The Earth's magnetic field ranges between approximately 25 and 65 µT. Concrete - * values depend on location, altitude, weather, interference made by other electric. - * devices, etc. While we consider it is unlikely that someone determines the precise - * location of the device from the Mangetometer values, its data can be used for - * fingerprinting. For instance, it can be determined wheter the device is moving or not. - * In case of a stationary device, we can make a fingerprint from the device's orientation. - * Another fingerprintable value is the average total strength of the field, which - * should remain stable if the device is at the same position and in the same environment. - * - * - * WRAPPING - * - * To protect the device, we are wrapping the x, y, z getters of the - * `Magnetometer.prototype` object. Instead of using the original data, we use - * artificially generated values that look like actual sensor readings. - * - * At every moment, our wrapper stores information about the previous reading. Each - * rewrapped getter first checks the `timestamp` value of the sensor object. If there - * is no difference from the previous reading's timestamp, the wrapper returns the - * last measured value. Otherwise, it provides a new fake reading. - * - * We designed our fake field generator to fulfill the following properties: - * - * - The randomness of the generator should be high enough to prevent attackers from - * deducing the sensor values. - * - Multiple scripts from the same website that access readings with the same - * timestamp must get the same results. And thus: - * - The readings are deterministic - e.g., for a given website and time, we must - * be able to say what values to return. - * - * For every "random" draw, we use the Mulberry32 sen_prng that is seeded with a value - * generated from the `domainHash` which ensures deterministic behavior for the given - * website. First, we choose the desired total strength `M` of the magnetic field at - * our simulated location. This is a pseudo-random number from 25 to 60 uT, like on - * the Earth. - * - * We support two variants of settings the initial axes orientaton: - * - A pseudorandom draw (RANDOM_AXES_ORIENTATION = true) - the original implementation - * - Calculation from the faked device rotation (shared by other wrappers) - improved version - * - * For both methods, the orientation is defined by a number from -1 to 1 for each axis: - * `baseX`, `baseY`, and `baseZ`. By modifying the above-shown formula, we calculate - * the `multiplier` that needs to be applied to the base values to get the desired field. - * The calculation is done as follows: - * - mult = (M * sqrt(baseX^2 + baseY^2 + baseZ^2) / (baseX^2 + baseY^2 + baseZ^2)) - * Now, we know that for axis `x`, the value should fluctuate around `baseX * mult`, etc. - * - * How much the field changes over time is specified by the fluctuation factor (0;1] - * that can also be configured. For instance, 0.2 means that the magnetic field on - * the axis may change from the base value by 20% in both positive and negative way. - * - * The fluctuation is simulated by using a series of **sine** functions for each axis. - * Each sine has a unique amplitude, phase shift, and period. The number of sines per - * axis is chosen pseudorandomly based on the wrapper settings. For initial experiments, - * we used around 20 to 30 sines for each axis. The optimal configuration is in question. - * More sines give less predictable results, but also increase the computing complexity - * that could have a negative impact on the browser's performance. - * - * For the given timestamp `t`, we make the sum of all sine values at the point `x=t`. - * The result is then shifted over the y-axis by adding `base[X|Y|Z] * multiplier` to - * the sum. The initial configuration of the fake field generator was chosen intuitively - * to resemble the results of the real measurements. Currently, the generator uses at - * least one sine with the period around 100 us (with 10% tolerance), which seems to be - * the minimum sampling rate obtainable using the API on mobile devices. Then, at least - * one sine around 1 s, around 10 s, 1 minute, and 1 hour. When more than 5 sines are - * used, the cycle repeats using `modulo 5` and creates a new sine with the period around - * 100 us, but this time the tolerance is 20%. The same follows for seconds, tens of - * seconds, minutes, hours. The tolerance grows every 5 sines. For 11+ sines, the tolerance - * is 30% up to the maximum (currently 50%). The amplitude of each sine is chosen pseudo- - * randomly based on the **fluctuation factor** described above. The phase shift of each - * sine is also pseudo-random number from [0;2PI). - * - * Based on the results, this heuristic returns belivable values that look like actual - * sensor readings. Nevertheless, the generator uses a series of constants, whose optimal - * values should be a subject of future research and improvements. Perphaps, a correlation - * analysis with real mesurements could help in the future. - * - * - * POSSIBLE IMPROVEMENTS - * Non-stationary devices can be supported if the baseX,Y,Z is updated with each movement. - * Do more experiments in real environments and possibly update the reference magnetic field - * vector, or the sine generator, e.g. by simulating temporary pseudorandom electromagnetic - * interferences, etc. - */ - - /* - * Create private namespace - */ -(function() { - /* - * \brief Initialization of data for storing sensor readings - */ - var init_data = ` - var currentReading = currentReading || {orig_x: null, orig_y: null, orig_z: null, timestamp: null, - fake_x: null, fake_y: null, fake_z: null}; - var previousReading = previousReading || {orig_x: null, orig_y: null, orig_z: null, timestamp: null, - fake_x: null, fake_y: null, fake_z: null}; - var emulateStationaryDevice = (typeof args === 'undefined') ? true : args[0]; - var debugMode = false; - - const TWOPI = 2 * Math.PI; - `; - - /* - * \brief Property getters of the original sensor object - */ - var orig_getters = ` - var origGetX = Object.getOwnPropertyDescriptor(Magnetometer.prototype, "x").get; - var origGetY = Object.getOwnPropertyDescriptor(Magnetometer.prototype, "y").get; - var origGetZ = Object.getOwnPropertyDescriptor(Magnetometer.prototype, "z").get; - var origGetTimestamp = Object.getOwnPropertyDescriptor(Sensor.prototype, "timestamp").get; - `; - - /* - * \brief Constructor of the sine configuration object - */ - function SineCfg() { - this.center = 0; - this.amplitude = 1; - this.shift = 0; - this.period = 1; - } - - /* - * \brief Creates sine configurations based on the given settings - * - * \param Minimum number of sines - * \param Maximum number of sines - * \param Center 'y' value that the sine should spin around - * \param Minimal fluctuation factor of a sine - * \param Maximal fluctuation factor of a sine - * \param Minimal period of a sine - * \param Maximal period of a sine - */ - function configureSines(cntMin, cntMax, center, flucMin, fluctMax, periodMin, periodMax) { - // This is helping function for the field generator - // Configures an array of sines for the given settings - - // How many sines we have? - var cnt = Math.floor(sen_prng() * (cntMax - cntMin + 1) + cntMin); - - // max difference from base period - const TOLERANCE_MAX = 0.5; - - // What is the typical amplitude for these sines? - var sineAmplitude = center / cnt; - - var fluctMinMax = flucMin - fluctMax; - let sines = []; - let iteration = 0; - let tolerance = 0.1; - - for (let i = 0; i < cnt; i++) { - let s = new SineCfg(); - let fluctuationFactor = sen_prng() * (fluctMinMax) + fluctMax; - - s.center = center; - s.amplitude = sineAmplitude * fluctuationFactor; - s.shift = sen_prng() * TWOPI; - - let series = i % 5; - - switch(series) { - - case 0: - iteration += 1; - - // increase tolerance for new iterations - if (iteration > 1 && tolerance < TOLERANCE_MAX) { - tolerance += 0.1; - } - - // Minimal sampling rate (default: 100 miliseconds) - s.period = sen_generateAround(periodMin, tolerance); - break; - case 1: // Seconds - s.period = sen_generateAround(1000, tolerance); - break; - case 2: // Tens of seconds - s.period = sen_generateAround(10000, tolerance); - break; - case 3: // Minutes - s.period = sen_generateAround(60000, tolerance); - break; - case 4: // Hours - s.period = sen_generateAround(3600000, tolerance); - break; - } - sines.push(s); - } - return sines; - } - - /* - * \brief Fake magnetic field generator class - * (Modify the constants below to change the generator's behavior.) - */ - class FieldGenerator { - constructor() { - // Specifies, how much the values may (pseudorandomly) oscillate, - // i.e., how much the may relatively differ from the chosen center value - // in both positiva and negative way - this.FLUCTUATION_MIN = 0.20; - this.FLUCTUATION_MAX = 0.45; - this.AXES_OSCILLATE_DIFFERENTLY = true; - - this.NUMBER_OF_SINES_MIN = 25; - this.NUMBER_OF_SINES_MAX = 30; - - // Shifts the phase of each axis randomly [0, 2*PI) - this.RANDOM_PHASE_SHIFT = true; - - // Minimum sampling rate of the device(s) - // Motivation: It does not have sense to waste computing resources - // by oscillating in periods smaller than this value - this.MIN_SAMPLING_RATE = 100; // [ms] - - // Period configuration - this.PERIOD_MIN = this.MIN_SAMPLING_RATE; - this.PERIOD_MAX = 60000 // 1 minute - - // Defines whether the axes orientation is generated pseudorandomly - // true = A PRNG is used to draw the orientation of x/y/z axes - // false = orientation is calculated from the Earth's reference - // coordinate system and the (faked) orientation of the - // phone defined by the global rotation matrix (orient.rotMat) - this.RANDOM_AXES_ORIENTATION = false; - - let m = generateBaseField(); - - // Base of each axis - var baseX = 0; - var baseY = 0; - var baseZ = 0; - - // Calculate the axes base - if (this.RANDOM_AXES_ORIENTATION) { - /* - * Pseudorandom axes orientation - * - * The generateRandomAxisBase() is used to draw a number between - * -1 and 1 for each axis base. - */ - baseX = generateRandomAxisBase(); - baseY = generateRandomAxisBase(); - baseZ = generateRandomAxisBase(); - } else { - /* - * Calculation of axes orientation from the device's rotation - * - * The magnetic field vector is oriented towards the Earth's magnetic - * north and towards the center of the earth. - */ - let referenceMagVec = [0, 0.4, -0.6]; - - /* - * Actual field's strengths in all directions, based on the orientation: - * (Tested on Samsung Galaxy S21 Ultra [And12] and Xiaomi Redmi 9 [And11]) - * - * Legend: - * -- ... highly negative - * - ... negative - * 0 ... zero - * + ... positive - * ++ ... highly positive - * - * +-------+-------+------+---+---+---+ - * | yaw | pitch | roll | x | y | z | - * +-------+-------+------+---+---+---+ - * | 0 0 0 0 + -- | - * | PI 0 0 0 - -- | - * | PI/2 0 0 - 0 -- | - * | -PI/2 0 0 + 0 -- | - * +----------------------------------+ - */ - - // The vector is rotated using the device's fake rotation matrix - var deviceMagVec = multVectRot(referenceMagVec, orient.rotMat); - - if (debugMode) { - } - - // The orientation is taken from the elements of the vector - baseX = deviceMagVec[0]; - baseY = deviceMagVec[1]; - baseZ = deviceMagVec[2]; - } - - var baseX2 = Math.pow(baseX,2) - var baseY2 = Math.pow(baseY,2) - var baseZ2 = Math.pow(baseZ,2) - - // The total magnetic field strength is calculated as: - // m = sqrt(x^2, y^2, z^2) - // where x,y,z are strengs in individual directions (axes). - // - // For x,y,z, the algorithm generates a sine-based fluctuation around - // a center value for each axis. For axis x, it is calculated as: - // x = baseX * multiplier - // - // At this moment, we have calculate the basis (-1,1) for each axis. - // Now, we calculate the multiplier: - // - // m + sqrt(baseX^2 + baseY^2 + baseZ^2) - // multiplier = +/- ------------------------------------- - // baseX^2 + baseY^2 + baseZ^2 - // - // Values at axis X will oscillate around: baseX * multiplier, etc. - - let mult = (m * Math.sqrt(baseX2 + baseY2 + baseZ2)) - / (baseX2 + baseY2 + baseZ2); - - this.baseField = m, - this.multiplier = mult, - this.x = { - base: baseX, - center: baseX * mult, - sines: [], - value: null - }; - this.y = { - base: baseY, - center: baseY * mult, - sines: [], - value: null - }; - this.z = { - base: baseZ, - center: baseZ * mult, - sines: [], - value: null - }; - - this.x.sines = configureSines(this.NUMBER_OF_SINES_MIN, this.NUMBER_OF_SINES_MAX, this.x.center, - this.FLUCTUATION_MIN, this.FLUCTUATION_MAX, this.PERIOD_MIN, this.PERIOD_MAX); - this.y.sines = configureSines(this.NUMBER_OF_SINES_MIN, this.NUMBER_OF_SINES_MAX, this.y.center, - this.FLUCTUATION_MIN, this.FLUCTUATION_MAX, this.PERIOD_MIN, this.PERIOD_MAX); - this.z.sines = configureSines(this.NUMBER_OF_SINES_MIN, this.NUMBER_OF_SINES_MAX, this.z.center, - this.FLUCTUATION_MIN, this.FLUCTUATION_MAX, this.PERIOD_MIN, this.PERIOD_MAX); - } - - // Updates the x/y/z values based on timestamp - update(t) { - // Simulate the magnetic field fluctuation based on settings - // Center is added only once - we want to y-shift the result, not individial sines - this.x.value = this.x.center + this.x.sines.reduce(function (val, s) { - return val + (Math.sin(t * (TWOPI/s.period) + s.shift) * s.amplitude); - }, 0); - this.y.value = this.y.center + this.y.sines.reduce(function (val, s) { - return val + (Math.sin(t * (TWOPI/s.period) + s.shift) * s.amplitude); - }, 0); - this.z.value = this.z.center + this.z.sines.reduce(function (val, s) { - return val + (Math.sin(t * (TWOPI/s.period) + s.shift) * s.amplitude); - }, 0); - } - } - - /* - * \brief Pseudorandomly draws the desired total magnetic field around the device - */ - function generateBaseField() { - const FIELD_MIN = 25; - const FIELD_MAX = 60; - return sen_prng() * (FIELD_MIN - FIELD_MAX) + FIELD_MAX; - } - - /* - * \brief Pseudorandomly draws the orientation of X, Y, Z axes - */ - function generateRandomAxisBase() { - // Returns a number in (-1,1) - var v = sen_prng(); // Random in [0,1) - v *= Math.round(sen_prng()) ? 1 : -1; // 50% change for positive / negative - return v; - } - - /* - * \brief Updates the stored (both real and fake) sensor readings - * according to the data from the sensor object. - * - * \param The sensor object - */ - function updateReadings(sensorObject) { - // We need the original reading's timestamp to see if it differs - // from the previous sample. If so, we need to update the faked x,y,z - let previousTimestamp = previousReading.timestamp; - let currentTimestamp = origGetTimestamp.call(sensorObject); - - if (debugMode) { - // [!] Debug mode: overriding timestamp - // This allows test suites to set a custom timestamp externally - // by modifying the property of the Magnetometer object directly. - currentTimestamp = sensorObject.timestamp; - } - - if (currentTimestamp === previousTimestamp) { - // No new reading, nothing to update - return; - } - - // Rotate the readings: previous <- current - previousReading = JSON.parse(JSON.stringify(currentReading)); - - // Update current reading - // NOTE: Original values are also stored for possible future use - // in improvements of the magnetic field generator - currentReading.orig_x = origGetX.call(sensorObject); - currentReading.orig_y = origGetY.call(sensorObject); - currentReading.orig_z = origGetZ.call(sensorObject); - currentReading.timestamp = currentTimestamp; - - fieldGenerator.update(currentTimestamp); - currentReading.fake_x = fieldGenerator.x.value; - currentReading.fake_y = fieldGenerator.y.value; - currentReading.fake_z = fieldGenerator.z.value; - - if (debugMode) { - } - } - - /* - * \brief Initializes the related generators - */ - var generators = ` - // Initialize the field generator, if not initialized before - var fieldGenerator = fieldGenerator || new FieldGenerator(); - `; - - var helping_functions = sensorapi_prng_functions + device_orientation_functions - + SineCfg + configureSines + FieldGenerator - + generateBaseField + generateRandomAxisBase + updateReadings; - var hc = init_data + orig_getters + helping_functions + generators; - - var wrappers = [ - { - parent_object: "Magnetometer.prototype", - parent_object_property: "x", - wrapped_objects: [], - helping_code: hc, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Magnetometer.prototype", - parent_object_property: "x", - wrapped_objects: [], - /** \brief replaces Sensor.prototype.x getter to return a faked value - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - updateReadings(this); - return currentReading.fake_x; - }`, - }, - ], - } - ], - }, - { - parent_object: "Magnetometer.prototype", - parent_object_property: "y", - wrapped_objects: [], - helping_code: hc, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Magnetometer.prototype", - parent_object_property: "y", - wrapped_objects: [], - /** \brief replaces Sensor.prototype.y getter to return a faked value - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - updateReadings(this); - return currentReading.fake_y; - }`, - }, - ], - } - ], - }, - { - parent_object: "Magnetometer.prototype", - parent_object_property: "z", - wrapped_objects: [], - helping_code: hc, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Magnetometer.prototype", - parent_object_property: "z", - wrapped_objects: [], - /** \brief replaces Sensor.prototype.z getter to return a faked value - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - updateReadings(this); - return currentReading.fake_z; - }`, - }, - ], - } - ], - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-ORIENT.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-ORIENT.js deleted file mode 100644 index 9a87004..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR-ORIENT.js +++ /dev/null @@ -1,276 +0,0 @@ -/** \file - * \brief Wrappers for the AbsoluteOrientationSensor and RelativeOrientationSensor - * - * \see https://www.w3.org/TR/orientation-sensor - * \see https://www.w3.org/TR/orientation-sensor/#absoluteorientationsensor-model - * \see https://www.w3.org/TR/orientation-sensor/#relativeorientationsensor-model - * - * \author Copyright (C) 2021 Radek Hranicky - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ - // - // This program is free software: you can redistribute it and/or modify - // it under the terms of the GNU General Public License as published by - // the Free Software Foundation, either version 3 of the License, or - // (at your option) any later version. - // - // This program is distributed in the hope that it will be useful, - // but WITHOUT ANY WARRANTY; without even the implied warranty of - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - // GNU General Public License for more details. - // - // You should have received a copy of the GNU General Public License - // along with this program. If not, see <https://www.gnu.org/licenses/>. - // - - /** \file - * \ingroup wrappers - * - * MOTIVATION - * Device orientation sensors can be easily used for fingerprinting. As it highly - * unlikely that two devices visiting the same site will be oriented exactly - * the same, the orientation itself can serve as a fingerprint. - * - * - * WRAPPING - * AbsoluteOrientationSensor returns a quaterion decribing the physical - * orientation of the device in relation to the Earth's reference coordinate - * system. The faked orientation of the device is saved inside the "orient" - * global variable that is accessible to all wrappers. The value is chosen - * pseudorandomly from the domain hash. The wrappper supports possible change - * of orientation. With each reading, it loads the "orient"'s contents, - * converts the rotation matrix to a quaternion that is returned by the wrapped - * getter. - * - * RelativeOrientationSensor also describes the orientation, but without - * regard to the Earth's reference coordinate system. We suppose the coordinate - * system is chosen at the beginning of the sensor instance creation. - * As we observed, no matter how the device is oriented, there is always a slight - * difference from the AbsoluteOrientationSensor's in at least one axis. - * When the device moves, both sensors' readings change. But their difference - * should be always constant. And thus, we pseudorandomly generate a deviation - * from the Earth's reference coordinate system. And for each reading, we - * take the values from the fake AbsoluteOrientationSensor and modify them - * by the constant deviation. - * - * POSSIBLE IMPROVEMENTS - * Study the supported coordinate systems of the RelativeOrientationSensor - * and modify the wrapper behavior if needed. - */ - - /* - * Create private namespace - */ -(function() { - /* - * \brief Initialization of data for storing sensor readings - */ - var init_data = ` - var currentReading = currentReading || {quaternion: null, fake_quaternion: null, fake_quaternion_rel: null, timestamp: null}; - var previousReading = previousReading || {quaternion: null, fake_quaternion: null, fake_quaternion_rel: null, timestamp: null}; - var debugMode = false; - - const TWOPI = 2 * Math.PI; - `; - - /* - * \brief Property getters of the original sensor object - */ - var orig_getters = ` - var origGetQuaternion = Object.getOwnPropertyDescriptor(OrientationSensor.prototype, "quaternion").get; - var origGetTimestamp = Object.getOwnPropertyDescriptor(Sensor.prototype, "timestamp").get; - `; - - /* - * \brief Convert a given 3D rotation matrix to quaternion - * - * \param Rotation matrix - */ - function matrixToQuaternion(rot) { - var q = {x: null, y: null, z: null, w: null}; - var m; - if (rot[2][2] < 0) { - if (rot[0][0] > rot[1][1]) { - m = 1 + rot[0][0] -rot[1][1] -rot[2][2]; - q.x = m; - q.y = rot[0][1]+rot[1][0]; - q.z = rot[2][0]+rot[0][2]; - q.w = rot[1][2]-rot[2][1]; - } else { - m = 1 -rot[0][0] + rot[1][1] -rot[2][2]; - q.x = rot[0][1]+rot[1][0]; - q.y = m; - q.z = rot[1][2]+rot[2][1]; - q.w = rot[2][0]-rot[0][2]; - } - } else { - if (rot[0][0] < -rot[1][1]) { - m = 1 -rot[0][0] -rot[1][1] + rot[2][2]; - q.x = rot[2][0]+rot[0][2]; - q.y = rot[1][2]+rot[2][1]; - q.z = m; - q.w = rot[0][1]-rot[1][0]; - } else { - m = 1 + rot[0][0] + rot[1][1] + rot[2][2]; - q.x = rot[1][2]-rot[2][1]; - q.y = rot[2][0]-rot[0][2]; - q.z = rot[0][1]-rot[1][0]; - q.w = m; - } - } - var multiplier = 0.5 / Math.sqrt(m); - - q.x *= multiplier; - q.y *= multiplier; - q.z *= multiplier; - q.w *= multiplier; - - return q; - } - - /* - * \brief The fake quaternion generator class - * Note: Requires "orient" global var to be set. - */ - class QuaternionGenerator { - constructor() { - this.DEVIATION_MIN = 0; - this.DEVIATION_MAX = (Math.PI / 2) / 90 * 10; // 10° - - this.quaternion = null; - this.quaternion_rel = null; - - this.yawDeviation = this.generateDeviation(); - this.pitchDeviation = this.generateDeviation(); - this.rollDeviation = this.generateDeviation(); - } - - /* - * \brief Generates the rotation deviation - */ - generateDeviation() { - var devi = sen_prng() * (this.DEVIATION_MAX - this.DEVIATION_MIN) + this.DEVIATION_MIN; - devi *= Math.round(sen_prng()) ? 1 : -1; - return devi; - } - - /* - * \brief Updates the fake quaternions - * - * \param Current timestamp from the sensor object - */ - update(t) { - // Calculate quaternion for absolute orientation - var rotMat = orient.rotMat; // Get the device rotation matrix - - var q = matrixToQuaternion(rotMat); - this.quaternion = [ - fixedNumber(q.x, 3), - fixedNumber(q.y, 3), - fixedNumber(q.z, 3), - fixedNumber(q.w, 3) - ]; - - // Calculate quaternion for relative orientation - var relYaw = (orient.yaw + this.yawDeviation) % TWOPI; - var relPitch = (orient.pitch + this.pitchDeviation) % TWOPI; - var relRoll = (orient.roll + this.rollDeviation) % TWOPI; - - var relMat = calculateRotationMatrix(relYaw, relPitch, relRoll); - - var qr = matrixToQuaternion(relMat); - this.quaternion_rel = [ - fixedNumber(qr.x, 3), - fixedNumber(qr.y, 3), - fixedNumber(qr.z, 3), - fixedNumber(qr.w, 3) - ]; - } - } - - /* - * \brief Updates the stored (both real and fake) sensor readings - * according to the data from the sensor object. - * - * \param The sensor object - */ - function updateReadings(sensorObject) { - // We need the original reading's timestamp to see if it differs - // from the previous sample. If so, we need to update the faked quaternion - let previousTimestamp = previousReading.timestamp; - let currentTimestamp = origGetTimestamp.call(sensorObject); - if (debugMode) { - // [!] Debug mode: overriding timestamp - // This allows test suites to set a custom timestamp externally - // by modifying the property of the Magnetometer object directly. - currentTimestamp = sensorObject.timestamp; - } - if (currentTimestamp === previousTimestamp) { - // No new reading, nothing to update - return; - } - - // Rotate the readings: previous <- current - previousReading = JSON.parse(JSON.stringify(currentReading)); - // Update current reading - // NOTE: Original values are also stored for possible future use - // in improvements of the magnetic field generator - currentReading.orig_quaterion = origGetQuaternion.call(sensorObject); - currentReading.timestamp = currentTimestamp; - quaternionGenerator.update(currentTimestamp); - currentReading.fake_quaternion = quaternionGenerator.quaternion; - currentReading.fake_quaternion_rel = quaternionGenerator.quaternion_rel; - - if (debugMode) { - } - } - - /* - * \brief Initializes the related generators - */ - var generators = ` - // Initialize the quaternion generator, if not initialized before - var quaternionGenerator = quaternionGenerator || new QuaternionGenerator(); - `; - - var helping_functions = sensorapi_prng_functions + device_orientation_functions - + matrixToQuaternion + QuaternionGenerator + updateReadings; - var hc = init_data + orig_getters + helping_functions + generators; - - var wrappers = [ - { - parent_object: "OrientationSensor.prototype", - parent_object_property: "quaternion", - wrapped_objects: [], - helping_code: hc, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "OrientationSensor.prototype", - parent_object_property: "quaternion", - wrapped_objects: [], - /** \brief replaces OrientationSensor.quaternion getter to return a faked value - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - updateReadings(this); - if (this.__proto__.constructor.name === 'AbsoluteOrientationSensor') { - // AbsoluteOrientationSensor - return currentReading.fake_quaternion; - } else { - // RelativeOrientationSensor - return currentReading.fake_quaternion_rel; - } - }`, - }, - ], - } - ], - } - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR.js deleted file mode 100644 index a61b617..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-SENSOR.js +++ /dev/null @@ -1,136 +0,0 @@ -/** \file - * \brief Wrappers for Generic Sensor API - * - * \see https://www.w3.org/TR/generic-sensor/ - * - * \author Copyright (C) 2021 Radek Hranicky - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * MOTIVATION - * The risk of using Generic Sensor API calls for device fingerprinting is - * mentioned within the W3C Candidate Recommendation Draft, 29 July 2021 - * (https://www.w3.org/TR/2021/CRD-generic-sensor-20210729/#device-fingerprinting) - * Documented threats include manufacturing imperfections and differences - * that are unique to the concrete model of the device and can be used - * for fingerprinting. - * - * We discovered another loophole in the `Sensor.timestamp` attribute. The value - * describes when the last `Sensor.onreading` event occurred, in millisecond precision. - * We observed the time origin is not the time of browsing context creation - * but the last boot time of the device. Exposing such information is dangerous - * as it allows to fingerprint the user easily. It is unlikely that two different - * devices will boot at exactly the same time. - * - * Tested with the Magnetometer sensor on the following devices: - * - Samsung Galaxy S21 Ultra; Android 11, kernel 5.4.6-215566388-abG99BXXU3AUE1, Build/RP1A.200720.012.G998BXXU3AUE1 - * Chrome 94.0.4606.71 and Kiwi (Chromium) 94.0.4606.56 - * - Xiaomi Redmi Note 5; Android 9, kernel 4.4.156-perf+, Build/9 PKQ1.180901.001 - * Chrome 94.0.4606.71 - * - * - * WRAPPING - * - * The wrapper thus protects device by changing the time origin to the browsing context - * creation time, whereas the timestamp should still uniquely identify the reading. - * This is achieved in the following way: - * - At the first reading, we calculate the difference between the original value - * and performance.now(). This gives us the offset between 1) the device boot - * and 2) the page context initialization. - * - On every reading, the offset is subtracted from the original value. The resulting - * value then uniquely identifies the reading sample without exposing the boot time. - * - Like in the other time precision wrappers, the resulting timestamp is processed - * by the mitigation function before return. The mitigation may round and (optionally) - * add noise to the resulting timestamp. - * - * - * POSSIBLE IMPROVEMENTS - * in protection level 2, the timestamp origin may be set to a random value based - * on the session hash. This can serve as a "fake boot time." - */ - - /* - * Create private namespace - */ - (function() { - - var remember_past_values = `var precision = args[0]; - var doNoise = args[1]; - var pastValues = {}; - ${rounding_function} - ${noise_function} - var mitigationF = rounding_function; - if (doNoise === true){ - mitigationF = function(value, precision) { - let params = [value, precision]; - if (params in pastValues) { - return pastValues[params]; - } - let result = noise_function(...params); - pastValues[params] = result; - return result; - } - } - var offsetCompStartPageStart = undefined; - `; - - var wrappers = [ - { - /** - * \see https://dom.spec.whatwg.org/#ref-for-dom-event-timestamp%E2%91%A0 - */ - parent_object: "Sensor.prototype", - parent_object_property: "timestamp", - wrapped_objects: [], - helping_code: remember_past_values + `let origGet = Object.getOwnPropertyDescriptor(Sensor.prototype, "timestamp").get`, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "Sensor.prototype", - parent_object_property: "timestamp", - wrapped_objects: [], - /** \brief replaces Sensor.prototype.timestamp getter to create - * a timestamp with the desired precision. - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - orig_val = origGet.call(this); - if (typeof orig_val != 'number') { - // Sensor is not available or there is no reading yet. - return orig_val; - } - if (offsetCompStartPageStart === undefined) { - // The offset has not been set yet so it needs to be calculated. - offsetCompStartPageStart = orig_val - performance.now(); - } - return mitigationF(orig_val - offsetCompStartPageStart, precision); - }`, - }, - ], - } - ], - }, - ] - add_wrappers(wrappers); - })() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-TEMPORAL.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-TEMPORAL.js deleted file mode 100644 index 0a68cc9..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-TEMPORAL.js +++ /dev/null @@ -1,89 +0,0 @@ -/** \file - * \brief Wrappers for High Resolution Time (Level 2) standard - * - * \see https://w3c.github.io/hr-time/ - * - * \author Copyright (C) 2025 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - - -/** \file - * \ingroup wrappers - * - * This wrapper aims on prevention of microarchitectural attacks, clock-skew attacks, and other time - * related attacks. The goal is to limit the precision of the time returned by the Temporal API. - * - * \see https://www.fit.vut.cz/study/thesis/22308/?year=0&sup=Pol%C4%8D%C3%A1k, especially Sect. - * 7.2. - * - * \see Tom Van Goethem, Wouter Joosen, Nick Nikiforakis. The Clock is Still Ticking: -Timing Attacks in the Modern Web. CCS'15. DOI: http://dx.doi.org/10.1145/2810103.2813632. -https://lirias.kuleuven.be/retrieve/389086 - * - * \see Schwarz, M., Lipp, M. a Gruss, D. JavaScript Zero: Real JavaScript and Zero - * Side-Channel Attacks. NDSS'18. - * - * \see Schwarz M., Maurice C., Gruss D., Mangard S. (2017) Fantastic Timers and Where to Find Them: High-Resolution Microarchitectural Attacks in JavaScript. In: Kiayias A. (eds) Financial Cryptography and Data Security. FC 2017. Lecture Notes in Computer Science, vol 10322. Springer, Cham. https://doi.org/10.1007/978-3-319-70972-7_13 - * - * The wrappers support the following behaviour: - * - * * Round timestamp: Limit the precision by removing (a part of) the decimal part of the timestamp. - * * Randomize after rounding: Create a fake decimal part to confuse attackers and to create - * timestamps that look similar to expected timestamps. - */ - - - -/* - * Create private namespace - */ -(function() { - var wrappers = [ - { - parent_object: "Temporal.Now", - parent_object_property: "instant", - wrapped_objects: [ - { - original_name: "Temporal.Now.instant", - wrapped_name: "originalTemporalNowInstant", - }, - ], - helping_code: rounding_function + noise_function + - ` - var precision = args[0]; - var doNoise = args[1]; - var func = rounding_function; - if (doNoise) { - func = noise_function; - } - `, - wrapping_function_args: "", - wrapping_function_body: ` - var original = originalTemporalNowInstant(); - var originalEpochMilliseconds = original.epochMilliseconds; - var changedValue = func(originalEpochMilliseconds, precision); - var fakeInstant = new Temporal.Instant(BigInt(changedValue) * 1000000n); // Note that we cannot return this value as it may contain different zone and other metadata to the original - var durationUntil = original.until(fakeInstant); - var result = original.add(durationUntil); - return result; - `, - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-VR.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-VR.js deleted file mode 100644 index 82b076f..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-VR.js +++ /dev/null @@ -1,118 +0,0 @@ -/** \file - * \brief This file contains wrappers for the original Virtual Reality API - * - * \see https://immersive-web.github.io/webvr/spec/1.1/ - * - * \author Copyright (C) 2021 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * navigator.activeVRDisplays() allows any page script to learn the VR - * displays attached to the computer. - * - * U. Iqbal, S. Englehardt and Z. Shafiq, "Fingerprinting the - * Fingerprinters: Learning to Detect Browser Fingerprinting Behaviors," - * in 2021 2021 IEEE Symposium on Security and Privacy (SP), San Francisco, - * CA, US, 2021 pp. 283-301 observed - * (https://github.com/uiowa-irl/FP-Inspector/blob/master/Data/potential_fingerprinting_APIs.md) - * that the interface is used in the wild to fingerprint users. As it is - * likely that only a minority of users have a VR display connected and the API - * provides additional information on the HW, it is likely that users with - * a VR display connected are easily fingerprintable. - * - * As we expect that the majority of the users does not have a VR display - * connected, we provide only a single mitigation - the wrapped APIs returns - * an empty list. - * - * \bug The standard provides events *vrdisplayconnect*, *vrdisplaydisconnect* - * *vrdisplayactivate* and *vrdisplaydeactivate* that fires at least on the - * window object. We do not mitigate the event to fire and consequently, it is - * possible that an adversary can learn that a VR display was (dis)connected but - * there was no change in the result of the navigator.activeVRDisplays() API. - * - * The VRFrameData object carries a timestamp. As we allow wrapping of several - * ways to obtain timestamps, we need to provide the same precision for the - * VRFrameData object. - */ - -(function() { - var remember_past_ts_values = `var precision = args[0]; - var doNoise = args[1]; - var pastValues = {}; - ${rounding_function} - ${noise_function} - var mitigationF = rounding_function; - if (doNoise === true){ - mitigationF = function(value, precision) { - let params = [value, precision]; - if (params in pastValues) { - return pastValues[params]; - } - let result = noise_function(...params); - pastValues[params] = result; - return result; - } - } - `; - var wrappers = [ - { - parent_object: "Navigator.prototype", - parent_object_property: "activeVRDisplays", - wrapped_objects: [], - helping_code: "", - wrapping_function_body: ` - return Promise.resolve(new window.Array()); - `, - }, - { - /** - * \see https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/timestamp - * \note that at the time of the writing of the prototype, we did not have - * access to a VR display and this code was not tested. - */ - parent_object: "VRFrameData.prototype", - parent_object_property: "timestamp", - wrapped_objects: [], - helping_code: remember_past_ts_values + `let origGet = Object.getOwnPropertyDescriptor(VRFrameData.prototype, "timestamp").get`, - post_wrapping_code: [ - { - code_type: "object_properties", - parent_object: "VRFrameData.prototype", - parent_object_property: "timestamp", - wrapped_objects: [], - /** \brief replaces VRFrameData.timestamp getter to create - * a timestamp with the desired precision. - */ - wrapped_properties: [ - { - property_name: "get", - property_value: ` - function() { - return mitigationF(origGet.call(this), precision); - }`, - }, - ], - } - ], - }, - ] - add_wrappers(wrappers); -})() diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-WEBA.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-WEBA.js deleted file mode 100644 index 8bd7041..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-WEBA.js +++ /dev/null @@ -1,365 +0,0 @@ -/** \file - * \brief Wrappers for Web Audio API - * - * \see https://webaudio.github.io/web-audio-api - * - * \author Copyright (C) 2021 Matus Svancar - * \author Copyright (C) 2023 Martin Zmitko - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - * \license SPDX-License-Identifier: MPL-2.0 - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// -// Alternatively, the contents of this file may be used under the terms -// of the Mozilla Public License, v. 2.0, as described below: -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this file, -// You can obtain one at http://mozilla.org/MPL/2.0/. -// -// \copyright Copyright (c) 2020 The Brave Authors. - -/** \file - * This file contains wrappers for AudioBuffer and AnalyserNode related calls - * * https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer - * * https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode - * \ingroup wrappers - * - * The goal is to prevent fingerprinting by modifying the values from functions which are reading/copying from AudioBuffer and AnalyserNode. - * So the audio content of wrapped objects is the same as intended. - * - * The modified content can be either a white noise based on domain key or a fake audio data that is modified according to - * domain key to be different than the original albeit very similar (i.e. the approach - * inspired by the algorithms created by Brave Software <https://brave.com> - * available at https://github.com/brave/brave-core/blob/master/chromium_src/third_party/blink/renderer/core/execution_context/execution_context.cc.) - * - * \note Both approaches are detectable by a fingerprinter that checks if a predetermined audio - * is the same as the read one. Nevertheless, the aim of the wrappers is - * to limit the finerprintability. - * - * \bug Possibly inconsistant data between AudioBuffer and AnalyserNode wrappers. - * - * \bug Inconsistency between AudioBuffer.prototype.copyFromChannel and AudioBuffer.prototype.getChannelData. - * AudioBuffer.prototype.copyFromChannel should call AudioBuffer.prototype.getChannelData wrapper - * and then return result of the original call. - */ - -/* - * Create private namespace - */ -(function() { - /** - * \brief Modifies audio data - * - * \param arr typed array with data - Uint8Array or Float32Array - * - * Depending on level chosen this function modifies arr content: - * * (0) - multiplies values by fudge factor based on domain key - * * (1) - replace values by white noise based on domain key - */ - function audioFarble(array){ - if (wasm.ready && wasm.grow(array.byteLength)) { - try { - farbleAudioWASM(); - } catch (e) { - console.error("WebAssembly optimized farbling failed, falling back to JavaScript implementation", e); - farbleAudioJS(); - } - } else { - farbleAudioJS(); - } - - function farbleAudioWASM() { - const ARRAY_BYTE_LEN = array.byteLength; - wasm.set(array, 0, true); - const crc = wasm.crc16Float(ARRAY_BYTE_LEN); - const mash = new Mash(); - mash.addData(' '); - mash.addData(domainHash); - mash.addData("AudioFarbling"); - mash.addData(crc); - wasm.farbleFloats(ARRAY_BYTE_LEN, mash.n | 0); - array.set(wasm.get(array.length, 0, true)); - } - - function farbleAudioJS() { - // PRNG function needs to depend on the original audio, so that the same - // audio is farbled the same way but different audio is farbled differently - // See https://pagure.io/JShelter/webextension/issue/23 - const ARRAY_LEN = array.length; - const MAXUINT32 = 4294967295; - let crc = new CRC16(); - for (let i = 0; i < ARRAY_LEN; i++) { - crc.single(array[i] * MAXUINT32); - } - var thisaudio_prng = alea(domainHash, "AudioFarbling", crc.crc); - - for (let i = 0; i < ARRAY_LEN; i++) { - // Possible improvements: - // Copy neighbor data (possibly with modifications) - array[i] *= 0.99 + thisaudio_prng() / 100; - } - } - }; - - function audioFarbleInt(array) { - const ARRAY_LEN = array.byteLength; - if (wasm.ready && wasm.grow(ARRAY_LEN)) { - try { - farbleAudioIntWASM(); - } catch (e) { - console.error("WebAssembly optimized farbling failed, falling back to JavaScript implementation", e); - farbleAudioIntJS(); - } - } else { - farbleAudioIntJS(); - } - - function farbleAudioIntWASM() { - wasm.set(array); - const crc = wasm.crc16(ARRAY_LEN); - const mash = new Mash(); - mash.addData(' '); - mash.addData(domainHash); - mash.addData("AudioFarbling"); - mash.addData(crc); - wasm.farbleBytes(ARRAY_LEN, mash.n | 0, false); - array.set(wasm.get(ARRAY_LEN)); - } - - function farbleAudioIntJS() { - // PRNG function needs to depend on the original audio, so that the same - // audio is farbled the same way but different audio is farbled differently - // See https://pagure.io/JShelter/webextension/issue/23 - let crc = new CRC16(); - for (let i = 0; i < ARRAY_LEN; i++) { - crc.single(array[i]); - } - var thisaudio_prng = alea(domainHash, "AudioFarbling", crc.crc); - - for (let i = 0; i < ARRAY_LEN; i++) { - if (thisaudio_prng.get_bits(1)) { // Modify data with probability of 0.5 - // Possible improvements: - // Copy neighbor data (possibly with modifications) - // Make bigger changes than xoring with 1 - array[i] ^= 1; - } - } - } - } - function whiteNoiseInt(array) { - noise_prng = alea(Date.now(), prng()); - const ARRAY_LEN = array.length; - for (let i = 0; i < ARRAY_LEN; i++) { - array[i] = (noise_prng() * 256) | 0; - } - } - function whiteNoiseFloat(array) { - const ARRAY_LEN = array.length; - noise_prng = alea(Date.now(), prng()); - for (let i = 0; i < ARRAY_LEN; i++) { - array[i] = (noise_prng() * 2) -1; - } - } - /** @var String audioFarbleBody. - * - * Contains functions for modyfing audio data according to chosen level of protection - - * (0) - replace by white noise (range <0,0.1>) based on domain key - * (1) - multiply array by fudge factor based on domain key - */ - var audioFarbleBody = audioFarble; - var wrappers = [ - { - parent_object: "AudioBuffer.prototype", - parent_object_property: "getChannelData", - wrapped_objects: [ - { - original_name: "AudioBuffer.prototype.getChannelData", - wrapped_name: "origGetChannelData", - } - ], - helping_code: "var behaviour = args[0]; WrapHelper.shared['WEBA_gcd_pool'] = new Set(); WrapHelper.shared['WEBA_origGetChannelData'] = origGetChannelData;" + audioFarbleBody + whiteNoiseFloat, - original_function: "parent.AudioBuffer.prototype.getChannelData", - wrapping_function_args: "channel", - /** \fn fake AudioBuffer.prototype.getChannelData - * \brief Returns modified channel data. - * - * Calls original function, which returns array with result, then calls function - * audioFarble with returned array as argument - which changes array values according to chosen level. - */ - wrapping_function_body: ` - var floatArr = origGetChannelData.call(this, channel); - if (WrapHelper.shared['WEBA_gcd_pool'].has(floatArr)) { - return floatArr; - } - if (behaviour == 0) { - audioFarble(floatArr); - } - else if (behaviour == 1) { - whiteNoiseFloat(floatArr); - } - WrapHelper.shared['WEBA_gcd_pool'].add(floatArr); - setTimeout(function() { - WrapHelper.shared['WEBA_gcd_pool'].delete(floatArr); - }, 300000); // Remove the information after 5 minutes, this might need tweaking - return floatArr; - `, - }, - { - parent_object: "AudioBuffer.prototype", - parent_object_property: "copyFromChannel", - wrapped_objects: [ - { - original_name: "AudioBuffer.prototype.copyFromChannel", - wrapped_name: "origCopyFromChannel", - } - ], - helping_code: "var behaviour = args[0]; WrapHelper.shared['WEBA_gcd_pool'] = new Set();" + audioFarbleBody + whiteNoiseFloat, - original_function: "parent.AudioBuffer.prototype.copyFromChannel", - wrapping_function_args: "destination, channel, start", - /** \fn fake AudioBuffer.prototype.copyFromChannel - * \brief Modifies destination array after calling original function. - * - * Calls original function, which writes data to destination array, then calls function - * audioFarble with destination array as argument - which changes array values according to chosen level. - */ - wrapping_function_body: ` - if (behaviour == 1) { - whiteNoiseFloat(destination); - } - else if (behaviour == 0) { - var floatArr = WrapHelper.shared['WEBA_origGetChannelData'].call(this, channel); - origCopyFromChannel.call(this, destination, channel, start); - if (WrapHelper.shared['WEBA_gcd_pool'].has(floatArr)) { - // Already farbled, no additional farbling - } - else { - audioFarble(destination); - } - } - `, - }, - { - parent_object: "AnalyserNode.prototype", - parent_object_property: "getByteTimeDomainData", - wrapped_objects: [ - { - original_name: "AnalyserNode.prototype.getByteTimeDomainData", - wrapped_name: "origGetByteTimeDomainData", - } - ], - helping_code: "var behaviour = args[0];" + audioFarbleInt + whiteNoiseInt, - wrapping_function_args: "destination", - /** \fn fake AnalyserNode.prototype.getByteTimeDomainData - * \brief Modifies destination array after calling original function. - * - * Calls original function, which writes data to destination array, then calls function - * audioFarble with destination array as argument - which changes array values according to chosen level. - */ - wrapping_function_body: ` - if (behaviour == 0) { - origGetByteTimeDomainData.call(this, destination); - audioFarbleInt(destination); - } - else if (behaviour == 1) { - whiteNoiseInt(destination); - } - `, - }, - { - parent_object: "AnalyserNode.prototype", - parent_object_property: "getFloatTimeDomainData", - wrapped_objects: [ - { - original_name: "AnalyserNode.prototype.getFloatTimeDomainData", - wrapped_name: "origGetFloatTimeDomainData", - } - ], - helping_code: "var behaviour = args[0];" + audioFarbleBody + whiteNoiseFloat, - wrapping_function_args: "destination", - /** \fn fake AnalyserNode.prototype.getFloatTimeDomainData - * \brief Modifies destination array after calling original function. - * - * Calls original function, which writes data to destination array, then calls function - * audioFarble with destination array as argument - which changes array values according to chosen level. - */ - wrapping_function_body: ` - if (behaviour == 0) { - origGetFloatTimeDomainData.call(this, destination); - audioFarble(destination); - } - else if (behaviour == 1) { - whiteNoiseFloat(destination); - } - `, - }, - { - parent_object: "AnalyserNode.prototype", - parent_object_property: "getByteFrequencyData", - wrapped_objects: [ - { - original_name: "AnalyserNode.prototype.getByteFrequencyData", - wrapped_name: "origGetByteFrequencyData", - } - ], - helping_code: "var behaviour = args[0];" + audioFarbleInt + whiteNoiseInt, - wrapping_function_args: "destination", - /** \fn fake AnalyserNode.prototype.getByteFrequencyData - * \brief Modifies destination array after calling original function. - * - * Calls original function, which writes data to destination array, then calls function - * audioFarble with destination array as argument - which changes array values according to chosen level. - */ - wrapping_function_body: ` - if (behaviour == 0) { - origGetByteFrequencyData.call(this, destination); - audioFarbleInt(destination); - } - else if (behaviour == 1) { - whiteNoiseInt(destination); - } - `, - }, - { - parent_object: "AnalyserNode.prototype", - parent_object_property: "getFloatFrequencyData", - wrapped_objects: [ - { - original_name: "AnalyserNode.prototype.getFloatFrequencyData", - wrapped_name: "origGetFloatFrequencyData", - } - ], - helping_code: "var behaviour = args[0];" + audioFarbleBody + whiteNoiseFloat, - wrapping_function_args: "destination", - /** \fn fake AnalyserNode.prototype.getFloatFrequencyData - * \brief Modifies destination array after calling original function. - * - * Calls original function, which writes data to destination array, then calls function - * audioFarble with destination array as argument - which changes array values according to chosen level. - */ - wrapping_function_body: ` - if (behaviour == 0) { - origGetFloatFrequencyData.call(this, destination); - audioFarble(destination); - } - else if (behaviour == 1) { - whiteNoiseFloat(destination); - } - `, - } - ]; - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-WEBGL.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-WEBGL.js deleted file mode 100644 index 73e0dbd..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-WEBGL.js +++ /dev/null @@ -1,1513 +0,0 @@ -/** \file - * \brief Wrappers for WebGL Specification standards (both 1.0 and 2.0) - * - * \see https://www.khronos.org/registry/webgl/specs/latest/1.0/ - * \see https://www.khronos.org/registry/webgl/specs/latest/2.0/ - * - * \author Copyright (C) 2021 Matus Svancar - * \author Copyright (C) 2023 Martin Zmitko - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - * \license SPDX-License-Identifier: MPL-2.0 - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// -// Alternatively, the contents of this file may be used under the terms -// of the Mozilla Public License, v. 2.0, as described below: -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this file, -// You can obtain one at http://mozilla.org/MPL/2.0/. -// -// \copyright Copyright (c) 2020 The Brave Authors. - -/** \file - * This file contains wrappers for WebGL related calls - * * https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext - * * https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext - * \ingroup wrappers - * - * The goal is to prevent fingerprinting by modifying the values from certain WebGLRenderingContext API functions. - * This includes return values of various functions which can be hardware/software specific and image data reading. - * - * Content is either modified according to domain and session keys to be different than the original albeit very similar - * or replaced by bottom value which is consistent every time. - * Both approaches are inspired by the algorithms created by [Brave Software](https://brave.com) available [here](https://github.com/brave/brave-core/$blob/master/chromium_src/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc) - * and [here](https://github.com/brave/brave-core/blob/master/chromium_src/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.cc). - * - * This wrapper operates with two levels of protection: - * * (0) - return modified results, such as slightly changed image, slightly changed number or random string - * * (1) - return bottom values - such as zero, empty string, empty image, null, etc. - * - * Level 0 is trying to force WebGL fingeprint to be unique on every domain and every session. This can be effective - * when used with other wrappers with same options. This level causes breakage of websites using WebGL only rarely. - * Level 1 is trying to return as little information as possible while being consistent across domains and sessions. - * This level can cause breakage on majority of websites using WebGL. - * - * \note Both approaches are detectable by a fingerprinter that checks if a predetermined image - * is the same as the read one or if specific function returns expected value. - * Nevertheless, the aim of the wrappers is to limit the finerprintability. - * - */ -/* - * Create private namespace - */ -(function() { - /** - * \brief subtract one from given number with ~50% probability relative to given enum and return it - * - * \param number original Number value to edit - * \param pname enum of argument given to getParameter - * - */ - function farbleGLint(number, pname) { - var ret = 0; - if(number > 0){ - let mash = new Mash(); - mash.addNumber(STATIC_RANDOM_VALUE); - mash.addNumber(number); - mash.addNumber(pname); - ret = Math.floor(mash.finalize() * number); - } - return ret; - } - /** - * \brief Modifies WebGLRenderingContext.getParameter return value for some specific parameters, original value for the rest - * - * \param pname GLenum (https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants) - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * - * Depending on level chosen this function returns: - * * (0) - depending on type - either changed original number or random string - * * (1) - bottom value depending on parameter [null, 0, empty string, random string] - */ - function farbleGetParameter(ctx, pname) { - if(args[0]===1) { - var ret; - switch (pname) { - case 0x1F02: // VERSION: WebGL 1.0/ WebGL 2.0 - case 0x1F01: // RENDERER - case 0x9246: // UNMASKED_RENDERER_WEBGL - case 0x1F00: // VENDOR - case 0x9245: // UNMASKED_VENDOR_WEBGL - case 0x8B8C: // SHADING_LANGUAGE_VERSION - ret = ""; - break; - case 0x8F36: // COPY_READ_BUFFER - case 0x8F37: // COPY_WRITE_BUFFER - case 0x8CA6: // DRAW_FRAMEBUFFER_BINDING - ret = null; - break; - case 0x8B4A: // MAX_VERTEX_UNIFORM_COMPONENTS - case 0x8A2B: // MAX_VERTEX_UNIFORM_BLOCKS - case 0x9122: // MAX_VERTEX_OUTPUT_COMPONENTS - case 0x8B4B: // MAX_VARYING_COMPONENTS - case 0x8C8A: // MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS - case 0x8B49: // MAX_FRAGMENT_UNIFORM_COMPONENTS - case 0x8A2D: // MAX_FRAGMENT_UNIFORM_BLOCKS - case 0x9125: // MAX_FRAGMENT_INPUT_COMPONENTS - case 0x8A2F: // MAX_UNIFORM_BUFFER_BINDINGS - case 0x8A2E: // MAX_COMBINED_UNIFORM_BLOCKS - case 0x8A31: // MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS - case 0x8A33: // MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS - case 0x8A30: // MAX_UNIFORM_BLOCK_SIZE - case 0x8869: // MAX_VERTEX_ATTRIBS - case 0x8DFB: // MAX_VERTEX_UNIFORM_VECTORS - case 0x8B4C: // MAX_VERTEX_TEXTURE_IMAGE_UNITS - case 0x0D33: // MAX_TEXTURE_SIZE - case 0x851C: // MAX_CUBE_MAP_TEXTURE_SIZE - case 0x8073: // MAX_3D_TEXTURE_SIZE - case 0x88FF: // MAX_ARRAY_TEXTURE_LAYERS - ret = 0; - break; - default: - ret = origGetParameter.call(ctx, pname); - } - return ret; - } - else if(args[0]===0) { - var ret; - switch (pname) { - case 0x8B4A: // MAX_VERTEX_UNIFORM_COMPONENTS - case 0x8A2B: // MAX_VERTEX_UNIFORM_BLOCKS - case 0x9122: // MAX_VERTEX_OUTPUT_COMPONENTS - case 0x8B4B: // MAX_VARYING_COMPONENTS - case 0x8C8A: // MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS - case 0x8B49: // MAX_FRAGMENT_UNIFORM_COMPONENTS - case 0x8A2D: // MAX_FRAGMENT_UNIFORM_BLOCKS - case 0x9125: // MAX_FRAGMENT_INPUT_COMPONENTS - case 0x8A2F: // MAX_UNIFORM_BUFFER_BINDINGS - case 0x8A2E: // MAX_COMBINED_UNIFORM_BLOCKS - case 0x8A31: // MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS - case 0x8A33: // MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS - case 0x8869: // MAX_VERTEX_ATTRIBS - case 0x8DFB: // MAX_VERTEX_UNIFORM_VECTORS - case 0x8B4C: // MAX_VERTEX_TEXTURE_IMAGE_UNITS - case 0x0D33: // MAX_TEXTURE_SIZE - case 0x851C: // MAX_CUBE_MAP_TEXTURE_SIZE - case 0x8073: // MAX_3D_TEXTURE_SIZE - case 0x88FF: // MAX_ARRAY_TEXTURE_LAYERS - var result = origGetParameter.call(ctx, pname); - ret = farbleGLint(result, pname); - break; - case 0x9245: // UNMASKED_VENDOR_WEBGL - ret = unmasked_vendor; - break; - case 0x9246: // UNMASKED_RENDERER_WEBGL - ret = unmasked_renderer; - break; - case 0x1F01: // RENDERER - ret = renderer; - break; - case 0x1F00: // VENDOR - ret = vendor; - break; - default: - ret = origGetParameter.call(ctx, pname); - } - return ret; - } - }; - let farbleGetParameterString = ` - var webgl_prng = alea(domainHash, "WebGL wrappers"); - var unmasked_vendor = randomString(8, 0, webgl_prng); - var vendor = randomString(8, 0, webgl_prng); - var unmasked_renderer = randomString(8, 0, webgl_prng); - var renderer = randomString(8, 0, webgl_prng); - const STATIC_RANDOM_VALUE = webgl_prng.uint32(); - `+ - farbleGetParameter; - /** - * \brief Returns null or output of given function - * - * \param name of original function - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param ...fcarg delegated arguments depending on function - * - * Depending on level chosen this function returns: - * * (0) - original value - * * (1) - null - */ - function farbleNull(name, ctx, ...fcarg) { - if(args[0]===1) { - return null; - } - else if(args[0]===0) { - return name.call(ctx, ...fcarg); - } - }; - /** - * \brief Returns 0 or output of given function - * - * \param name of original function - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param ...fcarg delegated arguments depending on function - * - * Depending on level chosen this function returns: - * * (0) - original value - * * (1) - zero - */ - function farbleZero(name, ctx, ...fcarg) { - if(args[0]===1) { - return 0; - } - else if(args[0]===0) { - return name.call(ctx, ...fcarg); - } - }; - /** - * \brief Returns -1 or output of given function - * - * \param name of original function - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param ...fcarg delegated arguments depending on function - * - * Depending on level chosen this function returns: - * * (0) - original value - * * (1) - minus one - */ - function farbleMinusOne(name, ctx, ...fcarg) { - if(args[0]===1) { - return -1; - } - else if(args[0]===0) { - return name.call(ctx, ...fcarg); - } - }; - /** - * \brief Returns [] or output of given function - * - * \param name of original function - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param ...fcarg delegated arguments depending on function - * - * Depending on level chosen this function returns: - * * (0) - original value - * * (1) - empty array - */ - function farbleNullArray(name, ctx, ...fcarg) { - if(args[0]===1) { - return new window.Array; - } - else if(args[0]===0) { - return name.call(ctx, ...fcarg); - } - }; - /** - * \brief Returns empty WebGLShaderPrecisionFormat object or real value - * - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param ...fcarg delegated arguments depending on function - * - * Depending on level chosen this function returns: - * * (0) - original value - * * (1) - WebGLShaderPrecisionFormat object with empty attributes - */ - function farbleGetPrecisionFormat(ctx, ...fcarg) { - if(args[0]===1) { - var ret = Object.create(WebGLShaderPrecisionFormat.prototype); - Object.defineProperties(ret, { - rangeMin:{ - value:0 - }, - rangeMax:{ - value:0 - }, - precision:{ - value:0 - } - }); - return ret; - } - else if(args[0]===0) { - return origGetShaderPrecisionFormat.call(ctx, ...fcarg); - } - }; - /** - * \brief Returns empty WebGLActiveInfo object or real value - * - * \param name of original function - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param ...fcarg delegated arguments depending on function - * - * Depending on level chosen this function returns: - * * (0) - original value - * * (1) - WebGLActiveInfo object with empty attributes - */ - function farbleGetActives(name, ctx, ...fcarg) { - if(args[0]===1) { - var ret = Object.create(WebGLActiveInfo.prototype); - Object.defineProperties(ret, { - name:{ - value:"" - }, - type:{ - value:5124 - }, - size:{ - value:0 - } - }); - return ret; - } - else if(args[0]===0) { - return name.call(ctx, ...fcarg); - } - }; - /** - * \brief Returns modified WebGLRenderingContext.getFramebufferAttachmentParameter output for some specific parameters, original value for the rest - * - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param target GLenum (https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants) - * \param attachment GLenum (https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants) - * \param pname GLenum (https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants) - * - * Depending on level chosen this function returns: - * * (0) - original value - * * (1) - bottom value (0, 34069, 9729, 5124) - */ - function farbleGetFramebufferAttachmentParameter(ctx, target, attachment, pname) { - if(args[0]===0) { - return origFrameBufferAttachmentParameter.call(ctx, target, attachment, pname); - } - else if(args[0]===1) { - var ret = null; - switch (pname) { - case 0x8CD2: - case 0x8212: - case 0x8213: - case 0x8214: - case 0x8215: - case 0x8216: - case 0x8217: - case 0x8CD4: - case 0x8CD0: - ret = 0; - break; - case 0x8CD3: - ret = 34069; - break; - case 0x8210: - ret = 9729; - break; - case 0x8211: - ret = 5124; - break; - } - return ret; - } - }; - /** - * \brief Returns modified WebGLRenderingContext.getVertexAttrib output for some specific parameters, original value for the rest - * - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param index GLuint specifying index - * \param pname GLenum (https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants) - * - * Depending on level chosen this function returns: - * * (0) - original value - * * (1) - bottom value (false, 0, 5120, empty Float32Array) - */ - function farbleGetVertexAttrib(ctx, index, pname) { - if(args[0]===0) { - return origGetVertexAttrib.call(ctx, index, pname); - } - else if(args[0]===1) { - var ret = null; - switch (pname) { - case 0x8622: - case 0x886A: - case 0x88FD: - ret = false; - break; - case 0x8623: - case 0x8624: - case 0x88FE: - ret = 0; - break; - case 0x8625: - ret = 5120; - break; - case 0x8626: - ret = new Float32Array([0,0,0,0]); - break; - } - return ret; - } - }; - /** - * \brief Returns modified WebGLRenderingContext.getBufferParameter output for some specific parameters, original value for the rest - * - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param target GLenum (https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants) - * \param pname GLenum (https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants) - * - * Depending on level chosen this function returns: - * * (0) - original value - * * (1) - bottom value (0, 35044) - */ - function farbleGetBufferParameter(ctx, target, pname) { - if(args[0]===0) { - return origGetBufferParameter.call(ctx, target, pname); - } - else if(args[0]===1) { - var ret = null; - switch (pname) { - case 0x8764: - ret = 0; - break; - case 0x8765: - ret = 35044; - break; - } - return ret; - } - }; - /** - * \brief Returns modified WebGLRenderingContext.getShaderParameter output for some specific parameters, original value for the rest - * - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param program WebGLShader object (https://developer.mozilla.org/en-US/docs/Web/API/WebGLShader) - * \param pname GLenum (https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants) - * - * Depending on level chosen this function returns: - * * (0) - original value - * * (1) - bottom value (false, 35633) - */ - function farbleGetShaderParameter(ctx, shader, pname) { - if(args[0]===0) { - return origGetShaderParameter.call(ctx, shader, pname); - } - else if(args[0]===1) { - var ret = null; - switch (pname) { - case 0x8B80: - case 0x8B81: - ret = false; - break; - case 0x8B4F: - ret = 35633; - break; - } - return ret; - } - }; - /** - * \brief Returns modified WebGLRenderingContext.getRenderbufferParameter output for some specific parameters, original value for the rest - * - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param target GLenum (https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants) - * \param pname GLenum (https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants) - * - * Depending on level chosen this function returns: - * * (0) - original value - * * (1) - bottom value (0, 32854) - */ - function farbleGetRenderbufferParameter(ctx, target, pname) { - if(args[0]===0) { - return origGetRenderbufferParameter.call(ctx, target, pname); - } - else if(args[0]===1) { - var ret = null; - switch (pname) { - case 0x8D42: - case 0x8D43: - case 0x8D50: - case 0x8D51: - case 0x8D52: - case 0x8D53: - case 0x8D54: - case 0x8D55: - case 0x8CAB: - ret = 0; - break; - case 0x8D44: - ret = 32854; - break; - } - return ret; - } - }; - /** - * \brief Returns modified WebGLRenderingContext.getProgramParameter output for some specific parameters, original value for the rest - * - * \param ctx WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param program WebGLProgram object (https://developer.mozilla.org/en-US/docs/Web/API/WebGLProgram) - * \param pname GLenum (https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants) - * - * Depending on level chosen this function returns: - * * (0) - original value - * * (1) - bottom value (false, 0, 35981) - */ - function farbleGetProgramParameter(ctx, program, pname) { - if(args[0]===0) { - return origGetProgramParameter.call(ctx, program, pname); - } - else if(args[0]===1) { - var ret = null; - switch (pname) { - case 0x8B80: - case 0x8B82: - case 0x8B83: - ret = false; - break; - case 0x8B85: - case 0x8B89: - case 0x8B86: - case 0x8C83: - case 0x8A36: - ret = 0; - break; - case 0x8C7F: - ret = 35981; - break; - } - return ret; - } - }; - /** - * \brief Modifies pixels array - * - * \param gl WebGLRenderingContext (https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext) - * \param x starting x position - * \param y starting y position - * \param width width to be read (in pixels) - * \param height height to be read (in pixels) - * \param format format of read pixel data - * \param type specifies data type of pixels - * \param pixels typed array to return result - * \param offset optional offset - * - * Depending on level chosen this function returns to pixels array: - * * (0) - slightly changed image data according to domain and session keys - * * (1) - empty array - */ - function farblePixels(gl, x, y, width, height, format, type, outpixels, offset) { - if (format === gl.ALPHA) { - // We do not modify alpha - origReadPixels.call(gl, x, y, width, height, gl.ALPHA, type, outpixels, offset); - return; - } - else if (typeof outpixels === "number") { - /// \bug We do not support calls without explicit buffers, NOOP - return; - } - else if (format !== gl.RGBA || type !== gl.UNSIGNED_BYTE) { - /* - * \bug https://www.khronos.org/registry/OpenGL/specs/es/2.0/es_full_spec_2.0.pdf, section - * 4.3.1: "Only two combinations of format and type are accepted. The first is format RGBA - * and type UNSIGNED_BYTE. The second is an implementation-chosen format from among those - * defined in table 3.4, excluding formats LUMINANCE and LUMINANCE_ALPHA." Brave (tested in - * Debian), Firefox (Debian, Windows), Edge (Windows) and Chromuim (Debian) return - * gl.getParameter(gl.IMPLEMENTATION_COLOR_READ_FORMAT).toString(16) == 0x1908 (RGBA) and - * gl.getParameter(gl.IMPLEMENTATION_COLOR_READ_TYPE).toString(16) == 0x1401 (UNSIGNED_BYTE). - * Hence in other cases we raise the excpetion generated by the call. - */ - try { - let pixels = new outpixels.__proto__.constructor(outpixels.length); - origReadPixels.call(gl, x, y, width, height, format, type, pixels, offset); - } - finally {} // There needs to be a catch/finally block - // Note that we do not modify the given outpixels - return; - } - if(args[0]===1) { - return; - } - else if(args[0]===0) { - // Read and modify pixels of the whole canvas to produce the same results no matter the view - const GL_WIDTH = gl.drawingBufferWidth; - const GL_HEIGHT = gl.drawingBufferHeight; - const BYTES_PER_ROW = GL_WIDTH * 4; - const BYTES_CANVAS = BYTES_PER_ROW * GL_HEIGHT; - const DESIRED_WIDTH = width * 4; - const BYTES_OUT = DESIRED_WIDTH * height; - const pixels = new Uint8Array(BYTES_CANVAS); - origReadPixels.call(gl, 0, 0, GL_WIDTH, GL_HEIGHT, gl.RGBA, gl.UNSIGNED_BYTE, pixels); - if (wasm.ready && wasm.grow(BYTES_CANVAS + BYTES_OUT + DESIRED_WIDTH)) { - try { - farblePixelsWASM(); - } catch (e) { - console.error("WebAssembly optimized farbling failed, falling back to JavaScript implementation", e); - farblePixelsJS(); - } - } else { - farblePixelsJS(); - } - - function farblePixelsWASM() { - // We need to flip the canvas - for (let i = 0; i < BYTES_CANVAS; i += BYTES_PER_ROW) { - wasm.set(pixels.subarray(i, i + BYTES_PER_ROW), BYTES_CANVAS - i - BYTES_PER_ROW); - } - const crc = wasm.crc16(BYTES_CANVAS); - const mash = new Mash(); - mash.addData(' '); - mash.addData(domainHash); - mash.addData("CanvasFarbling"); - mash.addData(crc); - wasm.farbleBytes(BYTES_CANVAS, mash.n | 0, true); - // Modify data according to original selection and flip the canvas back - wasm.adjustWebGL(x, y, width, height, GL_WIDTH, GL_HEIGHT); - // Save farbled pixels, limit size by size of outpixels - outpixels.set(wasm.get(Math.min(outpixels.length, BYTES_OUT), BYTES_CANVAS)); - } - - function farblePixelsJS() { - farbleCanvasDataBrave(function* () { - // We need to flip the canvas - let offset = BYTES_CANVAS - BYTES_PER_ROW; - while (offset >= 0) { - yield pixels.subarray(offset, offset + BYTES_PER_ROW); - offset -= BYTES_PER_ROW; - } - }, GL_WIDTH); - // And modify data according to the original parameters - const XXMAX = x + width; - function insertEmpty(pos) { - outpixels[pos ] = 0; - outpixels[pos+1] = 0; - outpixels[pos+2] = 0; - outpixels[pos+3] = 255; - } - for (let i = 0; i < height; i++) { - // Go through the number of desired rows - let xx = x; - let yy = y + i; - if (yy < 0 || yy >= GL_HEIGHT) { - for (let j = 0; j < DESIRED_WIDTH; j += 4) { - insertEmpty(i*DESIRED_WIDTH+j); - } - } - else { - let j = i*DESIRED_WIDTH; - while (xx < 0 && xx < XXMAX) { - insertEmpty(j); - j += 4; - xx++; - } - while (xx < XXMAX && xx < GL_WIDTH) { - let offset_orig = (yy * GL_WIDTH + xx) * 4; - outpixels[j ] = pixels[offset_orig]; - outpixels[j+1] = pixels[offset_orig+1]; - outpixels[j+2] = pixels[offset_orig+2]; - outpixels[j+3] = pixels[offset_orig+3]; - j += 4; - xx++; - } - while (xx < XXMAX) { - insertEmpty(j); - j += 4; - xx++; - } - } - } - } - } - }; - var wrappers = [ - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getParameter", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getParameter", - wrapped_name: "origGetParameter", - } - ], - helping_code: farbleGLint + randomString + - farbleGetParameterString, - original_function: "parent.WebGLRenderingContext.prototype.getParameter", - wrapping_function_args: "constant", - /** \fn fake WebGLRenderingContext.prototype.getParameter - * \brief Modifies return value for some specific parameters, original value for the rest - * - * Depending on level chosen this function returns: - * * (0) - depending on type - either changed original number or random string - * * (1) - bottom value depending on parameter [null, 0, empty string, random string] - */ - wrapping_function_body: ` - return farbleGetParameter(this,constant); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getParameter", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getParameter", - wrapped_name: "origGetParameter", - } - ], - helping_code: farbleGLint + randomString + - farbleGetParameterString, - original_function: "parent.WebGL2RenderingContext.prototype.getParameter", - wrapping_function_args: "constant", - /** \fn fake WebGL2RenderingContext.prototype.getParameter - * \brief Modifies return value for some specific parameters, original value for the rest - * - * Depending on level chosen this function returns: - * * (0) - depending on type - either changed original number or random string - * * (1) - bottom value depending on parameter [null, 0, empty string, random string] - */ - wrapping_function_body: ` - return farbleGetParameter(this, constant); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getSupportedExtensions", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getSupportedExtensions", - wrapped_name: "origGetSupportedExtensions", - } - ], - helping_code: farbleNullArray, - original_function: "parent.WebGLRenderingContext.prototype.getSupportedExtensions", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getSupportedExtensions - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - empty array - */ - wrapping_function_body: ` - return farbleNullArray(origGetSupportedExtensions, this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getSupportedExtensions", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getSupportedExtensions", - wrapped_name: "origGetSupportedExtensions", - } - ], - helping_code: farbleNullArray, - original_function: "parent.WebGL2RenderingContext.prototype.getSupportedExtensions", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getSupportedExtensions - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - empty array - */ - wrapping_function_body: ` - return farbleNullArray(origGetSupportedExtensions, this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getActiveAttrib", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getActiveAttrib", - wrapped_name: "origGetActiveAttrib", - } - ], - helping_code: farbleGetActives, - original_function: "parent.WebGLRenderingContext.prototype.getActiveAttrib", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getActiveAttrib - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - WebGLActiveInfo object with empty attributes - */ - wrapping_function_body: ` - return farbleGetActives(origGetActiveAttrib, this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getActiveAttrib", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getActiveAttrib", - wrapped_name: "origGetActiveAttrib", - } - ], - helping_code: farbleGetActives, - original_function: "parent.WebGL2RenderingContext.prototype.getActiveAttrib", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getActiveAttrib - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - WebGLActiveInfo object with empty attributes - */ - wrapping_function_body: ` - return farbleGetActives(origGetActiveAttrib, this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getExtension", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getExtension", - wrapped_name: "origGetExtension", - } - ], - helping_code: farbleNull, - original_function: "parent.WebGLRenderingContext.prototype.getExtension", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getExtension - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - null - */ - wrapping_function_body: ` - return farbleNull(origGetExtension, this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getExtension", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getExtension", - wrapped_name: "origGetExtension", - } - ], - helping_code: farbleNull, - original_function: "parent.WebGL2RenderingContext.prototype.getExtension", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getExtension - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - null - */ - wrapping_function_body: ` - return farbleNull(origGetExtension, this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getActiveUniform", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getActiveUniform", - wrapped_name: "origGetActiveUniform", - } - ], - helping_code: farbleGetActives, - original_function: "parent.WebGLRenderingContext.prototype.getActiveUniform", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getActiveUniform - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - WebGLActiveInfo object with empty attributes - */ - wrapping_function_body: ` - return farbleGetActives(origGetActiveUniform, this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getActiveUniform", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getActiveUniform", - wrapped_name: "origGetActiveUniform", - } - ], - helping_code: farbleGetActives, - original_function: "parent.WebGL2RenderingContext.prototype.getActiveUniform", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getActiveUniform - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - WebGLActiveInfo object with empty attributes - */ - wrapping_function_body: ` - return farbleGetActives(origGetActiveUniform, this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getUniformLocation", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getUniformLocation", - wrapped_name: "oriGetUniformLocation", - } - ], - helping_code: farbleNull, - original_function: "parent.WebGLRenderingContext.prototype.getUniformLocation", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getUniformLocation - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - null - */ - wrapping_function_body: ` - return farbleNull(oriGetUniformLocation, this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getUniformLocation", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getUniformLocation", - wrapped_name: "oriGetUniformLocation", - } - ], - helping_code: farbleNull, - original_function: "parent.WebGL2RenderingContext.prototype.getUniformLocation", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getUniformLocation - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - null - */ - wrapping_function_body: ` - return farbleNull(oriGetUniformLocation, this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getAttribLocation", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getAttribLocation", - wrapped_name: "origGetAttribLocation", - } - ], - helping_code: farbleMinusOne, - original_function: "parent.WebGLRenderingContext.prototype.getAttribLocation", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getAttribLocation - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - minus one - */ - wrapping_function_body: ` - return farbleMinusOne(origGetAttribLocation, this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getAttribLocation", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getAttribLocation", - wrapped_name: "origGetAttribLocation", - } - ], - helping_code: farbleMinusOne, - original_function: "parent.WebGL2RenderingContext.prototype.getAttribLocation", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getAttribLocation - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - minus one - */ - wrapping_function_body: ` - return farbleMinusOne(origGetAttribLocation, this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getVertexAttribOffset", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getVertexAttribOffset", - wrapped_name: "origGetVertexAttribOffset", - } - ], - helping_code: farbleZero, - original_function: "parent.WebGLRenderingContext.prototype.getVertexAttribOffset", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getVertexAttribOffset - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - zero - */ - wrapping_function_body: ` - return farbleZero("origGetVertexAttribOffset", this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getVertexAttribOffset", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getVertexAttribOffset", - wrapped_name: "origGetVertexAttribOffset", - } - ], - helping_code: farbleZero, - original_function: "parent.WebGL2RenderingContext.prototype.getVertexAttribOffset", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getVertexAttribOffset - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - zero - */ - wrapping_function_body: ` - return farbleZero("origGetVertexAttribOffset", this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "readPixels", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.readPixels", - wrapped_name: "origReadPixels", - } - ], - helping_code: farbleCanvasDataBrave.toString() + farblePixels, - original_function: "parent.WebGLRenderingContext.prototype.readPixels", - wrapping_function_args: "x, y, width, height, format, type, pixels, offset", - /** \fn fake WebGLRenderingContext.prototype.readPixels - * \brief Modifies array which contains result of readPixels - * - * Depending on level chosen modifies result array: - * * (0) - change values according to domain and session hashes - * * (1) - leave array empty - */ - wrapping_function_body: ` - farblePixels(this, x, y, width, height, format, type, pixels, offset); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "readPixels", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.readPixels", - wrapped_name: "origReadPixels", - } - ], - helping_code: farbleCanvasDataBrave.toString() + farblePixels, - original_function: "parent.WebGL2RenderingContext.prototype.readPixels", - wrapping_function_args: "x, y, width, height, format, type, pixels, offset", - /** \fn fake WebGL2RenderingContext.prototype.readPixels - * \brief Modifies array which contains result of readPixels - * - * Depending on level chosen modifies result array: - * * (0) - change values according to domain and session hashes - * * (1) - leave array empty - */ - wrapping_function_body: ` - farblePixels(this, x, y, width, height, format, type, pixels, offset); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getFramebufferAttachmentParameter", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getFramebufferAttachmentParameter", - wrapped_name: "origGetFramebufferAttachmentParameter", - } - ], - helping_code: farbleGetFramebufferAttachmentParameter, - original_function: "parent.WebGLRenderingContext.prototype.getFramebufferAttachmentParameter", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getFramebufferAttachmentParameter - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - bottom value depending on parameter [34069, 9729, 5124, 0] - */ - wrapping_function_body: ` - return farbleGetFramebufferAttachmentParameter(this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getFramebufferAttachmentParameter", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getFramebufferAttachmentParameter", - wrapped_name: "origGetFramebufferAttachmentParameter", - } - ], - helping_code: farbleGetFramebufferAttachmentParameter, - original_function: "parent.WebGL2RenderingContext.prototype.getFramebufferAttachmentParameter", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getFramebufferAttachmentParameter - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - bottom value depending on parameter [34069, 9729, 5124, 0] - */ - wrapping_function_body: ` - return farbleGetFramebufferAttachmentParameter(this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getBufferParameter", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getBufferParameter", - wrapped_name: "origGetBufferParameter", - } - ], - helping_code: farbleGetBufferParameter, - original_function: "parent.WebGLRenderingContext.prototype.getBufferParameter", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getBufferParameter - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - bottom value depending on parameter [35044, 0] - */ - wrapping_function_body: ` - return farbleGetBufferParameter(this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getBufferParameter", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getBufferParameter", - wrapped_name: "origGetBufferParameter", - } - ], - helping_code: farbleGetBufferParameter, - original_function: "parent.WebGL2RenderingContext.prototype.getBufferParameter", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getBufferParameter - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - bottom value depending on parameter [35044, 0] - */ - wrapping_function_body: ` - return farbleGetBufferParameter(this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getProgramParameter", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getProgramParameter", - wrapped_name: "origGetProgramParameter", - } - ], - helping_code: farbleGetProgramParameter, - original_function: "parent.WebGLRenderingContext.prototype.getProgramParameter", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getProgramParameter - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - bottom value depending on parameter [false, 35981, 0] - */ - wrapping_function_body: ` - return farbleGetProgramParameter(this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getProgramParameter", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getProgramParameter", - wrapped_name: "origGetProgramParameter", - } - ], - helping_code: farbleGetProgramParameter, - original_function: "parent.WebGL2RenderingContext.prototype.getProgramParameter", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getProgramParameter - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - bottom value depending on parameter [false, 35981, 0] - */ - wrapping_function_body: ` - return farbleGetProgramParameter(this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getRenderbufferParameter", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getRenderbufferParameter", - wrapped_name: "origGetRenderbufferParameter", - } - ], - helping_code: farbleGetRenderbufferParameter, - original_function: "parent.WebGLRenderingContext.prototype.getRenderbufferParameter", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getRenderbufferParameter - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - bottom value depending on parameter [32854, 0] - */ - wrapping_function_body: ` - return farbleGetRenderbufferParameter(this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getRenderbufferParameter", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getRenderbufferParameter", - wrapped_name: "origGetRenderbufferParameter", - } - ], - helping_code: farbleGetRenderbufferParameter, - original_function: "parent.WebGL2RenderingContext.prototype.getRenderbufferParameter", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getRenderbufferParameter - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - bottom value depending on parameter [32854, 0] - */ - wrapping_function_body: ` - return farbleGetRenderbufferParameter(this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getShaderParameter", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getShaderParameter", - wrapped_name: "origGetShaderParameter", - } - ], - helping_code: farbleGetShaderParameter, - original_function: "parent.WebGLRenderingContext.prototype.getShaderParameter", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getShaderParameter - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - bottom value depending on parameter [35633, false] - */ - wrapping_function_body: ` - return farbleGetShaderParameter(this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getShaderParameter", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getShaderParameter", - wrapped_name: "origGetShaderParameter", - } - ], - helping_code: farbleGetShaderParameter, - original_function: "parent.WebGL2RenderingContext.prototype.getShaderParameter", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getShaderParameter - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - bottom value depending on parameter [35633, false] - */ - wrapping_function_body: ` - return farbleGetShaderParameter(this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getVertexAttrib", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getVertexAttrib", - wrapped_name: "origGetVertexAttrib", - } - ], - helping_code: farbleGetVertexAttrib, - original_function: "parent.WebGLRenderingContext.prototype.getVertexAttrib", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getVertexAttrib - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - bottom value depending on parameter [null, 0, false, 5120, empty array] - */ - wrapping_function_body: ` - return farbleGetVertexAttrib(this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getVertexAttrib", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getVertexAttrib", - wrapped_name: "origGetVertexAttrib", - } - ], - helping_code: farbleGetVertexAttrib, - original_function: "parent.WebGL2RenderingContext.prototype.getVertexAttrib", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getVertexAttrib - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - bottom value depending on parameter [null, 0, false, 5120, empty array] - */ - wrapping_function_body: ` - return farbleGetVertexAttrib(this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getUniform", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getUniform", - wrapped_name: "origGetUniform", - } - ], - helping_code: farbleZero, - original_function: "parent.WebGLRenderingContext.prototype.getUniform", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getUniform - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - zero - */ - wrapping_function_body: ` - return farbleZero("origGetUniform", this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getUniform", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getUniform", - wrapped_name: "origGetUniform", - } - ], - helping_code: farbleZero, - original_function: "parent.WebGL2RenderingContext.prototype.getUniform", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getUniform - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - zero - */ - wrapping_function_body: ` - return farbleZero("origGetUniform", this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getTexParameter", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getTexParameter", - wrapped_name: "origGetTexParameter", - } - ], - helping_code: farbleNull, - original_function: "parent.WebGLRenderingContext.prototype.getTexParameter", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getTexParameter - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - null - as if error has occured - */ - wrapping_function_body: ` - return farbleNull(origGetTexParameter, this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getTexParameter", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getTexParameter", - wrapped_name: "origGetTexParameter", - } - ], - helping_code: farbleNull, - original_function: "parent.WebGL2RenderingContext.prototype.getTexParameter", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getTexParameter - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - null - as if error has occured - */ - wrapping_function_body: ` - return farbleNull(origGetTexParameter, this, ...args); - `, - }, - { - parent_object: "WebGLRenderingContext.prototype", - parent_object_property: "getShaderPrecisionFormat", - wrapped_objects: [ - { - original_name: "WebGLRenderingContext.prototype.getShaderPrecisionFormat", - wrapped_name: "origGetShaderPrecisionFormat", - } - ], - helping_code: farbleGetPrecisionFormat, - original_function: "parent.WebGLRenderingContext.prototype.getShaderPrecisionFormat", - wrapping_function_args: "...args", - /** \fn fake WebGLRenderingContext.prototype.getShaderPrecisionFormat - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - WebGLShaderPrecisionFormat object with empty attributes - */ - wrapping_function_body: ` - return farbleGetPrecisionFormat(this, ...args); - `, - }, - { - parent_object: "WebGL2RenderingContext.prototype", - parent_object_property: "getShaderPrecisionFormat", - wrapped_objects: [ - { - original_name: "WebGL2RenderingContext.prototype.getShaderPrecisionFormat", - wrapped_name: "origGetShaderPrecisionFormat", - } - ], - helping_code: farbleGetPrecisionFormat, - original_function: "parent.WebGL2RenderingContext.prototype.getShaderPrecisionFormat", - wrapping_function_args: "...args", - /** \fn fake WebGL2RenderingContext.prototype.getShaderPrecisionFormat - * \brief Modifies return value - * - * Depending on level chosen this function returns: - * * (0) - original return value - * * (1) - WebGL2ShaderPrecisionFormat object with empty attributes - */ - wrapping_function_body: ` - return farbleGetPrecisionFormat(this, ...args); - `, - } - ]; - add_wrappers(wrappers); -})(); diff --git a/data/extensions/jsr@javascriptrestrictor/wrappingS-XR.js b/data/extensions/jsr@javascriptrestrictor/wrappingS-XR.js deleted file mode 100644 index 94f2a83..0000000 --- a/data/extensions/jsr@javascriptrestrictor/wrappingS-XR.js +++ /dev/null @@ -1,64 +0,0 @@ -/** \file - * \brief This file contains wrappers for the current Virtual/Augmented Reality API (WebXR) - * - * \see https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API - * \see https://immersive-web.github.io/webxr/ - * - * \author Copyright (C) 2021 Libor Polcak - * - * \license SPDX-License-Identifier: GPL-3.0-or-later - */ -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <https://www.gnu.org/licenses/>. -// - -/** \file - * \ingroup wrappers - * - * navigator.xr allows any page script to learn the VR displays attached - * to the computer and more. - * - * U. Iqbal, S. Englehardt and Z. Shafiq, "Fingerprinting the - * Fingerprinters: Learning to Detect Browser Fingerprinting Behaviors," - * in 2021 2021 IEEE Symposium on Security and Privacy (SP), San Francisco, - * CA, US, 2021 pp. 283-301 observed - * (https://github.com/uiowa-irl/FP-Inspector/blob/master/Data/potential_fingerprinting_APIs.md) - * that the orginal WebVR API is used in the wild to fingerprint users. As it is - * likely that only a minority of users have a VR display connected and the API - * provides additional information on the HW, it is likely that users with - * a VR display connected are easily fingerprintable. - * - * As all the API calls are accessible through the navigator.xr API, we provide - * a single mitigation. We disable the API completely. This might need to be - * revised once this API is commonly enabled in browsers. - */ - -(function() { - var wrappers = [ - { - parent_object: "Navigator.prototype", - parent_object_property: "xr", - wrapped_objects: [], - helping_code: "", - post_wrapping_code: [ - { - code_type: "delete_properties", - parent_object: "Navigator.prototype", - delete_properties: ["xr"], - } - ], - }, - ] - add_wrappers(wrappers); -})() |