├── LICENSE ├── etag-stoppa.js ├── icons ├── etag32.png └── etag64.png └── manifest.json /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 claustromaniac 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /etag-stoppa.js: -------------------------------------------------------------------------------- 1 | browser.webRequest.onHeadersReceived.addListener(d => { 2 | if (!d.responseHeaders) return; 3 | const newHeaders = d.responseHeaders.filter(h => { 4 | return h.name.toLowerCase() !== 'etag'; 5 | }); 6 | if (newHeaders.length < d.responseHeaders.length) { 7 | console.debug(`Removed ETag from request #${d.requestId}\n ${d.url}`); 8 | return {responseHeaders: newHeaders}; 9 | } 10 | }, 11 | {urls: [""]}, ['blocking', 'responseHeaders'] 12 | ); 13 | -------------------------------------------------------------------------------- /icons/etag32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/claustromaniac/etag-stoppa/7ab7da5597f177ee08132fd777e3873acca97074/icons/etag32.png -------------------------------------------------------------------------------- /icons/etag64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/claustromaniac/etag-stoppa/7ab7da5597f177ee08132fd777e3873acca97074/icons/etag64.png -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "applications": { 3 | "gecko": { 4 | "id": "etag-stoppa@cm.org", 5 | "strict_min_version": "52.0" 6 | } 7 | }, 8 | "author": "claustromaniac", 9 | "background": { 10 | "scripts": [ "etag-stoppa.js" ] 11 | }, 12 | "description": "Prevents Firefox from storing entity tags by removing ETag response headers unconditionally and without exceptions.", 13 | "homepage_url": "https://github.com/claustromaniac/etag-stoppa", 14 | "icons": { 15 | "32": "icons/etag32.png", 16 | "64": "icons/etag64.png" 17 | }, 18 | "manifest_version": 2, 19 | "name": "ETag Stoppa", 20 | "permissions": [ 21 | "webRequest", 22 | "webRequestBlocking", 23 | "" 24 | ], 25 | "version": "0.4" 26 | } 27 | --------------------------------------------------------------------------------