Git Product home page Git Product logo

claustromaniac / etag-stoppa Goto Github PK

View Code? Open in Web Editor NEW
26.0 4.0 0.0 11 KB

Minimalist extension for Firefox that removes ETag response headers unconditionally and without exceptions.

Home Page: https://addons.mozilla.org/en-US/firefox/addon/etag-stoppa/

License: MIT License

JavaScript 100.00%
firefox firefox-extension firefox-webextension etag tracking privacy privacy-protection minimalist minimalism firefox-addon

etag-stoppa's People

Contributors

claustromaniac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

etag-stoppa's Issues

Add Cross-browser compatibility

Tip To Make Your Code Compatible With All Browsers:
add window.browser = window.msBrowser || window.browser || window.chrome; // Cross-browser compatibility

This code was test (into developper mode) on ungoogled-chromium, vivaldi and firefox and works like a charm

window.browser = window.msBrowser || window.browser || window.chrome;
eTagFilter: function eTagFilter(d) {
    if (!d.responseHeaders) return {};
    const newHeaders = d.responseHeaders.filter(e => "etag" !== e.name.toLowerCase());
    return newHeaders.length < d.responseHeaders.length ? (console.log(`Removed ETag from request #${d.requestId}\n\t${d.url}`), { responseHeaders: newHeaders }) : void 0
}
browser.webRequest.onHeadersReceived.addListener(
    eTagFilter, {
        urls: ["<all_urls>"]
    },
    ["blocking", "responseHeaders"]
);

And into manifest.json
"description": "Prevents browsers from storing entity tags by removing ETag response headers unconditionally and without exceptions."

ETag Test Site

I haven't tested it, well I did, I think, but it was weeks ago ... so I can't confirm or deny (but i'm sure it worked, but then I may have been really drunk and nude tired)

https://privacycheck.sec.lrz.de/passive/fp_etag/fp_etag.php

THIS should be way better than that lucible one. After your tests, let me know. I already have the main landing page (https://privacycheck.sec.lrz.de/index.html) in the wiki at you know where (the site has other tests), but if the test passes, then I will change our wiki...and use this specific etag test as our recommended etag one

... and you might want to point to the new test in your AMO and readme's etc

Later,
๐Ÿ‘–

PS: On the main landing page, you have to tick the privacy thing and allow a cookie in order for the links to work properly. If you just use the actual various test pages, you don't need a cookie: just so you're aware in your testing (i.e you can test with cookies blocked etc)

privacy possum

Consider extension privacy possum with etag filters. How is your mousetrap better?

console.log=false

any chance of adding an option to turn off the console logging? It's rather f#^king verbose. Thanks ๐Ÿˆ

if (ShutTFUp == false) {
  if (newHeaders.length < d.responseHeaders.length) {
    console.debug(`Removed ETag from request #${d.requestId}\n	${d.url}`);
    return {responseHeaders: newHeaders};
  }
}

meet.google.com breakage when removing ETag

STR:
Join a google meeting meeting with ETag-stoppa enabled and the screen is blank, no video, no share screen, no chat, no controls.
Join a google meeting meeting with ETag-stoppa disabled and everything works.

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.