martok / palefill

Inject Polyfills for various web technologies into pages requiring them
https://martok.github.io/palefill/
Mozilla Public License 2.0
79 stars 9 forks source link

Microsoft Docs and Apple Developer #27

Closed UCyborg closed 2 years ago

UCyborg commented 2 years ago

Hello, I just want to bring these two sites to attention:

They both use Custom Elements. No other apparent specialties with Apple's site, but Microsoft's site is only recently easily fixable with the extension since one or two of the newly supported operators in Pale Moon are used numerous times in their code, so would be more difficult to fix for browsers that don't support optional-chaining and nullish-coalescing operators. I attempted changing usage of those operators a while back, but got lost and lost patience.

Additionally, it has a script which determines whether to show browser unsupported warning and unhides the relevant element on the page, check the debugger and look for the JS file with "deprecation" in the name. It seems to check for some features that aren't used yet, though theoretically some things could get triggered for logged in users. May be blocked with content blocking extension like uBlock Origin.

I suppose "std-customElements" rule can still be included for PM users and other browsers at this level of JavaScript support since it brings back functional index on certain pages such as this one.

martok commented 2 years ago

Oh hey, MSDN isn't one of these white desert design pages, there's actually content there? :sweat_smile:

Thank you for pointing this out, implemented as suggested.

Vangelis66 commented 2 years ago

Additionally, it has a script which determines whether to show browser unsupported warning and unhides the relevant element on the page, ... May be blocked with content blocking extension like uBlock Origin.

I had the warning banner already blocked (i.e. "cosmetic filtering") long time ago in uBO (legacy) with:

! https://docs.microsoft.com
docs.microsoft.com###unsupported-browser
docs.microsoft.com##.nav-bar:nth-of-type(1)
docs.microsoft.com##.is-hidden-mobile.border-top.nav-bar

😄