chit chat: WebAPI Manager [Extension]
snip
This should make it more readable
https://paste.kthnxbai.xyz/?66ca6958c57438f6#foGznhCBHiNPdOI5W+GdjTlKNas6LNyoe1k2+5pCzrU=
And no, it does not require cookies
it passes the rules with a temporary cookie: https://github.com/snyderp/web-api-manager/blob/master/background_scripts/background.js#L111
and that's probably why it did nuttin for you.
The whole cookie thing is weird and I'm not sure it's always gonna work as expected. Meaning it's maybe possible to create a site that overwrites the rules.
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/cookies/get
If more than one cookie with the same name exists for a given URL, the one with the longest path will be returned. For cookies with the same path length, the cookie with the earliest creation time will be returned.
btw a site can also easily detect if the addon is installed: if (window.WEB_API_MANAGER != undefined)
APIs we have no prefs for (eg Ambient Light Sensor API)
afaik Ambient Light Sensor API is disabled with the sensors pref.
Installed WebAPI Manager on FF56, no configuration: Not able to login on any site I used to, which have FF cookie exceptions, see also: https://github.com/snyderp/web-api-manager/issues/2
Network console shows a bunch of icons files from assets-cdn.github.com
@Thorin-Oakenpants Disabling WAM solved the issue, I can login as usual on Github. FPI enabled too
and also the 8 sites I allow permanent cookies - those cookies were created months ago
"more than one cookie with the same name " ! ie wam-temp-cookie
Also, what is the answer on the web accessible resources - does this reveal the UUID?
the latest version on github doesn't have the web accessible resources anymore.
ps the login issues should be fixed in version 0.9.2 as well
the addon is adding an additional cookie to the response header and therefore the cookie will most likely get the same FPI etc as if the site itself set it. Why mention same names? because I (or a site) can set a specially crafted cookie which perhaps can overwrite the addon's rules. I haven't tested it yet because I don't think I will use this extension anyway. Just throwing ideas out there in case someone else wants to do some testing.
if this is what it takes to offer a semblance of privacy, it simply is not worth it IMO
another ext. that offers similar functionality is http-useragent-cleaner - i used to use it and i wrote an EN manual for it - what a f'n joke - the ego-laden dev is impossible to deal with
if you have to configure stuff on this kind of granular level, it's hardly worth browsing the www - you'll spend more time un-breaking shit than actually reading the sites content
just dealing with uM and uBO is enough of a hassle IMO - more layers just add to the hassle
@2glops Just pinging you on this b/c I had a hell of a time working out the issue with the login issue. The most recent commit (and what I'll be pushing as a .9.2 w/in 24 hrs) should have fixed it. I'm all but certain its a FF issue (specifically a bug in how their webExtension#webRequests implementation handles adding additional Set-Cookie headers, which seems to cause previous Set-Cookie headers to be coalesced incorrectly…)
Anyway, if you're still interested in the extension and end up using 0.9.2, and could let me know if you're still seeing the issue, I'd appreciate it a ton :)
Also, re: the discussion about configuring this thing is a pain in the butt
I completely agree :)
The goal is to have a possible EasyList/ABP/etc subscription style service set up for it before a 1.0 release. Fingers crossed…
My guts/balls/6th sense is telling me this WE have a lot of potential. @snyderp nice job
@snyderp Good, update 0.9.2 solve the login issue on FF56 / Linux
if 10 of these 74 items were of "real benefit" (i.e not already covered but could make a lot of difference) and they were presented in the same way uM/uBo are (i.e a default deny-all and grid/matrix to click green per domain) then I could see it being useful
agreed - as @crssi said, i think there's a lot of potential here but i (and i'm sure others) am not keen on messing with yet another ext. in addition to uM, uBO, etc. - i think if it could essentially cover the same functionality that they do and wrap it all into a single ext., then bingo - i guess it would almost have to use the existing blocklists since there's so many out there
maybe WebAPI Manager already does cover the basic functionality of uBO/uM - i don't know - much of the stuff it does is over my head
FWIW, from a high level, the way to think about this project vs. things like uBO, uM, NoScript etc, is that those tools control who's code can execute on your machine. WebAPI Manager controls what code can do.
From my perspective, the approaches that these other extensions (along with Ghostery, PrivacyBadger, etc.) take is useful in the common case, but (for most categories) easily circumvented by an attacker / ad company / etc.
My approach is to constrain the capabilities of code, regardless of the origin of the script.
Hope that helps :)
Sure! That's what is written in the 3rd pdf here, specifically chapter: 7.2 Blocked Browser Features
@snyderp are you aware that the blocking is bypassed on https://browserleaks.com/javascript? click on iframe.contentWindow at the top (only DOM, DOM Level 1, DOM Level 2: Core and DOM Level 2: Events needs to be enabled)
Example script with contentWindow
var iframe = document.createElement('iframe')
iframe.style.display = "none"
document.body.appendChild(iframe)
var w = iframe.contentWindow
console.log("contentWindow language:", w.navigator.language)
console.log("contentWindow atob:", w.atob("3x")) // ß
console.log("contentWindow btoa:", w.btoa("A")) // QQ==
console.log("contentWindow location.href:", w.location.href)
console.log("contentWindow navigator:", w.navigator.appName, w.navigator.appVersion, w.navigator.cookieEnabled, w.navigator.onLine, w.navigator.platform, w.navigator.userAgent)
console.log("contentWindow sessionStorage:", w.sessionStorage)
console.log("contentWindow history:", w.history)
console.log("contentWindow fullscreen:", w.document.mozFullScreen)
console.log("contentWindow vibrate:", w.Navigator.prototype.vibrate)
console.log("contentWindow encoding:", new w.TextEncoder().encoding)
console.log("contentWindow perf timimg", w.performance.timing)
var elem = w.document.createElement('canvas')
console.log("contentWindow canvas", elem.getContext, elem.getContext('2d'))
console.log("contentWindow serviceWorker", w.navigator.serviceWorker)
console.log("contentWindow indexedDB", w.indexedDB, w.indexedDB.open("TestDatabase"))
EDIT added an example script (click on the above text with the arrow to expand)
@publicarray Very interesting, no I did not know about this! I should be able to easily extend the blocking technique to this point as well, but its surprising to find out they don't actually share the same view of the DOM. Thank you for the point!
If you could open an issue on the extension, that would be extremely helpful. Otherwise, I'll do so when I'm back at the keyboard in a while.
Thanks for the find 👍
anybody try this thing with google/maps? i couldn't get earth view to work with all filters disabled - i had to disable the extension
this is with the ghacks config with...
webgl.disabled = false
webgl.disable-extensions = false
webgl.min_capability_mode = false
... all of which break earth view according to my tests
dunno if you guys use earth view, but to activate it you apparently need to click on something on the map that will produce a thumbnail image, like a street, then click on the thumbnail, then zoom out using the scroll wheel - this should get you there, all you need to do is try zooming out: https://tinyurl.com/y8tro8c3
i'll open a ticket on the WebAPI Manager page if we think the problem is on that end
@atomGit Hmm, interesting, possible another bug, though things seem to be working for me. I'm visiting www.google.com/maps with the following settings blocked:
["Ambient Light Sensor API", "Battery Status API", "Beacon", "Geolocation API", "Geometry…", "Gamepad", "SVG", "Web Audio", "WebGL", "WebVTT"]
Can you make sure you're using the 0.9.3 version (which fixed some relevant CSP issues), and if you're still seeing problems, please open an issue? I'll make sure to get things straightened out ASAP. Thanks!
@publicarray Thank you again for raising this. I've added it as issue 20 and will get it sorted out right away
@snyderp
Also, re: the discussion about configuring this thing is a pain in the butt, I completely agree :) The goal is to have a possible EasyList/ABP/etc subscription style service set up for it before a 1.0 release. Fingers crossed…
What I don't understand is why we can't just select all the things we want disabled all the time, and then on a per-site basis re-enable some stuff. Why do we have to chose between your pre-defined sets of rules? I haven't tried the extension yet because I'm still on FF52, but from what I understand, we must chose between Conservative and Aggressive and then adjust each website based on how different we need to be from these 2 sets of rules. Why not let me decide the base set? Seriously, what if your base set disables something I want enabled most of the time? Am I going to edit every single website I visit to re-enable this? It would be much better if I could decide what the baseline is...
Regards,