Skip to content
Snippets Groups Projects
Commit f713fe05 authored by Recolic K's avatar Recolic K
Browse files

dir structure

parent e9e682b1
No related branches found
No related tags found
No related merge requests found
Showing
with 68 additions and 53 deletions
# SimpleModifyHeaders V 1.7.0
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 rewrites the headers based on a rules table.
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 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 or a cookie
- header field name or cookie name
- header field value or cookie value
- 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 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: 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 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 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.
## License
The code is Open Source under Mozilla Public License 2.0
# refresh token sync: Office 365 on linux / any platform
Read <https://git.recolic.net/root/ms-scripts/-/blob/master/docs/mscorp-browser-os-restriction-workaround_/README.md> before going through this document!
This project is a patched SimpleModifyHeader extension, which automatically sync refresh token from windows-chicken to linux devbox.
## Usage
**You must use your own pastebin service instead of mine. DO NOT make me angry!**
1. Put pastebin.php on your website, and update all links to `recolic.net` in code with yours. (`grep -F recolic.net -r .`)
2. Install `uploader` extension in windows-chrome (or edge), and install `downloader` extension in your devbox.
# SimpleModifyHeaders V 1.7.0
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 rewrites the headers based on a rules table.
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 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 or a cookie
- header field name or cookie name
- header field value or cookie value
- 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 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: 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 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 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.
## License
The code is Open Source under Mozilla Public License 2.0
File moved
File moved
File moved
File moved
File moved
File moved
......@@ -3,7 +3,7 @@
"manifest_version": 2,
"name": "simple-modify-headers-fkmsu",
"version": "1.7.0.1000",
"homepage_url": "https://git.recolic.net/msc/browser-fuck-mscredential",
"homepage_url": "https://git.recolic.net/msc/fuckms-refreshtokensync",
"icons": {
"48": "icons/modify-48.png"
},
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment