From dc10b761e3a324efb81cfbce1e60a7406d55ba4e Mon Sep 17 00:00:00 2001 From: Matthias Endler <matthias-endler@gmx.net> Date: Tue, 4 Feb 2020 18:17:34 +0100 Subject: [PATCH] Fix some typos in the documentation and the templates --- README.md | 50 +++++++++++++++++++++---------------------- popup/config.html | 2 +- tests/SpecRunner.html | 2 +- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 48e1ec7..8536031 100644 --- a/README.md +++ b/README.md @@ -1,52 +1,52 @@ # SimpleModifyHeaders V 1.6 -Extension for firefox and chrome. (The extension can be install via [this link](https://addons.mozilla.org/fr/firefox/addon/simple-modify-header/) for firefox and via [this link](https://chrome.google.com/webstore/detail/simple-modify-headers/gjgiipmpldkpbdfjkgofildhapegmmic) for chrome) +Extension for Firefox and Chrome. (The extension can be installed via [this link](https://addons.mozilla.org/fr/firefox/addon/simple-modify-header/) for Firefox and via [this link](https://chrome.google.com/webstore/detail/simple-modify-headers/gjgiipmpldkpbdfjkgofildhapegmmic) for Chrome) -The extension rewrite the headers based on a rules table. +The extension rewrites the headers based on a rules table. -The extension can be start and stop via the button on the top right. +The extension can be started and stopped via the button on the top right. To save and apply the modification, you need to click on the save button. It's possible to: -- export the configuration in a file (json format) -- import the configuration from a file , it support the format of the Modifyheaders plugin +- export the configuration into a file (json format) +- import the configuration from a file. It supports the format of the Modifyheaders plugin ## Rules table -The rules table contains lines with the following parameters : -- action : add, modify or delete a header field +The rules table contains lines with the following parameters: +- action: add, modify or delete a header field - header field name - header field value -- comment : a comment -- apply on : "request" if the modification apply on the request headers or "response" if the modification apply on the response headers -- status : on if the modification is active , off otherwise +- comment: a comment +- apply on: "request" if the modification applies to the request headers or "response" if the modification applies to the response headers +- status: on if the modification is active, off otherwise ## Url pattern -We can choose the urls on which the modifications applies by modifying the url pattern : -- The url pattern must follow the syntaxe define by https://developer.chrome.com/extensions/match_patterns -- Putting an empty string on the field will select all urls -- It's possible to select mutliple url patterns using semicolon(;) separator +We can choose the URLs on which the modifications are applied by modifying the URL pattern : +- The URL pattern must follow the syntax defined by https://developer.chrome.com/extensions/match_patterns +- Putting an empty string on the field will select all URLs +- It's possible to select multiple URL patterns using a semicolon (;) separator - It's not possible to define a specific port number https://stackoverflow.com/questions/11425591/match-port-in-chrome-extension-pattern ## Parameters -The parameters button permits to : -- Activate debug mode: show detail log messages in the extension debugging console of the browser. -- Show comments : show comments field on the config panel -- Filter URL per rules : activate the possiblity to filter url for each rules on the config panel, the header field will be modify only if the url contains the configurated value. +The parameters button permits to: +- Activate debug mode: shows detailed log messages in the extension debugging console of the browser. +- Show comments: show comments field on the config panel +- Filter URL by rules: activate the possibility to filter URL for each rule in the config panel. The header field will be modified only if the URL contains the configured value. -## Firefox specific issue -According to the version of Firefox, the addition of a new header behaves differently. In the latest version, when you choose the "add" action and the header exist, it appends the value, while in the old version, it replaces it. If you want to modify an exiting header, you should use "modify" instead of "add" +## Firefox-specific issue +According to the version of Firefox, the addition of a new header behaves differently. In the latest version, when you choose the "add" action and the header exists, it appends the value, while in the old version, it replaces it. If you want to modify an exiting header, you should use "modify" instead of "add" ## Limitation -Due to limitation in the webRequest API of browsers, headers of request which are invoked by Javascript could not be modified. +Due to limitations in the webRequest API of browsers, headers of requests, which are invoked by Javascript could not be modified. ## Extension permissions In order to work, the following browser permissions are needed for the extension: -- storage : needed to store the configuration and the rules -- activeTab, tabs : needed to show the configuration screen in the browser tab. -- webRequest,webRequestBlocking,<all_urls> : needed to modify the headers according to the rules table. +- storage: needed to store the configuration and the rules +- activeTab, tabs: needed to show the configuration screen in the browser tab. +- webRequest, webRequestBlocking ,<all_urls>: needed to modify the headers according to the rules table. ## License -The code is opensource under Mozilla Public License 2.0 +The code is Open Source under Mozilla Public License 2.0 diff --git a/popup/config.html b/popup/config.html index ce5716e..ce37557 100644 --- a/popup/config.html +++ b/popup/config.html @@ -79,7 +79,7 @@ <table class="standard_table"> <tr> <td style="text-align:left" > - <em style="font-size:10pt"> * Informations on url pattern can be found <a href="https://developer.chrome.com/extensions/match_patterns" target="_blank"> here.</a> <br> An empty string on the field will select all urls. It's possible to select mutliple url patterns using semicolon(;) separator </em> + <em style="font-size:10pt"> * Information on URL patterns can be found <a href="https://developer.chrome.com/extensions/match_patterns" target="_blank"> here.</a> <br> An empty string on the field will select all URLs. It's possible to select multiple URL patterns using semicolon (;) separator </em> </td> <td style="text-align:right"> <a href="https://github.com/didierfred/SimpleModifyHeaders/tree/v1.6.7" target="_blank"> <span class="glyphicon glyphicon-question-sign"></span> About </a> diff --git a/tests/SpecRunner.html b/tests/SpecRunner.html index 6164dfb..884541a 100644 --- a/tests/SpecRunner.html +++ b/tests/SpecRunner.html @@ -90,7 +90,7 @@ <table class="standard_table"> <tr> <td style="text-align:left" > - <em style="font-size:10pt"> * Informations on url pattern can be found <a href="https://developer.chrome.com/extensions/match_patterns" target="_blank"> here.</a> <br> An empty string on the field will select all urls. It's possible to select mutliple url patterns using semicolon(;) separator </em> + <em style="font-size:10pt"> * Information on URL patterns can be found <a href="https://developer.chrome.com/extensions/match_patterns" target="_blank"> here.</a> <br> An empty string on the field will select all URLs. It's possible to select multiple URL patterns using semicolon (;) separator </em> </td> <td style="text-align:right"> <a href="https://github.com/didierfred/SimpleModifyHeaders/tree/v1.6.2" target="_blank"> <span class="glyphicon glyphicon-question-sign"></span> About </a> -- GitLab