gorhill / uMatrix

uMatrix: Point and click matrix to filter net requests according to source, destination and type
GNU General Public License v3.0
4.55k stars 470 forks source link

Ability to enforce `_escaped_fragment_=` #940

Closed gorhill closed 6 years ago

gorhill commented 6 years ago

Background: https://twitter.com/thatcks/status/958776519765225473

Announcement: https://webmasters.googleblog.com/2009/10/proposal-for-making-ajax-crawlable.html

Deprecation announcement: https://webmasters.googleblog.com/2015/10/deprecating-our-ajax-crawling-scheme.html

This is a trivial addition. Despite the deprecation, it's unclear whether this will still be used for long by web masters. Because it is trivial to support, I added a raw setting named enforceEscapedFragment (default to true, i.e. enabled by default) to enforce the still used _escaped_fragment_= directive. This raw setting could be removed at any point in the future if ever it is found that there is no longer any point to support it.

uMatrix will convert back and forth #! to _escaped_fragment_= depending on whether 1st-party scripts are blocked.

Test case: https://groups.google.com/forum/#!topic/golang-nuts/F5xFHTfwRnY